dynarex 1.3.1 → 1.3.2

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: fa0d5eece12ea5880782be3725fc21cb5bf9a007
4
- data.tar.gz: bb606025d9eddc4d04c15a1c7f5975fedcfcb40c
3
+ metadata.gz: 4e57888db63b06eaf03b2c1f46c299ac6102e555
4
+ data.tar.gz: 0fb08d028bc2f6e9ea2193287e8b2076186697aa
5
5
  SHA512:
6
- metadata.gz: 4a712a6f1919624033bdeac6570506e0c014527734378de5e647561a02b3fb08853daf013f0829508cffaa0802e3d17ee58520990360f6c13fb2fe0e07734202
7
- data.tar.gz: 1e103b31d4dc9e7593764857ba3eea44a51cf9eebb9b93c4499dff45d24e2176145a83c1e41702267f0ca67b859b6f145c9ee5657cc166fbe16ce092357b5e91
6
+ metadata.gz: 95c84520a2fdde6ee38e0b5feb3c1c22543af6853cfbd1fc51c7571a571c5badda5be72f0b8e4320b5ba90ab965c262d9084faaa3406285f072c6753ae0a42a5
7
+ data.tar.gz: 75fea716adb4c098a55f006b397f311395c12dc8695a1748605f5a2bc74f9ca976603a143a80e2f6ed48e50ccdba01aa9da2bea860743f872dd9036cd7f11164
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -36,7 +36,9 @@ class Dynarex
36
36
  #* an XML string
37
37
  # Dynarex.new '<contacts><summary><schema>contacts/contact(name,age,dob)</schema></summary><records/></contacts>'
38
38
 
39
- def initialize(rawx=nil)
39
+ def initialize(rawx=nil, opt={})
40
+
41
+ @opt = {username: nil, password: nil}.merge opt
40
42
  #puts Rexle.version
41
43
  @delimiter = ''
42
44
  openx(rawx.clone) if rawx
@@ -892,7 +894,8 @@ EOF
892
894
  elsif s[/[\[\(]/] # schema
893
895
  dynarex_new(s)
894
896
  elsif s[/^https?:\/\//] then # url
895
- buffer = Kernel.open(s, 'UserAgent' => 'Dynarex-Reader'){|x| x.read}
897
+ buffer = Kernel.open(s, 'UserAgent' => 'Dynarex-Reader',\
898
+ http_basic_authentication: [@opt[:username], @opt[:password]]).read
896
899
  else # local file
897
900
  @local_filepath = s
898
901
  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.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,7 +31,7 @@ cert_chain:
31
31
  SLshUY2PSjSnVYx3Gln9vzST8CSTQPZbVpDfzbTqqAZnzqhIe2UaLbzGCMoz8kbw
32
32
  jQ7NXbu03ZrsvQ==
33
33
  -----END CERTIFICATE-----
34
- date: 2015-01-01 00:00:00.000000000 Z
34
+ date: 2015-01-05 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rexle
metadata.gz.sig CHANGED
@@ -1 +1,2 @@
1
- ���eBt&�8*�U��XKED�����IY*P��LT0�ina_Zll<����6�/:
1
+ W�����߅^�i���hКP[���n�{��8/���:�[<'6��)����/G��E[�nYz��ɨ5o9�����3O�� �.��g1��f��\�ez�i�z� P��B~��Fh!�Xܭ&ӏj MU@Fe�]0�)LY���S����Zy�0���:w����gz��#�G�}kJI�ڴ���S`A-�Ub"��� ��O���9T� 7
2
+ ���"�ح�j_���ƳU����Eq�a���y L ��2