kjdotxml 0.2.0 → 0.2.1
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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/kjdotxml.rb +12 -1
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 690ac5f8aa188410ddca62ae15087b3b5fc1dd3f04591e2f3d4b632e89160197
|
|
4
|
+
data.tar.gz: 3ce40599596b313c5c39860e1b2857a3856ff58412d9b57447447b357a18d793
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4e91a9d1f12fd6eeb4c8bdd149e78b97b529c7d01fbcf90760aa4bc1e6864385972c0e1e3f3f2f8ab4152c68d5b6ec2ef7829c0be1ad7495dbe14d17d2f8f427
|
|
7
|
+
data.tar.gz: 998e8852ea26773c3ee40d72ef1acca782e64a8c162d9ab47479c001b0c8351f9bb98a9bba64f1d342e944b2a6900d2ec1867069489c46411802829decf07312
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/lib/kjdotxml.rb
CHANGED
|
@@ -95,7 +95,8 @@ class KjDotXml
|
|
|
95
95
|
def book(s)
|
|
96
96
|
|
|
97
97
|
filename = s.downcase.gsub(/\s/,'-') + '.xml'
|
|
98
|
-
filepath = File.join(
|
|
98
|
+
filepath = File.join('/home/james/jamesrobertson.eu/rorb/r/ruby/kjdotxml', filename)
|
|
99
|
+
#filepath = File.join(File.dirname(__FILE__), '..', 'xml', filename)
|
|
99
100
|
|
|
100
101
|
if File.exists? filepath then
|
|
101
102
|
|
|
@@ -119,6 +120,16 @@ class KjDotXml
|
|
|
119
120
|
|
|
120
121
|
|
|
121
122
|
end
|
|
123
|
+
|
|
124
|
+
def text(s)
|
|
125
|
+
|
|
126
|
+
s.strip.lines.map do |line|
|
|
127
|
+
|
|
128
|
+
[line, verses(line.chomp)]
|
|
129
|
+
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
end
|
|
122
133
|
|
|
123
134
|
def verses(s)
|
|
124
135
|
|
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: kjdotxml
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Robertson
|
|
@@ -36,7 +36,7 @@ cert_chain:
|
|
|
36
36
|
OXTrn4UmSRUyQHWNI24lThlPaWZJ6ULj4BtuALPaaM/cWYRhRaE3NiLF/SFiyzGg
|
|
37
37
|
JYoHu6HVj1QoC6XZVMnuByx8sBhH1e/kRkk=
|
|
38
38
|
-----END CERTIFICATE-----
|
|
39
|
-
date: 2022-11-
|
|
39
|
+
date: 2022-11-03 00:00:00.000000000 Z
|
|
40
40
|
dependencies:
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: rexle
|
metadata.gz.sig
CHANGED
|
Binary file
|