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 CHANGED
@@ -1,5 +1,6 @@
1
1
  == 0.6
2
2
 
3
+ * Allow engine detection in generators
3
4
  * HTTP Cache is no longer triggered for collections
4
5
  * :js now sets the flash.now by default, instead of flash
5
6
  * Renamed responders_install generator to responders:install
data/Gemfile CHANGED
@@ -1,10 +1,8 @@
1
1
  source "http://rubygems.org"
2
2
 
3
- gem "rails", "3.0.0"
3
+ gem "rails", "~> 3.0.0"
4
4
  gem "mocha"
5
5
 
6
6
  if RUBY_VERSION < "1.9"
7
7
  gem "ruby-debug"
8
- else
9
- gem "test-unit"
10
8
  end
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.0)
6
- actionpack (= 3.0.0)
7
- mail (~> 2.2.5)
8
- actionpack (3.0.0)
9
- activemodel (= 3.0.0)
10
- activesupport (= 3.0.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.4.1)
13
+ i18n (~> 0.5.0)
14
14
  rack (~> 1.2.1)
15
- rack-mount (~> 0.6.12)
16
- rack-test (~> 0.5.4)
15
+ rack-mount (~> 0.6.14)
16
+ rack-test (~> 0.5.7)
17
17
  tzinfo (~> 0.3.23)
18
- activemodel (3.0.0)
19
- activesupport (= 3.0.0)
18
+ activemodel (3.0.11)
19
+ activesupport (= 3.0.11)
20
20
  builder (~> 2.1.2)
21
- i18n (~> 0.4.1)
22
- activerecord (3.0.0)
23
- activemodel (= 3.0.0)
24
- activesupport (= 3.0.0)
25
- arel (~> 1.0.0)
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.0)
28
- activemodel (= 3.0.0)
29
- activesupport (= 3.0.0)
30
- activesupport (3.0.0)
31
- arel (1.0.1)
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.4.1)
38
- linecache (0.43)
39
- mail (2.2.5)
35
+ i18n (0.5.0)
36
+ json (1.6.5)
37
+ mail (2.2.19)
40
38
  activesupport (>= 2.3.6)
41
- mime-types
42
- treetop (>= 1.4.5)
43
- mime-types (1.16)
44
- mocha (0.9.8)
45
- rake
46
- polyglot (0.3.1)
47
- rack (1.2.1)
48
- rack-mount (0.6.13)
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.4)
50
+ rack-test (0.5.7)
51
51
  rack (>= 1.0)
52
- rails (3.0.0)
53
- actionmailer (= 3.0.0)
54
- actionpack (= 3.0.0)
55
- activerecord (= 3.0.0)
56
- activeresource (= 3.0.0)
57
- activesupport (= 3.0.0)
58
- bundler (~> 1.0.0)
59
- railties (= 3.0.0)
60
- railties (3.0.0)
61
- actionpack (= 3.0.0)
62
- activesupport (= 3.0.0)
63
- rake (>= 0.8.4)
64
- thor (~> 0.14.0)
65
- rake (0.8.7)
66
- ruby-debug (0.10.3)
67
- columnize (>= 0.1)
68
- ruby-debug-base (~> 0.10.3.0)
69
- ruby-debug-base (0.10.3)
70
- linecache (>= 0.3)
71
- thor (0.14.0)
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.23)
73
+ tzinfo (0.3.31)
75
74
 
76
75
  PLATFORMS
77
76
  ruby
78
77
 
79
78
  DEPENDENCIES
80
79
  mocha
81
- rails (= 3.0.0)
82
- ruby-debug
80
+ rails (~> 3.0.0)
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2010 Plataforma Tecnologia. http://blog.plataformatec.com.br
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 2010 Plataforma Tecnologia. http://blog.plataformatec.com.br
100
+ MIT License. Copyright 2012 Plataforma Tecnologia. http://blog.plataformatec.com.br
data/Rakefile CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  require 'rake'
4
4
  require 'rake/testtask'
5
- require 'rake/rdoctask'
5
+ require 'rdoc/task'
6
6
  require File.join(File.dirname(__FILE__), 'lib', 'responders', 'version')
7
7
 
8
8
  desc 'Default: run unit tests'
@@ -5,10 +5,14 @@ module Rails
5
5
  class RespondersControllerGenerator < ScaffoldControllerGenerator
6
6
  source_root File.expand_path("../templates", __FILE__)
7
7
 
8
- protected
8
+ protected
9
9
 
10
10
  def flash?
11
- !ApplicationController.responder.ancestors.include?(Responders::FlashResponder)
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
@@ -1,3 +1,3 @@
1
1
  module Responders
2
- VERSION = "0.6.4".freeze
2
+ VERSION = "0.6.5".freeze
3
3
  end
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: 15
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 4
10
- version: 0.6.4
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: 2011-05-07 00:00:00 +02:00
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.5.3
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