xmlhasher 1.0.2 → 1.0.3

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
- SHA1:
3
- metadata.gz: 05c9a6f783b18e7818f008cffeb0438acfbf5436
4
- data.tar.gz: e5d3019dba5536a48fd793d5d157f67e4d8878ce
2
+ SHA256:
3
+ metadata.gz: 3240088f05621e61ec077b6353d4efa8c11e38c58e6a9f5cb32fb926493a0c86
4
+ data.tar.gz: d7cda5ca749826197b782c8d260f13445ab573e86587a43645508a0ea0565f51
5
5
  SHA512:
6
- metadata.gz: a83cf610374a45cf184d9f9bfe19047e5e1244857e75ce17bdf10d89afbe1838143d9080575668d836279e93d81afbf02aababeccef9b157db55f06c9ec56fda
7
- data.tar.gz: ba892cc63ff916ecbb277ee94be9821a0ed2a3b035dd908ec58deb22056b73d91a52de6b9f6b1cc988eb746ab57dd920422ffcd72be14faa0a6864c7486352e5
6
+ metadata.gz: f421d05d16de43a6e78b4f19d8704f602a36b785299b392cce444eef1a7341c57dee5ac3bc723feae03b5b68b056f65af3cd98dcac3b4e947150e68740847fcb
7
+ data.tar.gz: 6d7e68640d6ada4d53a77a268c20696c51df152dbd0846248e8babb65c0bfd4dd60e0e35d4c752903b3b341c82110469a6ddca695e5ba13327f4b2549daea0db
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-2.3.0
1
+ ruby-2.5.1
@@ -15,8 +15,7 @@ module XmlHasher
15
15
  else
16
16
  h[name] = attributes.inject({}) { |r, (key, value)| r[key] = value if !value.nil? && !value.to_s.empty?; r }
17
17
  if children.size == 1
18
- child = children.first
19
- h[name].merge!(child.to_hash)
18
+ h[name].merge!(children.first.to_hash)
20
19
  else
21
20
  h[name].merge!(children.group_by { |child| child.name }.inject({}) { |r, (k, v)| v.length == 1 ? r.merge!(v.first.to_hash) : r[k] = v.map { |c| c.to_hash[c.name] }; r })
22
21
  end
@@ -1,3 +1,3 @@
1
1
  module XmlHasher
2
- VERSION = '1.0.2'
2
+ VERSION = '1.0.3'
3
3
  end
data/test/test_helper.rb CHANGED
@@ -4,10 +4,10 @@ $LOAD_PATH.unshift(File.dirname(__FILE__))
4
4
  require 'simplecov'
5
5
  require 'coveralls'
6
6
 
7
- SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
7
+ SimpleCov.formatters = SimpleCov::Formatter::MultiFormatter.new([
8
8
  SimpleCov::Formatter::HTMLFormatter,
9
9
  Coveralls::SimpleCov::Formatter
10
- ]
10
+ ])
11
11
  SimpleCov.start
12
12
 
13
13
  require 'test/unit'
data/xmlhasher.gemspec CHANGED
@@ -18,12 +18,12 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ['lib']
20
20
 
21
- spec.required_ruby_version = '>= 1.8.7'
21
+ spec.required_ruby_version = '>= 1.9.3'
22
22
  spec.required_rubygems_version = '>= 1.3.6'
23
23
 
24
- spec.add_dependency 'ox', '2.2.1'
25
- spec.add_dependency 'escape_utils', '>= 1.2.0'
24
+ spec.add_dependency 'ox', '2.10.0'
25
+ spec.add_dependency 'escape_utils', '~> 1.2', '>= 1.2.0'
26
26
 
27
- spec.add_development_dependency 'rake'
28
- spec.add_development_dependency 'bundler'
27
+ spec.add_development_dependency 'rake', '~> 0'
28
+ spec.add_development_dependency 'bundler', '~> 0'
29
29
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xmlhasher
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gene Drabkin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-20 00:00:00.000000000 Z
11
+ date: 2018-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ox
@@ -16,18 +16,21 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 2.2.1
19
+ version: 2.10.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 2.2.1
26
+ version: 2.10.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: escape_utils
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.2'
31
34
  - - ">="
32
35
  - !ruby/object:Gem::Version
33
36
  version: 1.2.0
@@ -35,6 +38,9 @@ dependencies:
35
38
  prerelease: false
36
39
  version_requirements: !ruby/object:Gem::Requirement
37
40
  requirements:
41
+ - - "~>"
42
+ - !ruby/object:Gem::Version
43
+ version: '1.2'
38
44
  - - ">="
39
45
  - !ruby/object:Gem::Version
40
46
  version: 1.2.0
@@ -42,28 +48,28 @@ dependencies:
42
48
  name: rake
43
49
  requirement: !ruby/object:Gem::Requirement
44
50
  requirements:
45
- - - ">="
51
+ - - "~>"
46
52
  - !ruby/object:Gem::Version
47
53
  version: '0'
48
54
  type: :development
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
51
57
  requirements:
52
- - - ">="
58
+ - - "~>"
53
59
  - !ruby/object:Gem::Version
54
60
  version: '0'
55
61
  - !ruby/object:Gem::Dependency
56
62
  name: bundler
57
63
  requirement: !ruby/object:Gem::Requirement
58
64
  requirements:
59
- - - ">="
65
+ - - "~>"
60
66
  - !ruby/object:Gem::Version
61
67
  version: '0'
62
68
  type: :development
63
69
  prerelease: false
64
70
  version_requirements: !ruby/object:Gem::Requirement
65
71
  requirements:
66
- - - ">="
72
+ - - "~>"
67
73
  - !ruby/object:Gem::Version
68
74
  version: '0'
69
75
  description: Fast XML to Ruby Hash converter
@@ -107,7 +113,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
107
113
  requirements:
108
114
  - - ">="
109
115
  - !ruby/object:Gem::Version
110
- version: 1.8.7
116
+ version: 1.9.3
111
117
  required_rubygems_version: !ruby/object:Gem::Requirement
112
118
  requirements:
113
119
  - - ">="
@@ -115,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
115
121
  version: 1.3.6
116
122
  requirements: []
117
123
  rubyforge_project:
118
- rubygems_version: 2.5.1
124
+ rubygems_version: 2.7.6
119
125
  signing_key:
120
126
  specification_version: 4
121
127
  summary: XmlHasher converts XML to Ruby Hash