gorilla-patch 0.0.14 → 0.0.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/gorilla-patch/range.rb +11 -0
  3. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aa10448bd0f18851a956ff7f37b60c6789c61183
4
- data.tar.gz: 653abb9e75edd98de04fd562eec9060361b2ca08
3
+ metadata.gz: 4582143df2420c933fbfc74e1387cc810642f9e2
4
+ data.tar.gz: 45ab6b9aaf6d271cbfde30d7f9e593b9335a5ae2
5
5
  SHA512:
6
- metadata.gz: 6da2ed70ac7d5f72ffc5cf31f7218e57db20e7fae26e445cbd014287539c12129ddeb7c6577256317123459f768175443c5073131d0550eae6aec5320ef65576
7
- data.tar.gz: dc1f1b87024f1cee7dd5d7c3a02134823c6184755ab1c46688a9676db5c0588f7638d19571053cc3bf917d0e99d4dcf124a7212d81a3ca03cbda44e367714266
6
+ metadata.gz: faca69c1cbd83280f9cd5c76d4c80f7603f01a841392716ef98b1e816f5afa5db5cec5e36405b12ca18f989c7883abb14b52d05c76771d83f6f1a4fc9099838b
7
+ data.tar.gz: 70a40905af465b37a9f9d2fff2bc1ec4e8fa714ec0d2a3f142ef5b79f0fa71cf295e5d44695508f041e106cb0c7a94472b62a303eca6b4d3ea6fa1bba76a2c66
@@ -0,0 +1,11 @@
1
+ module GorillaPatch
2
+ ## Refine Array class
3
+ module RangeExt
4
+ refine Range do
5
+ def include?(value)
6
+ return super unless value.is_a? Range
7
+ super(value.first) && super(value.last)
8
+ end
9
+ end
10
+ end
11
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gorilla-patch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14
4
+ version: 0.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Popov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-25 00:00:00.000000000 Z
11
+ date: 2016-08-08 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Refine Ruby Core classes.
14
14
  email: alex.wayfer@gmail.com
@@ -20,6 +20,7 @@ files:
20
20
  - lib/gorilla-patch/array.rb
21
21
  - lib/gorilla-patch/hash.rb
22
22
  - lib/gorilla-patch/module.rb
23
+ - lib/gorilla-patch/range.rb
23
24
  - lib/gorilla-patch/string.rb
24
25
  homepage: https://github.com/AlexWayfer/gorilla-patch
25
26
  licenses: