source "https://rubygems.org"

gem "rails", "~> 4.2", ">= 4.2.7.1"

# Legacy Rails features, remove me!
# responders (class level)
gem "responders", "~> 2.2"

# Appserver

gem "unicorn", "~> 5.0", require: false
gem "unicorn-worker-killer", "~> 0.4.4"

# Federation

gem "diaspora_federation-rails", "~> 0.1.4"

# API and JSON

gem "acts_as_api", "~> 0.4.3"
gem "json",        "~> 1.8", ">= 1.8.3"
gem "json-schema", "~> 2.6", ">= 2.6.2"

# Authentication

gem "devise", "~> 4.2"
gem "devise_lastseenable", "~> 0.0.6"
gem "devise-token_authenticatable", "~> 0.5.2"

# Captcha

gem "simple_captcha2", "~> 0.4.0", require: "simple_captcha"

# Background processing

gem "sidekiq", "~> 4.1", ">= 4.1.4"
gem "sinatra", "~> 1.4", ">= 1.4.7"

# Scheduled processing

gem "sidekiq-cron", "~> 0.4.2"

# Compression

gem "uglifier", ">= 2.7.2"

# Configuration

gem "configurate", "~> 0.3.1"

# Cross-origin resource sharing

gem "rack-cors", "~> 0.4.0", require: "rack/cors"

# CSS

gem "bootstrap-sass", "~> 3.3"
gem "compass-rails",  "~> 2.0", ">= 2.0.5"
gem "sass-rails",     "~> 5.0", ">= 5.0.6"
gem "autoprefixer-rails", "~> 6.4", ">= 6.4.0.2"
gem "bootstrap-switch-rails", "~> 3.3", ">= 3.3.3"

# Database

ENV["DB"] ||= "mysql"

gem "mysql2", "~> 0.4.4" if ENV["DB"] == "all" || ENV["DB"] == "mysql"
gem "pg",     "~> 0.18.4" if ENV["DB"] == "all" || ENV["DB"] == "postgres"

#group :mysql, optional: true do
#  gem "mysql2", "~> 0.4.4"
#end
#group :postgresql, optional: true do
#  gem "pg",     "~> 0.18.4"
#end


gem "activerecord-import", "~> 0.15.0"

# File uploading

gem "carrierwave", "~> 0.10"
gem "fog",         "~> 1.38"
gem "mini_magick", "~> 4.5", ">= 4.5.1"
gem "remotipart",  "~> 1.2", ">= 1.2.1"

# GUID generation
gem "uuid", "~> 2.3", ">= 2.3.8"

# Icons

gem "entypo-rails", "~> 3.0.0.pre.rc2"

# JavaScript

gem "backbone-on-rails", "~> 1.2"
gem "handlebars_assets", "~> 0.23.1"
gem "jquery-rails",      "~> 4.1", ">= 4.1.1"
gem "jquery-ui-rails",   "~> 6.0"
gem "js_image_paths",    "~> 0.1.0"
gem "js-routes",         "~> 1.2", ">= 1.2.9"

source "https://rails-assets.org" do
  gem "rails-assets-jquery",                              ">= 1.11.2" # Should be kept in sync with jquery-rails

  gem "rails-assets-markdown-it",                         "~> 7.0"
  gem "rails-assets-markdown-it-hashtag",                 "~> 0.4.0"
  gem "rails-assets-markdown-it-diaspora-mention",        "~> 1.0"
  gem "rails-assets-markdown-it-sanitizer",               "~> 0.4.2"
  gem "rails-assets-markdown-it--markdown-it-for-inline", "~> 0.1.1"
  gem "rails-assets-markdown-it-sub",                     "~> 1.0"
  gem "rails-assets-markdown-it-sup",                     "~> 1.0"
  gem "rails-assets-highlightjs",                         "~> 9.6", ">= 9.6.0"
  gem "rails-assets-bootstrap-markdown",                  "~> 2.10"

  # jQuery plugins

  gem "rails-assets-jquery-placeholder",            "~> 2.3", ">= 2.3.1"
  gem "rails-assets-jquery-textchange",             "~> 0.2.3"
  gem "rails-assets-perfect-scrollbar",             "~> 0.6.12"
  gem "rails-assets-autosize",                      "~> 3.0", ">= 3.0.17"
  gem "rails-assets-blueimp-gallery",               "~> 2.21", ">= 2.21.3"
end

# Localization

gem "http_accept_language", "~> 2.0", ">= 2.0.5"
gem "i18n-inflector-rails", "~> 1.0", ">= 1.0.7"
gem "rails-i18n",           "~> 4.0", ">= 4.0.8"

# Mail

gem "markerb",             "~> 1.1"

# Map
gem "leaflet-rails",       "~> 0.7.7"

# Parsing

gem "nokogiri",          "~> 1.6", ">= 1.6.8"
gem "redcarpet",         "~> 3.3", ">= 3.3.4"
gem "twitter-text",      "~> 1.14"
gem "ruby-oembed",       "~> 0.10.1"
gem "open_graph_reader", "~> 0.6.1"

# Services

gem "omniauth",           "~> 1.3", ">= 1.3.1"
gem "omniauth-facebook",  "~> 4.0"
gem "omniauth-tumblr",    "~> 1.2"
gem "omniauth-twitter",   "~> 1.2", ">= 1.2.1"
gem "twitter",            "~> 5.16"
gem "omniauth-wordpress", "~> 0.2.2"

