representative 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -40,6 +40,8 @@ module Representative
40
40
  def resolve_value(value_generator)
41
41
  if value_generator == :self
42
42
  current_subject
43
+ elsif value_generator.kind_of?(Symbol)
44
+ current_subject.send(value_generator) unless current_subject.nil?
43
45
  elsif value_generator.respond_to?(:to_proc)
44
46
  value_generator.to_proc.call(current_subject) unless current_subject.nil?
45
47
  else
@@ -1,3 +1,3 @@
1
1
  module Representative
2
- VERSION = "0.3.2".freeze
2
+ VERSION = "0.3.3".freeze
3
3
  end
metadata CHANGED
@@ -1,13 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: representative
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
5
4
  prerelease:
6
- segments:
7
- - 0
8
- - 3
9
- - 2
10
- version: 0.3.2
5
+ version: 0.3.3
11
6
  platform: ruby
12
7
  authors:
13
8
  - Mike Williams
@@ -15,150 +10,108 @@ autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
12
 
18
- date: 2011-01-17 00:00:00 +11:00
13
+ date: 2011-03-21 00:00:00 +11:00
19
14
  default_executable:
20
15
  dependencies:
21
16
  - !ruby/object:Gem::Dependency
17
+ name: activesupport
22
18
  prerelease: false
23
- version_requirements: &id001 !ruby/object:Gem::Requirement
19
+ requirement: &id001 !ruby/object:Gem::Requirement
24
20
  none: false
25
21
  requirements:
26
22
  - - ">="
27
23
  - !ruby/object:Gem::Version
28
- hash: 3
29
- segments:
30
- - 2
31
- - 2
32
- - 2
33
24
  version: 2.2.2
34
25
  type: :runtime
35
- requirement: *id001
36
- name: activesupport
26
+ version_requirements: *id001
37
27
  - !ruby/object:Gem::Dependency
28
+ name: i18n
38
29
  prerelease: false
39
- version_requirements: &id002 !ruby/object:Gem::Requirement
30
+ requirement: &id002 !ruby/object:Gem::Requirement
40
31
  none: false
41
32
  requirements:
42
33
  - - ">="
43
34
  - !ruby/object:Gem::Version
44
- hash: 13
45
- segments:
46
- - 0
47
- - 4
48
- - 1
49
35
  version: 0.4.1
50
36
  type: :runtime
51
- requirement: *id002
52
- name: i18n
37
+ version_requirements: *id002
53
38
  - !ruby/object:Gem::Dependency
39
+ name: builder
54
40
  prerelease: false
55
- version_requirements: &id003 !ruby/object:Gem::Requirement
41
+ requirement: &id003 !ruby/object:Gem::Requirement
56
42
  none: false
57
43
  requirements:
58
44
  - - ">="
59
45
  - !ruby/object:Gem::Version
60
- hash: 15
61
- segments:
62
- - 2
63
- - 1
64
- - 2
65
46
  version: 2.1.2
66
47
  type: :runtime
67
- requirement: *id003
68
- name: builder
48
+ version_requirements: *id003
69
49
  - !ruby/object:Gem::Dependency
50
+ name: json
70
51
  prerelease: false
71
- version_requirements: &id004 !ruby/object:Gem::Requirement
52
+ requirement: &id004 !ruby/object:Gem::Requirement
72
53
  none: false
73
54
  requirements:
74
55
  - - ">="
75
56
  - !ruby/object:Gem::Version
76
- hash: 13
77
- segments:
78
- - 1
79
- - 4
80
- - 5
81
57
  version: 1.4.5
82
58
  type: :runtime
83
- requirement: *id004
84
- name: json
59
+ version_requirements: *id004
85
60
  - !ruby/object:Gem::Dependency
61
+ name: rake
86
62
  prerelease: false
87
- version_requirements: &id005 !ruby/object:Gem::Requirement
63
+ requirement: &id005 !ruby/object:Gem::Requirement
88
64
  none: false
89
65
  requirements:
90
66
  - - ~>
91
67
  - !ruby/object:Gem::Version
92
- hash: 49
93
- segments:
94
- - 0
95
- - 8
96
- - 7
97
68
  version: 0.8.7
98
69
  type: :development
99
- requirement: *id005
100
- name: rake
70
+ version_requirements: *id005
101
71
  - !ruby/object:Gem::Dependency
72
+ name: rspec
102
73
  prerelease: false
103
- version_requirements: &id006 !ruby/object:Gem::Requirement
74
+ requirement: &id006 !ruby/object:Gem::Requirement
104
75
  none: false
105
76
  requirements:
106
77
  - - ~>
107
78
  - !ruby/object:Gem::Version
108
- hash: 27
109
- segments:
110
- - 1
111
- - 3
112
- - 0
113
79
  version: 1.3.0
114
80
  type: :development
115
- requirement: *id006
116
- name: rspec
81
+ version_requirements: *id006
117
82
  - !ruby/object:Gem::Dependency
83
+ name: tilt
118
84
  prerelease: false
119
- version_requirements: &id007 !ruby/object:Gem::Requirement
85
+ requirement: &id007 !ruby/object:Gem::Requirement
120
86
  none: false
121
87
  requirements:
122
88
  - - ">="
123
89
  - !ruby/object:Gem::Version
124
- hash: 25
125
- segments:
126
- - 0
127
- - 9
128
90
  version: "0.9"
129
91
  type: :development
130
- requirement: *id007
131
- name: tilt
92
+ version_requirements: *id007
132
93
  - !ruby/object:Gem::Dependency
94
+ name: nokogiri
133
95
  prerelease: false
134
- version_requirements: &id008 !ruby/object:Gem::Requirement
96
+ requirement: &id008 !ruby/object:Gem::Requirement
135
97
  none: false
136
98
  requirements:
137
99
  - - ~>
138
100
  - !ruby/object:Gem::Version
139
- hash: 3
140
- segments:
141
- - 1
142
- - 4
143
- - 2
144
101
  version: 1.4.2
145
102
  type: :development
146
- requirement: *id008
147
- name: nokogiri
103
+ version_requirements: *id008
148
104
  - !ruby/object:Gem::Dependency
105
+ name: diff-lcs
149
106
  prerelease: false
150
- version_requirements: &id009 !ruby/object:Gem::Requirement
107
+ requirement: &id009 !ruby/object:Gem::Requirement
151
108
  none: false
152
109
  requirements:
153
110
  - - ">="
154
111
  - !ruby/object:Gem::Version
155
- hash: 3
156
- segments:
157
- - 0
158
112
  version: "0"
159
113
  type: :development
160
- requirement: *id009
161
- name: diff-lcs
114
+ version_requirements: *id009
162
115
  description:
163
116
  email: mdub@dogbiscuit.org
164
117
  executables: []
@@ -203,23 +156,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
203
156
  requirements:
204
157
  - - ">="
205
158
  - !ruby/object:Gem::Version
206
- hash: 3
207
- segments:
208
- - 0
209
159
  version: "0"
210
160
  required_rubygems_version: !ruby/object:Gem::Requirement
211
161
  none: false
212
162
  requirements:
213
163
  - - ">="
214
164
  - !ruby/object:Gem::Version
215
- hash: 3
216
- segments:
217
- - 0
218
165
  version: "0"
219
166
  requirements: []
220
167
 
221
168
  rubyforge_project:
222
- rubygems_version: 1.4.2
169
+ rubygems_version: 1.6.2
223
170
  signing_key:
224
171
  specification_version: 3
225
172
  summary: Builds XML and JSON representations of your Ruby objects