decontaminate 0.2.1 → 0.2.2

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: f731111d47eb751ba591ab27befd41721b22ab09
4
- data.tar.gz: 4355d58ea218c7ea312e50ccd37bc4dd314345a9
3
+ metadata.gz: e50de59b7c72741fecdddd032de8e3bd32847aca
4
+ data.tar.gz: 85c3625a970857a8eac135b1adf3eab16336c65d
5
5
  SHA512:
6
- metadata.gz: 95e52b38d6260c8789ebedab7a56efa09e51464eefce1e02ac56adc3d82c8eea6062da2fabcb17e1cee2a675bc4359e94dd515dc676e38fa21857ee0396c2598
7
- data.tar.gz: 1c6d7a83b722b26fc570dd4198e0b6ef3c6bd88c77bf6a3e0c759163da1bfecb44bbec44d000517765627652096465817c8e3250e7f743ad610d2ac6b99c1984
6
+ metadata.gz: bb57171c607cc67515433ee9faf216ea201faca1e1411a799c93dec1ceb3d966574dc754b605ba11ea1316967bd4f7dd1053cd4a1bf5a4790c32a235784170ee
7
+ data.tar.gz: 0da2b2eddfa07ffaf1e0bf5b77450deb3d123878c14aebfa97a010d3c1de02bbdfd2dc3faafcd1e714d7ebbe6053188fd5fa6cf10af983f8a9be79257fbeb4e6
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  end
19
19
  spec.require_paths = ['lib']
20
20
 
21
- spec.required_ruby_version = '>= 1.9'
21
+ spec.required_ruby_version = '>= 2.1'
22
22
 
23
23
  spec.add_runtime_dependency 'activesupport', '~> 4.2'
24
24
  spec.add_runtime_dependency 'nokogiri', '~> 1.6'
@@ -96,7 +96,7 @@ module Decontaminate
96
96
  end
97
97
 
98
98
  def infer_key(xpath)
99
- xpath.delete('@').underscore
99
+ xpath.delete('@').gsub(/^_+|_+$/, '').underscore
100
100
  end
101
101
 
102
102
  def infer_plural_path(xpath)
@@ -1,3 +1,3 @@
1
1
  module Decontaminate
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decontaminate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexis King
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-19 00:00:00.000000000 Z
11
+ date: 2015-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -159,7 +159,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
159
159
  requirements:
160
160
  - - ">="
161
161
  - !ruby/object:Gem::Version
162
- version: '1.9'
162
+ version: '2.1'
163
163
  required_rubygems_version: !ruby/object:Gem::Requirement
164
164
  requirements:
165
165
  - - ">="