select_where 1.0.1 → 1.0.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 +1 -1
- data/readme.md +9 -1
- data/select_where.gemspec +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4f92f10ee8248cb291a9589cdb7029075dd3bf7
|
4
|
+
data.tar.gz: cc675b77a93f9529dbbe0c34577580ed5f7d4550
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6d5ac144cbd99c3006f76194c000eb6e5f978b2540905a7df8da152b11f7331249819864a60dd7733ed33e3c9bf09af482690f13309b81b0db45562c056cb51
|
7
|
+
data.tar.gz: 57d3a3f56d4bc8caa306d02ba9c2e4ab1027dc7c69fcd1bf20fd9689ddb94257457a1ed55456b43e6dd0648e4bf1c0182ee314b997073d32537a197c404a8592
|
data/Gemfile.lock
CHANGED
data/readme.md
CHANGED
@@ -2,6 +2,14 @@
|
|
2
2
|
|
3
3
|
Simple select helpers with standalone or extension APIs. Specify target values with simple values or Procs.
|
4
4
|
|
5
|
+
##### Install
|
6
|
+
|
7
|
+
Add the following line to your Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'select_where'
|
11
|
+
```
|
12
|
+
|
5
13
|
##### Standalone
|
6
14
|
|
7
15
|
```ruby
|
@@ -13,7 +21,7 @@ SelectWhere.detect(arr, { a: 2 }) # => { a: 2}
|
|
13
21
|
SelectWhere.select(arr, { a: ->(v) { v > 0 } }) # => [{ a: 1 }, { a: 2 }]
|
14
22
|
```
|
15
23
|
|
16
|
-
#####
|
24
|
+
##### As an extension
|
17
25
|
|
18
26
|
```ruby
|
19
27
|
require 'select_where/core_ext/array'
|
data/select_where.gemspec
CHANGED
@@ -4,12 +4,12 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "select_where"
|
7
|
-
spec.version = "1.0.
|
7
|
+
spec.version = "1.0.2"
|
8
8
|
spec.authors = ["Trunkclub"]
|
9
9
|
spec.email = ["nickm@trunkclub.com"]
|
10
10
|
spec.description = "extends ruby array with select helpers"
|
11
11
|
spec.summary = "extends ruby array with select helpers"
|
12
|
-
spec.homepage = ""
|
12
|
+
spec.homepage = "https://github.com/trunkclub/select_where"
|
13
13
|
spec.license = "none"
|
14
14
|
|
15
15
|
spec.files = `git ls-files`.split($/)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: select_where
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Trunkclub
|
@@ -85,7 +85,7 @@ files:
|
|
85
85
|
- spec/spec_helper.rb
|
86
86
|
- spec/unit/core_ext/array_spec.rb
|
87
87
|
- spec/unit/select_where_spec.rb
|
88
|
-
homepage:
|
88
|
+
homepage: https://github.com/trunkclub/select_where
|
89
89
|
licenses:
|
90
90
|
- none
|
91
91
|
metadata: {}
|