dryml 1.3.0.pre27 → 1.3.0.pre28

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.0.pre27
1
+ 1.3.0.pre28
@@ -271,7 +271,7 @@ module Dryml
271
271
  # It's a symbolic type name - look up the Ruby type name
272
272
  klass = HoboFields.to_class(for_type) or
273
273
  dryml_exception("No such type in polymorphic tag definition: '#{for_type}'", el)
274
- klass.name
274
+ for_type
275
275
  else
276
276
  for_type
277
277
  end.underscore.gsub('/', '__')
@@ -205,11 +205,12 @@ module Dryml
205
205
 
206
206
  def find_polymorphic_tag(name, call_type=nil)
207
207
  call_type ||= (this.respond_to?(:member_class) && this.member_class) || this_type
208
-
209
208
  begin
210
209
  found = nil
211
210
  while true
212
- if respond_to?(poly_name = "#{name}__for_#{call_type.name.to_s.underscore.gsub('/', '__')}")
211
+ type_name = (defined?(HoboFields) && HoboFields.to_name(call_type) || call_type.name).underscore.gsub('/', '__')
212
+
213
+ if respond_to?(poly_name = "#{name}__for_#{type_name}")
213
214
  found = poly_name
214
215
  break
215
216
  else
metadata CHANGED
@@ -1,8 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dryml
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: 6
5
- version: 1.3.0.pre27
4
+ hash: -1637108434
5
+ prerelease: true
6
+ segments:
7
+ - 1
8
+ - 3
9
+ - 0
10
+ - pre28
11
+ version: 1.3.0.pre28
6
12
  platform: ruby
7
13
  authors:
8
14
  - Tom Locke
@@ -10,7 +16,7 @@ autorequire:
10
16
  bindir: bin
11
17
  cert_chain: []
12
18
 
13
- date: 2011-02-22 00:00:00 -04:00
19
+ date: 2011-03-02 00:00:00 -04:00
14
20
  default_executable:
15
21
  dependencies:
16
22
  - !ruby/object:Gem::Dependency
@@ -21,6 +27,11 @@ dependencies:
21
27
  requirements:
22
28
  - - ">="
23
29
  - !ruby/object:Gem::Version
30
+ hash: 7
31
+ segments:
32
+ - 3
33
+ - 0
34
+ - 0
24
35
  version: 3.0.0
25
36
  type: :runtime
26
37
  version_requirements: *id001
@@ -32,7 +43,13 @@ dependencies:
32
43
  requirements:
33
44
  - - "="
34
45
  - !ruby/object:Gem::Version
35
- version: 1.3.0.pre27
46
+ hash: -1637108434
47
+ segments:
48
+ - 1
49
+ - 3
50
+ - 0
51
+ - pre28
52
+ version: 1.3.0.pre28
36
53
  type: :runtime
37
54
  version_requirements: *id002
38
55
  - !ruby/object:Gem::Dependency
@@ -43,6 +60,9 @@ dependencies:
43
60
  requirements:
44
61
  - - ">="
45
62
  - !ruby/object:Gem::Version
63
+ hash: 3
64
+ segments:
65
+ - 0
46
66
  version: "0"
47
67
  type: :development
48
68
  version_requirements: *id003
@@ -103,17 +123,25 @@ required_ruby_version: !ruby/object:Gem::Requirement
103
123
  requirements:
104
124
  - - ">="
105
125
  - !ruby/object:Gem::Version
126
+ hash: 3
127
+ segments:
128
+ - 0
106
129
  version: "0"
107
130
  required_rubygems_version: !ruby/object:Gem::Requirement
108
131
  none: false
109
132
  requirements:
110
133
  - - ">="
111
134
  - !ruby/object:Gem::Version
135
+ hash: 23
136
+ segments:
137
+ - 1
138
+ - 3
139
+ - 6
112
140
  version: 1.3.6
113
141
  requirements: []
114
142
 
115
143
  rubyforge_project: hobo
116
- rubygems_version: 1.5.0
144
+ rubygems_version: 1.3.7
117
145
  signing_key:
118
146
  specification_version: 3
119
147
  summary: The Don't Repeat Yourself Markup Language