dryml 1.3.0.pre29 → 1.3.0.pre31

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.0.pre29
1
+ 1.3.0.pre31
@@ -6,11 +6,6 @@ ActionController::Base.class_eval do
6
6
 
7
7
  attr_accessor :dryml_fallback_tag
8
8
 
9
- # dryml does not use layouts
10
- def action_has_layout?
11
- false
12
- end
13
-
14
9
  def dryml_context
15
10
  @this
16
11
  end
@@ -133,6 +133,7 @@ module Dryml
133
133
  when scriplet_rex
134
134
  t
135
135
  when /\S+/
136
+ t.gsub!(/(\(|\))/){"\\#{$1}"}
136
137
  "<% safe_concat %(#{t}) %>"
137
138
  else
138
139
  t
@@ -549,7 +550,7 @@ module Dryml
549
550
  'this_type'
550
551
  elsif t =~ /^[A-Z]/
551
552
  t
552
- elsif t =~ /^[a-z]/ && defined? HoboFields.to_class
553
+ elsif t =~ /^[a-z]/ && defined?(HoboFields.to_class)
553
554
  klass = HoboFields.to_class(t)
554
555
  klass.name
555
556
  elsif is_code_attribute?(t)
@@ -144,7 +144,7 @@ module Dryml
144
144
 
145
145
  id = if (typed_id = object.try.typed_id)
146
146
  typed_id
147
- elsif object == @this
147
+ elsif object == this
148
148
  "this"
149
149
  end
150
150
  attribute ? "#{id}:#{attribute}" : id
@@ -162,7 +162,7 @@ module Dryml
162
162
 
163
163
 
164
164
  def refresh_part(encoded_context, session, dom_id)
165
- context = Dryml::PartContext.for_refresh(encoded_context, @this, session)
165
+ context = Dryml::PartContext.for_refresh(encoded_context, this, session)
166
166
 
167
167
  with_part_context(context) do
168
168
  send("#{context.part_name}_part", *context.locals)
@@ -210,7 +210,7 @@ module Dryml
210
210
  while true
211
211
  # ActiveSupport::TimeWithZone.name would return 'Time'
212
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
+ type_name = ( call_type == ActiveSupport::TimeWithZone ? 'datetime' : call_type.name.to_s).underscore.gsub('/', '__')
214
214
  if respond_to?(poly_name = "#{name}__for_#{type_name}")
215
215
  found = poly_name
216
216
  break
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: dryml
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease: 6
5
- version: 1.3.0.pre29
5
+ version: 1.3.0.pre31
6
6
  platform: ruby
7
7
  authors:
8
8
  - Tom Locke
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-03-05 00:00:00 -04:00
13
+ date: 2011-03-29 00:00:00 -04:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -32,7 +32,7 @@ dependencies:
32
32
  requirements:
33
33
  - - "="
34
34
  - !ruby/object:Gem::Version
35
- version: 1.3.0.pre29
35
+ version: 1.3.0.pre31
36
36
  type: :runtime
37
37
  version_requirements: *id002
38
38
  - !ruby/object:Gem::Dependency