Gemfile 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. source 'https://rubygems.org'
  2. ruby '>=3.2.2'
  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, &block)
  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, &block
  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 'erector', github: 'dsander/erector', branch: 'rails6'
  28. gem 'forecast_io', '~> 2.0.0' # WeatherAgent
  29. gem 'hipchat', '~> 1.2.0' # HipchatAgent
  30. gem 'hypdf', '~> 1.0.10' # PDFInfoAgent
  31. gem 'mini_racer' # JavaScriptAgent
  32. gem 'mqtt' # MQTTAgent
  33. gem 'net-ftp'
  34. gem 'net-ftp-list' # FtpsiteAgent
  35. gem 'rturk', '~> 2.12.1' # HumanTaskAgent
  36. gem 'slack-notifier', '~> 1.0.0' # SlackAgent
  37. gem 'twilio-ruby', '~> 5.62.0' # TwilioAgent
  38. gem 'xmpp4r', '~> 0.5.6' # JabberAgent
  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', '~> 2.0', require: 'google/cloud/translate'
  45. # Twitter Agents
  46. gem 'omniauth-twitter'
  47. gem 'twitter', github: 'sferik/twitter' # Must to be loaded before cantino-twitter-stream.
  48. gem 'twitter-stream', github: 'cantino/twitter-stream', branch: 'huginn'
  49. # Tumblr Agents
  50. # until merge of https://github.com/tumblr/tumblr_client/pull/61
  51. gem 'omniauth-tumblr'
  52. gem 'tumblr_client', github: 'albertsun/tumblr_client', branch: 'master',
  53. ref: 'e046fe6e39291c173add0a49081630c7b60a36c7'
  54. # Dropbox Agents
  55. gem 'dropbox-api', github: 'dsander/dropbox-api', ref: '86cb7b5a1254dc5b054de7263835713c4c1018c7'
  56. gem 'omniauth-dropbox-oauth2', github: 'huginn/omniauth-dropbox-oauth2'
  57. # UserLocationAgent
  58. gem 'haversine'
  59. # EvernoteAgent
  60. gem 'evernote_oauth'
  61. gem 'omniauth-evernote'
  62. # LocalFileAgent (watch functionality)
  63. gem 'listen', '~> 3.0.5', require: false
  64. # S3Agent
  65. gem 'aws-sdk-s3', '~> 1'
  66. # ImapFolderAgent
  67. gem 'gmail_xoauth' # support for Gmail using OAuth
  68. gem 'omniauth-google-oauth2', '>= 0.8.0'
  69. # Bundler <1.5 does not recognize :x64_mingw as a valid platform name.
  70. # Unfortunately, it can't self-update because it errors when encountering :x64_mingw.
  71. unless Gem::Version.new(Bundler::VERSION) >= Gem::Version.new('1.5.0')
  72. warn "Bundler >=1.5.0 is required. Please upgrade bundler with 'gem install bundler'"
  73. exit 1
  74. end
  75. gem 'ace-rails-ap'
  76. gem 'bootsnap', require: false
  77. gem 'bootstrap-kaminari-views', '~> 0.0.3'
  78. gem 'bundler', '>= 1.5.0'
  79. gem 'coffee-rails', '~> 5'
  80. gem 'daemons', '~> 1.1.9'
  81. gem 'delayed_job'
  82. gem 'delayed_job_active_record'
  83. gem 'devise', '~> 4.8'
  84. gem 'em-http-request', '~> 1.1.2'
  85. gem 'execjs'
  86. gem 'faraday', '~> 0.9'
  87. gem 'faraday_middleware', '~> 0.12.2'
  88. gem 'feedjira', '~> 3.1'
  89. gem 'font-awesome-sass', '~> 4.7.0'
  90. gem 'foreman', '~> 0.63.0'
  91. gem 'geokit', '~> 1.13'
  92. gem 'geokit-rails', '~> 2.3'
  93. gem 'httmultiparty', '~> 0.3.16'
  94. gem 'httparty', '~> 0.13'
  95. gem 'huginn_agent'
  96. gem 'jquery-rails', '~> 4.2.1'
  97. gem 'json', '~> 2.3'
  98. gem 'jsonpath', '~> 1.1'
  99. gem 'kaminari', '~> 1.2'
  100. gem 'kramdown'
  101. gem 'liquid', '~> 5.1'
  102. gem 'loofah', '~> 2.0'
  103. gem 'mail', '>= 2.8.1'
  104. gem 'mini_magick', ">= 4.9.4"
  105. gem 'multi_xml'
  106. gem "nokogiri", ">= 1.10.8"
  107. gem 'omniauth'
  108. gem 'rails', '~> 6.1.7'
  109. gem 'rails-html-sanitizer', '~> 1.2'
  110. gem 'rufus-scheduler', '~> 3.4', require: false
  111. gem 'sass-rails', '>= 6.0'
  112. gem 'select2-rails', '~> 3.5.4'
  113. gem 'spectrum-rails'
  114. gem 'sprockets'
  115. gem 'typhoeus', '~> 1.3.1'
  116. gem 'uglifier', '~> 2.7.2'
  117. group :development do
  118. gem 'better_errors'
  119. gem 'binding_of_caller'
  120. gem 'guard'
  121. gem 'guard-livereload'
  122. gem 'guard-rspec'
  123. gem 'letter_opener_web', '~> 1.4' # 2.0+ requires Ruby 2.7
  124. gem 'rack-livereload'
  125. gem 'web-console', '>= 3.3.0'
  126. gem 'capistrano'
  127. gem 'capistrano-bundler'
  128. gem 'capistrano-rails'
  129. gem 'rubocop', require: false
  130. gem 'rubocop-performance', require: false
  131. gem 'rubocop-rspec', require: false
  132. if_true(ENV['SPRING']) do
  133. gem 'spring'
  134. gem 'spring-commands-rspec'
  135. gem 'spring-watcher-listen'
  136. end
  137. group :test do
  138. gem 'capybara'
  139. gem 'capybara-select-2', github: 'Hirurg103/capybara_select2',
  140. ref: 'fbf22fb74dec10fa0edcd26da7c5184ba8fa2c76',
  141. require: false
  142. gem 'puma'
  143. gem 'rails-controller-testing'
  144. gem 'rr', require: false
  145. gem 'rspec'
  146. gem 'rspec-collection_matchers'
  147. gem 'rspec-html-matchers'
  148. gem 'rspec-mocks'
  149. gem 'rspec-rails'
  150. gem 'selenium-webdriver'
  151. gem 'shoulda-matchers'
  152. gem 'simplecov', require: false
  153. gem 'simplecov-lcov', '~> 0.8.0', require: false
  154. gem 'vcr'
  155. gem 'webmock'
  156. end
  157. end
  158. group :production do
  159. gem 'unicorn'
  160. end
  161. # Platform requirements.
  162. require 'rbconfig'
  163. gem 'ffi', '>= 1.9.4' # required by typhoeus; 1.9.4 has fixes for *BSD.
  164. gem 'tzinfo', '>= 1.2.0' # required by rails; 1.2.0 has support for *BSD and Solaris.
  165. # Windows does not have zoneinfo files, so bundle the tzinfo-data gem.
  166. gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw]
  167. # BSD systems require rb-kqueue for "listen" to avoid polling for changes.
  168. gem 'rb-kqueue', '>= 0.2', require: /bsd|dragonfly/i === RbConfig::CONFIG['target_os']
  169. on_heroku = ENV['ON_HEROKU'] ||
  170. ENV['HEROKU_POSTGRESQL_ROSE_URL'] ||
  171. ENV['HEROKU_POSTGRESQL_GOLD_URL'] ||
  172. File.read(File.join(File.dirname(__FILE__), 'Procfile')) =~ /intended for Heroku/
  173. ENV['DATABASE_ADAPTER'] ||=
  174. if on_heroku
  175. 'postgresql'
  176. else
  177. 'mysql2'
  178. end
  179. if_true(ENV['DATABASE_ADAPTER'].strip == 'postgresql') do
  180. gem 'pg', '~> 1.1'
  181. end
  182. if_true(ENV['DATABASE_ADAPTER'].strip == 'mysql2') do
  183. gem 'mysql2', "~> 0.5"
  184. end
  185. GemfileHelper.parse_each_agent_gem(ENV['ADDITIONAL_GEMS']) do |args|
  186. gem *args
  187. end