nokolexbor 0.6.2-arm64-darwin → 0.6.4-arm64-darwin

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: 707ed28257eaf335da8cdf2087bf9ac08484b49cb662da433ecfdce2b41304bc
4
- data.tar.gz: 4c67ffe4a9bf19d02539d9aa6995878d6955a57458f653af11ec203031ecd626
3
+ metadata.gz: ab2780f0b8510149ff9b57d9e84ce86a26cfbc12ee35aa8441cd73c3798c0023
4
+ data.tar.gz: 73cfea2dec0d1149ce98bfcc32fdc99c67f38deb805e2548ab58776e742ccc0f
5
5
  SHA512:
6
- metadata.gz: 58e4b385a23722e2682325536f99502940a58f41907a8a700884e6d6ba19c6a79b121055f32b693b21c57498c6cbbebb9335547e52375b0f02b49b532d5d773a
7
- data.tar.gz: 58b4dacaf41a2a2bb1cd8b30f1d1ddb21346cfbef2603860973877298c444edf89d19ce693c66bf19f705459746821ebb88049717fbc01d3d693f3ef57bd1596
6
+ metadata.gz: 1d942125f35f37e2f99bdad6842e2decd92918747ec70d62f94fbf05d5ebd7744c98f5ca6a1af265c411785168df4441f175f4a42a78d735ff56449b8ec8ef59
7
+ data.tar.gz: f4729635233073a3babaa67cee97109bec74a02566b502c5c0a035a6a1f9ae272f5a2311ffde792265f7992f37447fe6e612567db13b7fd74119c7f8c8da5e90
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -11,7 +11,13 @@ module Nokolexbor
11
11
  # @return [Document]
12
12
  def self.new(document, list = [])
13
13
  obj = allocate
14
- obj.instance_variable_set(:@document, document)
14
+ if document.is_a?(Document) || document.nil?
15
+ obj.instance_variable_set(:@document, document)
16
+ elsif document.is_a?(Node)
17
+ obj.instance_variable_set(:@document, document.document)
18
+ else
19
+ raise ArgumentError, "Expected a Document or Node, got #{document.class}"
20
+ end
15
21
  list.each { |x| obj << x }
16
22
  yield obj if block_given?
17
23
  obj
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Nokolexbor
4
- VERSION = '0.6.2'
4
+ VERSION = '0.6.4'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nokolexbor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.4
5
5
  platform: arm64-darwin
6
6
  authors:
7
7
  - Yicheng Zhou
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-05-13 00:00:00.000000000 Z
11
+ date: 2026-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake-compiler
@@ -46,7 +46,6 @@ extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
48
  - lib/nokolexbor.rb
49
- - lib/nokolexbor/2.6/nokolexbor.bundle
50
49
  - lib/nokolexbor/2.7/nokolexbor.bundle
51
50
  - lib/nokolexbor/3.0/nokolexbor.bundle
52
51
  - lib/nokolexbor/3.1/nokolexbor.bundle
@@ -72,7 +71,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
72
71
  requirements:
73
72
  - - ">="
74
73
  - !ruby/object:Gem::Version
75
- version: '2.6'
74
+ version: '2.7'
76
75
  - - "<"
77
76
  - !ruby/object:Gem::Version
78
77
  version: 3.5.dev
Binary file