virtual-attributes 0.1.1 → 0.1.2

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: c4254b8bcb72697664cc7d0770e7a7d9ad80cc89
4
- data.tar.gz: 2486a778c6ef88d55c635b5f333d4fa6796cee86
3
+ metadata.gz: 9d3f0a5ee13bb58f016f700848ba9c01bdd8970d
4
+ data.tar.gz: bac8cefb07e8e2ee49f84a2a08f2d58c5c47a029
5
5
  SHA512:
6
- metadata.gz: 6f3a8f1bc69509b641619878ce1dc43e976a9b52712cd9e17684633fa6b10b350da3abb84fa932d9f4fed6af9e8349ca1c96ffcf636341fe3b8afe539d0f0595
7
- data.tar.gz: f91098c4691b063c1439698b90169234bc244282860f66e4130ec0931ba0b2caa0908055c491db23813d4157bd9bab3a05debdee681d7af788ce510aa388d92f
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('String is not convertible to #{self.name}'))
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
@@ -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.1'
5
+ s.version = '0.1.2'
6
6
  s.date = '2015-03-19'
7
- s.summary = "Enhance ActiveRecord's Serialize with types attributes"
8
- s.description = "This gem allow you to add whenever columns you want to your model through one single serialized attribute"
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.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: This gem allow you to add whenever columns you want to your model through
54
- one single serialized attribute
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 types attributes
97
+ summary: Enhance ActiveRecord's Serialize with typed virtual attributes
98
98
  test_files: []