lab5 0.0.3 → 0.0.4

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 +3 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 136e37999c33b5cadfff5d2c18e6008bcd34b29b
4
- data.tar.gz: 64c1834a7c8e73f4685ff6a8ad34acd5a920767d
3
+ metadata.gz: 589c4011efb8c9db4f3b7b77126a4f1894e6a821
4
+ data.tar.gz: 3717b5402b2bd06b5e4bad2411c5334c45b60295
5
5
  SHA512:
6
- metadata.gz: 91e1a7558a2997522fd79fb1dc756324979a45e348cff83a775e537f11da4a5b0a09fa24a4448ee617964b90bce3e7ca351c31c28d6f09c9e48e831774755268
7
- data.tar.gz: 93d19eaa2855b56c1c0310733adb94828c63c7ea8bf57dd8b3c0694ad9760bc284dfae027248d51acaf1078886162cadb2b986a8ca2708c6a81d1cb5eb608bdd
6
+ metadata.gz: 9a71969f15f4844f0dbedb5bf22e2d8c7767de80a0f8eb83105a09f8e18863540d04681ccf8646d06dc3d4e402cd8144d198f951b80d58babc6581a18f1eff95
7
+ data.tar.gz: a9b2128f99f324e0b9f090f73f960ccc33171f053c7d47dd3a738ef8de49820c9bd545f064bb82fb6be4eed11ae7ab5908482b4514907a48dadde07a3d43373d
data/lib/lab5.rb CHANGED
@@ -2,7 +2,9 @@ require 'ox'
2
2
 
3
3
  class XmlSerializer
4
4
  def self.xml_ser(array)
5
- Ox.dump(XmlSerializer.object_to_hash(array))
5
+ hash = array.map { |item| object_to_hash(item) }
6
+
7
+ Ox.dump(hash)
6
8
  end
7
9
 
8
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.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tatiana Karpesh