asip-meteor 0.9.2.1 → 0.9.2.2
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/lib/meteor.rb +30 -24
- metadata +2 -2
data/lib/meteor.rb
CHANGED
@@ -18,12 +18,12 @@
|
|
18
18
|
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
19
19
|
#
|
20
20
|
# @author Yasumasa Ashida
|
21
|
-
# @version 0.9.2.
|
21
|
+
# @version 0.9.2.2
|
22
22
|
#
|
23
23
|
|
24
24
|
module Meteor
|
25
25
|
|
26
|
-
VERSION = "0.9.2.
|
26
|
+
VERSION = "0.9.2.2"
|
27
27
|
|
28
28
|
RUBY_VERSION_1_9_0 = '1.9.0'
|
29
29
|
|
@@ -73,7 +73,8 @@ module Meteor
|
|
73
73
|
@parser = args[1]
|
74
74
|
@arguments = AttributeMap.new(args[0].arguments)
|
75
75
|
#@usable = false
|
76
|
-
@origin = args[0]
|
76
|
+
@origin = args[0]
|
77
|
+
args[0].copy = self
|
77
78
|
else
|
78
79
|
raise ArgumentError
|
79
80
|
end
|
@@ -113,7 +114,7 @@ module Meteor
|
|
113
114
|
@mono = elm.mono
|
114
115
|
@parser = elm.parser
|
115
116
|
@arguments = AttributeMap.new(elm.arguments)
|
116
|
-
@origin = elm
|
117
|
+
@origin = elm
|
117
118
|
@usable = true
|
118
119
|
end
|
119
120
|
private :initialize_e
|
@@ -177,6 +178,7 @@ module Meteor
|
|
177
178
|
attr_accessor :arguments
|
178
179
|
attr_accessor :usable
|
179
180
|
attr_accessor :origin
|
181
|
+
attr_accessor :copy
|
180
182
|
|
181
183
|
#
|
182
184
|
# 子要素を取得する
|
@@ -283,9 +285,9 @@ module Meteor
|
|
283
285
|
@parser.print
|
284
286
|
end
|
285
287
|
|
286
|
-
def flush
|
287
|
-
|
288
|
-
end
|
288
|
+
#def flush
|
289
|
+
# @parser.flush
|
290
|
+
#end
|
289
291
|
|
290
292
|
#
|
291
293
|
# フッククラスの処理を実行する
|
@@ -640,7 +642,7 @@ module Meteor
|
|
640
642
|
if elm.empty then
|
641
643
|
elm2 = elm.child(elm)
|
642
644
|
execute(elm2)
|
643
|
-
elm2.flush
|
645
|
+
#elm2.flush
|
644
646
|
end
|
645
647
|
end
|
646
648
|
|
@@ -671,7 +673,7 @@ module Meteor
|
|
671
673
|
execute(elm2, item)
|
672
674
|
elm2.print
|
673
675
|
end
|
674
|
-
elm2.flush
|
676
|
+
#elm2.flush
|
675
677
|
end
|
676
678
|
end
|
677
679
|
|
@@ -2391,9 +2393,13 @@ module Meteor
|
|
2391
2393
|
@e_cache.values.each do |item|
|
2392
2394
|
if item.usable then
|
2393
2395
|
#puts "#{item.name}:#{item.document}"
|
2394
|
-
if item.name == EMPTY then
|
2396
|
+
#if item.name == EMPTY then
|
2397
|
+
if item.copy then
|
2398
|
+
#item.document = item.copy.parser.root_element.hook_document
|
2395
2399
|
@pattern = Meteor::Core::Util::PatternCache.get(item.pattern)
|
2396
|
-
@root.document.sub!(@pattern,item.
|
2400
|
+
@root.document.sub!(@pattern,item.copy.parser.root_element.hook_document)
|
2401
|
+
#@root.document.sub!(@pattern,item.document)
|
2402
|
+
item.copy = nil
|
2397
2403
|
else
|
2398
2404
|
edit_document_1(item)
|
2399
2405
|
edit_pattern_(item)
|
@@ -2510,19 +2516,19 @@ module Meteor
|
|
2510
2516
|
end
|
2511
2517
|
private :set_mono_info
|
2512
2518
|
|
2513
|
-
|
2514
|
-
|
2515
|
-
|
2516
|
-
def flush
|
2517
|
-
|
2518
|
-
|
2519
|
-
|
2520
|
-
|
2521
|
-
|
2522
|
-
|
2523
|
-
|
2524
|
-
|
2525
|
-
end
|
2519
|
+
##
|
2520
|
+
## 反映する
|
2521
|
+
##
|
2522
|
+
#def flush
|
2523
|
+
# #if @root.element && @root.element.origin then
|
2524
|
+
# # ##@root.element.origin.parser.reflect
|
2525
|
+
# # ##@root.element.origin.parser.replace(@root.element.origin, @root.hook_document)
|
2526
|
+
# # ##puts "[aa]"
|
2527
|
+
# # ##puts @root.hook_document
|
2528
|
+
# # @root.element.origin.document = @root.hook_document
|
2529
|
+
# # @root.element.origin.name = EMPTY
|
2530
|
+
# #end
|
2531
|
+
#end
|
2526
2532
|
|
2527
2533
|
#
|
2528
2534
|
# フッククラスの処理を実行する
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: asip-meteor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.2.
|
4
|
+
version: 0.9.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- asip
|
@@ -9,7 +9,7 @@ autorequire: meteor
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-06-
|
12
|
+
date: 2009-06-05 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|