inherited_resources 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -61,9 +61,14 @@ that through the following configuration value:
61
61
 
62
62
  == Rspec known bug
63
63
 
64
- When used with integrate_views equals to false, rspec overwrites default_render,
65
- render and some other controller methods which makes Inherited Resources not work
66
- properly. In such cases, you have to set integrate_views to true.
64
+ Rspec monkey patches a couple of controller methods in a way that Controller specs
65
+ (with integrate views true or false) and Inherited Resources are not compatible.
66
+
67
+ However, since your controllers inherit from InheritedResources::Base, they are
68
+ already unit-tested in the plugin, so there is no need to test them again in Rspec.
69
+
70
+ You should test things like url redirection and associations in your integration
71
+ specs.
67
72
 
68
73
  == Basic Usage
69
74
 
data/Rakefile CHANGED
@@ -17,8 +17,8 @@ begin
17
17
  s.description = "Inherited Resources speeds up development by making your controllers inherit all restful actions so you just have to focus on what is important."
18
18
  s.authors = ['José Valim']
19
19
  s.files = FileList["[A-Z]*", "init.rb", "{lib}/**/*"]
20
- s.add_dependency("responders", ">= 0.2")
21
- s.add_dependency("has_scope", ">= 0.3")
20
+ s.add_dependency("responders", ">= 0.4.2")
21
+ s.add_dependency("has_scope", ">= 0.4")
22
22
  end
23
23
 
24
24
  Jeweler::GemcutterTasks.new
@@ -12,6 +12,17 @@ I18n.load_path.unshift File.expand_path(File.join(File.dirname(__FILE__), 'inher
12
12
  module InheritedResources
13
13
  ACTIONS = [ :index, :show, :new, :edit, :create, :update, :destroy ] unless self.const_defined?(:ACTIONS)
14
14
 
15
+ autoload :Actions, 'inherited_resources/actions'
16
+ autoload :Base, 'inherited_resources/base'
17
+ autoload :BaseHelpers, 'inherited_resources/base_helpers'
18
+ autoload :BelongsToHelpers, 'inherited_resources/belongs_to_helpers'
19
+ autoload :ClassMethods, 'inherited_resources/class_methods'
20
+ autoload :DSL, 'inherited_resources/dsl'
21
+ autoload :PolymorphicHelpers, 'inherited_resources/polymorphic_helpers'
22
+ autoload :SingletonHelpers, 'inherited_resources/singleton_helpers'
23
+ autoload :UrlHelpers, 'inherited_resources/url_helpers'
24
+ autoload :VERSION, 'inherited_resources/version'
25
+
15
26
  # Change the flash keys used by FlashResponder.
16
27
  def self.flash_keys=(array)
17
28
  Responders::FlashResponder.flash_keys = array
@@ -1,3 +1,6 @@
1
+ require 'inherited_resources/blank_slate'
2
+ require 'inherited_resources/responder'
3
+
1
4
  module InheritedResources
2
5
  # = Base
3
6
  #
@@ -1,3 +1,3 @@
1
1
  module InheritedResources
2
- VERSION = '1.0.1'.freeze
2
+ VERSION = '1.0.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inherited_resources
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - "Jos\xC3\xA9 Valim"
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-12-29 00:00:00 +01:00
12
+ date: 2010-01-11 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -20,7 +20,7 @@ dependencies:
20
20
  requirements:
21
21
  - - ">="
22
22
  - !ruby/object:Gem::Version
23
- version: "0.2"
23
+ version: 0.4.2
24
24
  version:
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: has_scope
@@ -30,7 +30,7 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: "0.3"
33
+ version: "0.4"
34
34
  version:
35
35
  description: Inherited Resources speeds up development by making your controllers inherit all restful actions so you just have to focus on what is important.
36
36
  email: jose.valim@gmail.com