meteor 0.9.27 → 0.9.29

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: 767fbc8cbdae6e5e7b833b4618639e278d8ed48d9983a629a4d766e8a2b83bc9
4
- data.tar.gz: a99c9054bf591fbd5853ac3a4e0fc5d172841fc239941b9dba0425a39b9c922c
3
+ metadata.gz: 2e7bbbbb46bd4185313d53f8417e93bccfe236b093d40c10a73cd08d988b04da
4
+ data.tar.gz: 703926ee08938f9d6848eb1b63fbd00a5158ebc30e05d8a13318434ec827d268
5
5
  SHA512:
6
- metadata.gz: fb1c32cfdc1445b8e2be9270f5e0621806dd5941da921969506adda5eaeb1093e9c4b8f861ab387928ba284e1ae790c2b812089b3fa56fb3ff2f53658104a689
7
- data.tar.gz: 1c137770bb6bcb351154798916c251097b2a862e78e7b5d236bbc47fa2aec9fb7f9eaacf2a34a25b7bd8c2fe8fef3d2e9e638bb00aa5f9b3f45a17a595596127
6
+ metadata.gz: 2b7a77a7686b6d458a1c75f74ccbf38872bb9ef7fbcef394ed0867f87bdb01ee82a2ccb234ddc741428160d274a0325c35b98b2b342aa31f0036eedc6b86dfb7
7
+ data.tar.gz: b919cf8ffa6858169d5b08b65e6ba72408d71d9f7d05137877cffc295f78a14c1d57e57e47f9f8209e34636e8b48600e400d41904e22f3d9d0e466b0e9b7f9b0
data/.gitignore CHANGED
@@ -4,4 +4,6 @@
4
4
  .ruby-version
5
5
  .bundle
6
6
  .yardoc
7
- doc
7
+ doc
8
+
9
+ vendor/bundle
data/ChangeLog CHANGED
@@ -1,3 +1,11 @@
1
+ == 0.9.29 / 2026-07-02 Yasumasa Ashida <ys.ashida@gmail.com>
2
+
3
+ * Refactor Meteor::RootElement
4
+
5
+ == 0.9.28 / 2026-07-01 Yasumasa Ashida <ys.ashida@gmail.com>
6
+
7
+ * Fix Meteor::Elements
8
+
1
9
  == 0.9.27 / 2026-06-30 Yasumasa Ashida <ys.ashida@gmail.com>
2
10
 
3
11
  * Refactoring
data/Gemfile CHANGED
@@ -2,3 +2,5 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in meteor.gemspec
4
4
  gemspec name: 'meteor'
5
+
6
+ # gem "rubocop", "~> 1.88.1"
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- meteor (0.9.27)
4
+ meteor (0.9.29)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -2068,7 +2068,7 @@ module Meteor
2068
2068
  self.document_hook <<
2069
2069
  "<!-- @#{self.element_hook.name} #{self.element_hook.attributes}-->#{self.element_hook.mixed_content}<!-- /@#{self.element_hook.name} -->"
2070
2070
 
2071
- # self.document_hook << @root.kaigyo_code << "<!-- @#{self.element_hook.name} #{self.element_hook.attributes}-->#{self.element_hook.mixed_content}<!-- /@#{self.element_hook.name} -->"
2071
+ # self.document_hook << @root.newline << "<!-- @#{self.element_hook.name} #{self.element_hook.attributes}-->#{self.element_hook.mixed_content}<!-- /@#{self.element_hook.name} -->"
2072
2072
  else
2073
2073
  # @root.hookDocument << "<" << @root.element.name
2074
2074
  # @root.hookDocument << @root.element.attributes << '>' << @root.element.mixed_content
@@ -2076,7 +2076,7 @@ module Meteor
2076
2076
  self.document_hook <<
2077
2077
  "<#{self.element_hook.name}#{self.element_hook.attributes}>#{self.element_hook.mixed_content}</#{self.element_hook.name}>"
