except_nested 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +7 -6
- data/README.md +3 -0
- data/except_nested.gemspec +2 -2
- data/lib/except_nested/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b3dfd263c90824f4daca8a8dd835f9768dd81c6e
|
4
|
+
data.tar.gz: da173964d7fd2a531c5a93880f0e3fef9136c8ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d5f57b52c637604679934e3f934dcbcb752d1d27d58a2eb54f72176860ea5a3ea1ef6776d1b0378d644057edab81db9a52decb6fb8e413fb94b2ad05ebcec981
|
7
|
+
data.tar.gz: ed2c5069845bedd2021261f98bf1c9eb3392ba36002217787ac679c3f199c33e6a1e1cf674869b1139a4261cce69e6a7656060af8c8cb98cd227efba3b89704f
|
data/Gemfile.lock
CHANGED
@@ -1,19 +1,20 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
except_nested (0.1.
|
5
|
-
activesupport (~>
|
4
|
+
except_nested (0.1.2)
|
5
|
+
activesupport (~> 5)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
activesupport (
|
10
|
+
activesupport (5.1.3)
|
11
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
11
12
|
i18n (~> 0.7)
|
12
13
|
minitest (~> 5.1)
|
13
|
-
thread_safe (~> 0.3, >= 0.3.4)
|
14
14
|
tzinfo (~> 1.1)
|
15
15
|
codeclimate-test-reporter (0.4.8)
|
16
16
|
simplecov (>= 0.7.1, < 1.0.0)
|
17
|
+
concurrent-ruby (1.0.5)
|
17
18
|
diff-lcs (1.3)
|
18
19
|
docile (1.1.5)
|
19
20
|
i18n (0.8.6)
|
@@ -33,7 +34,7 @@ GEM
|
|
33
34
|
diff-lcs (>= 1.2.0, < 2.0)
|
34
35
|
rspec-support (~> 3.6.0)
|
35
36
|
rspec-support (3.6.0)
|
36
|
-
simplecov (0.
|
37
|
+
simplecov (0.12.0)
|
37
38
|
docile (~> 1.1.0)
|
38
39
|
json (>= 1.8, < 3)
|
39
40
|
simplecov-html (~> 0.10.0)
|
@@ -51,7 +52,7 @@ DEPENDENCIES
|
|
51
52
|
except_nested!
|
52
53
|
rake (~> 10.0)
|
53
54
|
rspec (~> 3.0)
|
54
|
-
simplecov (~> 0.
|
55
|
+
simplecov (~> 0.12.0)
|
55
56
|
|
56
57
|
BUNDLED WITH
|
57
58
|
1.15.3
|
data/README.md
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# Except Nested
|
2
2
|
[![Gem Version](https://badge.fury.io/rb/except_nested.svg)](https://rubygems.org/gems/except_nested)
|
3
3
|
[![Build Status](https://travis-ci.org/abarrak/except_nested.svg?branch=master)](https://travis-ci.org/abarrak/except_nested)
|
4
|
+
[![Test Coverage](https://codeclimate.com/github/abarrak/except_nested/badges/coverage.svg)](https://codeclimate.com/github/abarrak/except_nested/coverage)
|
4
5
|
[![Dependency Status](https://gemnasium.com/badges/github.com/abarrak/except_nested.svg)](https://gemnasium.com/github.com/abarrak/except_nested)
|
5
6
|
|
6
7
|
**except_nested** allows exclusion of given hash keys at various depth of the hash.
|
@@ -66,6 +67,8 @@ h.except_nested(:name, :degree, :preferences)
|
|
66
67
|
=> {}
|
67
68
|
```
|
68
69
|
|
70
|
+
It works for any nested levels. Check [test case](https://github.com/abarrak/except_nested/blob/master/spec/except_nested_spec.rb#L87-L105) for 3-level depth example.
|
71
|
+
|
69
72
|
## Documentation
|
70
73
|
|
71
74
|
[RDoc version](http://www.rubydoc.info/gems/except_nested) at RubyDoc.
|
data/except_nested.gemspec
CHANGED
@@ -24,10 +24,10 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
25
25
|
spec.require_paths = ["lib"]
|
26
26
|
|
27
|
-
spec.add_dependency 'activesupport', '~>
|
27
|
+
spec.add_dependency 'activesupport', '~> 5'
|
28
28
|
spec.add_development_dependency "bundler", "~> 1.15"
|
29
29
|
spec.add_development_dependency "rake", "~> 10.0"
|
30
30
|
spec.add_development_dependency "rspec", "~> 3.0"
|
31
|
-
spec.add_development_dependency "simplecov", "~> 0.
|
31
|
+
spec.add_development_dependency "simplecov", "~> 0.12.0"
|
32
32
|
spec.add_development_dependency "codeclimate-test-reporter", "~> 0.4.8"
|
33
33
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: except_nested
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Abdullah Barrak
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '5'
|
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: '
|
26
|
+
version: '5'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.
|
75
|
+
version: 0.12.0
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.
|
82
|
+
version: 0.12.0
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: codeclimate-test-reporter
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|