bsm-models 0.4.1 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -50,7 +50,8 @@ module Bsm::Model::HasManySerialized
50
50
  end
51
51
 
52
52
  model.redefine_method(attribute_name) do
53
- read_attribute(attribute_name)
53
+ value = read_attribute(attribute_name)
54
+ value.respond_to?(:unserialized_value) ? value.unserialized_value : value
54
55
  end
55
56
  end
56
57
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bsm-models
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.5.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-12-12 00:00:00.000000000Z
12
+ date: 2012-01-23 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: abstract
16
- requirement: &14176240 !ruby/object:Gem::Requirement
16
+ requirement: &22944040 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,35 +21,62 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *14176240
24
+ version_requirements: *22944040
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: activerecord
27
- requirement: &14171180 !ruby/object:Gem::Requirement
27
+ requirement: &22942700 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
31
31
  - !ruby/object:Gem::Version
32
- version: 3.0.0
33
- - - <
34
- - !ruby/object:Gem::Version
35
- version: 3.2.0
32
+ version: 3.1.0
36
33
  type: :runtime
37
34
  prerelease: false
38
- version_requirements: *14171180
35
+ version_requirements: *22942700
39
36
  - !ruby/object:Gem::Dependency
40
37
  name: railties
41
- requirement: &14162900 !ruby/object:Gem::Requirement
38
+ requirement: &22941980 !ruby/object:Gem::Requirement
42
39
  none: false
43
40
  requirements:
44
41
  - - ! '>='
45
42
  - !ruby/object:Gem::Version
46
- version: 3.0.0
47
- - - <
48
- - !ruby/object:Gem::Version
49
- version: 3.2.0
43
+ version: 3.1.0
50
44
  type: :runtime
51
45
  prerelease: false
52
- version_requirements: *14162900
46
+ version_requirements: *22941980
47
+ - !ruby/object:Gem::Dependency
48
+ name: rspec
49
+ requirement: &22941340 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ type: :development
56
+ prerelease: false
57
+ version_requirements: *22941340
58
+ - !ruby/object:Gem::Dependency
59
+ name: sqlite3-ruby
60
+ requirement: &22940580 !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
66
+ type: :development
67
+ prerelease: false
68
+ version_requirements: *22940580
69
+ - !ruby/object:Gem::Dependency
70
+ name: shoulda-matchers
71
+ requirement: &22939740 !ruby/object:Gem::Requirement
72
+ none: false
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: *22939740
53
80
  description: ''
54
81
  email: dimitrij@blacksquaremedia.com
55
82
  executables: []
@@ -77,7 +104,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
77
104
  requirements:
78
105
  - - ! '>='
79
106
  - !ruby/object:Gem::Version
80
- version: 1.8.7
107
+ version: 1.9.2
81
108
  required_rubygems_version: !ruby/object:Gem::Requirement
82
109
  none: false
83
110
  requirements: