Gemfile 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. source 'https://rubygems.org'
  2. ruby '>=2.5.0'
  3. # Ensure github repositories are fetched using HTTPS
  4. git_source(:github) do |repo_name|
  5. "https://github.com/#{repo_name}.git"
  6. end
  7. # Load vendored dotenv gem and .env file
  8. require File.join(File.dirname(__FILE__), 'lib/gemfile_helper.rb')
  9. GemfileHelper.load_dotenv do |dotenv_dir|
  10. path dotenv_dir do
  11. gem 'dotenv'
  12. gem 'dotenv-rails'
  13. end
  14. end
  15. # Introduces a scope for gem loading based on a condition
  16. def if_true(condition)
  17. if condition
  18. yield
  19. else
  20. # When not including the gems, we still want our Gemfile.lock
  21. # to include them, so we scope them to an unsupported platform.
  22. platform :ruby_18, &proc
  23. end
  24. end
  25. # Optional libraries. To conserve RAM, comment out any that you don't need,
  26. # then run `bundle` and commit the updated Gemfile and Gemfile.lock.
  27. gem 'twilio-ruby', '~> 3.11.5' # TwilioAgent
  28. gem 'ruby-growl', '~> 4.1.0' # GrowlAgent
  29. gem 'net-ftp-list', '~> 3.2.8' # FtpsiteAgent
  30. gem 'forecast_io', '~> 2.0.0' # WeatherAgent
  31. gem 'rturk', '~> 2.12.1' # HumanTaskAgent
  32. gem 'erector', github: 'dsander/erector', branch: 'rails6'
  33. gem 'hipchat', '~> 1.2.0' # HipchatAgent
  34. gem 'mini_racer', '~> 0.2.4' # JavaScriptAgent
  35. gem 'xmpp4r', '~> 0.5.6' # JabberAgent
  36. gem 'mqtt' # MQTTAgent
  37. gem 'slack-notifier', '~> 1.0.0' # SlackAgent
  38. gem 'hypdf', '~> 1.0.10' # PDFInfoAgent
  39. # Weibo Agents
  40. # FIXME needs to loosen omniauth dependency, add rest-client
  41. gem 'weibo_2', github: 'albertsun/weibo_2', branch: 'master'
  42. # GoogleCalendarPublishAgent and GoogleTranslateAgent
  43. gem 'google-api-client', '~> 0.13'
  44. gem 'google-cloud-translate', '~> 1.0.0', require: 'google/cloud/translate'
  45. # Twitter Agents
  46. gem 'twitter', github: 'sferik/twitter' # Must to be loaded before cantino-twitter-stream.
  47. gem 'twitter-stream', github: 'cantino/twitter-stream', branch: 'huginn'
  48. gem 'omniauth-twitter', '~> 1.3.0'
  49. # Tumblr Agents
  50. # until merge of https://github.com/tumblr/tumblr_client/pull/61
  51. gem 'tumblr_client', github: 'albertsun/tumblr_client', branch: 'master', ref: 'e046fe6e39291c173add0a49081630c7b60a36c7'
  52. gem 'omniauth-tumblr', '~> 1.2'
  53. # Dropbox Agents
  54. gem 'dropbox-api', github: 'dsander/dropbox-api', ref: '86cb7b5a1254dc5b054de7263835713c4c1018c7'
  55. gem 'omniauth-dropbox-oauth2', github: 'bamorim/omniauth-dropbox-oauth2', ref: '35046706fb781ed3b57dfb9c3cd44ed0f3d3f8ea'
  56. # UserLocationAgent
  57. gem 'haversine'
  58. # EvernoteAgent
  59. gem 'omniauth-evernote'
  60. gem 'evernote_oauth'
  61. # LocalFileAgent (watch functionality)
  62. gem 'listen', '~> 3.0.5', require: false
  63. # S3Agent
  64. gem 'aws-sdk-core', '~> 2.2.15'
  65. # Optional Services.
  66. gem 'omniauth-37signals' # BasecampAgent
  67. gem 'omniauth-wunderlist'
  68. # Bundler <1.5 does not recognize :x64_mingw as a valid platform name.
  69. # Unfortunately, it can't self-update because it errors when encountering :x64_mingw.
  70. unless Gem::Version.new(Bundler::VERSION) >= Gem::Version.new('1.5.0')
  71. STDERR.puts "Bundler >=1.5.0 is required. Please upgrade bundler with 'gem install bundler'"
  72. exit 1
  73. end
  74. gem 'ace-rails-ap', '~> 2.0.1'
  75. gem 'bootstrap-kaminari-views', '~> 0.0.3'
  76. gem 'bundler', '>= 1.5.0'
  77. gem 'coffee-rails', '~> 5'
  78. gem 'daemons', '~> 1.1.9'
  79. gem 'delayed_job', '~> 4.1.8'
  80. gem 'delayed_job_active_record', github: 'dsander/delayed_job_active_record', branch: 'rails6-zeitwerk'
  81. gem 'devise', '~> 4.7.1'
  82. gem 'em-http-request', '~> 1.1.2'
  83. gem 'faraday', '~> 0.9'
  84. gem 'faraday_middleware', '~> 0.12.2'
  85. gem 'feedjira', '~> 3.1'
  86. gem 'font-awesome-sass', '~> 4.7.0'
  87. gem 'foreman', '~> 0.63.0'
  88. gem 'geokit', '~> 1.8.4'
  89. gem 'geokit-rails', '~> 2.2.0'
  90. gem 'httparty', '~> 0.13'
  91. gem 'httmultiparty', '~> 0.3.16'
  92. gem 'jquery-rails', '~> 4.2.1'
  93. gem 'huginn_agent', '~> 0.4.0'
  94. gem 'json', '~> 2.3'
  95. gem 'jsonpath', '~> 1.0.1'
  96. gem 'kaminari', '~> 1.1.1'
  97. gem 'kramdown', '~> 1.3.3'
  98. gem 'liquid', '~> 4.0.3'
  99. gem 'loofah', '~> 2.0'
  100. gem 'mini_magick', ">= 4.9.4"
  101. gem 'multi_xml'
  102. gem "nokogiri", ">= 1.10.8"
  103. gem 'omniauth', '~> 1.6.1'
  104. gem 'rails', '~> 6.0.3.1'
  105. gem 'sprockets', '~> 3.7.2'
  106. gem 'rails-html-sanitizer', '~> 1.2'
  107. gem 'rufus-scheduler', '~> 3.4.2', require: false
  108. gem 'sass-rails', '>= 6.0'
  109. gem 'select2-rails', '~> 3.5.4'
  110. gem 'spectrum-rails'
  111. gem 'execjs', '~> 2.7.0'
  112. gem 'typhoeus', '~> 1.3.1'
  113. gem 'uglifier', '~> 2.7.2'
  114. gem 'bootsnap', '~> 1.4.4', require: false
  115. group :development do
  116. gem 'better_errors', '~> 1.1'
  117. gem 'binding_of_caller', '~> 0.8.0'
  118. gem 'guard', '~> 2.14.1'
  119. gem 'guard-livereload', '~> 2.5.1'
  120. gem 'guard-rspec', '~> 4.7.3'
  121. gem 'rack-livereload', '~> 0.3.16'
  122. gem 'letter_opener_web', '~> 1.3.1'
  123. gem 'web-console', '>= 3.3.0'
  124. gem 'capistrano', '~> 3.11.0'
  125. gem 'capistrano-rails', '~> 1.1'
  126. gem 'capistrano-bundler', '~> 1.1.4'
  127. if_true(ENV['SPRING']) do
  128. gem 'spring-commands-rspec', '~> 1.0.4'
  129. gem 'spring', '~> 2.0.2'
  130. gem 'spring-watcher-listen', '~> 2.0.1'
  131. end
  132. group :test do
  133. gem 'coveralls', '~> 0.8.23', require: false
  134. gem 'capybara', '~> 2.18'
  135. gem 'capybara-screenshot'
  136. gem 'capybara-select-2', github: 'Hirurg103/capybara_select2', ref: 'fbf22fb74dec10fa0edcd26da7c5184ba8fa2c76', require: false
  137. gem 'poltergeist'
  138. gem 'pry-rails'
  139. gem 'pry-byebug'
  140. gem 'rr'
  141. gem 'rspec', '~> 3.8'
  142. gem 'rspec-rails'
  143. gem 'rspec-collection_matchers', '~> 1.1.0'
  144. gem 'rspec-html-matchers', '~> 0.8'
  145. gem 'rails-controller-testing'
  146. gem 'shoulda-matchers'
  147. gem 'vcr'
  148. gem 'webmock', '~> 3.5.1'
  149. end
  150. end
  151. group :production do
  152. gem 'unicorn', '~> 5.1.0'
  153. end
  154. # Platform requirements.
  155. require 'rbconfig'
  156. gem 'ffi', '>= 1.9.4' # required by typhoeus; 1.9.4 has fixes for *BSD.
  157. gem 'tzinfo', '>= 1.2.0' # required by rails; 1.2.0 has support for *BSD and Solaris.
  158. # Windows does not have zoneinfo files, so bundle the tzinfo-data gem.
  159. gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw]
  160. # BSD systems require rb-kqueue for "listen" to avoid polling for changes.
  161. gem 'rb-kqueue', '>= 0.2', require: /bsd|dragonfly/i === RbConfig::CONFIG['target_os']
  162. on_heroku = ENV['ON_HEROKU'] ||
  163. ENV['HEROKU_POSTGRESQL_ROSE_URL'] ||
  164. ENV['HEROKU_POSTGRESQL_GOLD_URL'] ||
  165. File.read(File.join(File.dirname(__FILE__), 'Procfile')) =~ /intended for Heroku/
  166. ENV['DATABASE_ADAPTER'] ||=
  167. if on_heroku
  168. 'postgresql'
  169. else
  170. 'mysql2'
  171. end
  172. if_true(ENV['DATABASE_ADAPTER'].strip == 'postgresql') do
  173. gem 'pg', '~> 1.1.3'
  174. end
  175. if_true(ENV['DATABASE_ADAPTER'].strip == 'mysql2') do
  176. gem 'mysql2' , "~> 0.5.2"
  177. end
  178. GemfileHelper.parse_each_agent_gem(ENV['ADDITIONAL_GEMS']) do |args|
  179. gem *args
  180. end