nokogiri-xmlsec-instructure 0.9.7 → 0.10.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dfa21a9401b8f630dd0bb6ba65cde7267b9de2aaec6963aab2d5faf7dfa22b17
|
4
|
+
data.tar.gz: c07bb8140c43b7f494237b17d988059a8f9abf7abfb1b4af8f9423d16622a103
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f46161c2ab5f21657a1101591dea91959b0b1e5eecc2690d855ccac112c952e6768b32eda0871fc02cf7a240d1025b42b0275b003cec582818ccdd63189a58de
|
7
|
+
data.tar.gz: dcad0346917892f812e27203c162dd4515831ebf45b97b13abfb660876b4f017278232b71a40da5f3eb9c90166c010a4b75f65fffd6261b440c5fe2d3d67fd74
|
data/README.md
CHANGED
@@ -12,7 +12,11 @@ to `Nokogiri::XML::Document`.
|
|
12
12
|
|
13
13
|
Install this before attempting to install; or else it may fail (tested on CentOS 7) while trying to find -lltdl from the xmlsec1-openssl lib. I'm guessing it's a dependency. Someone else may know more.
|
14
14
|
|
15
|
+
# CentOS/RHEL
|
15
16
|
yum install libtool-ltdl-devel
|
17
|
+
|
18
|
+
# Debian/Ubuntu
|
19
|
+
apt install -y libxmlsec1-dev
|
16
20
|
|
17
21
|
Add this line to your application's Gemfile:
|
18
22
|
|
@@ -2,7 +2,7 @@
|
|
2
2
|
#include "util.h"
|
3
3
|
|
4
4
|
// declaration from Nokogiri proper
|
5
|
-
VALUE
|
5
|
+
VALUE noko_xml_node_wrap(VALUE klass, xmlNodePtr node) ;
|
6
6
|
|
7
7
|
VALUE set_id_attribute(VALUE self, VALUE rb_attr_name) {
|
8
8
|
VALUE rb_exception_result = Qnil;
|
@@ -14,7 +14,7 @@ VALUE set_id_attribute(VALUE self, VALUE rb_attr_name) {
|
|
14
14
|
xmlChar *name = NULL;
|
15
15
|
char *idName = NULL;
|
16
16
|
char *exception_attribute_arg = NULL;
|
17
|
-
|
17
|
+
|
18
18
|
resetXmlSecError();
|
19
19
|
|
20
20
|
Data_Get_Struct(self, xmlNode, node);
|
@@ -28,7 +28,7 @@ VALUE set_id_attribute(VALUE self, VALUE rb_attr_name) {
|
|
28
28
|
exception_message = "Can't find attribute to add register as id";
|
29
29
|
goto done;
|
30
30
|
}
|
31
|
-
|
31
|
+
|
32
32
|
// get the attribute (id) value
|
33
33
|
name = xmlNodeListGetString(node->doc, attr->children, 1);
|
34
34
|
if(name == NULL) {
|
@@ -37,7 +37,7 @@ VALUE set_id_attribute(VALUE self, VALUE rb_attr_name) {
|
|
37
37
|
exception_attribute_arg = idName;
|
38
38
|
goto done;
|
39
39
|
}
|
40
|
-
|
40
|
+
|
41
41
|
// check that we don't have that id already registered
|
42
42
|
tmp = xmlGetID(node->doc, name);
|
43
43
|
if(tmp != NULL) {
|
@@ -46,7 +46,7 @@ VALUE set_id_attribute(VALUE self, VALUE rb_attr_name) {
|
|
46
46
|
exception_attribute_arg = idName;
|
47
47
|
goto done;
|
48
48
|
}
|
49
|
-
|
49
|
+
|
50
50
|
// finally register id
|
51
51
|
xmlAddID(NULL, node->doc, name, attr);
|
52
52
|
|
@@ -89,7 +89,7 @@ VALUE get_id(VALUE self, VALUE rb_id)
|
|
89
89
|
Data_Get_Struct(self, xmlDoc, doc);
|
90
90
|
prop = xmlGetID(doc, (const xmlChar *)StringValueCStr(rb_id));
|
91
91
|
if (prop) {
|
92
|
-
return
|
92
|
+
return noko_xml_node_wrap(Qnil, (xmlNodePtr)prop);
|
93
93
|
} else {
|
94
94
|
return Qnil;
|
95
95
|
}
|
data/lib/xmlsec/version.rb
CHANGED
@@ -28,8 +28,8 @@ Gem::Specification.new do |spec|
|
|
28
28
|
spec.require_paths = ["lib"]
|
29
29
|
spec.extensions = %w{ext/nokogiri_ext_xmlsec/extconf.rb}
|
30
30
|
|
31
|
-
spec.add_dependency 'nokogiri'
|
32
|
-
|
31
|
+
spec.add_dependency 'nokogiri', '>= 1.11.2'
|
32
|
+
|
33
33
|
spec.add_development_dependency "bundler", "~> 2.1"
|
34
34
|
spec.add_development_dependency "byebug"
|
35
35
|
spec.add_development_dependency "rake"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nokogiri-xmlsec-instructure
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Albert J. Wong
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2021-04-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|
@@ -17,14 +17,14 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version:
|
20
|
+
version: 1.11.2
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version:
|
27
|
+
version: 1.11.2
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: bundler
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -201,7 +201,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
201
201
|
- !ruby/object:Gem::Version
|
202
202
|
version: '0'
|
203
203
|
requirements: []
|
204
|
-
rubygems_version: 3.
|
204
|
+
rubygems_version: 3.2.15
|
205
205
|
signing_key:
|
206
206
|
specification_version: 4
|
207
207
|
summary: Wrapper around http://www.aleksey.com/xmlsec to support XML encryption, decryption,
|