scopie 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/README.md +1 -1
- data/lib/scopie/base.rb +2 -1
- data/lib/scopie/version.rb +1 -1
- data/lib/scopie.rb +2 -0
- 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: 879319e399691c122f8202cc78ecf59acf738d60
|
4
|
+
data.tar.gz: f2c747c9a891dca955f175e7b351900af5cce454
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e50053ba1c7a8817dc0960cbe47640c9a588f2944539bdd608cf42b03b9022ac110c970c6ae60f82c7b0fad5db6f902321d57925645fcb2bd7fd494b28c7a457
|
7
|
+
data.tar.gz: 2361436b73bf383a370817d48b305d6a0b05d322f22841ea1109ce76eb9ba888d412abfbe46172e28f0503aabfd97cc81ef236b4746cde434b253d02c68834a5
|
data/README.md
CHANGED
@@ -14,7 +14,7 @@ Motivation:
|
|
14
14
|
|
15
15
|
* Dedicated class for scopes mapping, so that the logic is isolated and your controller is skinny.
|
16
16
|
* Dependencies free. Please have a look at [scopie_rails](http://github.com/beorc/scopie_rails) if you are using Ruby on Rails framework.
|
17
|
-
* Ability to override default mapping behavior by definition of a method
|
17
|
+
* Ability to override default mapping behavior by definition of a method having the same name as a scope in the scopie class.
|
18
18
|
* Ability to use the object oriented approach to DRY your custom scopes mapping logic and reuse the scopie class.
|
19
19
|
|
20
20
|
Imagine the following model called graduations:
|
data/lib/scopie/base.rb
CHANGED
data/lib/scopie/version.rb
CHANGED
data/lib/scopie.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scopie
|
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
|
- Yury Kotov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-06-
|
11
|
+
date: 2016-06-28 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Minimal mapping of incoming parameters to named scopes in your resources
|
14
14
|
through OO design and pure Ruby classes
|