polyrex 1.1.9 → 1.1.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: fbb3075ce8acfe445ac7b65f2ba533aee9cdd03c
4
- data.tar.gz: 203ebe78d9a038639b8933a35ce88dbfd21f870b
3
+ metadata.gz: 6b6b89ddcbcf5e1395bced5a729df932907aa763
4
+ data.tar.gz: 22bfc56f61c534fc033488f8cf7c4106c3954b24
5
5
  SHA512:
6
- metadata.gz: 40dbeb73930eed9db75507b0a71e92690f4ddd13bb5fda21c9b494f669436f06abdb0a93939b40f547d16a12ed935c35012c358e1f9ca19beec89a1f1b2904a6
7
- data.tar.gz: 729a044337580fcb640415dd7ca573e2a316cd9bcdb710fd5d5cfddcd23401375a3ebeaac14867d211b8f238a62c65437ed131b5a9ef05b6ec6bf4cadd7dc5b9
6
+ metadata.gz: d75fd80386ad2d85df55996758bd100e6dcba113587f5b1664173083be41b4d7d2fefdc144c41281d8dd097cd5ccbb980c50cded5608a715987bb5d1bb93caac
7
+ data.tar.gz: e68f35c10d63a2f67d57032b8cc7f34f484b7a270e7e2ec9b556616057200f4ef863078769dcbaaab82237bd74e8f4a2c56622b396a1c97d4ddd8321425f08e9
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/polyrex.rb CHANGED
@@ -456,11 +456,7 @@ xsl_buffer = '
456
456
 
457
457
  a = header.scan(/#{r1}|#{r2}/).map(&:compact).flatten
458
458
 
459
- if options[:schema] then
460
- a.delete a.assoc(:schema)
461
- self.method(:schema=).call(options[:schema])
462
- end
463
-
459
+
464
460
  a.each do |x|
465
461
 
466
462
  attr, val = x.split(/\s*=\s*["']/,2)
@@ -477,7 +473,16 @@ xsl_buffer = '
477
473
  end
478
474
  end
479
475
  end
480
-
476
+
477
+ options.each do |k,v|
478
+
479
+ if options[k] then
480
+ a.delete a.assoc(k)
481
+ self.method(((k.to_s) + '=').to_sym).call(options[k])
482
+ end
483
+
484
+ end
485
+
481
486
  end
482
487
 
483
488
  raw_lines = buffer.strip.lines.map(&:rstrip)
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polyrex
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.9
4
+ version: 1.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,7 +31,7 @@ cert_chain:
31
31
  EUI+ncIuEEQSxIVKGeaQ49Dk10P2t0cX3DGyMlv7sreJohHxJfNKsjG/SAk0cks0
32
32
  9+gffejS1ORTgQ==
33
33
  -----END CERTIFICATE-----
34
- date: 2017-01-05 00:00:00.000000000 Z
34
+ date: 2017-01-10 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: polyrex-schema
metadata.gz.sig CHANGED
Binary file