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 +4 -4
- data/ChangeLog +5 -1
- data/Gemfile.lock +1 -1
- data/lib/meteor/core/kernel.rb +4 -4
- data/lib/meteor/elements.rb +2 -2
- data/lib/meteor/ml/html4/parser_impl.rb +1 -1
- data/lib/meteor/ml/xhtml/parser_impl.rb +3 -3
- data/lib/meteor/ml/xhtml4/parser_impl.rb +2 -2
- data/lib/meteor/parsers.rb +5 -5
- 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: a5cd092814ce42dc2c43a909cdaba66fdade6e6c843478ac090aac5a2d4f487e
|
|
4
|
+
data.tar.gz: f48b7cb7e1e159bd6f94d77a7140219a7f5e323812bd072a8368261fc3459200
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '0689acb2f048912e05a831f94977c45239c5b35cfca707c2eaf8313956452fdc397d897e93ff7005e4944815145c13e77747c90af029d5d16985de43890c9944'
|
|
7
|
+
data.tar.gz: 850cbdc875e5845b5cd1bd424b27759d2e2ee4fb3515c86019234940371ee147f2e40ff8a3982460f195b963e9ae0b1137e0ad595919c863461861c9a8bdc19d
|
data/ChangeLog
CHANGED
data/Gemfile.lock
CHANGED
data/lib/meteor/core/kernel.rb
CHANGED
|
@@ -278,7 +278,7 @@ module Meteor
|
|
|
278
278
|
# @return [Meteor::Element] element(要素)
|
|
279
279
|
#
|
|
280
280
|
def element_1(name)
|
|
281
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1898
|
+
quote_name(name)
|
|
1899
1899
|
@_id = Regexp.quote(id)
|
|
1900
1900
|
|
|
1901
|
-
# CX tag search pattern
|
|
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-->"
|
data/lib/meteor/elements.rb
CHANGED
|
@@ -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 [
|
|
19
|
-
# @option @deprecated opts [
|
|
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
|
|
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=\"[^\"]*\"$"
|
data/lib/meteor/parsers.rb
CHANGED
|
@@ -6,7 +6,7 @@ module Meteor
|
|
|
6
6
|
# Parser Factory Class (パーサ・ファクトリ クラス)
|
|
7
7
|
#
|
|
8
8
|
# @!attribute [rw] type
|
|
9
|
-
# @return [
|
|
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 [
|
|
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 [
|
|
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 [
|
|
113
|
-
# @option @deprecated opts [
|
|
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.
|
|
39
|
+
# @version 0.9.19
|
|
40
40
|
#
|
|
41
41
|
|
|
42
42
|
module Meteor
|
|
43
|
-
VERSION = "0.9.
|
|
43
|
+
VERSION = "0.9.19"
|
|
44
44
|
|
|
45
45
|
# require 'fileutils'
|
|
46
46
|
|