meteor 0.9.35 → 0.9.37
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.
- checksums.yaml +4 -4
- data/ChangeLog +8 -0
- data/Gemfile.lock +1 -1
- data/lib/meteor/core/kernel.rb +10 -9
- data/lib/meteor/element.rb +7 -7
- data/lib/meteor.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fd24e160dd8ebd42f87b6305122d0dd287d96b3c44b2ab3c16a17170b967ae6f
|
|
4
|
+
data.tar.gz: ef330abcca5a835e3e8371688bd28638895e54845cb1c0137db17ee69257ec45
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 12d65f04b18888dd403ae5e2399edf5c34bfa4db91ae3d65d0538533aec072c5ab1a40e3067dc8482b0a7dd6aaae7888e8b0396a86f4dc6312fc93203872c712
|
|
7
|
+
data.tar.gz: 8063860a96ac60fa30d314bda48c91ccb1b5af4fb058a5c995a3aaa1e0338e601545bbcc6a9013c40dd9dbd16a3b15d247074a87b9f3bd23033678582acb6a93
|
data/ChangeLog
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
== 0.9.37 / 2026-07-08 Yasumasa Ashida <ys.ashida@gmail.com>
|
|
2
|
+
|
|
3
|
+
* Refactor Meteor::Core::Kernel
|
|
4
|
+
|
|
5
|
+
== 0.9.36 / 2026-07-08 Yasumasa Ashida <ys.ashida@gmail.com>
|
|
6
|
+
|
|
7
|
+
* Refactor Meteor::Element
|
|
8
|
+
|
|
1
9
|
== 0.9.35 / 2026-07-07 Yasumasa Ashida <ys.ashida@gmail.com>
|
|
2
10
|
|
|
3
11
|
* Refactoring
|
data/Gemfile.lock
CHANGED
data/lib/meteor/core/kernel.rb
CHANGED
|
@@ -45,7 +45,7 @@ module Meteor
|
|
|
45
45
|
RE_FIND_FOUR = Regexp.new(PATTERN_FIND_FOUR)
|
|
46
46
|
RE_FIND_FIVE = Regexp.new(PATTERN_FIND_FIVE)
|
|
47
47
|
|
|
48
|
-
|
|
48
|
+
RE_CHILDLESS = Regexp.new('\\A[^<>]*\\Z')
|
|
49
49
|
|
|
50
50
|
RE_GET_ATTRS_MAP = Regexp.new('([^\\s]*)="([^\"]*)"')
|
|
51
51
|
|
|
@@ -138,6 +138,7 @@ module Meteor
|
|
|
138
138
|
# initializer (イニシャライザ)
|
|
139
139
|
#
|
|
140
140
|
def initialize
|
|
141
|
+
super
|
|
141
142
|
# parent element (親要素)
|
|
142
143
|
# @parent = nil
|
|
143
144
|
|
|
@@ -168,7 +169,7 @@ module Meteor
|
|
|
168
169
|
end
|
|
169
170
|
|
|
170
171
|
#
|
|
171
|
-
#
|
|
172
|
+
# parse document (ドキュメントを解析する)
|
|
172
173
|
# @param [String] document document (ドキュメント)
|
|
173
174
|
#
|
|
174
175
|
def parse; end
|
|
@@ -1949,7 +1950,7 @@ module Meteor
|
|
|
1949
1950
|
#
|
|
1950
1951
|
def flash
|
|
1951
1952
|
if element_hook
|
|
1952
|
-
if element_hook.origin.
|
|
1953
|
+
if element_hook.origin.childless
|
|
1953
1954
|
if element_hook.origin.cx
|
|
1954
1955
|
# @root.hookDocument << '<!-- @' << @root.element.name << ' '
|
|
1955
1956
|
# @root.hookDocument << @root.element.attributes << '-->'
|
|
@@ -2025,13 +2026,13 @@ module Meteor
|
|
|
2025
2026
|
return unless elm.normal
|
|
2026
2027
|
|
|
2027
2028
|
# case of normal element (内容あり要素の場合)
|
|
2028
|
-
self.
|
|
2029
|
+
self.childless = elm
|
|
2029
2030
|
|
|
2030
2031
|
pif2 = self.class.new(self)
|
|
2031
2032
|
|
|
2032
2033
|
@elm_ = elm.clone(pif2)
|
|
2033
2034
|
|
|
2034
|
-
pif2.root_element.document = if !elm.
|
|
2035
|
+
pif2.root_element.document = if !elm.childless
|
|
2035
2036
|
String.new(elm.mixed_content)
|
|
2036
2037
|
else
|
|
2037
2038
|
String.new(elm.document)
|
|
@@ -2044,13 +2045,13 @@ module Meteor
|
|
|
2044
2045
|
|
|
2045
2046
|
# private :shadow
|
|
2046
2047
|
|
|
2047
|
-
def
|
|
2048
|
-
@res =
|
|
2048
|
+
def childless=(elm)
|
|
2049
|
+
@res = RE_CHILDLESS.match(elm.mixed_content)
|
|
2049
2050
|
|
|
2050
|
-
elm.
|
|
2051
|
+
elm.childless = true if @res
|
|
2051
2052
|
end
|
|
2052
2053
|
|
|
2053
|
-
private :
|
|
2054
|
+
private :childless=
|
|
2054
2055
|
|
|
2055
2056
|
def match?(regex, str)
|
|
2056
2057
|
case regex
|
data/lib/meteor/element.rb
CHANGED
|
@@ -21,8 +21,8 @@ module Meteor
|
|
|
21
21
|
# @return [true,false] content normal flag (内容存在フラグ)
|
|
22
22
|
# @!attribute [rw] cx
|
|
23
23
|
# @return [true,false] comment extension tag flag (コメント拡張タグフラグ)
|
|
24
|
-
# @!attribute [rw]
|
|
25
|
-
# @return [true,false] child
|
|
24
|
+
# @!attribute [rw] childless
|
|
25
|
+
# @return [true,false] child childless flag (子要素なしフラグ)
|
|
26
26
|
# @!attribute [rw] parser
|
|
27
27
|
# @return [Meteor::Parser] parser(パーサ)
|
|
28
28
|
# @!attribute [rw] type_value
|
|
@@ -37,7 +37,7 @@ module Meteor
|
|
|
37
37
|
# @return [true,false] deletion flag (削除フラグ)
|
|
38
38
|
#
|
|
39
39
|
class Element # rubocop:disable Metrics/ClassLength
|
|
40
|
-
attr_accessor :name, :attributes, :mixed_content, :raw_content, :pattern, :document_sync, :normal, :cx, :
|
|
40
|
+
attr_accessor :name, :attributes, :mixed_content, :raw_content, :pattern, :document_sync, :normal, :cx, :childless,
|
|
41
41
|
:parser, :type_value, :usable, :origin, :copy, :removed
|
|
42
42
|
|
|
43
43
|
alias tag name
|
|
@@ -46,8 +46,8 @@ module Meteor
|
|
|
46
46
|
alias empty normal
|
|
47
47
|
alias empty= normal=
|
|
48
48
|
|
|
49
|
-
alias mono
|
|
50
|
-
alias mono=
|
|
49
|
+
alias mono childless
|
|
50
|
+
alias mono= childless=
|
|
51
51
|
|
|
52
52
|
#
|
|
53
53
|
# initializer (イニシャライザ)
|
|
@@ -90,7 +90,7 @@ module Meteor
|
|
|
90
90
|
# @parser=nil
|
|
91
91
|
# @normal = false
|
|
92
92
|
# @cx = false
|
|
93
|
-
# @
|
|
93
|
+
# @childless = false
|
|
94
94
|
# @parent = false
|
|
95
95
|
@usable = true
|
|
96
96
|
end
|
|
@@ -121,7 +121,7 @@ module Meteor
|
|
|
121
121
|
@document = String.new(elm.document)
|
|
122
122
|
@normal = elm.normal
|
|
123
123
|
@cx = elm.cx
|
|
124
|
-
@
|
|
124
|
+
@childless = elm.childless
|
|
125
125
|
@origin = elm
|
|
126
126
|
# @usable = false
|
|
127
127
|
elm.copy = self
|
data/lib/meteor.rb
CHANGED
|
@@ -37,11 +37,11 @@ require 'meteor/ml/xml/parser_impl'
|
|
|
37
37
|
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
38
38
|
#
|
|
39
39
|
# @author Yasumasa Ashida
|
|
40
|
-
# @version 0.9.
|
|
40
|
+
# @version 0.9.37
|
|
41
41
|
#
|
|
42
42
|
|
|
43
43
|
module Meteor
|
|
44
|
-
VERSION = '0.9.
|
|
44
|
+
VERSION = '0.9.37'
|
|
45
45
|
|
|
46
46
|
# require 'fileutils'
|
|
47
47
|
|