1
0

Gemfile 6.6 KB

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