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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0f2bbd707164b48645ffb1da10edc17905ba5f538101e22d24349d14b02cf818
4
- data.tar.gz: 6d4c94a82d5334520187aa73c3005a33f9bfcc61395cd6f381dbdc8f36b51ae8
3
+ metadata.gz: fd24e160dd8ebd42f87b6305122d0dd287d96b3c44b2ab3c16a17170b967ae6f
4
+ data.tar.gz: ef330abcca5a835e3e8371688bd28638895e54845cb1c0137db17ee69257ec45
5
5
  SHA512:
6
- metadata.gz: 3b7f7375cc3f061f5da1e20045cf18073fe7ea1ef6ec96c72d909e61ec604c335644b72aa2bcbcf0cb1c48ab8b66fd29277a7cedc7ee5ff9f30d2c4c326a0861
7
- data.tar.gz: b5f8bda1b370990c5fefea263f258c6e66aa514718802d10d81b0fa2d508fafde03d61007064f93aa6a2ad089cd965d1d75d3492ed45c3a30055c4a310506f37
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- meteor (0.9.35)
4
+ meteor (0.9.37)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -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
- RE_NON_NEST = Regexp.new('\\A[^<>]*\\Z')
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
- # psrse document (ドキュメントを解析する)
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.non_nest
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.non_nest = elm
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.non_nest
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 non_nest=(elm)
2048
- @res = RE_NON_NEST.match(elm.mixed_content)
2048
+ def childless=(elm)
2049
+ @res = RE_CHILDLESS.match(elm.mixed_content)
2049
2050
 
2050
- elm.non_nest = true if @res
2051
+ elm.childless = true if @res
2051
2052
  end
2052
2053
 
2053
- private :non_nest=
2054
+ private :childless=
2054
2055
 
2055
2056
  def match?(regex, str)
2056
2057
  case regex
@@ -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] non_nest
25
- # @return [true,false] child non-nest flag (非入れ子フラグ)
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, :non_nest,
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 non_nest
50
- alias mono= non_nest=
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
- # @non_nest = false
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
- @non_nest = elm.non_nest
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.35
40
+ # @version 0.9.37
41
41
  #
42
42
 
43
43
  module Meteor
44
- VERSION = '0.9.35'
44
+ VERSION = '0.9.37'
45
45
 
46
46
  # require 'fileutils'
47
47
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: meteor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.35
4
+ version: 0.9.37
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yasumasa Ashida