2078
2078
 
2079
- # self.document_hook << @root.kaigyo_code << "<#{self.element_hook.name}#{self.element_hook.attributes}>#{self.element_hook.mixed_content}</#{self.element_hook.name}>"
2079
+ # self.document_hook << @root.newline << "<#{self.element_hook.name}#{self.element_hook.attributes}>#{self.element_hook.mixed_content}</#{self.element_hook.name}>"
2080
2080
  end
2081
2081
 
2082
2082
  self.element_hook = self.element_hook.origin.clone(self)
@@ -2092,7 +2092,7 @@ module Meteor
2092
2092
  self.document_hook <<
2093
2093
  "<!-- @#{self.element_hook.name} #{@_attributes}-->#{@root.document}<!-- /@#{self.element_hook.name} -->"
2094
2094
 
2095
- # self.document_hook << @root.kaigyo_code << "<!-- @#{self.element_hook.name} #{@_attributes}-->#{@root.document}<!-- /@#{self.element_hook.name} -->"
2095
+ # self.document_hook << @root.newline << "<!-- @#{self.element_hook.name} #{@_attributes}-->#{@root.document}<!-- /@#{self.element_hook.name} -->"
2096
2096
  else
2097
2097
  # @root.hookDocument << "<" << @root.element.name
2098
2098
  # @root.hookDocument << @_attributes << '>' << @root.document
@@ -2100,7 +2100,7 @@ module Meteor
2100
2100
  self.document_hook <<
2101
2101
  "<#{self.element_hook.name}#{@_attributes}>#{@root.document}</#{self.element_hook.name}>"
2102
2102
 
2103
- # self.document_hook << @root.kaigyo_code << "<#{self.element_hook.name}#{@_attributes}>#{@root.document}</#{self.element_hook.name}>"
2103
+ # self.document_hook << @root.newline << "<#{self.element_hook.name}#{@_attributes}>#{@root.document}</#{self.element_hook.name}>"
2104
2104
  end
2105
2105
 
2106
2106
  self.element_hook = self.element_hook.origin.clone(self)
@@ -2145,7 +2145,7 @@ module Meteor
2145
2145
  pif2.root_element.document = String.new(elm.document)
2146
2146
  end
2147
2147
 
2148
- pif2.root_element.kaigyo_code = elm.parser.root_element.kaigyo_code
2148
+ pif2.root_element.newline = elm.parser.root_element.newline
2149
2149
 
2150
2150
  @elm_
2151
2151
  end
@@ -2261,7 +2261,7 @@ module Meteor
2261
2261
  def br_to_newline(content)
2262
2262
  if (elm.cx || !is_match(@@match_tag_2, elm.name)) && content.include?(BR)
2263
2263
  # 「<br>」->「¥r?¥n」
2264
- content.gsub!(@@pattern_br_2, @root.kaigyo_code)
2264
+ content.gsub!(@@pattern_br_2, @root.newline)
2265
2265
  end
2266
2266
  end
2267
2267
 
@@ -79,5 +79,5 @@ module Meteor
79
79
  #
80
80
  # Elements Class (要素ファクトリ クラス)
81
81
  #
82
- Elements = Elements
82
+ ElementFactory = Elements
83
83
  end
@@ -87,7 +87,7 @@ module Meteor
87
87
  self.document_hook = String.new(ps.document_hook)
88
88
  @root.content_type = String.new(ps.root_element.content_type)
89
89
  @root.charset = ps.root_element.charset
90
- @root.kaigyo_code = ps.root_element.kaigyo_code
90
+ @root.newline = ps.root_element.newline
91
91
  end
92
92
 
93
93
  private :initialize_1
@@ -107,7 +107,7 @@ module Meteor
107
107
  self.document_hook = String.new(ps.document_hook)
108
108
  @root.content_type = String.new(ps.root_element.content_type)
109
109
  @root.charset = ps.root_element.charset
