active_attr 0.10.0 → 0.10.1
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.
Potentially problematic release.
This version of active_attr might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/.travis.yml +14 -3
- data/CHANGELOG.md +5 -0
- data/Gemfile +3 -3
- data/active_attr.gemspec +2 -2
- data/gemfiles/rails_5_0.gemfile +9 -0
- data/lib/active_attr/typecasting/big_decimal_typecaster.rb +1 -1
- data/lib/active_attr/typecasting/boolean_typecaster.rb +1 -1
- data/lib/active_attr/typecasting/float_typecaster.rb +1 -1
- data/lib/active_attr/typecasting/string_typecaster.rb +1 -1
- data/lib/active_attr/version.rb +1 -1
- data/spec/unit/active_attr/typecasting/integer_typecaster_spec.rb +1 -1
- data/spec/unit/active_attr/version_spec.rb +3 -3
- metadata +7 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e3793c0c881848e32880223f8442e82dd093b167
|
4
|
+
data.tar.gz: 21ab8a818245c985aa1141002ff35a2b9bb11175
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 184593386d4df4713b9fb418cf92fff8db026597db99ed119d1bd30a93042cb1064a6aa8d8304b2f36724348386d6cf8bff7654d1b94df196ad255d7e78bec4c
|
7
|
+
data.tar.gz: 2c342a5a9d443b710387e725fe297b0b3255edfaf1f4f8932621a56306359e2863c22666df2290a9877def5f5dc8e6d89979c25eb94297a65d8866627f37ac3b
|
data/.travis.yml
CHANGED
@@ -6,9 +6,9 @@ rvm:
|
|
6
6
|
- 1.9.3
|
7
7
|
- 2.0.0
|
8
8
|
- 2.1.10
|
9
|
-
- 2.2.
|
10
|
-
- 2.3.
|
11
|
-
- 2.4.
|
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
|
data/CHANGELOG.md
CHANGED
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.
|
6
|
-
gem "activesupport", "~> 5.
|
7
|
-
gem "actionpack", "~> 5.
|
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
|
|
data/active_attr.gemspec
CHANGED
@@ -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.
|
19
|
-
gem.add_runtime_dependency "activesupport", ">= 3.0.2", "< 5.
|
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
|
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
|
26
|
+
# @example Typecast an Integer
|
27
27
|
# typecaster.call(1) #=> true
|
28
28
|
#
|
29
29
|
# @param [Object] value The object to typecast
|
data/lib/active_attr/version.rb
CHANGED
@@ -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
|
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
|
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
|
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.
|
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-
|
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.
|
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.
|
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.
|
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.
|
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
|