jsl-feedzirra 0.0.12.6 → 0.0.12.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/core_ext/hash.rb +13 -0
  2. metadata +2 -1
@@ -0,0 +1,13 @@
1
+ class Hash
2
+ # Returns a Hash containing only input keys.
3
+ # Method from merb-core.
4
+ def except(*rejected)
5
+ reject { |k,v| rejected.include?(k) }
6
+ end
7
+
8
+ # Returns a new hash containing only the input keys.
9
+ # Method from merb-core.
10
+ def only(*allowed)
11
+ reject { |k,v| !allowed.include?(k) }
12
+ end
13
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jsl-feedzirra
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12.6
4
+ version: 0.0.12.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Dix
@@ -94,6 +94,7 @@ files:
94
94
  - lib/core_ext/date.rb
95
95
  - lib/core_ext/string.rb
96
96
  - lib/core_ext/array.rb
97
+ - lib/core_ext/hash.rb
97
98
  - lib/feedzirra.rb
98
99
  - lib/feedzirra/feed.rb
99
100
  - lib/feedzirra/feed_parser.rb