Gemfile 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  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 'hipchat', '~> 1.2.0' # HipchatAgent
  36. gem 'xmpp4r', '~> 0.5.6' # JabberAgent
  37. gem 'mqtt' # MQTTAgent
  38. gem 'slack-notifier', '~> 1.0.0' # SlackAgent
  39. gem 'hypdf', '~> 1.0.10' # PDFInfoAgent
  40. # Weibo Agents
  41. # FIXME needs to loosen omniauth dependency
  42. gem 'weibo_2', github: 'dsander/weibo_2', branch: 'master'
  43. # GoogleCalendarPublishAgent and GoogleTranslateAgent
  44. gem 'google-api-client', '~> 0.7.1', require: 'google/api_client'
  45. # Twitter Agents
  46. gem 'twitter', '~> 5.14.0' # Must to be loaded before cantino-twitter-stream.
  47. gem 'twitter-stream', github: 'cantino/twitter-stream', branch: 'huginn'
  48. gem 'omniauth-twitter', '~> 1.2.1'
  49. # Tumblr Agents
  50. gem 'tumblr_client', github: 'tumblr/tumblr_client', branch: 'master', ref: '0c59b04e49f2a8c89860613b18cf4e8f978d8dc7' # '>= 0.8.5'
  51. gem 'omniauth-tumblr', '~> 1.2'
  52. # Dropbox Agents
  53. gem 'dropbox-api'
  54. gem 'omniauth-dropbox'
  55. # UserLocationAgent
  56. gem 'haversine'
  57. # EvernoteAgent
  58. gem 'omniauth-evernote'
  59. gem 'evernote_oauth'
  60. # LocalFileAgent (watch functionality)
  61. gem 'listen', '~> 3.0.5', require: false
  62. # S3Agent
  63. gem 'aws-sdk-core', '~> 2.2.15'
  64. # Optional Services.
  65. gem 'omniauth-37signals' # BasecampAgent
  66. gem 'omniauth-wunderlist'
  67. # Bundler <1.5 does not recognize :x64_mingw as a valid platform name.
  68. # Unfortunately, it can't self-update because it errors when encountering :x64_mingw.
  69. unless Gem::Version.new(Bundler::VERSION) >= Gem::Version.new('1.5.0')
  70. STDERR.puts "Bundler >=1.5.0 is required. Please upgrade bundler with 'gem install bundler'"
  71. exit 1
  72. end
  73. gem 'ace-rails-ap', '~> 2.0.1'
  74. gem 'bootstrap-kaminari-views', '~> 0.0.3'
  75. gem 'bundler', '>= 1.5.0'
  76. gem 'coffee-rails', '~> 4.2'
  77. gem 'daemons', '~> 1.1.9'
  78. gem 'delayed_job', '~> 4.1.0'
  79. gem 'delayed_job_active_record', github: 'dsander/delayed_job_active_record', branch: 'rails5'
  80. gem 'devise','~> 4.2.0'
  81. gem 'em-http-request', '~> 1.1.2'
  82. gem 'faraday', '~> 0.9'
  83. gem 'faraday_middleware', github: 'lostisland/faraday_middleware', branch: 'master' # '>= 0.10.1'
  84. gem 'feedjira', '~> 2.1'
  85. gem 'font-awesome-sass', '~> 4.3.2'
  86. gem 'foreman', '~> 0.63.0'
  87. gem 'geokit', '~> 1.8.4'
  88. gem 'geokit-rails', '~> 2.2.0'
  89. gem 'httparty', '~> 0.13'
  90. gem 'httmultiparty', '~> 0.3.16'
  91. gem 'jquery-rails', '~> 4.2.1'
  92. gem 'huginn_agent', '~> 0.4.0'
  93. gem 'json', '~> 1.8.1'
  94. gem 'jsonpath', '~> 0.7.2'
  95. gem 'kaminari', github: "amatsuda/kaminari", branch: '0-17-stable', ref: 'abbf93d557208ee1d0b612c612cd079f86ed54f4'
  96. gem 'kramdown', '~> 1.3.3'
  97. gem 'liquid', '~> 4.0'
  98. gem 'loofah', '~> 2.0'
  99. gem 'mini_magick'
  100. gem 'multi_xml'
  101. gem 'nokogiri'
  102. gem 'omniauth', '~> 1.3.1'
  103. gem 'rails', '~> 5.0.1'
  104. gem 'rufus-scheduler', '~> 3.3.2', require: false
  105. gem 'sass-rails', '~> 5.0.6'
  106. gem 'select2-rails', '~> 3.5.4'
  107. gem 'spectrum-rails'
  108. gem 'therubyracer', '~> 0.12.2'
  109. gem 'typhoeus', '~> 0.6.3'
  110. gem 'uglifier', '~> 2.7.2'
  111. group :development do
  112. gem 'better_errors', '~> 1.1'
  113. gem 'binding_of_caller'
  114. gem 'guard', '~> 2.13.0'
  115. gem 'guard-livereload', '~> 2.5.1'
  116. gem 'guard-rspec', '~> 4.6.4'
  117. gem 'rack-livereload', '~> 0.3.16'
  118. gem 'letter_opener_web', '~> 1.3.0'
  119. gem 'web-console', '>= 3.3.0'
  120. gem 'capistrano', '~> 3.4.0'
  121. gem 'capistrano-rails', '~> 1.1'
  122. gem 'capistrano-bundler', '~> 1.1.4'
  123. if_true(ENV['SPRING']) do
  124. gem 'spring-commands-rspec', '~> 1.0.4'
  125. gem 'spring', '~> 1.7.2'
  126. gem 'spring-watcher-listen', '~> 2.0.0'
  127. end
  128. group :test do
  129. gem 'coveralls', '~> 0.7.4', require: false
  130. gem 'capybara-select2', require: false
  131. gem 'delorean'
  132. gem 'poltergeist'
  133. gem 'pry-rails'
  134. gem 'pry-byebug'
  135. gem 'rr'
  136. gem 'rspec', '~> 3.5'
  137. gem 'rspec-collection_matchers', '~> 1.1.0'
  138. gem 'rspec-rails', '~> 3.5.2'
  139. gem 'rspec-html-matchers', '~> 0.8'
  140. gem 'rails-controller-testing'
  141. gem 'shoulda-matchers'
  142. gem 'vcr'
  143. gem 'webmock', '~> 1.17.4', require: false
  144. gem 'database_cleaner', '~> 1.5.3'
  145. end
  146. end
  147. group :production do
  148. gem 'unicorn', '~> 5.1.0'
  149. end
  150. # Platform requirements.
  151. require 'rbconfig'
  152. gem 'ffi', '>= 1.9.4' # required by typhoeus; 1.9.4 has fixes for *BSD.
  153. gem 'tzinfo', '>= 1.2.0' # required by rails; 1.2.0 has support for *BSD and Solaris.
  154. # Windows does not have zoneinfo files, so bundle the tzinfo-data gem.
  155. gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw]
  156. # BSD systems require rb-kqueue for "listen" to avoid polling for changes.
  157. gem 'rb-kqueue', '>= 0.2', require: /bsd|dragonfly/i === RbConfig::CONFIG['target_os']
  158. on_heroku = ENV['ON_HEROKU'] ||
  159. ENV['HEROKU_POSTGRESQL_ROSE_URL'] ||
  160. ENV['HEROKU_POSTGRESQL_GOLD_URL'] ||
  161. File.read(File.join(File.dirname(__FILE__), 'Procfile')) =~ /intended for Heroku/
  162. ENV['DATABASE_ADAPTER'] ||=
  163. if on_heroku
  164. 'postgresql'
  165. else
  166. 'mysql2'
  167. end
  168. if_true(ENV['DATABASE_ADAPTER'].strip == 'postgresql') do
  169. gem 'pg', '~> 0.18.3'
  170. end
  171. if_true(ENV['DATABASE_ADAPTER'].strip == 'mysql2') do
  172. gem 'mysql2', '~> 0.3.20'
  173. end
  174. GemfileHelper.parse_each_agent_gem(ENV['ADDITIONAL_GEMS']) do |args|
  175. gem *args
  176. end