asip-meteor 0.9.0.7 → 0.9.0.8

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.
Files changed (2) hide show
  1. data/lib/meteor.rb +18 -11
  2. metadata +2 -2
data/lib/meteor.rb CHANGED
@@ -18,7 +18,7 @@
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.0.7
21
+ # @version 0.9.0.8
22
22
  #
23
23
  if RUBY_VERSION < '1.9.0' then
24
24
  require 'kconv'
@@ -27,7 +27,7 @@ end
27
27
 
28
28
  module Meteor
29
29
 
30
- VERSION = "0.9.0.7"
30
+ VERSION = "0.9.0.8"
31
31
 
32
32
  #
33
33
  # 要素クラス
@@ -69,6 +69,7 @@ module Meteor
69
69
  #@mono = false
70
70
  #@parent = false
71
71
  @arguments = AttributeMap.new
72
+ @origin = self.object_id
72
73
  end
73
74
 
74
75
  #
@@ -87,6 +88,7 @@ module Meteor
87
88
  @parent = elm.parent
88
89
  @parser = elm.parser
89
90
  @arguments = AttributeMap.new(elm.arguments)
91
+ @origin = elm.object_id
90
92
  end
91
93
 
92
94
  attr_accessor :name
@@ -101,6 +103,8 @@ module Meteor
101
103
  attr_accessor :parser
102
104
  attr_accessor :type_value
103
105
  attr_accessor :arguments
106
+ attr_accessor :usable
107
+ attr_accessor :origin
104
108
 
105
109
  #
106
110
  # 属性を編集する or 属性の値を取得する
@@ -1764,7 +1768,7 @@ module Meteor
1764
1768
  elm.arguments.store(attrName, attrValue)
1765
1769
  end
1766
1770
 
1767
- @e_cache.store(elm.object_id, elm)
1771
+ @e_cache.store(elm.origin, elm)
1768
1772
  end
1769
1773
  end
1770
1774
  elm
@@ -2005,7 +2009,7 @@ module Meteor
2005
2009
  }
2006
2010
 
2007
2011
  if !elm.parent then
2008
- @e_cache.store(elm.object_id,elm)
2012
+ @e_cache.store(elm.origin,elm)
2009
2013
  end
2010
2014
  end
2011
2015
  elm
@@ -2057,7 +2061,7 @@ module Meteor
2057
2061
  elm.mixed_content = content
2058
2062
 
2059
2063
  if !elm.parent then
2060
- @e_cache.store(elm.object_id,elm)
2064
+ @e_cache.store(elm.origin,elm)
2061
2065
  end
2062
2066
 
2063
2067
  elm
@@ -2145,7 +2149,7 @@ module Meteor
2145
2149
  elm.arguments.delete(attrName)
2146
2150
  end
2147
2151
 
2148
- @e_cache.store(elm.object_id,elm)
2152
+ @e_cache.store(elm.origin,elm)
2149
2153
  end
2150
2154
  end
2151
2155
 
@@ -2182,7 +2186,7 @@ module Meteor
2182
2186
  #
2183
2187
  def removeElement(elm)
2184
2188
  replace(elm,EMPTY)
2185
- @e_cache.delete(elm.object_id)
2189
+ @e_cache.delete(elm.origin)
2186
2190
  end
2187
2191
 
2188
2192
  #
@@ -2288,10 +2292,13 @@ module Meteor
2288
2292
  def reflect()
2289
2293
 
2290
2294
  @e_cache.values.each { |item|
2291
- editDocument_1(item)
2292
- editPattern_(item)
2295
+ if item.usable = 0 then
2296
+ editDocument_1(item)
2297
+ editPattern_(item)
2298
+ end
2299
+ item.usable = 1
2293
2300
  }
2294
- @e_cache.clear
2301
+ #@e_cache.clear
2295
2302
  end
2296
2303
  protected :reflect
2297
2304
 
@@ -4079,7 +4086,7 @@ module Meteor
4079
4086
  @root.hookDocument = String.new(ps.rootElement.hookDocument)
4080
4087
  @root.hook = ps.rootElement.hook
4081
4088
  @root.monoHook = ps.rootElement.monoHook
4082
- @root.contentType = String.new(ps.contentType);
4089
+ #@root.contentType = String.new(ps.contentType);
4083
4090
  end
4084
4091
 
4085
4092
  #
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.0.7
4
+ version: 0.9.0.8
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-03-17 00:00:00 -07:00
12
+ date: 2009-03-20 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15