scope_composer 0.1.2 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZWQxMjIxMzVkMDA2NzJlYTAxOTQ3MTQyYTZjMzE3YmM5MmRjMTljNw==
4
+ NDFkNzg5MDA1MTI0Y2ViZTBjMDA3NjBlYTcyMTY5NmI5ZTg3ODYxZA==
5
5
  data.tar.gz: !binary |-
6
- MzZkY2JkNjkyNzVhY2I1ZjU4MTQ4ZWU0MjdmMzZhZGZkOGFkY2ZiMA==
6
+ Y2YwYTU0YTIxYjZmMjQzYzQwOTA2N2Q1MDIyY2RiNWUzYWQ1NTAxMw==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MjAzN2MyYzc2NmUzYmY2OGE4NzU3NmYxNjQ0ZjhkMjIyOTZiYjQxMjhlOWQ2
10
- NDE3NDExOTdhMTliMWI0Njg3Mjk0MTE5YTI3ZjcxMjMzN2RkZmVmYmFmMmU0
11
- NWI0MDM5NDIyZjFlNWYwODhkODA5MTc3NmEwMGZjOWYxMDAxZDc=
9
+ OWI0MGZmMTcwNjFiNTBkMWMzZjA3OGU4MTJmYjVjMzNkMzQ2YjU0ODYzYjNj
10
+ NTU2OTY1ZTEyZDEwMGM2YTgxMjY3NjUxYzVhMzQ0MTUwOWM1OWIxZGQ5Yjdj
11
+ NWJjMzljNGU4NDgzOGMwNmU0YjQ5MjNkYmYyYThkNTNjNzUzMzI=
12
12
  data.tar.gz: !binary |-
13
- ZmIzNDVlZjM4MzM2MTYxM2M3ZDZhOGI5NDI1NzQ4YWE5MTM3YjQ5NmIwYTIx
14
- Zjg1MGI5MDZhNTc3N2I0YWQ1NWFkYzdmYmM2NDYwYmRjZmYwMzljMmFkM2Jl
15
- NmFlMGFjZmMyM2M3ZWQxOWU0MGRhMDgwZmVkNTRjYzRjZmU4YzA=
13
+ Mzk0NDBmZDRjODI4OTAzZjk2NzdjNjg0MzA1MWRhZjk5NzVhMzc0ZWEwNzk0
14
+ M2EzNmE0ZTdlYmRmOTRmZjIyYzljMGUzNTBlYmUxOTdkMWE3ODVlNjAxMjFm
15
+ ZjFlNDRkMGM2NGJlMDY2OGU0MDZhZjBhYjdmN2I1ZDgxNGE1YjI=
data/UPGRADE.md CHANGED
@@ -1,3 +1,8 @@
1
- ## 0.1
1
+ ## 0.2.0
2
+
3
+ subject#where should return self
4
+
5
+
6
+ ## 0.1.0
2
7
 
3
8
  Initial
@@ -150,6 +150,7 @@ class Scope
150
150
  attrs = args.extract_options!
151
151
  attrs.symbolize_keys!
152
152
  self.attributes = attrs
153
+ self
153
154
  end
154
155
 
155
156
  def attributes
@@ -1,3 +1,3 @@
1
1
  module ScopeComposer
2
- VERSION = "0.1.2"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -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.1.2
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-08-06 00:00:00.000000000 Z
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