active_attr 0.9.0 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 90382ab62bab088569e23d03aeac97bfc4c1dbe5
4
- data.tar.gz: 7946b7a58849b4e48a5f44472a57a1e938545dcb
3
+ metadata.gz: b83c6dd6b76eb074542b74caa0e07019894254ec
4
+ data.tar.gz: ded9dc50ac0fcad818632198358fe76451c34cd6
5
5
  SHA512:
6
- metadata.gz: 01069508514442b05ed9d522ec7a634df5a933022a97e5d6c6efc720dee9b23013b794576d5a8abafef3934fba2c1e5e4aab839a219720c2f55a5798878b3751
7
- data.tar.gz: 3ee86018d579f8de1c0890fb83910c31d257b3d9622d6b202e5e7910e3deb9e0195ebec2659fa6364f623ca4427da51e8c4dae107af4161bae3268d1ef2a4868
6
+ metadata.gz: 4e1ce448fbc617244e3651831db516ea06a6612fc75b5ae3664e3ece6a1dade658935b74d4406446e0c3c990a8fc5cd93d5ada03be1876792458f49aa7f2d57c
7
+ data.tar.gz: f0bdd034ffa4b5232ed4a2eed22b8c1132d7c41c60bfcb9790c896e5f3342672e5a002ac1da73aceffe0b1abaf2ce60973a8821fd3943f1444f7c899391b682c
@@ -1 +1 @@
1
- 2.3.0
1
+ 2.4.0
@@ -5,9 +5,10 @@ rvm:
5
5
  - 1.9.2
6
6
  - 1.9.3
7
7
  - 2.0.0
8
- - 2.1
9
- - 2.2.4
10
- - 2.3.0
8
+ - 2.1.10
9
+ - 2.2.6
10
+ - 2.3.3
11
+ - 2.4.0
11
12
  before_install: gem install bundler
12
13
  bundler_args: --without development
13
14
  gemfile:
@@ -43,7 +44,7 @@ matrix:
43
44
  gemfile: Gemfile
44
45
  - rvm: 2.0.0
45
46
  gemfile: Gemfile
46
- - rvm: 2.1
47
+ - rvm: 2.1.10
47
48
  gemfile: Gemfile
48
49
  - rvm: ree
49
50
  gemfile: gemfiles/rails_head.gemfile
@@ -53,5 +54,5 @@ matrix:
53
54
  gemfile: gemfiles/rails_head.gemfile
54
55
  - rvm: 2.0.0
55
56
  gemfile: gemfiles/rails_head.gemfile
56
- - rvm: 2.1
57
+ - rvm: 2.1.10
57
58
  gemfile: gemfiles/rails_head.gemfile
@@ -1,3 +1,7 @@
1
+ # ActiveAttr 0.10.0 (February 7, 2017) #
2
+
3
+ * ActiveAttr now supports Ruby 2.4.0
4
+
1
5
  # ActiveAttr 0.9.0 (January 27, 2016) #
2
6
 
3
7
  * ActiveAttr now supports Rails 5.0.0
data/Gemfile CHANGED
@@ -2,15 +2,15 @@ source "https://rubygems.org"
2
2
 
3
3
  gemspec :development_group => :test
4
4
 
5
- gem "activemodel", ">= 5.0.0.beta1", "< 5.1"
6
- gem "activesupport", ">= 5.0.0.beta1", "< 5.1"
7
- gem "actionpack", ">= 5.0.0.beta1", "< 5.1", :group => :test
8
- gem "activemodel-serializers-xml", :group => :test, :git => "git://github.com/rails/activemodel-serializers-xml.git"
9
- gem "protected_attributes", :group => :test
5
+ gem "activemodel", "~> 5.0.0"
6
+ gem "activesupport", "~> 5.0.0"
7
+ gem "actionpack", "~> 5.0.0", :group => :test
8
+ gem "activemodel-serializers-xml", :group => :test
9
+ gem "protected_attributes_continued", :group => :test
10
10
 
