meteor 0.9.18 → 0.9.19

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: ea632b32536a814320a44110909a51a869dc09a9546d55307c8ca6e22e1e12ec
4
- data.tar.gz: 2e5be17d0c3654208400db5731f389cb67fe9b616c1004965f820757c8d9a03b
3
+ metadata.gz: a5cd092814ce42dc2c43a909cdaba66fdade6e6c843478ac090aac5a2d4f487e
4
+ data.tar.gz: f48b7cb7e1e159bd6f94d77a7140219a7f5e323812bd072a8368261fc3459200
5
5
  SHA512:
6
- metadata.gz: 573c2429e3de96abd5551c92cbd14ebf15ebf5b87a9edf86559c3905d1701dc9a094ab86c2a72af52ab1ff17f367c57832560df2a53e9a4a5e15166113cebe13
7
- data.tar.gz: 32874256cd55783e984614448088ecc8abd05fbc638cd718ca2e9a8114a453dec708f3f03dfd915f4157142a266f76ab88ff9a0f9c4bf37b8c2da021e8065965
6
+ metadata.gz: '0689acb2f048912e05a831f94977c45239c5b35cfca707c2eaf8313956452fdc397d897e93ff7005e4944815145c13e77747c90af029d5d16985de43890c9944'
7
+ data.tar.gz: 850cbdc875e5845b5cd1bd424b27759d2e2ee4fb3515c86019234940371ee147f2e40ff8a3982460f195b963e9ae0b1137e0ad595919c863461861c9a8bdc19d
data/ChangeLog CHANGED
@@ -1,4 +1,8 @@
1
- 0.9.18 / 2026-06-20 Yasumasa Ashida <ys.ashida@gmail.com>
1
+ == 0.9.19 / 2026-06-20 Yasumasa Ashida <ys.ashida@gmail.com>
2
+
3
+ * Refactoring
4
+
5
+ == 0.9.18 / 2026-06-20 Yasumasa Ashida <ys.ashida@gmail.com>
2
6
 
3
7
  * Fixnum → Integer
4
8
  * Refactoring
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- meteor (0.9.17)
4
+ meteor (0.9.19)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -278,7 +278,7 @@ module Meteor
278
278
  # @return [Meteor::Element] element(要素)
279
279
  #
280
280
  def element_1(name)
281
- @_name = Regexp.quote(name)
281
+ quote_name(name)
282
282
 
283
283
  # element search pattern (要素検索用パターン)
284
284
  @pattern_cc = "<#{@_name}(|\\s[^<>]*)\\/>|<#{@_name}((?:|\\s[^<>]*))>(((?!(#{@_name}[^<>]*>)).)*)<\\/#{@_name}>"
@@ -877,7 +877,7 @@ module Meteor
877
877
  private :element_5
878
878
 
879
879
  def quote_element_5(name, attr_name1, attr_value1, attr_name2, attr_value2)
880
- @_name = Regexp.quote(name)
880
+ quote_name(name)
881
881
  @_attr_name1 = Regexp.quote(attr_name1)
882
882
  @_attr_name2 = Regexp.quote(attr_name2)
883
883
  @_attr_value1 = Regexp.quote(attr_value1)
@@ -1895,10 +1895,10 @@ module Meteor
1895
1895
  # @return [Meteor::Element] element (要素)
1896
1896
  #
1897
1897
  def cxtag_2(name, id)
1898
- @_name = Regexp.quote(name)
1898
+ quote_name(name)
1899
1899
  @_id = Regexp.quote(id)
1900
1900
 
1901
- # CX tag search pattern (CXタグ検索用パターン)
1901
+ # CX tag search pattern (CXタグ検索用パターン)
1902
1902
  # @pattern_cc = String.new('') << "<!--\\s@" << @_name << '\\s([^<>]*id="'
1903
1903
  # @pattern_cc << id << '"[^<>]*)-->(((?!(<!--\\s/@' << @_name << ")).)*)<!--\\s/@" << @_name << "\\s-->"
1904
1904
  # @pattern_cc = "<!--\\s@#{tag}\\s([^<>]*id=\"#{id}\"[^<>]*)-->(((?!(<!--\\s\\/@#{tag})).)*)<!--\\s\\/@#{tag}\\s-->"
@@ -15,8 +15,8 @@ module Meteor
15
15
  # @option @deprecated opts [String] :base_dir root directory (基準ディレクトリ)
16
16
  # @option opts [String] :enc default character encoding (デフォルト文字エンコーディング)
17
17
  # @option @deprecated opts [String] :base_enc default character encoding (デフォルト文字エンコーディング)
18
- # @option opts [FixNum,Symbol] :type default type of parser (デフォルトのパーサ・タイプ)
19
- # @option @deprecated opts [FixNum | Symbol] :base_type default type of parser (デフォルトのパーサ・タイプ)
18
+ # @option opts [Integer,Symbol] :type default type of parser (デフォルトのパーサ・タイプ)
19
+ # @option @deprecated opts [Integer | Symbol] :base_type default type of parser (デフォルトのパーサ・タイプ)
20
20
  #
21
21
  def self.options=(opts)
22
22
  @@pf.options = opts
@@ -23,7 +23,7 @@ module Meteor
23
23
  #[Array] non-nestable elements (入れ子にできない要素)
24
24
  @@match_tag_sng = ["texarea", "select", "option", "form", "fieldset"]
25
25
 
26
- #[Array] boolean elements (論理値で指定する属性)
26
+ #[Array] boolean attributes (論理値で指定する属性)
27
27
  @@attr_logic = ["disabled", "readonly", "checked", "selected", "multiple"]
