xml-registry 0.5.4 → 0.5.5

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: d705f4545f13c91ba2535d865a6033d1103f1553
4
- data.tar.gz: 0a8f33f246dcbbec12fd989040117b02ca5a7413
3
+ metadata.gz: cc43f0be17ff1f5235c00da9ed66c45921e168e2
4
+ data.tar.gz: 6263b832634d17c8cb4b301d46248374d1b6b5ab
5
5
  SHA512:
6
- metadata.gz: ec0d1ad56ef73bcbbb18756c051d35a8001a5290a5c10903d8ea92008a017c911360c72ff238548206230b0455dad608814ea0e07eb41facc804fc1032f7780f
7
- data.tar.gz: f271c662d511027fd153128a9ba6073cd08e7bc5fd2f8bf44e62a699f020f10caafd7d8c7ef7fc880899ef72ca4b9b76cde92d8b2b7bbf52381d3de0ba30371e
6
+ metadata.gz: 932f7a6c13b5fb591436d531d01a00d177f20d967c07f0708bd8c8770641e601c0e4aa1900d3a5e0ca006b3afdeb2b3aaaaeebc79aef883a3029101290d63314
7
+ data.tar.gz: 6a7245b6c454b6ca29f43a01c169d9b33bfa511bdf77ed016d3dd30535d48b657052dd966d9cce1d0a1f92bf13342c166c547f6883049b5fa63840de1f1153fc
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/lib/xml-registry.rb CHANGED
@@ -149,7 +149,7 @@ class XMLRegistry
149
149
  # save the registry to the specified file path
150
150
  #
151
151
  def save(s)
152
- File.open(s, 'w'){|f| f.write @doc.xml pretty: true}
152
+ RXFHelper.write s, @doc.xml(pretty: true)
153
153
  end
154
154
 
155
155
  # import a registry hive from a string in registry format
@@ -208,7 +208,8 @@ class XMLRegistry
208
208
  #
209
209
  def export(s=nil)
210
210
  reg = print_scan(@doc.root).join("\n")
211
- File.open(s){|f| f.write reg} if s
211
+ # jr 250118 File.open(s){|f| f.write reg} if s
212
+ RXFHelper.write(s, reg) if s
212
213
  reg
213
214
  end
214
215
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xml-registry
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.4
4
+ version: 0.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,7 +31,7 @@ cert_chain:
31
31
  xvVmPfHHRba2HGhRUWMvOHyNV3AMJCAokUW0u9XZ2/bcRFES72fEpHHKo23eog3+
32
32
  VlKw5CVJPc93Fw==
33
33
  -----END CERTIFICATE-----
34
- date: 2017-08-30 00:00:00.000000000 Z
34
+ date: 2018-01-25 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: simple-config
@@ -80,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
80
80
  version: '0'
81
81
  requirements: []
82
82
  rubyforge_project:
83
- rubygems_version: 2.6.8
83
+ rubygems_version: 2.6.13
84
84
  signing_key:
85
85
  specification_version: 4
86
86
  summary: xml-registry
metadata.gz.sig CHANGED
@@ -1,2 +1 @@
1
- %* N��5��RUEY���\���[�U�M�b9��}��C��X��\ȷ巂�D�K��֝'#i�����>���=��Rܨ��}�sM���0A_P��K�?�FJ�6��*���pw_ ��a��R�����?�ʌ4� ���
2
- ������%�n:7�R���|�_�1Q�tm��B͜��\İ�%5�}_'ʮ�k��@�� �Y&9LP?�3���q� F%��p�GV�����ծ-�޵�$w��]�5f7�k}�����
1
+ T�@Ew���A����+m�����{ʏ��/�e ��`m���y�\D�!��}ƍ