110
- @root.kaigyo_code = ps.root_element.kaigyo_code
110
+ @root.newline = ps.root_element.newline
111
111
  end
112
112
 
113
113
  private :initialize_1
@@ -171,8 +171,8 @@ module Meteor
171
171
  def analyze_newline
172
172
  for a in KAIGYO_CODE
173
173
  if @root.document.include?(a)
174
- @root.kaigyo_code = a
175
- # puts "kaigyo:" << @root.kaigyo_code
174
+ @root.newline = a
175
+ # puts "kaigyo:" << @root.newline
176
176
  end
177
177
  end
178
178
  end
@@ -63,7 +63,7 @@ module Meteor
63
63
  self.document_hook = String.new(ps.document_hook)
64
64
  @root.content_type = String.new(ps.root_element.content_type)
65
65
  @root.charset = ps.root_element.charset
66
- @root.kaigyo_code = ps.root_element.kaigyo_code
66
+ @root.newline = ps.root_element.newline
67
67
  end
68
68
 
69
69
  private :initialize_1
@@ -103,7 +103,7 @@ module Meteor
103
103
  self.document_hook = String.new(ps.document_hook)
104
104
  @root.content_type = String.new(ps.root_element.content_type)
105
105
  @root.charset = ps.root_element.charset
106
- @root.kaigyo_code = ps.root_element.kaigyo_code
106
+ @root.newline = ps.root_element.newline
107
107
  end
108
108
 
109
109
  private :initialize_1
@@ -166,7 +166,7 @@ module Meteor
166
166
  def analyze_newline
167
167
  for a in KAIGYO_CODE
168
168
  if @root.document.include?(a)
169
- @root.kaigyo_code = a
169
+ @root.newline = a
170
170
  end
171
171
  end
172
172
  end
@@ -60,7 +60,7 @@ module Meteor
60
60
  @root.document = String.new(ps.document)
61
61
  ps.document_hook = String.new(ps.document_hook)
62
62
  @root.content_type = String.new(ps.root_element.content_type)
63
- @root.kaigyo_code = ps.root_element.kaigyo_code
63
+ @root.newline = ps.root_element.newline
64
64
  end
65
65
 
66
66
  private :initialize_1
@@ -98,8 +98,8 @@ module Meteor
98
98
  def analyze_newline
99
99
  for a in KAIGYO_CODE
100
100
  if @root.document.include?(a)
101
- @root.kaigyo_code = a
102
- # puts "kaigyo:" << @root.kaigyo_code
101
+ @root.newline = a
102
+ # puts "kaigyo:" << @root.newline
103
103
  end
104
104
  end
105
105
  end
@@ -7,7 +7,7 @@ module Meteor
7
7
  #
8
8
  # @!attribute [rw] content_type
9
9
  # @return [String] content type (コンテントタイプ)
10
- # @!attribute [rw] kaigyo_code
10
+ # @!attribute [rw] newline
11
11
  # @return [String] newline (改行コード)
12
12
  # @!attribute [rw] charset
13
13
  # @return [String] charset (文字コード)
@@ -16,12 +16,15 @@ module Meteor
16
16
  #
17
17
  class RootElement < Element
18
18
  attr_accessor :content_type
19
- attr_accessor :kaigyo_code
19
+ attr_accessor :newline
20
20
  attr_accessor :charset
21
21
  attr_accessor :enc
22
22
  # attr_accessor :document #[String] document (ドキュメント)
23
23
 
24
24
  alias_method :character_encoding, :enc
25
25
  alias_method :character_encoding=, :enc=
26
+
27
+ alias_method :kaigyo_code, :newline
28
+ alias_method :kaigyo_code=, :newline=
26
29
  end
27
30
  end
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.27
39
+ # @version 0.9.29
40
40
  #
41
41
 
42
42
  module Meteor
43
- VERSION = "0.9.27"
43
+ VERSION = "0.9.29"
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.27
4
+ version: 0.9.29
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yasumasa Ashida