libis-tools 0.9.58 → 0.9.59

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: 7ddbd4686af619d4ec5f46e8e07a8360d6313cca
4
- data.tar.gz: c790d5e16d508e8d105c6e7783f1b6d6a9cc56a8
3
+ metadata.gz: 8095f715cbd7a776eb78417571d8c8a383d2d541
4
+ data.tar.gz: 08a87704986febcf0edbffab6f534de6c27cc0c0
5
5
  SHA512:
6
- metadata.gz: fe9c29a6617474145d0460a67e64e9842e920c265e768ac49ead7f2b6e2cfaca0012557eb966e46b54821a94bef77c814272016014d163f75ec9ce8c84b33b2e
7
- data.tar.gz: 1aba36391559fee2f7796363d8c7d3977e0d620ac6dda5b250ff3fad19b7665b872df44b27518dac75fdf8c685e6be881d748ae14453f20b251360c9a1877313
6
+ metadata.gz: 5c905f074337dd78172bf3f7c68880f07ba45c272eda2f5c424a4694f3241128d1b4fec792c292089274cb2aaa62dc4838829ee9cf7f51c26c9240506cc73fc1
7
+ data.tar.gz: de94ebfed64708f954436f826b98dbdbb84a2950f196b3ee1435478857a97d164303d21b674a785a6515b77ffb804b6582085e888333bc9b9e138a105dc6086a
@@ -4,9 +4,9 @@ require 'backports/rails/hash'
4
4
  require 'backports/2.0.0/struct'
5
5
 
6
6
  class Struct
7
- def to_hash
8
- members.inject({}) {|h,m| h[m] = send(m); h}
9
- end unless method_defined? :to_hash
7
+ # def to_hash
8
+ # members.inject({}) {|h,m| h[m] = send(m); h}
9
+ # end unless method_defined? :to_hash
10
10
 
11
11
  def set(h = {})
12
12
  h.symbolize_keys!
@@ -1,5 +1,5 @@
1
1
  module Libis
2
2
  module Tools
3
- VERSION = '0.9.58'
3
+ VERSION = '0.9.59'
4
4
  end
5
5
  end
@@ -71,4 +71,13 @@ describe ::Libis::Tools::ConfigFile do
71
71
 
72
72
  end
73
73
 
74
+ context 'initialization with hash from YAML file' do
75
+ subject { ::Libis::Tools::ConfigFile.new YAML.load_file(test_file)}
76
+
77
+ it 'has hash' do
78
+ expect(subject.to_hash).to eq hash
79
+ end
80
+
81
+ end
82
+
74
83
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libis-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.58
4
+ version: 0.9.59
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kris Dekeyser