Skip to content

Commit

Permalink
Release 0.2.0
Browse files Browse the repository at this point in the history
Fixes #81
  • Loading branch information
seuros committed May 22, 2020
1 parent 6166af3 commit c139851
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 34 deletions.
22 changes: 1 addition & 21 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,15 @@ before_install:
- gem update --system
- gem install bundler
rvm:
- 2.4.6
- 2.5.5
- 2.6.3
- 2.7
services:
- mongodb
env:
- "RAILS_VERSION=6.0.0"
- "RAILS_VERSION=5.2.0"
- "RAILS_VERSION=5.1.0"
- "RAILS_VERSION=5.0.0"
- "RAILS_VERSION=4.2.0"
- "RAILS_VERSION=4.1.0"
- "RAILS_VERSION=4.0.0"
matrix:
fast_finish: true
exclude:
- rvm: 2.4.6
env: "RAILS_VERSION=4.0.0"
- rvm: 2.4.6
env: "RAILS_VERSION=4.1.0"
- rvm: 2.4.6
env: "RAILS_VERSION=6.0.0"

- rvm: 2.5.5
env: "RAILS_VERSION=4.0.0"
- rvm: 2.5.5
env: "RAILS_VERSION=4.1.0"

- rvm: 2.6.3
env: "RAILS_VERSION=4.0.0"
- rvm: 2.6.3
env: "RAILS_VERSION=4.1.0"
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
* Fix nested form validation (#53)
* Errors supports symbol and string lookup (PR #77)
* Implement respond_to that delegates to AMV errors (PR #78)
* Drop support for activemodel before 5.0

# 0.1.8
* Drop support to mongoid < 4.
Expand Down
10 changes: 4 additions & 6 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,12 @@ case ENV["GEMS_SOURCE"]
gem "reform", github: "trailblazer/reform"
end

rails_version = ENV.fetch("RAILS_VERSION", "5.2.0")
rails_version = ENV.fetch("RAILS_VERSION", "6.0.0")

# bored of wrestling with rails...
if rails_version.include? "4.0"
gem "mongoid", "~> 4"
else
gem("mongoid", "< 7.0") unless rails_version.include?('6.0')
end

gem("mongoid", "< 7.0") unless rails_version.include?('6.0')


gem "activerecord", "~> #{rails_version}"
gem "railties", "~> #{rails_version}"
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2015 Nick Sutterer
Copyright (c) 2015-Covid_19year Nick Sutterer

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ Add this line to your application's Gemfile:
gem 'reform-rails'
```

Reform-rails needs Reform >= 2.2.
Reform-rails needs Reform >= 2.3.

## Contributing

By default your tests will run against rails 4.2.0.
By default your tests will run against rails 6.0.1.
Please ensure that you test your changes against all supported ruby and rails versions (see .travis.yml)

You can run tests for a specific version of rails by running the following:

`export RAILS_VERSION=4.2.0; bundle update; bundle exec rake test`
`export RAILS_VERSION=5.0.0; bundle update; bundle exec rake test`

## License

Expand Down
2 changes: 1 addition & 1 deletion lib/reform/rails/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Reform
module Rails
VERSION = "0.2.0.rc3"
VERSION = "0.2.0"
end
end
4 changes: 2 additions & 2 deletions reform-rails.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ Gem::Specification.new do |spec|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]

spec.add_dependency "reform", ">= 2.3.0.rc1", "< 3.0.0"
spec.add_dependency "activemodel", ">= 3.2"
spec.add_dependency "reform", ">= 2.3.1", "< 3.0.0"
spec.add_dependency "activemodel", ">= 5.0"
end

0 comments on commit c139851

Please sign in to comment.