11
11
  group :development do
12
12
  gem "debugger", :platforms => :mri_19
13
- gem "byebug", :platforms => [:mri_20, :mri_21, :mri_22, :mri_23]
13
+ gem "byebug", :platforms => [:mri_20, :mri_21, :mri_22, :mri_23, :mri_24]
14
14
  gem "growl"
15
15
  gem "guard"
16
16
  gem "guard-bundler"
@@ -19,7 +19,7 @@ group :development do
19
19
  gem "rdiscount"
20
20
  gem "rdoc"
21
21
  gem "ruby-debug", :platforms => :mri_18
22
- gem "spec_coverage", :platforms => [:mri_19, :mri_20, :mri_21, :mri_22, :mri_23], :git => "https://github.com/getaroom/spec_coverage.git"
22
+ gem "spec_coverage", :platforms => [:mri_19, :mri_20, :mri_21, :mri_22, :mri_23, :mri_24], :git => "https://github.com/getaroom/spec_coverage.git"
23
23
  gem "travis"
24
24
  gem "yard"
25
25
  end
data/README.md CHANGED
@@ -24,7 +24,7 @@ ActiveAttr is distributed as a rubygem [on rubygems.org][rubygems].
24
24
  [railscast poster]: http://railscasts.com/static/episodes/stills/326-activeattr.png
25
25
  [railscast]: http://railscasts.com/episodes/326-activeattr
26
26
  [rubygems]: http://rubygems.org/gems/active_attr
27
- [protected_attributes]: https://github.com/rails/protected_attributes
27
+ [protected_attributes]: https://github.com/westonganger/protected_attributes_continued
28
28
  [strong_parameters]: https://github.com/rails/strong_parameters
29
29
  [speakerdeck slide]: https://speakerd.s3.amazonaws.com/presentations/4f31f1dec583b4001f008ec3/thumb_slide_0.jpg
30
30
  [speakerdeck]: https://speakerdeck.com/u/cgriego/p/models-models-every-where
@@ -9,5 +9,5 @@ git "git://github.com/rails/rails.git" do
9
9
  end
10
10
 
11
11
  gem "activemodel-serializers-xml", :group => :test, :git => "git://github.com/rails/activemodel-serializers-xml.git"
12
- gem "protected_attributes", :group => :test, :git => "git://github.com/rails/protected_attributes.git"
12
+ gem "protected_attributes_continued", :group => :test, :git => "git://github.com/westonganger/protected_attributes_continued"
13
13
  gem "rack", :group => :test, :git => "git://github.com/rack/rack.git"
@@ -34,6 +34,8 @@ module ActiveAttr
34
34
  else
35
35
  BigDecimal.new value.to_s
36
36
  end
37
+ rescue ArgumentError
38
+ BigDecimal.new "0"
37
39
  end
38
40
  end
39
41
  end
@@ -1,5 +1,5 @@
1
1
  module ActiveAttr
2
2
  # Complete version string
3
3
  # @since 0.1.0
4
- VERSION = "0.9.0"
4
+ VERSION = "0.10.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_attr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Griego
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-01-27 00:00:00.000000000 Z
12
+ date: 2017-02-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activemodel
@@ -265,7 +265,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
265
265
  version: '0'
266
266
  requirements: []
267
267
  rubyforge_project:
268
- rubygems_version: 2.5.1
268
+ rubygems_version: 2.6.10
269
269
  signing_key:
270
270
  specification_version: 4
271
271
  summary: What ActiveModel left out
@@ -310,4 +310,3 @@ test_files:
310
310
  - spec/unit/active_attr/typecasting_spec.rb
311
311
  - spec/unit/active_attr/unknown_attribute_error_spec.rb
312
312
  - spec/unit/active_attr/version_spec.rb
313
- has_rdoc: