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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0f2bbd707164b48645ffb1da10edc17905ba5f538101e22d24349d14b02cf818
4
- data.tar.gz: 6d4c94a82d5334520187aa73c3005a33f9bfcc61395cd6f381dbdc8f36b51ae8
3
+ metadata.gz: 7c820bce827158078b9e6d222628f8158ec3869cd13a433aaa6fdbac0d15bb9b
4
+ data.tar.gz: 1f9df5b7ecf2c0bfefcc6d2ac875106c9e258c3f708528d7a80719b678aa3f72
5
5
  SHA512:
6
- metadata.gz: 3b7f7375cc3f061f5da1e20045cf18073fe7ea1ef6ec96c72d909e61ec604c335644b72aa2bcbcf0cb1c48ab8b66fd29277a7cedc7ee5ff9f30d2c4c326a0861
7
- data.tar.gz: b5f8bda1b370990c5fefea263f258c6e66aa514718802d10d81b0fa2d508fafde03d61007064f93aa6a2ad089cd965d1d75d3492ed45c3a30055c4a310506f37
6
+ metadata.gz: 57cc68c8f09c83dc86874d4ac11c44307bf6a0d55b5bf3c437d6c3949a5ffdb177241ec1cf27deee73cd71cf6d8b94ef42c03dc2ceca27a9b03b7e8cdf8b7dff
7
+ data.tar.gz: 96e7e62faf4ad7660e733a223f30339369901cdff5f21ac27445108159afd8bc949507adaab55a8ced1851bc84f637ad4a17d44b01c3bcc835cf5596689b83ad
data/ChangeLog CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.9.36 / 2026-07-08 Yasumasa Ashida <ys.ashida@gmail.com>
2
+
3
+ * Refactor Meteor::Element
4
+
1
5
  == 0.9.35 / 2026-07-07 Yasumasa Ashida <ys.ashida@gmail.com>
2
6
 
3
7
  * 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.36)
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
 
@@ -1949,7 +1949,7 @@ module Meteor
1949
1949
  #
1950
1950
  def flash
1951
1951
  if element_hook
1952
- if element_hook.origin.non_nest
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.non_nest = elm
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.non_nest
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 non_nest=(elm)
2048
- @res = RE_NON_NEST.match(elm.mixed_content)
2047
+ def childless=(elm)
2048
+ @res = RE_CHILDLESS.match(elm.mixed_content)
2049
2049
 
2050
- elm.non_nest = true if @res
2050
+ elm.childless = true if @res
2051
2051
  end
2052
2052
 
2053
- private :non_nest=
2053
+ private :childless=
2054
2054
 
2055
2055
  def match?(regex, str)
2056
2056
  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.36
41
41
  #
42
42
 
43
43
  module Meteor
44
- VERSION = '0.9.35'
44
+ VERSION = '0.9.36'
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.36
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yasumasa Ashida