polyrex 1.0.7 → 1.0.8

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: 9de8cb1fb83fbffe84580167c074eb8e6a37e33d
4
- data.tar.gz: dc1107d6640687e28d2be7326f5b38fa4d4317d3
3
+ metadata.gz: 9dba8b10237be61e5634ffd96c6c653fffe255d7
4
+ data.tar.gz: ebf0e7d1ecb1953b34d3cc10dda537f1a5a87d4e
5
5
  SHA512:
6
- metadata.gz: 1d6dd760a1a52d43763dec244c662769f47a7fe89d3e539f9037974502dd29ad0af101891935f7f6061acb9271ad10bb08bf0f4116e9dd50bd352e3402077903
7
- data.tar.gz: 81cb71e07fb1951bf8bb3c28c388cb33a54097c84253237cfec92e68e906297a8ce69f40e900aac5bb1963064407d963213125551a4a289e25918c76f3ff6f70
6
+ metadata.gz: aa2d5bf49b5ecb8d69a430c6f050df625beed0db6fb28a18ced8c2dc6acdcfefb749a30b871d2cb8cab53f9d7f29670c06f763220b9af76f5cccb7f428e5b576
7
+ data.tar.gz: 23f071f7efa4d9a57a0dec0133ec63b32357cc50336c973d36b8736143158e9d1aae44c37f1ef5a1d36611230f6ccd4ed22f5c137029ffbd042066b9d7413205
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
@@ -1 +1 @@
1
- >��!��A! K����)Wn:�t O���W������M�����8���AE�+!��͗�3Idhᱤ���H��T��ڷ�a�=��>��!!'a_u�&\*�� ~�j��1�
1
+ ��onm���rj�U�N8z_V���2�t&؂Ԫ.�5i��DH�|mw@5�pc�`v-�ض���!O)������Z���|��T,�(s.V!*�@��t^D���M��2*!�39DQ���,�!�2t?ȡ��2U�C�s;���j��Vsg��'–狣�f�KT���?t6z��H��8�x�Q�����ܴN�q��(��ۅ�<��DW��m=<�i�5ӽ���2�-p���:X��:����xH
data/lib/polyrex.rb CHANGED
@@ -113,10 +113,13 @@ class Polyrex
113
113
  @doc.to_s(options)
114
114
  end
115
115
 
116
- def save(filepath=nil, opt={}, options: opt)
116
+ def save(filepath=nil, opt={}, options: opt, pretty: false)
117
+
117
118
  refresh_summary
118
119
  filepath ||= @local_filepath
119
120
  @local_filepath = filepath
121
+
122
+ options.merge!({pretty: pretty}) if options.empty?
120
123
  xml = @doc.to_s(options)
121
124
  buffer = block_given? ? yield(xml) : xml
122
125
  File.open(filepath,'w'){|f| f.write buffer}
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.0.7
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,7 +31,7 @@ cert_chain:
31
31
  xutogBWBRwktcdg7bc24/mbFcXcx5WhspVwfj6isE6q3A1nNkMtk3DHHKmUrfemr
32
32
  pWpTJQi2DFAx/g==
33
33
  -----END CERTIFICATE-----
34
- date: 2015-10-12 00:00:00.000000000 Z
34
+ date: 2015-10-17 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