scope_composer 0.1.2 → 0.2.0
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 +8 -8
- data/UPGRADE.md +6 -1
- data/lib/scope_composer/scope.rb +1 -0
- data/lib/scope_composer/version.rb +1 -1
- data/spec/scope_composer/model_spec.rb +7 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
NDFkNzg5MDA1MTI0Y2ViZTBjMDA3NjBlYTcyMTY5NmI5ZTg3ODYxZA==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
Y2YwYTU0YTIxYjZmMjQzYzQwOTA2N2Q1MDIyY2RiNWUzYWQ1NTAxMw==
|
|
7
7
|
!binary "U0hBNTEy":
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
OWI0MGZmMTcwNjFiNTBkMWMzZjA3OGU4MTJmYjVjMzNkMzQ2YjU0ODYzYjNj
|
|
10
|
+
NTU2OTY1ZTEyZDEwMGM2YTgxMjY3NjUxYzVhMzQ0MTUwOWM1OWIxZGQ5Yjdj
|
|
11
|
+
NWJjMzljNGU4NDgzOGMwNmU0YjQ5MjNkYmYyYThkNTNjNzUzMzI=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
Mzk0NDBmZDRjODI4OTAzZjk2NzdjNjg0MzA1MWRhZjk5NzVhMzc0ZWEwNzk0
|
|
14
|
+
M2EzNmE0ZTdlYmRmOTRmZjIyYzljMGUzNTBlYmUxOTdkMWE3ODVlNjAxMjFm
|
|
15
|
+
ZjFlNDRkMGM2NGJlMDY2OGU0MDZhZjBhYjdmN2I1ZDgxNGE1YjI=
|
data/UPGRADE.md
CHANGED
data/lib/scope_composer/scope.rb
CHANGED
|
@@ -34,5 +34,11 @@ describe ScopeComposer::Model do
|
|
|
34
34
|
it "should define a scope helper" do
|
|
35
35
|
TestClass.say_hi('hi').should respond_to :helper_method
|
|
36
36
|
end
|
|
37
|
-
|
|
37
|
+
|
|
38
|
+
describe "#where" do
|
|
39
|
+
it "should return self" do
|
|
40
|
+
subject.limit(1).where( id: 1 ).class.should eq TestClass::SearchScope
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
|
|
38
44
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: scope_composer
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Blake Hilscher
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-
|
|
11
|
+
date: 2013-10-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|