Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to Rails 5 #1688

Merged
merged 11 commits into from
Oct 5, 2016
11 changes: 5 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,17 @@ matrix:
- env: DOCKER_IMAGE=cantino/huginn DOCKERFILE=docker/multi-process/Dockerfile
- env: RSPEC_TASK=spec:features
include:
- rvm: 2.3.0
- rvm: 2.3.1
env: DATABASE_ADAPTER=mysql2 DOCKER_IMAGE=cantino/huginn-single-process DOCKERFILE=docker/single-process/Dockerfile
- rvm: 2.3.0
- rvm: 2.3.1
env: DATABASE_ADAPTER=mysql2 DOCKER_IMAGE=cantino/huginn DOCKERFILE=docker/multi-process/Dockerfile
- rvm: 2.3.0
- rvm: 2.3.1
env: RSPEC_TASK=spec:features DATABASE_ADAPTER=mysql2
- rvm: 2.3.0
- rvm: 2.3.1
env: RSPEC_TASK=spec:features DATABASE_ADAPTER=postgresql DATABASE_USERNAME=postgres
rvm:
- 2.1
- 2.2
- 2.3.0
- 2.3.1
cache: bundler
bundler_args: --without development production
before_install:
Expand Down
44 changes: 20 additions & 24 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,20 @@ gem 'slack-notifier', '~> 1.0.0' # SlackAgent
gem 'hypdf', '~> 1.0.10' # PDFInfoAgent

# Weibo Agents
gem 'weibo_2', github: 'cantino/weibo_2', branch: 'master'
# FIXME needs to loosen omniauth dependency
gem 'weibo_2', github: 'dsander/weibo_2', branch: 'master'

# GoogleCalendarPublishAgent
gem "google-api-client", require: 'google/api_client'

# Twitter Agents
gem 'twitter', '~> 5.14.0' # Must to be loaded before cantino-twitter-stream.
gem 'twitter-stream', github: 'cantino/twitter-stream', branch: 'huginn'
gem 'omniauth-twitter'
gem 'omniauth-twitter', '~> 1.2.1'

# Tumblr Agents
gem 'tumblr_client', github: 'tumblr/tumblr_client', branch: 'master' # '>= 0.8.5'
gem 'omniauth-tumblr'
gem 'omniauth-tumblr', '~> 1.2'

# Dropbox Agents
gem 'dropbox-api'
Expand All @@ -71,7 +72,7 @@ gem 'aws-sdk-core', '~> 2.2.15'

# Optional Services.
gem 'omniauth-37signals' # BasecampAgent
gem 'omniauth-wunderlist', github: 'wunderlist/omniauth-wunderlist', ref: 'd0910d0396107b9302aa1bc50e74bb140990ccb8'
gem 'omniauth-wunderlist'

# Bundler <1.5 does not recognize :x64_mingw as a valid platform name.
# Unfortunately, it can't self-update because it errors when encountering :x64_mingw.
Expand All @@ -83,35 +84,33 @@ end
gem 'ace-rails-ap', '~> 2.0.1'
gem 'bootstrap-kaminari-views', '~> 0.0.3'
gem 'bundler', '>= 1.5.0'
gem 'coffee-rails', '~> 4.1.1'
gem 'coffee-rails', '~> 4.2'
gem 'daemons', '~> 1.1.9'
gem 'delayed_job', '~> 4.1.0'
gem 'delayed_job_active_record', github: 'collectiveidea/delayed_job_active_record', branch: 'master'
gem 'devise', '~> 3.5.4'
gem 'devise','~> 4.2.0'
gem 'em-http-request', '~> 1.1.2'
gem 'faraday', '~> 0.9.0'
gem 'faraday_middleware', github: 'lostisland/faraday_middleware', branch: 'master' # '>= 0.10.1'
gem 'feed-normalizer'
gem 'font-awesome-sass', '~> 4.3.2'
gem 'foreman', '~> 0.63.0'
# geokit-rails doesn't work with geokit 1.8.X but it specifies ~> 1.5
# in its own Gemfile.
gem 'geokit', '~> 1.8.4'
gem 'geokit-rails', '~> 2.0.1'
gem 'geokit-rails', '~> 2.2.0'
gem 'httparty', '~> 0.13'
gem 'httmultiparty', '~> 0.3.16'
gem 'jquery-rails', '~> 3.1.3'
gem 'jquery-rails', '~> 4.2.1'
gem 'huginn_agent', '~> 0.4.0'
gem 'json', '~> 1.8.1'
gem 'jsonpathv2', '~> 0.0.8'
gem 'kaminari', '~> 0.16.1'
gem 'kaminari', github: "amatsuda/kaminari", branch: '0-17-stable'
gem 'kramdown', '~> 1.3.3'
gem 'liquid', '~> 3.0.3'
gem 'mini_magick'
gem 'multi_xml'
gem 'nokogiri', '1.6.8'
gem 'omniauth'
gem 'rails', '4.2.7.1'
gem 'omniauth', '~> 1.3.1'
gem 'rails', '~> 5.0.0.1'
gem 'rufus-scheduler', '~> 3.0.8', require: false
gem 'sass-rails', '~> 5.0.6'
gem 'select2-rails', '~> 3.5.4'
Expand All @@ -124,20 +123,21 @@ gem 'uglifier', '~> 2.7.2'
group :development do
gem 'better_errors', '~> 1.1'
gem 'binding_of_caller'
gem 'quiet_assets'
gem 'guard', '~> 2.13.0'
gem 'guard-livereload', '~> 2.5.1'
gem 'guard-rspec', '~> 4.6.4'
gem 'rack-livereload', '~> 0.3.16'
gem 'letter_opener_web'
gem 'letter_opener_web', '~> 1.3.0'
gem 'web-console'

gem 'capistrano', '~> 3.4.0'
gem 'capistrano-rails', '~> 1.1'
gem 'capistrano-bundler', '~> 1.1.4'

if_true(ENV['SPRING']) do
gem 'spring-commands-rspec', '~> 1.0.4'
gem 'spring', '~> 1.6.3'
gem 'spring', '~> 1.7.2'
gem 'spring-watcher-listen', '~> 2.0.0'
end

group :test do
Expand All @@ -150,8 +150,9 @@ group :development do
gem 'rr'
gem 'rspec', '~> 3.5'
gem 'rspec-collection_matchers', '~> 1.1.0'
gem 'rspec-rails', '~> 3.5.1'
gem 'rspec-html-matchers', '~> 0.7'
gem 'rspec-rails', '~> 3.5.2'
gem 'rspec-html-matchers', '~> 0.8'
gem 'rails-controller-testing'
gem 'shoulda-matchers'
gem 'vcr'
gem 'webmock', '~> 1.17.4', require: false
Expand All @@ -160,8 +161,7 @@ group :development do
end

group :production do
gem 'rack', '> 1.5.0'
gem 'unicorn', '~> 4.9.0'
gem 'unicorn', '~> 5.1.0'
end

# Platform requirements.
Expand All @@ -183,10 +183,6 @@ ENV['DATABASE_ADAPTER'] ||=
'mysql2'
end

if_true(on_heroku) do
gem 'rails_12factor', group: :production
end

if_true(ENV['DATABASE_ADAPTER'].strip == 'postgresql') do
gem 'pg', '~> 0.18.3'
end
Expand Down