rexslt 0.6.9 → 0.6.10

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
  SHA1:
3
- metadata.gz: 69797514b98a7984bc4175670b6ffc7d7863557e
4
- data.tar.gz: d62aa717f191ad2bc16998f7c388f668e6853e96
3
+ metadata.gz: 49609e823832f229b9b98ebf10d1ebb0d6251546
4
+ data.tar.gz: a67bcabcfbfa2695f19cf0fdff086cbc19aa292a
5
5
  SHA512:
6
- metadata.gz: 7efcdd6aad9ff17aac7e7aa98273161cd5c5df715e7ac0ca5c7e49b7e63149d9c449f1849329de7c2d39173429b90762adacc2e548f721f726430ce016de353a
7
- data.tar.gz: 94d967daded356dedf56eeb4b59b8c8a424eaf293de2d96f8fce0395b64d65cce2415b59be4f1c67694dcc87c59fcefc40b153f6607814ad8a5c2e92cf037490
6
+ metadata.gz: 1306b786dfba5a16014f07f9650a8a74e424aa54f7439dec75c0cf3bbc1e29d2585cfdb863d5a3106ebf53278bb777514126210cd111f90fd9f20a6e489926d4
7
+ data.tar.gz: 4b9dab46ea711da05a0ecf2d81e07a7468822f34e8a398376cc37ba25720f182664a0f612bdf3591a1b2f7e512f02c000e64d6584935f4b66154a12ca39a6434
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -8,6 +8,7 @@ require 'rxfhelper'
8
8
 
9
9
  # modifications:
10
10
 
11
+ # 19-Jan-2018: feature: Implemented Rexslt#to_xml which returns pretty XML
11
12
  # 16-Sep-2017: improvement: all predicates in an xsl:choose
12
13
  # condition now must be true
13
14
  # 15-Sep-2017: feature: Implemented xsl_call_template
@@ -76,12 +77,14 @@ class Rexslt
76
77
  end
77
78
 
78
79
  def to_s(options={})
79
- @doc.to_s(@options.merge(options)).sub('<root>','').sub(/<\/root>$/m,'')
80
+ @doc.to_s(@options.merge(options)).sub(/<root>\n/,'').sub(/<\/root>$/m,'')
80
81
  end
81
82
 
82
83
  def to_doc(); @doc; end
83
84
 
84
- alias to_xml to_s
85
+ def to_xml()
86
+ @doc.root.xml(pretty: true).sub(/<root>\n/,'').sub(/<\/root>$/m,'')
87
+ end
85
88
 
86
89
  private
87
90
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rexslt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.9
4
+ version: 0.6.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,7 +31,7 @@ cert_chain:
31
31
  f4Fi5ORmK9ccbijkIGmH2JdFYi07Fax/6a8TgcpbSrICHncFAvvPo8hxuUR+aHvg
32
32
  wux0hu0gdmk8nA==
33
33
  -----END CERTIFICATE-----
34
- date: 2017-09-16 00:00:00.000000000 Z
34
+ date: 2018-01-19 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rxfhelper
@@ -42,7 +42,7 @@ dependencies:
42
42
  version: '0.4'
43
43
  - - ">="
44
44
  - !ruby/object:Gem::Version
45
- version: 0.4.2
45
+ version: 0.4.3
46
46
  type: :runtime
47
47
  prerelease: false
48
48
  version_requirements: !ruby/object:Gem::Requirement
@@ -52,7 +52,7 @@ dependencies:
52
52
  version: '0.4'
53
53
  - - ">="
54
54
  - !ruby/object:Gem::Version
55
- version: 0.4.2
55
+ version: 0.4.3
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: rexle
58
58
  requirement: !ruby/object:Gem::Requirement
@@ -62,7 +62,7 @@ dependencies:
62
62
  version: '1.4'
63
63
  - - ">="
64
64
  - !ruby/object:Gem::Version
65
- version: 1.4.9
65
+ version: 1.4.12
66
66
  type: :runtime
67
67
  prerelease: false
68
68
  version_requirements: !ruby/object:Gem::Requirement
@@ -72,7 +72,7 @@ dependencies:
72
72
  version: '1.4'
73
73
  - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: 1.4.9
75
+ version: 1.4.12
76
76
  description:
77
77
  email: james@jamesrobertson.eu
78
78
  executables: []
@@ -100,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
100
100
  version: '0'
101
101
  requirements: []
102
102
  rubyforge_project:
103
- rubygems_version: 2.6.8
103
+ rubygems_version: 2.6.13
104
104
  signing_key:
105
105
  specification_version: 4
106
106
  summary: Rexslt is an XSLT processor written purely in Ruby
metadata.gz.sig CHANGED
Binary file