active_attr 0.10.0 → 0.10.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of active_attr might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b83c6dd6b76eb074542b74caa0e07019894254ec
4
- data.tar.gz: ded9dc50ac0fcad818632198358fe76451c34cd6
3
+ metadata.gz: e3793c0c881848e32880223f8442e82dd093b167
4
+ data.tar.gz: 21ab8a818245c985aa1141002ff35a2b9bb11175
5
5
  SHA512:
6
- metadata.gz: 4e1ce448fbc617244e3651831db516ea06a6612fc75b5ae3664e3ece6a1dade658935b74d4406446e0c3c990a8fc5cd93d5ada03be1876792458f49aa7f2d57c
7
- data.tar.gz: f0bdd034ffa4b5232ed4a2eed22b8c1132d7c41c60bfcb9790c896e5f3342672e5a002ac1da73aceffe0b1abaf2ce60973a8821fd3943f1444f7c899391b682c
6
+ metadata.gz: 184593386d4df4713b9fb418cf92fff8db026597db99ed119d1bd30a93042cb1064a6aa8d8304b2f36724348386d6cf8bff7654d1b94df196ad255d7e78bec4c
7
+ data.tar.gz: 2c342a5a9d443b710387e725fe297b0b3255edfaf1f4f8932621a56306359e2863c22666df2290a9877def5f5dc8e6d89979c25eb94297a65d8866627f37ac3b
@@ -6,9 +6,9 @@ rvm:
6
6
  - 1.9.3
7
7
  - 2.0.0
8
8
  - 2.1.10
9
- - 2.2.6
10
- - 2.3.3
11
- - 2.4.0
9
+ - 2.2.7
10
+ - 2.3.4
11
+ - 2.4.1
12
12
  before_install: gem install bundler
13
13
  bundler_args: --without development
14
14
  gemfile:
@@ -18,6 +18,7 @@ gemfile:
18
18
  - gemfiles/rails_4_0.gemfile
19
19
  - gemfiles/rails_4_1.gemfile
20
20
  - gemfiles/rails_4_2.gemfile
21
+ - gemfiles/rails_5_0.gemfile
21
22
  - Gemfile
22
23
  - gemfiles/rails_head.gemfile
23
24
  matrix:
@@ -36,6 +37,16 @@ matrix:
36
37
  gemfile: gemfiles/rails_4_2.gemfile
37
38
  - rvm: 1.9.2
38
39
  gemfile: gemfiles/rails_4_2.gemfile
40
+ - rvm: ree
41
+ gemfile: gemfiles/rails_5_0.gemfile
42
+ - rvm: 1.9.2
43
+ gemfile: gemfiles/rails_5_0.gemfile
44
+ - rvm: 1.9.3
45
+ gemfile: gemfiles/rails_5_0.gemfile
46
+ - rvm: 2.0.0
47
+ gemfile: gemfiles/rails_5_0.gemfile
48
+ - rvm: 2.1.10
49
+ gemfile: gemfiles/rails_5_0.gemfile
39
50
  - rvm: ree
40
51
  gemfile: Gemfile
41
52
  - rvm: 1.9.2
@@ -1,3 +1,8 @@
1
+ # ActiveAttr 0.10.1 (February 7, 2017) #
2
+
3
+ * Documentation and test updates for Ruby 2.4 deprecating Fixnum
4
+ * ActiveAttr now supports Rails 5.1
5
+
1
6
  # ActiveAttr 0.10.0 (February 7, 2017) #
2
7
 
3
8
  * ActiveAttr now supports Ruby 2.4.0
data/Gemfile CHANGED
@@ -2,9 +2,9 @@ source "https://rubygems.org"
2
2
 
3
3
  gemspec :development_group => :test
4
4
 
5
- gem "activemodel", "~> 5.0.0"
6
- gem "activesupport", "~> 5.0.0"
7
- gem "actionpack", "~> 5.0.0", :group => :test
5
+ gem "activemodel", "~> 5.1.0"
6
+ gem "activesupport", "~> 5.1.0"
7
+ gem "actionpack", "~> 5.1.0", :group => :test
8
8
  gem "activemodel-serializers-xml", :group => :test
9
9
  gem "protected_attributes_continued", :group => :test
10
10
 
@@ -15,8 +15,8 @@ Gem::Specification.new do |gem|
15
15
  gem.require_paths = ["lib"]
16
16
  gem.version = ActiveAttr::VERSION
17
17
 
18
- gem.add_runtime_dependency "activemodel", ">= 3.0.2", "< 5.1"
19
- gem.add_runtime_dependency "activesupport", ">= 3.0.2", "< 5.1"
18
+ gem.add_runtime_dependency "activemodel", ">= 3.0.2", "< 5.2"
19
+ gem.add_runtime_dependency "activesupport", ">= 3.0.2", "< 5.2"
20
20
 
21
21
  gem.add_development_dependency "bundler", "~> 1.0"
22
22
  gem.add_development_dependency "factory_girl", ">= 2.2", "< 5.0"