# OpenID Connect
gem "openid_connect", "~> 0.12.0"

# Serializers

gem "active_model_serializers", "~> 0.9.5"

# XMPP chat dependencies
gem "diaspora-prosody-config",    "~> 0.0.5"
gem "rails-assets-diaspora_jsxc", "~> 0.1.5.develop.1", source: "https://rails-assets.org"

# Tags

gem "acts-as-taggable-on", ">= 3.5","< 5.0"

# URIs and HTTP

gem "addressable",        "~> 2.3", ">= 2.3.8", require: "addressable/uri"
gem "faraday",            "~> 0.9.2"
gem "faraday_middleware", "~> 0.10.0"
gem "faraday-cookie_jar", "~> 0.0.6"
gem "typhoeus",           "~> 1.1"

# Views

gem "gon",                     "~> 6.1"
gem "hamlit",                  "~> 2.5"
gem "mobile-fu",               "~> 1.3", ">= 1.3.1"
gem "will_paginate",           "~> 3.1"
gem "rails-timeago",           "~> 2.11"

# Logging

gem "logging-rails", "~> 0.5.0", require: "logging/rails"

# Reading and writing zip files

gem "rubyzip", "~> 1.2", require: "zip"

# Prevent occasions where minitest is not bundled in
# packaged versions of ruby. See following issues/prs:
# https://github.com/gitlabhq/gitlabhq/issues/3826
# https://github.com/gitlabhq/gitlabhq/pull/3852
# https://github.com/discourse/discourse/pull/238
gem "minitest"

gem "versionist", "~> 1.5"

# Windows and OSX have an execjs compatible runtime built-in, Linux users should
# install Node.js or use "therubyracer".
#
# See https://github.com/sstephenson/execjs#readme for more supported runtimes

# gem "therubyracer", :platform => :ruby

group :production do # we don"t install these on travis to speed up test runs
  # Administration

  gem "rails_admin", "~> 0.8.1"

  # Analytics

  gem "rack-google-analytics", "~> 1.2"
  gem "rack-piwik",            "~> 0.3.0",  require: "rack/piwik"

  # Click-jacking protection

  gem "rack-protection", "~> 1.5", ">= 1.5.3"

  # Process management

  gem "eye", "~> 0.7"

  # Redirects

  gem "rack-rewrite", "~> 1.5", ">= 1.5.1", require: false
  gem "rack-ssl",     "~> 1.4", ">= 1.4.1", require: "rack/ssl"

  # Third party asset hosting

  gem "asset_sync", "~> 1.1", require: false
end

#group :development do
if ENV["INCLUDE_TEST_DEPENDS"] == "true"
  # Automatic test runs
  gem "guard",          "2.14.0", require: false
  gem "guard-cucumber", "2.1.2", require: false
  gem "guard-rspec",    "4.7.3", require: false
  gem "guard-rubocop",  "1.2.0", require: false
  gem "rb-fsevent",     "0.9.7", require: false
  gem "rb-inotify",     "0.9.7", require: false

  # Linters
  gem "rubocop",        "0.40.0"
  gem "haml_lint",      "0.18.1"
  gem "pronto",         "0.7.0"
  gem "pronto-eslint",  "0.7.0"
  gem "pronto-rubocop", "0.7.0"
  gem "pronto-haml",    "0.7.0"
  gem "pronto-scss",    "0.7.0", require: false

  # Preloading environment

  gem "spring", "1.7.2"
  gem "spring-commands-rspec", "1.0.4"
  gem "spring-commands-cucumber", "1.0.1"

  # Debugging
  gem "pry"
  gem "pry-byebug"

  # test coverage
  gem "simplecov", "0.12.0", require: false

  gem "turbo_dev_assets", "0.0.2"
#end

#group :test do
  # RSpec (unit tests, some integration tests)

  gem "fixture_builder",   "0.4.1"
  gem "fuubar",            "2.1.1"
  gem "test_after_commit", "1.1.0"

  # Cucumber (integration tests)

  gem "capybara",           "2.7.1"
  gem "database_cleaner",   "1.5.3"
  gem "poltergeist",        "1.10.0"

  gem "cucumber-api-steps", "0.13", require: false
  gem "json_spec", "1.1.4"

  # General helpers

  gem "factory_girl_rails", "4.7.0"
  gem "timecop",            "0.8.1"
  gem "webmock",            "2.1.0", require: false
  gem "shoulda-matchers",   "3.1.1"

  gem "diaspora_federation-test", "0.1.4"

  # Coverage
  gem 'coveralls', require: false
#end

#group :development, :test do
  # RSpec (unit tests, some integration tests)
  gem "rspec-rails", "3.5.1"

  # Cucumber (integration tests)
  gem "cucumber-rails", "1.4.4", require: false

  # Jasmine (client side application tests (JS))
  gem "jasmine",                   "2.4.0"
  gem "jasmine-jquery-rails",      "2.0.3"
  gem "rails-assets-jasmine-ajax", "3.2.0", source: "https://rails-assets.org"
  gem "sinon-rails",               "1.15.0"

  # silence assets
  gem "quiet_assets", "1.1.0"
end
