responders 0.6.4 → 0.6.5
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +1 -0
- data/Gemfile +1 -3
- data/Gemfile.lock +57 -59
- data/MIT-LICENSE +1 -1
- data/README.rdoc +5 -1
- data/Rakefile +1 -1
- data/lib/generators/rails/responders_controller_generator.rb +6 -2
- data/lib/responders/version.rb +1 -1
- metadata +5 -7
data/CHANGELOG.rdoc
CHANGED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -2,81 +2,79 @@ GEM
|
|
2
2
|
remote: http://rubygems.org/
|
3
3
|
specs:
|
4
4
|
abstract (1.0.0)
|
5
|
-
actionmailer (3.0.
|
6
|
-
actionpack (= 3.0.
|
7
|
-
mail (~> 2.2.
|
8
|
-
actionpack (3.0.
|
9
|
-
activemodel (= 3.0.
|
10
|
-
activesupport (= 3.0.
|
5
|
+
actionmailer (3.0.11)
|
6
|
+
actionpack (= 3.0.11)
|
7
|
+
mail (~> 2.2.19)
|
8
|
+
actionpack (3.0.11)
|
9
|
+
activemodel (= 3.0.11)
|
10
|
+
activesupport (= 3.0.11)
|
11
11
|
builder (~> 2.1.2)
|
12
12
|
erubis (~> 2.6.6)
|
13
|
-
i18n (~> 0.
|
13
|
+
i18n (~> 0.5.0)
|
14
14
|
rack (~> 1.2.1)
|
15
|
-
rack-mount (~> 0.6.
|
16
|
-
rack-test (~> 0.5.
|
15
|
+
rack-mount (~> 0.6.14)
|
16
|
+
rack-test (~> 0.5.7)
|
17
17
|
tzinfo (~> 0.3.23)
|
18
|
-
activemodel (3.0.
|
19
|
-
activesupport (= 3.0.
|
18
|
+
activemodel (3.0.11)
|
19
|
+
activesupport (= 3.0.11)
|
20
20
|
builder (~> 2.1.2)
|
21
|
-
i18n (~> 0.
|
22
|
-
activerecord (3.0.
|
23
|
-
activemodel (= 3.0.
|
24
|
-
activesupport (= 3.0.
|
25
|
-
arel (~>
|
21
|
+
i18n (~> 0.5.0)
|
22
|
+
activerecord (3.0.11)
|
23
|
+
activemodel (= 3.0.11)
|
24
|
+
activesupport (= 3.0.11)
|
25
|
+
arel (~> 2.0.10)
|
26
26
|
tzinfo (~> 0.3.23)
|
27
|
-
activeresource (3.0.
|
28
|
-
activemodel (= 3.0.
|
29
|
-
activesupport (= 3.0.
|
30
|
-
activesupport (3.0.
|
31
|
-
arel (
|
32
|
-
activesupport (~> 3.0.0)
|
27
|
+
activeresource (3.0.11)
|
28
|
+
activemodel (= 3.0.11)
|
29
|
+
activesupport (= 3.0.11)
|
30
|
+
activesupport (3.0.11)
|
31
|
+
arel (2.0.10)
|
33
32
|
builder (2.1.2)
|
34
|
-
columnize (0.3.1)
|
35
33
|
erubis (2.6.6)
|
36
34
|
abstract (>= 1.0.0)
|
37
|
-
i18n (0.
|
38
|
-
|
39
|
-
mail (2.2.
|
35
|
+
i18n (0.5.0)
|
36
|
+
json (1.6.5)
|
37
|
+
mail (2.2.19)
|
40
38
|
activesupport (>= 2.3.6)
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
39
|
+
i18n (>= 0.4.0)
|
40
|
+
mime-types (~> 1.16)
|
41
|
+
treetop (~> 1.4.8)
|
42
|
+
metaclass (0.0.1)
|
43
|
+
mime-types (1.17.2)
|
44
|
+
mocha (0.10.3)
|
45
|
+
metaclass (~> 0.0.1)
|
46
|
+
polyglot (0.3.3)
|
47
|
+
rack (1.2.5)
|
48
|
+
rack-mount (0.6.14)
|
49
49
|
rack (>= 1.0.0)
|
50
|
-
rack-test (0.5.
|
50
|
+
rack-test (0.5.7)
|
51
51
|
rack (>= 1.0)
|
52
|
-
rails (3.0.
|
53
|
-
actionmailer (= 3.0.
|
54
|
-
actionpack (= 3.0.
|
55
|
-
activerecord (= 3.0.
|
56
|
-
activeresource (= 3.0.
|
57
|
-
activesupport (= 3.0.
|
58
|
-
bundler (~> 1.0
|
59
|
-
railties (= 3.0.
|
60
|
-
railties (3.0.
|
61
|
-
actionpack (= 3.0.
|
62
|
-
activesupport (= 3.0.
|
63
|
-
rake (>= 0.8.
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
treetop (1.4.8)
|
52
|
+
rails (3.0.11)
|
53
|
+
actionmailer (= 3.0.11)
|
54
|
+
actionpack (= 3.0.11)
|
55
|
+
activerecord (= 3.0.11)
|
56
|
+
activeresource (= 3.0.11)
|
57
|
+
activesupport (= 3.0.11)
|
58
|
+
bundler (~> 1.0)
|
59
|
+
railties (= 3.0.11)
|
60
|
+
railties (3.0.11)
|
61
|
+
actionpack (= 3.0.11)
|
62
|
+
activesupport (= 3.0.11)
|
63
|
+
rake (>= 0.8.7)
|
64
|
+
rdoc (~> 3.4)
|
65
|
+
thor (~> 0.14.4)
|
66
|
+
rake (0.9.2.2)
|
67
|
+
rdoc (3.12)
|
68
|
+
json (~> 1.4)
|
69
|
+
thor (0.14.6)
|
70
|
+
treetop (1.4.10)
|
71
|
+
polyglot
|
73
72
|
polyglot (>= 0.3.1)
|
74
|
-
tzinfo (0.3.
|
73
|
+
tzinfo (0.3.31)
|
75
74
|
|
76
75
|
PLATFORMS
|
77
76
|
ruby
|
78
77
|
|
79
78
|
DEPENDENCIES
|
80
79
|
mocha
|
81
|
-
rails (
|
82
|
-
ruby-debug
|
80
|
+
rails (~> 3.0.0)
|
data/MIT-LICENSE
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
Copyright
|
1
|
+
Copyright 2012 Plataforma Tecnologia. http://blog.plataformatec.com.br
|
2
2
|
|
3
3
|
Permission is hereby granted, free of charge, to any person obtaining
|
4
4
|
a copy of this software and associated documentation files (the
|
data/README.rdoc
CHANGED
@@ -50,6 +50,10 @@ The first step is instal responders gem and configure it in your application:
|
|
50
50
|
|
51
51
|
gem install responders
|
52
52
|
|
53
|
+
In your Gemfile, add this line:
|
54
|
+
|
55
|
+
gem "responders"
|
56
|
+
|
53
57
|
Responders only provides a set of modules, to use them, you have to create your own
|
54
58
|
responder. This can be done inside the lib folder for example:
|
55
59
|
|
@@ -93,4 +97,4 @@ If you discover any bugs or want to drop a line, feel free to create an issue on
|
|
93
97
|
|
94
98
|
http://github.com/plataformatec/responders/issues
|
95
99
|
|
96
|
-
MIT License. Copyright
|
100
|
+
MIT License. Copyright 2012 Plataforma Tecnologia. http://blog.plataformatec.com.br
|
data/Rakefile
CHANGED
@@ -5,10 +5,14 @@ module Rails
|
|
5
5
|
class RespondersControllerGenerator < ScaffoldControllerGenerator
|
6
6
|
source_root File.expand_path("../templates", __FILE__)
|
7
7
|
|
8
|
-
|
8
|
+
protected
|
9
9
|
|
10
10
|
def flash?
|
11
|
-
|
11
|
+
if defined?(ApplicationController)
|
12
|
+
!ApplicationController.responder.ancestors.include?(Responders::FlashResponder)
|
13
|
+
else
|
14
|
+
Rails.application.config.responders.flash_keys.blank?
|
15
|
+
end
|
12
16
|
end
|
13
17
|
end
|
14
18
|
end
|
data/lib/responders/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: responders
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 13
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 6
|
9
|
-
-
|
10
|
-
version: 0.6.
|
9
|
+
- 5
|
10
|
+
version: 0.6.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- "Jos\xC3\xA9 Valim"
|
@@ -15,8 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
19
|
-
default_executable:
|
18
|
+
date: 2012-01-25 00:00:00 Z
|
20
19
|
dependencies: []
|
21
20
|
|
22
21
|
description: A set of Rails 3 responders to dry up your application
|
@@ -55,7 +54,6 @@ files:
|
|
55
54
|
- test/views/addresses/create.js.erb
|
56
55
|
- test/views/addresses/edit.html.erb
|
57
56
|
- test/views/addresses/new.html.erb
|
58
|
-
has_rdoc: true
|
59
57
|
homepage: http://github.com/plataformatec/responders
|
60
58
|
licenses: []
|
61
59
|
|
@@ -85,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
85
83
|
requirements: []
|
86
84
|
|
87
85
|
rubyforge_project: responders
|
88
|
-
rubygems_version: 1.
|
86
|
+
rubygems_version: 1.8.15
|
89
87
|
signing_key:
|
90
88
|
specification_version: 3
|
91
89
|
summary: A set of Rails 3 responders to dry up your application
|