dryml 1.3.0.pre19 → 1.3.0.pre20
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 +1 -1
- data/lib/dryml/dryml_doc.rb +3 -3
- data/lib/dryml/part_context.rb +11 -11
- data/lib/dryml/tag_parameters.rb +1 -1
- metadata +7 -7
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.3.0.
|
|
1
|
+
1.3.0.pre20
|
data/lib/dryml/dryml_doc.rb
CHANGED
|
@@ -36,9 +36,9 @@ require 'rexml/xpath'
|
|
|
36
36
|
@doc = Dryml::Parser::Document.new(File.read(filename), filename)
|
|
37
37
|
parse_tag_defs
|
|
38
38
|
end
|
|
39
|
-
|
|
39
|
+
|
|
40
40
|
attr_reader :name, :doc, :tag_defs, :source
|
|
41
|
-
|
|
41
|
+
|
|
42
42
|
def comment
|
|
43
43
|
first_node = doc[0][0]
|
|
44
44
|
if first_node.is_a?(REXML::Comment)
|
|
@@ -82,7 +82,7 @@ require 'rexml/xpath'
|
|
|
82
82
|
def source
|
|
83
83
|
doc.restore_erb_scriptlets(node.to_s).strip
|
|
84
84
|
end
|
|
85
|
-
|
|
85
|
+
|
|
86
86
|
# The contents of the XML or ERB comment, if any, immediately above the tag definition
|
|
87
87
|
def comment
|
|
88
88
|
@comment ||= begin
|
data/lib/dryml/part_context.rb
CHANGED
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"hoboParts['#{dom_id}'] = (#{code});\n"
|
|
22
22
|
end.join
|
|
23
23
|
end
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
|
|
25
|
+
|
|
26
26
|
def self.pre_marshal(x)
|
|
27
27
|
if x.is_a?(ActiveRecord::Base) && x.respond_to?(:typed_id)
|
|
28
28
|
TypedId.new(x.typed_id)
|
|
@@ -40,19 +40,19 @@
|
|
|
40
40
|
c.form_field_path = environment.form_field_path
|
|
41
41
|
end
|
|
42
42
|
end
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
|
|
44
|
+
|
|
45
45
|
def self.for_refresh(encoded_context, page_this, session)
|
|
46
46
|
new do |c|
|
|
47
47
|
c.unmarshal(encoded_context, page_this, session)
|
|
48
48
|
end
|
|
49
49
|
end
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
|
|
51
|
+
|
|
52
52
|
def initialize
|
|
53
53
|
yield self
|
|
54
54
|
end
|
|
55
|
-
|
|
55
|
+
|
|
56
56
|
attr_accessor :part_name, :locals, :this, :this_field, :this_id, :form_field_path
|
|
57
57
|
|
|
58
58
|
|
|
@@ -72,20 +72,20 @@
|
|
|
72
72
|
raise TamperedWithPartContext unless digest == generate_digest(data, session)
|
|
73
73
|
|
|
74
74
|
context = Marshal.load(Base64.decode64(data))
|
|
75
|
-
|
|
75
|
+
|
|
76
76
|
part_name, this_id, locals, form_field_path = context
|
|
77
77
|
|
|
78
78
|
if RAILS_DEFAULT_LOGGER
|
|
79
79
|
RAILS_DEFAULT_LOGGER.info "Call part: #{part_name}. this-id = #{this_id}, locals = #{locals.inspect}"
|
|
80
80
|
RAILS_DEFAULT_LOGGER.info " : form_field_path = #{form_field_path.inspect}" if form_field_path
|
|
81
81
|
end
|
|
82
|
-
|
|
82
|
+
|
|
83
83
|
self.part_name = part_name
|
|
84
84
|
self.this_id = this_id
|
|
85
85
|
self.locals = restore_locals(locals)
|
|
86
86
|
self.form_field_path = form_field_path
|
|
87
|
-
|
|
88
|
-
parse_this_id(page_this)
|
|
87
|
+
|
|
88
|
+
parse_this_id(page_this)
|
|
89
89
|
end
|
|
90
90
|
|
|
91
91
|
|
data/lib/dryml/tag_parameters.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dryml
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash: -
|
|
4
|
+
hash: -1637108442
|
|
5
5
|
prerelease: true
|
|
6
6
|
segments:
|
|
7
7
|
- 1
|
|
8
8
|
- 3
|
|
9
9
|
- 0
|
|
10
|
-
-
|
|
11
|
-
version: 1.3.0.
|
|
10
|
+
- pre20
|
|
11
|
+
version: 1.3.0.pre20
|
|
12
12
|
platform: ruby
|
|
13
13
|
authors:
|
|
14
14
|
- Tom Locke
|
|
@@ -16,7 +16,7 @@ autorequire:
|
|
|
16
16
|
bindir: bin
|
|
17
17
|
cert_chain: []
|
|
18
18
|
|
|
19
|
-
date: 2010-11-
|
|
19
|
+
date: 2010-11-22 00:00:00 -04:00
|
|
20
20
|
default_executable:
|
|
21
21
|
dependencies:
|
|
22
22
|
- !ruby/object:Gem::Dependency
|
|
@@ -43,13 +43,13 @@ dependencies:
|
|
|
43
43
|
requirements:
|
|
44
44
|
- - "="
|
|
45
45
|
- !ruby/object:Gem::Version
|
|
46
|
-
hash: -
|
|
46
|
+
hash: -1637108442
|
|
47
47
|
segments:
|
|
48
48
|
- 1
|
|
49
49
|
- 3
|
|
50
50
|
- 0
|
|
51
|
-
-
|
|
52
|
-
version: 1.3.0.
|
|
51
|
+
- pre20
|
|
52
|
+
version: 1.3.0.pre20
|
|
53
53
|
type: :runtime
|
|
54
54
|
version_requirements: *id002
|
|
55
55
|
- !ruby/object:Gem::Dependency
|