Gemfile 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. source 'https://rubygems.org'
  2. # Ruby 2.0 is the minimum requirement
  3. ruby ['2.0.0', RUBY_VERSION].max
  4. # Load vendored dotenv gem and .env file
  5. require File.join(File.dirname(__FILE__), 'lib/gemfile_helper.rb')
  6. GemfileHelper.load_dotenv do |dotenv_dir|
  7. path dotenv_dir do
  8. gem 'dotenv'
  9. gem 'dotenv-rails'
  10. end
  11. end
  12. # Optional libraries. To conserve RAM, comment out any that you don't need,
  13. # then run `bundle` and commit the updated Gemfile and Gemfile.lock.
  14. gem 'twilio-ruby', '~> 3.11.5' # TwilioAgent
  15. gem 'ruby-growl', '~> 4.1.0' # GrowlAgent
  16. gem 'net-ftp-list', '~> 3.2.8' # FtpsiteAgent
  17. gem 'wunderground', '~> 1.2.0' # WeatherAgent
  18. gem 'forecast_io', '~> 2.0.0' # WeatherAgent
  19. gem 'rturk', '~> 2.12.1' # HumanTaskAgent
  20. gem 'hipchat', '~> 1.2.0' # HipchatAgent
  21. gem 'xmpp4r', '~> 0.5.6' # JabberAgent
  22. gem 'mqtt' # MQTTAgent
  23. gem 'slack-notifier', '~> 1.0.0' # SlackAgent
  24. gem 'hypdf', '~> 1.0.7' # PDFInfoAgent
  25. # Weibo Agents
  26. gem 'weibo_2', github: 'cantino/weibo_2', branch: 'master'
  27. # GoogleCalendarPublishAgent
  28. gem "google-api-client", require: 'google/api_client'
  29. # Twitter Agents
  30. gem 'twitter', '~> 5.14.0' # Must to be loaded before cantino-twitter-stream.
  31. gem 'twitter-stream', github: 'cantino/twitter-stream', branch: 'huginn'
  32. gem 'omniauth-twitter'
  33. # Tumblr Agents
  34. gem 'tumblr_client', github: 'tumblr/tumblr_client', branch: 'master' # '>= 0.8.5'
  35. gem 'omniauth-tumblr'
  36. # Dropbox Agents
  37. gem 'dropbox-api'
  38. gem 'omniauth-dropbox'
  39. # UserLocationAgent
  40. gem 'haversine'
  41. # EvernoteAgent
  42. gem 'omniauth-evernote'
  43. gem 'evernote_oauth'
  44. # Optional Services.
  45. gem 'omniauth-37signals' # BasecampAgent
  46. gem 'omniauth-wunderlist', github: 'wunderlist/omniauth-wunderlist', ref: 'd0910d0396107b9302aa1bc50e74bb140990ccb8'
  47. # Bundler <1.5 does not recognize :x64_mingw as a valid platform name.
  48. # Unfortunately, it can't self-update because it errors when encountering :x64_mingw.
  49. unless Gem::Version.new(Bundler::VERSION) >= Gem::Version.new('1.5.0')
  50. STDERR.puts "Bundler >=1.5.0 is required. Please upgrade bundler with 'gem install bundler'"
  51. exit 1
  52. end
  53. gem 'protected_attributes', '~>1.0.8' # This must be loaded before some other gems, like delayed_job.
  54. gem 'ace-rails-ap', '~> 2.0.1'
  55. gem 'bootstrap-kaminari-views', '~> 0.0.3'
  56. gem 'bundler', '>= 1.5.0'
  57. gem 'coffee-rails', '~> 4.1.0'
  58. gem 'daemons', '~> 1.1.9'
  59. gem 'delayed_job', '~> 4.0.0'
  60. gem 'delayed_job_active_record', :git => 'https://github.com/cantino/delayed_job_active_record', :branch => 'configurable-reserve-sql-strategy'
  61. gem 'devise', '~> 3.4.0'
  62. gem 'em-http-request', '~> 1.1.2'
  63. gem 'faraday', '~> 0.9.0'
  64. gem 'faraday_middleware', github: 'lostisland/faraday_middleware', branch: 'master' # '>= 0.10.1'
  65. gem 'feed-normalizer'
  66. gem 'font-awesome-sass', '~> 4.3.2'
  67. gem 'foreman', '~> 0.63.0'
  68. # geokit-rails doesn't work with geokit 1.8.X but it specifies ~> 1.5
  69. # in its own Gemfile.
  70. gem 'geokit', '~> 1.8.4'
  71. gem 'geokit-rails', '~> 2.0.1'
  72. gem 'httparty', '~> 0.13'
  73. gem 'jquery-rails', '~> 3.1.3'
  74. gem 'json', '~> 1.8.1'
  75. gem 'jsonpath', '~> 0.5.6'
  76. gem 'kaminari', '~> 0.16.1'
  77. gem 'kramdown', '~> 1.3.3'
  78. gem 'liquid', '~> 3.0.3'
  79. gem 'mini_magick'
  80. gem 'multi_xml'
  81. gem 'nokogiri', '1.6.7.1'
  82. gem 'omniauth'
  83. gem 'rails', '4.2.4'
  84. gem 'rufus-scheduler', '~> 3.0.8', require: false
  85. gem 'sass-rails', '~> 5.0.3'
  86. gem 'select2-rails', '~> 3.5.4'
  87. gem 'spectrum-rails'
  88. gem 'string-scrub' # for ruby <2.1
  89. gem 'therubyracer', '~> 0.12.2'
  90. gem 'typhoeus', '~> 0.6.3'
  91. gem 'uglifier', '~> 2.7.2'
  92. group :development do
  93. gem 'better_errors', '~> 1.1'
  94. gem 'binding_of_caller'
  95. gem 'quiet_assets'
  96. gem 'guard'
  97. gem 'guard-livereload', '~> 2.2'
  98. gem 'guard-rspec'
  99. gem 'letter_opener_web'
  100. gem 'capistrano', '~> 3.4.0'
  101. gem 'capistrano-rails', '~> 1.1'
  102. gem 'capistrano-bundler', '~> 1.1.4'
  103. group :test do
  104. gem 'coveralls', require: false
  105. gem 'delorean'
  106. gem 'pry-rails'
  107. gem 'rr'
  108. gem 'rspec', '~> 3.2'
  109. gem 'rspec-collection_matchers', '~> 1.1.0'
  110. gem 'rspec-rails', '~> 3.1'
  111. gem 'rspec-html-matchers', '~> 0.7'
  112. gem 'shoulda-matchers'
  113. gem 'vcr'
  114. gem 'webmock', '~> 1.17.4', require: false
  115. end
  116. end
  117. group :production do
  118. gem 'rack', '> 1.5.0'
  119. gem 'unicorn', '~> 4.9.0'
  120. end
  121. # Platform requirements.
  122. gem 'ffi', '>= 1.9.4' # required by typhoeus; 1.9.4 has fixes for *BSD.
  123. gem 'tzinfo', '>= 1.2.0' # required by rails; 1.2.0 has support for *BSD and Solaris.
  124. # Windows does not have zoneinfo files, so bundle the tzinfo-data gem.
  125. gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw]
  126. # Introduces a scope for gem loading based on a condition
  127. def if_true(condition)
  128. if condition
  129. yield
  130. else
  131. # When not including the gems, we still want our Gemfile.lock
  132. # to include them, so we scope them to an unsupported platform.
  133. platform :ruby_18, &proc
  134. end
  135. end
  136. on_heroku = ENV['ON_HEROKU'] ||
  137. ENV['HEROKU_POSTGRESQL_ROSE_URL'] ||
  138. ENV['HEROKU_POSTGRESQL_GOLD_URL'] ||
  139. File.read(File.join(File.dirname(__FILE__), 'Procfile')) =~ /intended for Heroku/
  140. ENV['DATABASE_ADAPTER'] ||=
  141. if on_heroku
  142. 'postgresql'
  143. else
  144. 'mysql2'
  145. end
  146. if_true(on_heroku) do
  147. gem 'rails_12factor', group: :production
  148. end
  149. if_true(ENV['DATABASE_ADAPTER'].strip == 'postgresql') do
  150. gem 'pg', '~> 0.18.3'
  151. end
  152. if_true(ENV['DATABASE_ADAPTER'].strip == 'mysql2') do
  153. gem 'mysql2', '~> 0.3.16'
  154. end