lab5 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/lab5.rb +2 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 589c4011efb8c9db4f3b7b77126a4f1894e6a821
4
- data.tar.gz: 3717b5402b2bd06b5e4bad2411c5334c45b60295
3
+ metadata.gz: 96496bae2021eb04d9ce4e595696b5ba655c05f8
4
+ data.tar.gz: e836a40a99e603a8d1616f5b8d6ea3331988f790
5
5
  SHA512:
6
- metadata.gz: 9a71969f15f4844f0dbedb5bf22e2d8c7767de80a0f8eb83105a09f8e18863540d04681ccf8646d06dc3d4e402cd8144d198f951b80d58babc6581a18f1eff95
7
- data.tar.gz: a9b2128f99f324e0b9f090f73f960ccc33171f053c7d47dd3a738ef8de49820c9bd545f064bb82fb6be4eed11ae7ab5908482b4514907a48dadde07a3d43373d
6
+ metadata.gz: fe08cd93a45b9525b61bb74cdf4188694887b6a723f87e045b2555c17dd57948c43e2eaa8e94fe14b7bfd5ca969354c2e48258543990db51ad7afcfe6754de42
7
+ data.tar.gz: 0c0295294451a1d222dcccbfe3b62a119d0d7f344b04f77b40be62f2c65cceed10b0fce3b47d16c4b1c6dc7de93a76353dca2994fe707865d90c2e44dd1e7723
data/lib/lab5.rb CHANGED
@@ -1,10 +1,10 @@
1
1
  require 'ox'
2
+ require 'xml-simple'
2
3
 
3
4
  class XmlSerializer
4
5
  def self.xml_ser(array)
5
6
  hash = array.map { |item| object_to_hash(item) }
6
-
7
- Ox.dump(hash)
7
+ XmlSimple.xml_out(hash, { 'KeepRoot' => true })
8
8
  end
9
9
 
10
10
  def self.yaml_deser(xml)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lab5
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tatiana Karpesh