@@ -0,0 +1,9 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec :development_group => :test, :path => ".."
4
+
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
@@ -16,7 +16,7 @@ module ActiveAttr
16
16
  # Attempt to convert using #to_d, else it creates a BigDecimal using the
17
17
  # String representation of the value.
18
18
  #
19
- # @example Typecast a Fixnum
19
+ # @example Typecast an Integer
20
20
  # typecaster.call(1).to_s #=> "0.1E1"
21
21
  #
22
22
  # @param [Object, #to_d, #to_s] value The object to typecast
@@ -23,7 +23,7 @@ module ActiveAttr
23
23
  # is a string that represents false, typecasting returns false.
24
24
  # Otherwise typecasting just checks the presence of a value.
25
25
  #
26
- # @example Typecast a Fixnum
26
+ # @example Typecast an Integer
27
27
  # typecaster.call(1) #=> true
28
28
  #
29
29
  # @param [Object] value The object to typecast
@@ -11,7 +11,7 @@ module ActiveAttr
11
11
  #
12
12
  # Attempts to convert using #to_f.
13
13
  #
14
- # @example Typecast a Fixnum
14
+ # @example Typecast an Integer
15
15
  # typecaster.call(1) #=> 1.0
16
16
  #
17
17
  # @param [Object, #to_f] value The object to typecast
@@ -11,7 +11,7 @@ module ActiveAttr
11
11
  #
12
12
  # Attempts to convert using #to_s.
13
13
  #
14
- # @example Typecast a Fixnum
14
+ # @example Typecast an Integer
15
15
  # typecaster.call(1) #=> "1"
16
16
  #
17
17
  # @param [Object, #to_s] value The object to typecast
@@ -1,5 +1,5 @@
1
1
  module ActiveAttr
2
2
  # Complete version string
3
3
  # @since 0.1.0
4
- VERSION = "0.10.0"
4
+ VERSION = "0.10.1"
5
5
  end
@@ -7,7 +7,7 @@ module ActiveAttr
7
7
  subject(:typecaster) { described_class.new }
8
8
 
9
9
  describe "#call" do
10
- it "returns the original integer for a FixNum" do
10
+ it "returns the original integer for an Integer" do
11
11
  value = 2
12
12
  typecaster.call(value).should equal value
13
13
  end
@@ -17,19 +17,19 @@ module ActiveAttr
17
17
  describe "major version" do
18
18
  subject { gem_version.segments[0] }
19
19
 
20
- it { should be_a_kind_of Fixnum }
20
+ it { should be_a_kind_of Integer }
21
21
  end
22
22
 
23
23
  describe "minor version" do
24
24
  subject { gem_version.segments[1] }
25
25
 
26
- it { should be_a_kind_of Fixnum }
26
+ it { should be_a_kind_of Integer }
27
27
  end
28
28
 
29
29
  describe "patch version" do
30
30
  subject { gem_version.segments[2] }
31
31
 
32
- it { should be_a_kind_of Fixnum }
32
+ it { should be_a_kind_of Integer }
33
33
  end
34
34
 
35
35
  describe "pre-release version" do
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.10.0
4
+ version: 0.10.1
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: 2017-02-07 00:00:00.000000000 Z
12
+ date: 2017-05-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activemodel
@@ -20,7 +20,7 @@ dependencies:
20
20
  version: 3.0.2
21
21
  - - "<"
22
22
  - !ruby/object:Gem::Version
23
- version: '5.1'
23
+ version: '5.2'
24
24
  type: :runtime
25
25
  prerelease: false
26
26
  version_requirements: !ruby/object:Gem::Requirement
@@ -30,7 +30,7 @@ dependencies:
30
30
  version: 3.0.2
31
31
  - - "<"
32
32
  - !ruby/object:Gem::Version
33
- version: '5.1'
33
+ version: '5.2'
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: activesupport
36
36
  requirement: !ruby/object:Gem::Requirement
@@ -40,7 +40,7 @@ dependencies:
40
40
  version: 3.0.2
41
41
  - - "<"
42
42
  - !ruby/object:Gem::Version
43
- version: '5.1'
43
+ version: '5.2'
44
44
  type: :runtime
45
45
  prerelease: false
46
46
  version_requirements: !ruby/object:Gem::Requirement
@@ -50,7 +50,7 @@ dependencies:
50
50
  version: 3.0.2
51
51
  - - "<"
52
52
  - !ruby/object:Gem::Version
53
- version: '5.1'
53
+ version: '5.2'
54
54
  - !ruby/object:Gem::Dependency
55
55
  name: bundler
56
56
  requirement: !ruby/object:Gem::Requirement
@@ -173,6 +173,7 @@ files:
173
173
  - gemfiles/rails_4_0.gemfile
174
174
  - gemfiles/rails_4_1.gemfile
175
175
  - gemfiles/rails_4_2.gemfile
176
+ - gemfiles/rails_5_0.gemfile
176
177
  - gemfiles/rails_head.gemfile
177
178
  - lib/active_attr.rb
178
179
  - lib/active_attr/attribute_defaults.rb