meteor 0.9.35 → 0.9.36
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 +4 -0
- data/Gemfile.lock +1 -1
- data/lib/meteor/core/kernel.rb +8 -8
- 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: 7c820bce827158078b9e6d222628f8158ec3869cd13a433aaa6fdbac0d15bb9b
|
|
4
|
+
data.tar.gz: 1f9df5b7ecf2c0bfefcc6d2ac875106c9e258c3f708528d7a80719b678aa3f72
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 57cc68c8f09c83dc86874d4ac11c44307bf6a0d55b5bf3c437d6c3949a5ffdb177241ec1cf27deee73cd71cf6d8b94ef42c03dc2ceca27a9b03b7e8cdf8b7dff
|
|
7
|
+
data.tar.gz: 96e7e62faf4ad7660e733a223f30339369901cdff5f21ac27445108159afd8bc949507adaab55a8ced1851bc84f637ad4a17d44b01c3bcc835cf5596689b83ad
|
data/ChangeLog
CHANGED
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
|
|
|
@@ -1949,7 +1949,7 @@ module Meteor
|
|
|
1949
1949
|
#
|
|
1950
1950
|
def flash
|
|
1951
1951
|
if element_hook
|
|
1952
|
-
if element_hook.origin.
|
|
1952
|
+
if element_hook.origin.childless
|
|
1953
1953
|
if element_hook.origin.cx
|
|
1954
1954
|
# @root.hookDocument << '<!-- @' << @root.element.name << ' '
|
|
1955
1955
|
# @root.hookDocument << @root.element.attributes << '-->'
|
|
@@ -2025,13 +2025,13 @@ module Meteor
|
|
|
2025
2025
|
return unless elm.normal
|
|
2026
2026
|
|
|
2027
2027
|
# case of normal element (内容あり要素の場合)
|
|
2028
|
-
self.
|
|
2028
|
+
self.childless = elm
|
|
2029
2029
|
|
|
2030
2030
|
pif2 = self.class.new(self)
|
|
2031
2031
|
|
|
2032
2032
|
@elm_ = elm.clone(pif2)
|
|
2033
2033
|
|
|
2034
|
-
pif2.root_element.document = if !elm.
|
|
2034
|
+
pif2.root_element.document = if !elm.childless
|
|
2035
2035
|
String.new(elm.mixed_content)
|
|
2036
2036
|
else
|
|
2037
2037
|
String.new(elm.document)
|
|
@@ -2044,13 +2044,13 @@ module Meteor
|
|
|
2044
2044
|
|
|
2045
2045
|
# private :shadow
|
|
2046
2046
|
|
|
2047
|
-
def
|
|
2048
|
-
@res =
|
|
2047
|
+
def childless=(elm)
|
|
2048
|
+
@res = RE_CHILDLESS.match(elm.mixed_content)
|
|
2049
2049
|
|
|
2050
|
-
elm.
|
|
2050
|
+
elm.childless = true if @res
|
|
2051
2051
|
end
|
|
2052
2052
|
|
|
2053
|
-
private :
|
|
2053
|
+
private :childless=
|
|
2054
2054
|
|
|
2055
2055
|
def match?(regex, str)
|
|
2056
2056
|
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.36
|
|
41
41
|
#
|
|
42
42
|
|
|
43
43
|
module Meteor
|
|
44
|
-
VERSION = '0.9.
|
|
44
|
+
VERSION = '0.9.36'
|
|
45
45
|
|
|
46
46
|
# require 'fileutils'
|
|
47
47
|
|