inherited_resources 1.0.1 → 1.0.2
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.
- data/README.rdoc +8 -3
- data/Rakefile +2 -2
- data/lib/inherited_resources.rb +11 -0
- data/lib/inherited_resources/base.rb +3 -0
- data/lib/inherited_resources/version.rb +1 -1
- metadata +4 -4
data/README.rdoc
CHANGED
@@ -61,9 +61,14 @@ that through the following configuration value:
|
|
61
61
|
|
62
62
|
== Rspec known bug
|
63
63
|
|
64
|
-
|
65
|
-
|
66
|
-
|
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.
|
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
|
data/lib/inherited_resources.rb
CHANGED
@@ -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
|
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.
|
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:
|
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:
|
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.
|
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
|