nokogiri_schematron_builder 0.1.1 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 35ab25309264d992dcaeb53e7ba9e5d464a38c48cea1c34f1516ea21e97529e9
|
4
|
+
data.tar.gz: b2a4b40c93cda3d52c9e7e740ad2b13489f89efbc14077322881fe13fa2f3556
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fce61ec49eb9e2e95725a04a366c4a2cd3dbb5123f02ee289f1253f7dc0c58170e03aeeb91f5ce16ff918c049b969c6dbfaa3d05053375d5595f6d1d5c52a695
|
7
|
+
data.tar.gz: 308ec3df6cc0cf780209b7b4a9509a141cc53b585b125d642519978a715395b01479e377a1135c4561399b06503f6924fa114c816e1570eb7ea956255eea0823
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,16 @@
|
|
2
2
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
|
5
|
+
## [0.1.3] - 2024-11-07
|
6
|
+
|
7
|
+
### Changed
|
8
|
+
- Separate positional and keyword arguments (support Ruby 3.0 and higher).
|
9
|
+
|
10
|
+
## [0.1.2] - 2021-08-30
|
11
|
+
|
12
|
+
### Changed
|
13
|
+
- Upgrade `bundler` and `rake` dependencies.
|
14
|
+
|
5
15
|
## [0.1.1] - 2019-11-07
|
6
16
|
|
7
17
|
### Added
|
data/LICENSE.txt
CHANGED
@@ -56,8 +56,8 @@ module Nokogiri
|
|
56
56
|
#
|
57
57
|
# is a descendent of this class, defines methods that are equivalent to:
|
58
58
|
#
|
59
|
-
# def name(*args, &block)
|
60
|
-
# base = DescendentOfBase.new(self, *args, &block)
|
59
|
+
# def name(*args, **options, &block)
|
60
|
+
# base = DescendentOfBase.new(self, *args, **options, &block)
|
61
61
|
# @children << base
|
62
62
|
# base
|
63
63
|
# end
|
@@ -66,8 +66,8 @@ module Nokogiri
|
|
66
66
|
# @param klass [Class] the class.
|
67
67
|
# @return [void]
|
68
68
|
def element(name, klass)
|
69
|
-
define_method(name.to_sym) do |*args, &block|
|
70
|
-
base = klass.send(:new, self, *args, &block)
|
69
|
+
define_method(name.to_sym) do |*args, **options, &block|
|
70
|
+
base = klass.send(:new, self, *args, **options, &block)
|
71
71
|
instance_variable_get(:@children) << base
|
72
72
|
base
|
73
73
|
end
|
@@ -107,8 +107,8 @@ module Nokogiri
|
|
107
107
|
#
|
108
108
|
# @return [Nokogiri::XML::Builder]
|
109
109
|
# @see https://www.rubydoc.info/github/sparklemotion/nokogiri/Nokogiri/XML/Builder#initialize-instance_method
|
110
|
-
def to_builder(*args)
|
111
|
-
::Nokogiri::XML::Builder.new(*args) do |xml|
|
110
|
+
def to_builder(*args, **options)
|
111
|
+
::Nokogiri::XML::Builder.new(*args, **options) do |xml|
|
112
112
|
build!(xml)
|
113
113
|
end
|
114
114
|
end
|
@@ -13,7 +13,7 @@ module Nokogiri
|
|
13
13
|
# @option options [String] :two_words_connector the sign or word used to join the elements in arrays with two elements.
|
14
14
|
# @option options [String] :last_word_connector the sign or word used to join the last element in arrays with three or more elements.
|
15
15
|
# @return [String] the comma-separated sentence.
|
16
|
-
def self.to_sentence(array, options
|
16
|
+
def self.to_sentence(array, **options)
|
17
17
|
case array.length
|
18
18
|
when 0
|
19
19
|
''
|
@@ -33,6 +33,6 @@ Gem::Specification.new do |spec|
|
|
33
33
|
|
34
34
|
spec.add_dependency "nokogiri"
|
35
35
|
|
36
|
-
spec.add_development_dependency "bundler", "
|
37
|
-
spec.add_development_dependency "rake", "
|
36
|
+
spec.add_development_dependency "bundler", ">= 2.2.10"
|
37
|
+
spec.add_development_dependency "rake", ">= 12.3.3"
|
38
38
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nokogiri_schematron_builder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mark Borkum
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -28,30 +28,30 @@ dependencies:
|
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 2.2.10
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 2.2.10
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 12.3.3
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 12.3.3
|
55
55
|
description: NokogiriSchematronBuilder is a Ruby library for building Schematron XML
|
56
56
|
documents using Nokogiri.
|
57
57
|
email:
|
@@ -92,7 +92,7 @@ homepage: https://github.com/pnnl/nokogiri_schematron_builder
|
|
92
92
|
licenses:
|
93
93
|
- BSD-2-Clause
|
94
94
|
metadata: {}
|
95
|
-
post_install_message:
|
95
|
+
post_install_message:
|
96
96
|
rdoc_options: []
|
97
97
|
require_paths:
|
98
98
|
- lib
|
@@ -107,9 +107,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
107
107
|
- !ruby/object:Gem::Version
|
108
108
|
version: '0'
|
109
109
|
requirements: []
|
110
|
-
|
111
|
-
|
112
|
-
signing_key:
|
110
|
+
rubygems_version: 3.5.9
|
111
|
+
signing_key:
|
113
112
|
specification_version: 4
|
114
113
|
summary: Build Schematron XML documents using Nokogiri.
|
115
114
|
test_files: []
|