basic-scopes 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -13
- data/README.md +6 -7
- data/lib/basic-scopes/version.rb +1 -1
- metadata +9 -9
checksums.yaml
CHANGED
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
|
|
5
|
-
data.tar.gz: !binary |-
|
|
6
|
-
NzlhYTk1NzFmMjUwYmE4Y2VjMTgxNzY2NDY0NDZjOTk2NzM3ZjNmMw==
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: c0d2980bc58e24993c9405849085d7664784aef2
|
|
4
|
+
data.tar.gz: bf2e9828756ebfebf90374a41592c315dbfe72c9
|
|
7
5
|
SHA512:
|
|
8
|
-
metadata.gz:
|
|
9
|
-
|
|
10
|
-
M2NjNmNlM2UxMjRlYTdlNTNiYTdjMjAzMWNiNjBkMWI2ZDg4NGY1ZGIyMTdm
|
|
11
|
-
NTMwNDMwNTEyN2I2ZmFiOWU0OTRhZmQ4ZDlkMTdhZTI3N2JlZjM=
|
|
12
|
-
data.tar.gz: !binary |-
|
|
13
|
-
NGMxZGE3NmI2NzdjNDg3YmI4OTA5ODRlYzYzOTgzZTgzMTgyZjE1ZDdiZjcx
|
|
14
|
-
ODZiODcwM2Q3NzgzZjBlOGU3MDVlYzFlZTQ3MDhhNWQyODRkMzc0M2ZkNzQ3
|
|
15
|
-
MGZiZDljZGM3ZDEwZjI4YzVmMmYyNjU2YTU5ODZkNzlmMmYxYzY=
|
|
6
|
+
metadata.gz: 67fda73cc8107ca24c476beac94315817a632b124cd9b90485649a4b90b4cc308fb9fb226f25efbe64eff105b4a4c92bc351a7562dfcd01ee232e9427a7974ea
|
|
7
|
+
data.tar.gz: 79f8eb89f704ec53ce8ac70867b542af9f427d765c62a31f1ead607429f89a818a80a03df6fe51581a0b5b6ce90035a53d72cdcf57160841e524b304bb56d996
|
data/README.md
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
## basic-scopes
|
|
2
|
-
[](https://bitdeli.com/free "Bitdeli Badge")
|
|
2
|
+
[](http://badge.fury.io/rb/basic-scopes)
|
|
3
|
+
[](https://travis-ci.org/vforge/basic-scopes)
|
|
4
|
+
[](https://gemnasium.com/vforge/basic-scopes)
|
|
5
|
+
[](https://codeclimate.com/github/vforge/basic-scopes)
|
|
7
6
|
|
|
8
7
|
ActiveRecord basic scopes.
|
|
9
8
|
|
|
@@ -13,9 +12,9 @@ You can use basic-scopes just as normal ActiveRecord methods.
|
|
|
13
12
|
|
|
14
13
|
### Filtering
|
|
15
14
|
* `except_id(id)` - all records without matching `ID` field
|
|
16
|
-
* `filter_id(id)` - all
|
|
15
|
+
* `filter_id(id)` - all records with matching `ID` field
|
|
17
16
|
* `except_ids(ids)` - all records without matching `ID` field
|
|
18
|
-
* `filter_ids(ids)` - all
|
|
17
|
+
* `filter_ids(ids)` - all records with matching `ID` field
|
|
19
18
|
* `filter_updated_since(time)` - all records that have `UPDATED_AT` field greater than `time`
|
|
20
19
|
* `filter_updated_till(time)` - all records that have `UPDATED_AT` field lesser than `time`
|
|
21
20
|
* `filter_created_since(time)` - all records that have `CREATED_AT` field greater than `time`
|
data/lib/basic-scopes/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: basic-scopes
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Bartosz "V." Bentkowski
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2015-01-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activerecord
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
|
-
- -
|
|
17
|
+
- - ">="
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
19
|
version: '3.1'
|
|
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
26
|
version: '3.1'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: activesupport
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
|
-
- -
|
|
31
|
+
- - ">="
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
33
|
version: '3.1'
|
|
34
34
|
type: :runtime
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
|
-
- -
|
|
38
|
+
- - ">="
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
40
|
version: '3.1'
|
|
41
41
|
description: ActiveRecord basic scopes.
|
|
@@ -57,17 +57,17 @@ require_paths:
|
|
|
57
57
|
- lib
|
|
58
58
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
59
59
|
requirements:
|
|
60
|
-
- -
|
|
60
|
+
- - ">="
|
|
61
61
|
- !ruby/object:Gem::Version
|
|
62
62
|
version: '0'
|
|
63
63
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
64
64
|
requirements:
|
|
65
|
-
- -
|
|
65
|
+
- - ">="
|
|
66
66
|
- !ruby/object:Gem::Version
|
|
67
67
|
version: '0'
|
|
68
68
|
requirements: []
|
|
69
69
|
rubyforge_project:
|
|
70
|
-
rubygems_version: 2.
|
|
70
|
+
rubygems_version: 2.4.5
|
|
71
71
|
signing_key:
|
|
72
72
|
specification_version: 4
|
|
73
73
|
summary: ActiveRecord basic scopes.
|