dryml 1.3.0.pre28 → 1.3.0.pre29

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.pre28
1
+ 1.3.0.pre29
@@ -271,7 +271,9 @@ 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
- for_type
274
+ # ActiveSupport::TimeWithZone.name would return 'Time'
275
+ # so we add an exception to pick the right datetime type
276
+ klass == ActiveSupport::TimeWithZone ? 'datetime' : klass.name
275
277
  else
276
278
  for_type
277
279
  end.underscore.gsub('/', '__')
@@ -208,8 +208,9 @@ module Dryml
208
208
  begin
209
209
  found = nil
210
210
  while true
211
- type_name = (defined?(HoboFields) && HoboFields.to_name(call_type) || call_type.name).underscore.gsub('/', '__')
212
-
211
+ # ActiveSupport::TimeWithZone.name would return 'Time'
212
+ # so we add an exception to pick the right datetime type
213
+ type_name = ( call_type == ActiveSupport::TimeWithZone ? 'datetime' : call_type.name).underscore.gsub('/', '__')
213
214
  if respond_to?(poly_name = "#{name}__for_#{type_name}")
214
215
  found = poly_name
215
216
  break
metadata CHANGED
@@ -1,14 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dryml
3
3
  version: !ruby/object:Gem::Version
4
- hash: -1637108434
5
- prerelease: true
6
- segments:
7
- - 1
8
- - 3
9
- - 0
10
- - pre28
11
- version: 1.3.0.pre28
4
+ prerelease: 6
5
+ version: 1.3.0.pre29
12
6
  platform: ruby
13
7
  authors:
14
8
  - Tom Locke
@@ -16,7 +10,7 @@ autorequire:
16
10
  bindir: bin
17
11
  cert_chain: []
18
12
 
19
- date: 2011-03-02 00:00:00 -04:00
13
+ date: 2011-03-05 00:00:00 -04:00
20
14
  default_executable:
21
15
  dependencies:
22
16
  - !ruby/object:Gem::Dependency
@@ -27,11 +21,6 @@ dependencies:
27
21
  requirements:
28
22
  - - ">="
29
23
  - !ruby/object:Gem::Version
30
- hash: 7
31
- segments:
32
- - 3
33
- - 0
34
- - 0
35
24
  version: 3.0.0
36
25
  type: :runtime
37
26
  version_requirements: *id001
@@ -43,13 +32,7 @@ dependencies:
43
32
  requirements:
44
33
  - - "="
45
34
  - !ruby/object:Gem::Version
46
- hash: -1637108434
47
- segments:
48
- - 1
49
- - 3
50
- - 0
51
- - pre28
52
- version: 1.3.0.pre28
35
+ version: 1.3.0.pre29
53
36
  type: :runtime
54
37
  version_requirements: *id002
55
38
  - !ruby/object:Gem::Dependency
@@ -60,9 +43,6 @@ dependencies:
60
43
  requirements:
61
44
  - - ">="
62
45
  - !ruby/object:Gem::Version
63
- hash: 3
64
- segments:
65
- - 0
66
46
  version: "0"
67
47
  type: :development
68
48
  version_requirements: *id003
@@ -123,25 +103,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
123
103
  requirements:
124
104
  - - ">="
125
105
  - !ruby/object:Gem::Version
126
- hash: 3
127
- segments:
128
- - 0
129
106
  version: "0"
130
107
  required_rubygems_version: !ruby/object:Gem::Requirement
131
108
  none: false
132
109
  requirements:
133
110
  - - ">="
134
111
  - !ruby/object:Gem::Version
135
- hash: 23
136
- segments:
137
- - 1
138
- - 3
139
- - 6
140
112
  version: 1.3.6
141
113
  requirements: []
142
114
 
143
115
  rubyforge_project: hobo
144
- rubygems_version: 1.3.7
116
+ rubygems_version: 1.5.0
145
117
  signing_key:
146
118
  specification_version: 3
147
119
  summary: The Don't Repeat Yourself Markup Language