28
28
 
29
29
  # DISABLE_ELEMENT = "input|textarea|select|optgroup"
@@ -8,13 +8,13 @@ module Meteor
8
8
  # XHTML parser (XHTMLパーサ)
9
9
  #
10
10
  class ParserImpl < Meteor::Ml::Xhtml4::ParserImpl
11
- #[Array] 論理値で指定する属性
11
+ #[Array] boolean attributes (論理値で指定する属性)
12
12
  ATTR_LOGIC = ["disabled", "readonly", "checked", "selected", "multiple", "required"]
13
13
 
14
- #[Array] disabled属性のある要素
14
+ #[Array] elements with the disabled attribute (disabled属性のある要素)
15
15
  DISABLE_ELEMENT = ["input", "textarea", "select", "optgroup", "fieldset"]
16
16
 
17
- #[Array] required属性のある要素
17
+ #[Array] elements with a readonly attribute (required属性のある要素)
18
18
  REQUIRE_ELEMENT = ["input", "textarea"]
19
19
 
20
20
  REQUIRED_M = "\\srequired=\"[^\"]*\"\\s|\\srequired=\"[^\"]*\"$"
@@ -17,14 +17,14 @@ module Meteor
17
17
  #[Array] 改行を<br/>に変換する必要のない要素
18
18
  @@match_tag_2 = ["textarea", "option", "pre"]
19
19
 
20
- #[Array] 論理値で指定する属性
20
+ #[Array] boolean attributes (論理値で指定する属性)
21
21
  @@attr_logic = ["disabled", "readonly", "checked", "selected", "multiple"]
22
22
 
23
23
  # DISABLE_ELEMENT = "input|textarea|select|optgroup"
24
24
  #[Array] element with disablled attribute (disabled属性のある要素)
25
25
  DISABLE_ELEMENT = ["input", "textarea", "select", "optgroup"]
26
26
  # READONLY_TYPE = "text|password"
27
- #[Array] readonly属性のあるinput要素のタイプ
27
+ #[Array] the type of an input element with a readonly attribute (readonly属性のあるinput要素のタイプ)
28
28
  READONLY_TYPE = ["text", "password"]
29
29
 
30
30
  SELECTED_M = "\\sselected=\"[^\"]*\"\\s|\\sselected=\"[^\"]*\"$"
@@ -6,7 +6,7 @@ module Meteor
6
6
  # Parser Factory Class (パーサ・ファクトリ クラス)
7
7
  #
8
8
  # @!attribute [rw] type
9
- # @return [FixNum,Symbol] default type of parser (デフォルトのパーサ・タイプ)
9
+ # @return [Integer,Symbol] default type of parser (デフォルトのパーサ・タイプ)
10
10
  # @!attribute [rw] root
11
11
  # @return [String] root root directory (基準ディレクトリ)
12
12
  # @!attribute [rw] enc
@@ -36,7 +36,7 @@ module Meteor
36
36
  # @param [String] root root directory (基準ディレクトリ)
37
37
  # @param [String] enc default character encoding (デフォルトエンコーディング)
38
38
  # @overload initialize(type, root, enc)
39
- # @param [FixNum,Symbol] type default type of parser (デフォルトのパーサ・タイプ)
39
+ # @param [Integer,Symbol] type default type of parser (デフォルトのパーサ・タイプ)
40
40
  # @param [String] root root directory (基準ディレクトリ)
41
41
  # @param [String] enc default character encoding (デフォルト文字エンコーディング)
42
42
  #
@@ -89,7 +89,7 @@ module Meteor
89
89
 
90
90
  #
91
91
  # イニシャライザ
92
- # @param [FixNum,Symbol] type default type of parser (デフォルトのパーサ・タイプ)
92
+ # @param [Integer,Symbol] type default type of parser (デフォルトのパーサ・タイプ)
93
93
  # @param [String] root root directory (基準ディレクトリ)
94
94
  # @param [String] enc default character encoding (デフォルト文字エンコーディング)
95
95
  #
@@ -109,8 +109,8 @@ module Meteor
109
109
  # @option @deprecated opts [String] :base_dir root directory (基準ディレクトリ)
110
110
  # @option opts [String] :enc default character encoding (デフォルト文字エンコーディング)
111
111
  # @option @deprecated opts [String] :base_enc default character encoding (デフォルト文字エンコーディング)
112
- # @option opts [FixNum,Symbol] :type default type of parser (デフォルトのパーサ・タイプ)
113
- # @option @deprecated opts [FixNum | Symbol] :base_type default type of parser (デフォルトのパーサ・タイプ)
112
+ # @option opts [Integer,Symbol] :type default type of parser (デフォルトのパーサ・タイプ)
113
+ # @option @deprecated opts [Integer | Symbol] :base_type default type of parser (デフォルトのパーサ・タイプ)
114
114
  #
115
115
  def options=(opts)
116
116
  if opts.kind_of?(Hash)
data/lib/meteor.rb CHANGED
@@ -36,11 +36,11 @@ require "meteor/ml/xml/parser_impl"
36
36
  # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
37
37
  #
38
38
  # @author Yasumasa Ashida
39
- # @version 0.9.18
39
+ # @version 0.9.19
40
40
  #
41
41
 
42
42
  module Meteor
43
- VERSION = "0.9.18"
43
+ VERSION = "0.9.19"
44
44
 
45
45
  # require 'fileutils'
46
46
 
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.18
4
+ version: 0.9.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yasumasa Ashida