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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: de9d87a9b06679cd88efa3fade55b08bf75fd89c
4
- data.tar.gz: 1e42a9512810cc586cc01b777e403d4fb514d6e0
3
+ metadata.gz: fed126f8cff64bc94808a7d935072d24fe7740b9
4
+ data.tar.gz: fc5332241df7998a9401b4b9f3872d06ee2191e9
5
5
  SHA512:
6
- metadata.gz: b0f2708578f17ff18951d4c05f0662bb62d60ef78dae0251915cd6d669d91ebb59ba00a23f3bfaf9d7729e7dfa7a315b11a38b8299da0ffbc017d493a6ded181
7
- data.tar.gz: 568f37333668c300b9c9a3a43f2a875c43b8d7c94fcd970924df5c57491e7175af81098e26701606baf057b7b4151da659485a3bad3e12c3ffc619838085c2f9
6
+ metadata.gz: f5d85136f5167762aa98eccbdc6476c385f098bcc79c011c79954f7f0f4bc15a938abfee5f58aa0a28c80fe2415176cfce3c535b78a1d4ed2b01d11265715bf2
7
+ data.tar.gz: 8dae3fd55ad52ca730fba3078ba1f316d8b3595469f1e1bb74d3a8e0f033db7005a2611d04cff7ffcab4accdffd143acd44b4d0a41cc31ddad1a039d3477ab55
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -237,7 +237,8 @@ EOF
237
237
 
238
238
  header + "\n--+\n" + out.text
239
239
  elsif self.summary[:rawdoc_type] == 'sectionx' then
240
- a = self.fields.map do |field|
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.2
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-12 00:00:00.000000000 Z
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