Skip to content

Commit

Permalink
Update rails
Browse files Browse the repository at this point in the history
  • Loading branch information
itmammoth committed Apr 27, 2019
1 parent b4b273b commit 530de0b
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 19 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ Gemfile.lock
gemfiles/*.lock
.rspec
*.gem
.tags
.tags
.ruby-version
10 changes: 5 additions & 5 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# vim: set filetype=ruby:

appraise 'rails42' do
gem 'rails', '~> 4.2.0'
gem 'rails', '~> 4.2.11.1'
end

appraise 'rails50' do
gem 'rails', '~> 5.0.0'
gem 'rails', '~> 5.0.7.2'
end

appraise 'rails51' do
gem 'rails', '~> 5.1.0'
gem 'rails', '~> 5.1.7'
end

appraise 'rails52' do
gem 'rails', '~> 5.2.0'
end
gem 'rails', '~> 5.2.3'
end
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,16 +110,16 @@ Please give me a PR freely.

### Testing
```bash
# Test with a dummy application (rails42 & rails50 are also available)
$ bundle exec appraisal rails51 spec/dummy/bin/rake db:migrate
$ bundle exec appraisal rails51 spec/dummy/bin/rails s
# Test with a dummy application (rails42, rails50 and rails51 are also available)
$ bundle exec appraisal rails52 spec/dummy/bin/rake db:migrate
$ bundle exec appraisal rails52 spec/dummy/bin/rails s
# Insert test data
$ bundle exec appraisal rails51 spec/dummy/bin/rake db:seed
$ bundle exec appraisal rails52 spec/dummy/bin/rake db:seed

# Run rspecs
$ RAILS_ENV=test bundle exec appraisal rails51 spec/dummy/bin/rake db:migrate
$ RAILS_ENV=test bundle exec appraisal rails52 spec/dummy/bin/rake db:migrate
$ bundle exec appraisal rspec # for all rails versions
$ bundle exec appraisal rails51 rspec # for specific version
$ bundle exec appraisal rails52 rspec # for specific version
```

# Licence
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/rails42.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

source "https://rubygems.org"

gem "rails", "~> 4.2.0"
gem "rails", "~> 4.2.11.1"

gemspec path: "../"
2 changes: 1 addition & 1 deletion gemfiles/rails50.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

source "https://rubygems.org"

gem "rails", "~> 5.0.0"
gem "rails", "~> 5.0.7.2"

gemspec path: "../"
2 changes: 1 addition & 1 deletion gemfiles/rails51.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

source "https://rubygems.org"

gem "rails", "~> 5.1.0"
gem "rails", "~> 5.1.7"

gemspec path: "../"
2 changes: 1 addition & 1 deletion gemfiles/rails52.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

source "https://rubygems.org"

gem "rails", "~> 5.2.0"
gem "rails", "~> 5.2.3"

gemspec path: "../"
2 changes: 1 addition & 1 deletion rails_sortable.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Gem::Specification.new do |s|
s.add_development_dependency "appraisal", "~> 2.2"
s.add_development_dependency "jquery-rails", "~> 4.3"
s.add_development_dependency "jquery-ui-rails", "~> 6.0"
s.add_development_dependency "sqlite3", "~> 1.3"
s.add_development_dependency "sqlite3", "~> 1.3.6"
s.add_development_dependency "rspec-rails", "~> 3.5"
s.add_development_dependency "pry-rails", "~> 0.3"
end
2 changes: 1 addition & 1 deletion spec/dummy/config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@

# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
# the I18n.default_locale when a translation can not be found).
config.i18n.fallbacks = true
config.i18n.fallbacks = [I18n.default_locale]

# Send deprecation notices to registered listeners.
config.active_support.deprecation = :notify
Expand Down
2 changes: 1 addition & 1 deletion spec/dummy/db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema.define(version: 20180427061457) do
ActiveRecord::Schema.define(version: 2018_04_27_061457) do

create_table "first_items", force: :cascade do |t|
t.string "title"
Expand Down

0 comments on commit 530de0b

Please sign in to comment.