virtual-attributes 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/virtual-attributes/base/conversions.rb +1 -1
- data/virtual-attributes.gemspec +3 -3
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d3f0a5ee13bb58f016f700848ba9c01bdd8970d
|
4
|
+
data.tar.gz: bac8cefb07e8e2ee49f84a2a08f2d58c5c47a029
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b229edb92afe05288d549f597b1e1b4b49904d1f667f6818481081a66f97b4a0a2eefd3510700d52e075d5e2eb284335af58b5c7a944c2e3f353f57b82ce647a
|
7
|
+
data.tar.gz: 4e6a07b1598a67aaae6c7d8f946952d0956734be132869066d160d3c561a7ebc0bf2540efc3652e41fba6c5a417a6578082ca6affa148bbb4abd377198828f16
|
@@ -8,7 +8,7 @@ class VirtualAttributes::Base
|
|
8
8
|
when Hash
|
9
9
|
new(val)
|
10
10
|
when String
|
11
|
-
val.blank? ? new({}) : raise(ArgumentError(
|
11
|
+
val.blank? ? new({}) : raise(ArgumentError.new("String is not convertible to #{self.name}"))
|
12
12
|
when self
|
13
13
|
val
|
14
14
|
when NilClass
|
data/virtual-attributes.gemspec
CHANGED
@@ -2,10 +2,10 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = 'virtual-attributes'
|
5
|
-
s.version = '0.1.
|
5
|
+
s.version = '0.1.2'
|
6
6
|
s.date = '2015-03-19'
|
7
|
-
s.summary = "Enhance ActiveRecord's Serialize with
|
8
|
-
s.description = "
|
7
|
+
s.summary = "Enhance ActiveRecord's Serialize with typed virtual attributes"
|
8
|
+
s.description = "Allow you to add virtual type attributes in one single serialized ActiveRecord attribute"
|
9
9
|
s.authors = ["ihcene"]
|
10
10
|
s.email = 'ihcene@aritylabs.com'
|
11
11
|
s.files = `git ls-files`.split($/)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: virtual-attributes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ihcene
|
@@ -50,8 +50,8 @@ dependencies:
|
|
50
50
|
- - ">="
|
51
51
|
- !ruby/object:Gem::Version
|
52
52
|
version: 3.2.0
|
53
|
-
description:
|
54
|
-
|
53
|
+
description: Allow you to add virtual type attributes in one single serialized ActiveRecord
|
54
|
+
attribute
|
55
55
|
email: ihcene@aritylabs.com
|
56
56
|
executables: []
|
57
57
|
extensions: []
|
@@ -94,5 +94,5 @@ rubyforge_project:
|
|
94
94
|
rubygems_version: 2.2.2
|
95
95
|
signing_key:
|
96
96
|
specification_version: 4
|
97
|
-
summary: Enhance ActiveRecord's Serialize with
|
97
|
+
summary: Enhance ActiveRecord's Serialize with typed virtual attributes
|
98
98
|
test_files: []
|