dynarex 1.5.2 → 1.5.3
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.tar.gz.sig +0 -0
- data/lib/dynarex.rb +4 -4
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fed126f8cff64bc94808a7d935072d24fe7740b9
|
|
4
|
+
data.tar.gz: fc5332241df7998a9401b4b9f3872d06ee2191e9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f5d85136f5167762aa98eccbdc6476c385f098bcc79c011c79954f7f0f4bc15a938abfee5f58aa0a28c80fe2415176cfce3c535b78a1d4ed2b01d11265715bf2
|
|
7
|
+
data.tar.gz: 8dae3fd55ad52ca730fba3078ba1f316d8b3595469f1e1bb74d3a8e0f033db7005a2611d04cff7ffcab4accdffd143acd44b4d0a41cc31ddad1a039d3477ab55
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/lib/dynarex.rb
CHANGED
|
@@ -237,7 +237,8 @@ EOF
|
|
|
237
237
|
|
|
238
238
|
header + "\n--+\n" + out.text
|
|
239
239
|
elsif self.summary[:rawdoc_type] == 'sectionx' then
|
|
240
|
-
|
|
240
|
+
|
|
241
|
+
a = (self.fields - [:uid, 'uid']).map do |field|
|
|
241
242
|
"<xsl:if test=\"%s != ''\">
|
|
242
243
|
<xsl:text>\n</xsl:text><xsl:value-of select='%s'/>
|
|
243
244
|
</xsl:if>" % ([field]*2)
|
|
@@ -246,6 +247,7 @@ EOF
|
|
|
246
247
|
xslt_format = a.join
|
|
247
248
|
|
|
248
249
|
xsl_buffer.sub!(/\[!regex_values\]/, xslt_format)
|
|
250
|
+
File.write '/tmp/liveblog.xsl', xsl_buffer
|
|
249
251
|
xslt = Nokogiri::XSLT(xsl_buffer)
|
|
250
252
|
out = xslt.transform(Nokogiri::XML(@doc.to_s))
|
|
251
253
|
|
|
@@ -895,9 +897,7 @@ EOF
|
|
|
895
897
|
dynarex_new(s)
|
|
896
898
|
|
|
897
899
|
elsif s[/^https?:\/\//] then # url
|
|
898
|
-
|
|
899
|
-
buffer = Kernel.open(s, 'UserAgent' => 'Dynarex-Reader',\
|
|
900
|
-
http_basic_authentication: [@opt[:username], @opt[:password]]).read
|
|
900
|
+
buffer, _ = RXFHelper.read s, {username: @opt[:username], password: @opt[:password]}
|
|
901
901
|
else # local file
|
|
902
902
|
@local_filepath = s
|
|
903
903
|
raise DynarexException, 'file not found: ' + s unless File.exists? s
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dynarex
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.5.
|
|
4
|
+
version: 1.5.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Robertson
|
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
|
31
31
|
zafTuKRozNy5wCw7Z32VaDGcJ+yTPq73CrcPrNyaoxqGfU0qNsh6oGvwrq4Q1k4j
|
|
32
32
|
Pz2GWE7KigXTBg==
|
|
33
33
|
-----END CERTIFICATE-----
|
|
34
|
-
date: 2015-03-
|
|
34
|
+
date: 2015-03-14 00:00:00.000000000 Z
|
|
35
35
|
dependencies:
|
|
36
36
|
- !ruby/object:Gem::Dependency
|
|
37
37
|
name: dynarex-import
|
metadata.gz.sig
CHANGED
|
Binary file
|