responder_controller 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG ADDED
@@ -0,0 +1,3 @@
1
+ *ResponderController 0.1.1*
2
+
3
+ * Use AR#scoped instead of #all to create initial query, as #all gives a literal array (whoops.)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -145,9 +145,9 @@ module ResponderController
145
145
 
146
146
  # Find all models in #scope.
147
147
  #
148
- # The initial, unscoped is <tt>ClassMethods#model_class.all</tt>.
148
+ # The initial query is <tt>ClassMethods#model_class.scoped</tt>.
149
149
  def find_models
150
- scope model_class.all
150
+ scope model_class.scoped
151
151
  end
152
152
 
153
153
  # Find a particular model.
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{responder_controller}
8
- s.version = "0.1.0"
8
+ s.version = "0.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Phil Smith"]
12
- s.date = %q{2010-05-12}
12
+ s.date = %q{2010-05-19}
13
13
  s.description = %q{Responders make crud controllers tiny, this wraps the rest.}
14
14
  s.email = %q{phil.h.smith@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -19,6 +19,7 @@ Gem::Specification.new do |s|
19
19
  s.files = [
20
20
  ".document",
21
21
  ".gitignore",
22
+ "CHANGELOG",
22
23
  "LICENSE",
23
24
  "README.rdoc",
24
25
  "Rakefile",
@@ -199,10 +199,10 @@ describe "ResponderController" do
199
199
  end
200
200
 
201
201
  describe '#find_models' do
202
- it 'is #scope #model_class.find(:all)' do
202
+ it 'is #scope #model_class.scoped' do
203
203
  controller = PostsController.new
204
204
 
205
- Post.should_receive(:all).and_return(@query)
205
+ Post.should_receive(:scoped).and_return(@query)
206
206
  controller.should_receive(:scope).with(@query).and_return(@query)
207
207
 
208
208
  controller.find_models.should == @query
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 0
9
- version: 0.1.0
8
+ - 1
9
+ version: 0.1.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Phil Smith
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-05-12 00:00:00 -07:00
17
+ date: 2010-05-19 00:00:00 -07:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -58,6 +58,7 @@ extra_rdoc_files:
58
58
  files:
59
59
  - .document
60
60
  - .gitignore
61
+ - CHANGELOG
61
62
  - LICENSE
62
63
  - README.rdoc
63
64
  - Rakefile