README.md in schemacop-2.4.2 vs README.md in schemacop-2.4.3
- old
+ new
@@ -666,11 +666,11 @@
```ruby
Schema.new do
# Pass array to `cast`. This enables casting from String or Float to Integer
# using the built-in casters.
- req: id_1, :integer, cast: [String, Float]
+ req :id_1, :integer, cast: [String, Float]
# Pass hash to `cast`. This enables casting from Float to Integer using the
# built-in caster and from String to Integer using a custom callback.
req :id_2, :integer, cast: { Float => :default, String => proc { |s| Integer(s) }
end
@@ -757,6 +757,6 @@
* Run `bundle exec rake test TEST=test/unit/some/file.rb` to run a single test
file
## Copyright
-Copyright (c) 2019 Sitrox. See `LICENSE` for further details.
+Copyright (c) 2020 Sitrox. See `LICENSE` for further details.