Gemfile 2.96 KB
Newer Older
1
source "https://rubygems.org"
2

Bráulio Bhavamitra's avatar
Bráulio Bhavamitra committed
3
platform :ruby do
Gabriel Silva's avatar
Gabriel Silva committed
4
  gem 'pg',                     '~> 1.1.3'
Rodrigo Souto's avatar
Rodrigo Souto committed
5
  gem 'rmagick',                '~> 2.13', require: false
6
  gem 'RedCloth',               '~> 4.2'
7
  gem 'unicorn',                '~> 5.4'
Bráulio Bhavamitra's avatar
Bráulio Bhavamitra committed
8
end
9

Bráulio Bhavamitra's avatar
Bráulio Bhavamitra committed
10 11 12 13 14
platform :jruby do
  gem 'activerecord-jdbcpostgresql-adapter'
  gem 'rmagick4j'
end

15
gem 'rails',                      '~> 5.1.6'
16
gem 'rails-html-sanitizer'
17 18 19 20 21
gem 'fast_gettext'
gem 'acts-as-taggable-on'
gem 'rails_autolink'
gem 'ruby-feedparser'
gem 'daemons'
22
gem 'nokogiri'
23
gem 'mini_portile2'
24
gem 'will_paginate'
25 26
gem 'delayed_job'
gem 'delayed_job_active_record'
27
gem 'rake',                       require: false
28
gem 'netrc'
29 30
gem 'rest-client'
gem 'exception_notification'
31
gem 'gettext',                    require: false
32
gem 'locale'
33 34
gem 'whenever',                   require: false
gem 'eita-jrails'
35
gem 'diffy'
36
gem 'slim'
37 38
gem 'activerecord-session_store'
gem 'recaptcha',                  require: 'recaptcha/rails'
39
gem 'font-awesome-sass'
40
gem 'rpush'
41 42 43 44 45 46
gem 'acts_as_list'
gem 'acts_as_tree'
gem 'contacts'
gem 'responders'
gem 'activemodel-serializers-xml'
gem 'hpricot'
47
gem 'http-cookie'
48
gem 'activerecord-import'
49 50
gem 'childprocess'
gem 'rubyzip'
Iasmin Mendes's avatar
Iasmin Mendes committed
51
gem 'tinymce-rails', '~> 4.8', '>= 4.8.2'
52
gem 'tinymce-rails-langs', '~> 4.2'
53

54
# API dependencies
55 56
gem 'grape'
gem 'grape-entity'
57
gem 'grape_logging'
58 59
gem 'rack-cors'
gem 'rack-contrib'
60
gem 'liquid'
61
gem 'api-pagination'
62

63
# asset pipeline
64
gem 'uglifier'
65 66
gem 'sass-rails'
gem 'sass'
67
gem 'sprockets-rails'
68

69 70
gem 'serviceworker-rails'
gem 'webpush'
71 72 73
gem 'rspec'
gem 'rspec-rails'
gem 'rails-controller-testing'
74

75
# gems to enable rails3 behaviour
76
gem 'protected_attributes_continued'
77
gem 'rails-observers'
78 79
gem 'actionpack-page_caching'
gem 'actionpack-action_caching'
80
gem 'scenic'
81 82
gem 'sass-listen'

83
group :production do
84
  gem 'dalli',                     '~> 2.7.0'
85 86
end

87 88
group :development, :test do
  gem 'spring'
Álax Alves's avatar
Álax Alves committed
89
  gem 'rubocop', require: false
90 91
end

92
group :test do
Álax Alves's avatar
Álax Alves committed
93
  gem 'mocha',                     require: false
94
  gem 'test-unit'
95 96
  gem 'minitest'
  gem 'minitest-reporters'
97
  gem 'rails-deprecated_sanitizer'
98
  gem 'simplecov',                 require: false
99 100
end

101
group :cucumber, :test do
102
  gem 'capybara'
103
  gem 'launchy'
104
  gem 'cucumber'
105
  gem 'cucumber-rails',		          require: false
106
  gem 'database_cleaner'
Bráulio Bhavamitra's avatar
Bráulio Bhavamitra committed
107
  # Selenium WebDriver 3+ depends on geckodriver
108
  gem 'selenium-webdriver'
109
  gem 'geckodriver-helper'
110
  gem 'chromedriver-helper'
111
end
112

113 114 115
# Requires custom dependencies
eval(File.read('config/Gemfile'), binding) rescue nil

Bráulio Bhavamitra's avatar
Bráulio Bhavamitra committed
116 117 118
##
# Gems inside repository, to move outside
#
119 120 121 122 123 124 125 126
vendor = Dir.glob('vendor/{,plugins/}*') - ['vendor/plugins']
vendor.each do |dir|
  plugin = File.basename dir
  version = if Dir.glob("#{dir}/*.gemspec").length > 0 then '> 0.0.0' else '0.0.0' end

  gem plugin, version, path: dir
end

127 128 129 130 131
# include gemfiles from enabled plugins
# plugins in baseplugins/ are not included on purpose. They should not have any
# dependencies.
Dir.glob('config/plugins/*/Gemfile').each do |gemfile|
  eval File.read(gemfile)
132
end