class2 0.2.4 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Changes +4 -0
- data/lib/class2.rb +1 -1
- data/lib/class2/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9de74e43eb48f696e8284882f70046f2e824f1bf
|
4
|
+
data.tar.gz: 4de24fa14eb525838acb447c0d4bb79d3f7eff04
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6ebc7cf450ae0324f32f96bf8e6fe4349e10c8d65a32bc37f341cf872d38b508475a41bf198a8af93cdec6bf5628489206c6dc7ed44ac5dac7e01b06be4ef5e
|
7
|
+
data.tar.gz: f7b3b93aa9b066835095184cb2265f5faddd4c857bb60494e6dd0775bb4822868039bfcec6673498bd5c9a064f0dcb3270f86083a340378e98eb61546f5c4117
|
data/Changes
CHANGED
data/lib/class2.rb
CHANGED
@@ -30,7 +30,7 @@ class Class2
|
|
30
30
|
Float => lambda { |v| "#{v} && Float(#{v})" },
|
31
31
|
Hash => lambda { |v| sprintf "%s.respond_to?(:to_h) ? %s.to_h : %s", v, v, v },
|
32
32
|
Integer => lambda { |v| "#{v} && Integer(#{v})" },
|
33
|
-
String => lambda { |v| "String(#{v})" },
|
33
|
+
String => lambda { |v| "#{v} && String(#{v})" },
|
34
34
|
TrueClass => lambda do |v|
|
35
35
|
sprintf '["1", 1, 1.0, true].freeze.include?(%s.is_a?(String) ? %s.strip : %s)', v, v, v
|
36
36
|
end
|
data/lib/class2/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: class2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Skye Shaw
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -103,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
103
103
|
version: '0'
|
104
104
|
requirements: []
|
105
105
|
rubyforge_project:
|
106
|
-
rubygems_version: 2.
|
106
|
+
rubygems_version: 2.6.14
|
107
107
|
signing_key:
|
108
108
|
specification_version: 4
|
109
109
|
summary: Easily create hierarchies of classes that support nested attributes, type
|