flushing-flash 0.3.0 → 0.4.1

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.
Files changed (68) hide show
  1. data/flushing-flash.gemspec +63 -2
  2. data/lib/flushing-flash/action_controller_methods.rb +13 -3
  3. data/lib/flushing-flash/version.rb +2 -2
  4. data/test/dummy/Gemfile +2 -0
  5. data/test/dummy/Gemfile.lock +6 -0
  6. data/test/dummy/test/test_helper.rb +2 -0
  7. data/test/dummy-with-devise/.gitignore +5 -0
  8. data/test/dummy-with-devise/Gemfile +39 -0
  9. data/test/dummy-with-devise/Gemfile.lock +130 -0
  10. data/test/dummy-with-devise/README +261 -0
  11. data/test/dummy-with-devise/Rakefile +7 -0
  12. data/test/dummy-with-devise/app/assets/images/rails.png +0 -0
  13. data/test/dummy-with-devise/app/assets/javascripts/application.js +9 -0
  14. data/test/dummy-with-devise/app/assets/javascripts/home.js.coffee +3 -0
  15. data/test/dummy-with-devise/app/assets/stylesheets/application.css +7 -0
  16. data/test/dummy-with-devise/app/assets/stylesheets/home.css.scss +3 -0
  17. data/test/dummy-with-devise/app/controllers/application_controller.rb +3 -0
  18. data/test/dummy-with-devise/app/controllers/home_controller.rb +5 -0
  19. data/test/dummy-with-devise/app/helpers/application_helper.rb +2 -0
  20. data/test/dummy-with-devise/app/helpers/home_helper.rb +2 -0
  21. data/test/dummy-with-devise/app/mailers/.gitkeep +0 -0
  22. data/test/dummy-with-devise/app/models/.gitkeep +0 -0
  23. data/test/dummy-with-devise/app/models/user.rb +9 -0
  24. data/test/dummy-with-devise/app/views/home/index.html.erb +2 -0
  25. data/test/dummy-with-devise/app/views/layouts/application.html.erb +23 -0
  26. data/test/dummy-with-devise/config/application.rb +48 -0
  27. data/test/dummy-with-devise/config/boot.rb +6 -0
  28. data/test/dummy-with-devise/config/database.yml +25 -0
  29. data/test/dummy-with-devise/config/environment.rb +5 -0
  30. data/test/dummy-with-devise/config/environments/development.rb +31 -0
  31. data/test/dummy-with-devise/config/environments/production.rb +60 -0
  32. data/test/dummy-with-devise/config/environments/test.rb +39 -0
  33. data/test/dummy-with-devise/config/initializers/backtrace_silencers.rb +7 -0
  34. data/test/dummy-with-devise/config/initializers/devise.rb +210 -0
  35. data/test/dummy-with-devise/config/initializers/inflections.rb +10 -0
  36. data/test/dummy-with-devise/config/initializers/mime_types.rb +5 -0
  37. data/test/dummy-with-devise/config/initializers/secret_token.rb +7 -0
  38. data/test/dummy-with-devise/config/initializers/session_store.rb +8 -0
  39. data/test/dummy-with-devise/config/initializers/wrap_parameters.rb +14 -0
  40. data/test/dummy-with-devise/config/locales/devise.en.yml +58 -0
  41. data/test/dummy-with-devise/config/locales/en.yml +5 -0
  42. data/test/dummy-with-devise/config/routes.rb +62 -0
  43. data/test/dummy-with-devise/config.ru +4 -0
  44. data/test/dummy-with-devise/db/migrate/20111110074559_devise_create_users.rb +28 -0
  45. data/test/dummy-with-devise/db/schema.rb +34 -0
  46. data/test/dummy-with-devise/db/seeds.rb +7 -0
  47. data/test/dummy-with-devise/lib/assets/.gitkeep +0 -0
  48. data/test/dummy-with-devise/lib/tasks/.gitkeep +0 -0
  49. data/test/dummy-with-devise/log/.gitkeep +0 -0
  50. data/test/dummy-with-devise/public/404.html +26 -0
  51. data/test/dummy-with-devise/public/422.html +26 -0
  52. data/test/dummy-with-devise/public/500.html +26 -0
  53. data/test/dummy-with-devise/public/favicon.ico +0 -0
  54. data/test/dummy-with-devise/public/robots.txt +5 -0
  55. data/test/dummy-with-devise/script/rails +6 -0
  56. data/test/dummy-with-devise/test/fixtures/.gitkeep +0 -0
  57. data/test/dummy-with-devise/test/fixtures/users.yml +11 -0
  58. data/test/dummy-with-devise/test/functional/.gitkeep +0 -0
  59. data/test/dummy-with-devise/test/functional/home_controller_test.rb +9 -0
  60. data/test/dummy-with-devise/test/integration/.gitkeep +0 -0
  61. data/test/dummy-with-devise/test/performance/browsing_test.rb +12 -0
  62. data/test/dummy-with-devise/test/test_helper.rb +13 -0
  63. data/test/dummy-with-devise/test/unit/.gitkeep +0 -0
  64. data/test/dummy-with-devise/test/unit/helpers/home_helper_test.rb +4 -0
  65. data/test/dummy-with-devise/test/unit/user_test.rb +7 -0
  66. data/test/dummy-with-devise/vendor/assets/stylesheets/.gitkeep +0 -0
  67. data/test/dummy-with-devise/vendor/plugins/.gitkeep +0 -0
  68. metadata +72 -11
@@ -0,0 +1,28 @@
1
+ class DeviseCreateUsers < ActiveRecord::Migration
2
+ def self.up
3
+ create_table(:users) do |t|
4
+ t.database_authenticatable :null => false
5
+ t.recoverable
6
+ t.rememberable
7
+ t.trackable
8
+
9
+ # t.encryptable
10
+ # t.confirmable
11
+ # t.lockable :lock_strategy => :failed_attempts, :unlock_strategy => :both
12
+ # t.token_authenticatable
13
+
14
+
15
+ t.timestamps
16
+ end
17
+
18
+ add_index :users, :email, :unique => true
19
+ add_index :users, :reset_password_token, :unique => true
20
+ # add_index :users, :confirmation_token, :unique => true
21
+ # add_index :users, :unlock_token, :unique => true
22
+ # add_index :users, :authentication_token, :unique => true
23
+ end
24
+
25
+ def self.down
26
+ drop_table :users
27
+ end
28
+ end
@@ -0,0 +1,34 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended to check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(:version => 20111110074559) do
15
+
16
+ create_table "users", :force => true do |t|
17
+ t.string "email", :default => "", :null => false
18
+ t.string "encrypted_password", :limit => 128, :default => "", :null => false
19
+ t.string "reset_password_token"
20
+ t.datetime "reset_password_sent_at"
21
+ t.datetime "remember_created_at"
22
+ t.integer "sign_in_count", :default => 0
23
+ t.datetime "current_sign_in_at"
24
+ t.datetime "last_sign_in_at"
25
+ t.string "current_sign_in_ip"
26
+ t.string "last_sign_in_ip"
27
+ t.datetime "created_at"
28
+ t.datetime "updated_at"
29
+ end
30
+
31
+ add_index "users", ["email"], :name => "index_users_on_email", :unique => true
32
+ add_index "users", ["reset_password_token"], :name => "index_users_on_reset_password_token", :unique => true
33
+
34
+ end
@@ -0,0 +1,7 @@
1
+ # This file should contain all the record creation needed to seed the database with its default values.
2
+ # The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
3
+ #
4
+ # Examples:
5
+ #
6
+ # cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
7
+ # Mayor.create(name: 'Emanuel', city: cities.first)
File without changes
File without changes
File without changes
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/404.html -->
21
+ <div class="dialog">
22
+ <h1>The page you were looking for doesn't exist.</h1>
23
+ <p>You may have mistyped the address or the page may have moved.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/422.html -->
21
+ <div class="dialog">
22
+ <h1>The change you wanted was rejected.</h1>
23
+ <p>Maybe you tried to change something you didn't have access to.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/500.html -->
21
+ <div class="dialog">
22
+ <h1>We're sorry, but something went wrong.</h1>
23
+ <p>We've been notified about this issue and we'll take a look at it shortly.</p>
24
+ </div>
25
+ </body>
26
+ </html>
File without changes
@@ -0,0 +1,5 @@
1
+ # See http://www.robotstxt.org/wc/norobots.html for documentation on how to use the robots.txt file
2
+ #
3
+ # To ban all spiders from the entire site uncomment the next two lines:
4
+ # User-Agent: *
5
+ # Disallow: /
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
+
4
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
5
+ require File.expand_path('../../config/boot', __FILE__)
6
+ require 'rails/commands'
File without changes
@@ -0,0 +1,11 @@
1
+ # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
2
+
3
+ # This model initially had no columns defined. If you add columns to the
4
+ # model remove the '{}' from the fixture names and add the columns immediately
5
+ # below each fixture, per the syntax in the comments below
6
+ #
7
+ one: {}
8
+ # column: value
9
+ #
10
+ two: {}
11
+ # column: value
File without changes
@@ -0,0 +1,9 @@
1
+ require 'test_helper'
2
+
3
+ class HomeControllerTest < ActionController::TestCase
4
+ test "should get index" do
5
+ get :index
6
+ assert_response :success
7
+ end
8
+
9
+ end
File without changes
@@ -0,0 +1,12 @@
1
+ require 'test_helper'
2
+ require 'rails/performance_test_help'
3
+
4
+ class BrowsingTest < ActionDispatch::PerformanceTest
5
+ # Refer to the documentation for all available options
6
+ # self.profile_options = { :runs => 5, :metrics => [:wall_time, :memory]
7
+ # :output => 'tmp/performance', :formats => [:flat] }
8
+
9
+ def test_homepage
10
+ get '/'
11
+ end
12
+ end
@@ -0,0 +1,13 @@
1
+ ENV["RAILS_ENV"] = "test"
2
+ require File.expand_path('../../config/environment', __FILE__)
3
+ require 'rails/test_help'
4
+
5
+ class ActiveSupport::TestCase
6
+ # Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order.
7
+ #
8
+ # Note: You'll currently still have to declare fixtures explicitly in integration tests
9
+ # -- they do not yet inherit this setting
10
+ fixtures :all
11
+
12
+ # Add more helper methods to be used by all tests here...
13
+ end
File without changes
@@ -0,0 +1,4 @@
1
+ require 'test_helper'
2
+
3
+ class HomeHelperTest < ActionView::TestCase
4
+ end
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class UserTest < ActiveSupport::TestCase
4
+ # test "the truth" do
5
+ # assert true
6
+ # end
7
+ end
File without changes
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flushing-flash
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-11-05 00:00:00.000000000Z
12
+ date: 2011-11-10 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: shoulda
16
- requirement: &70097582863580 !ruby/object:Gem::Requirement
16
+ requirement: &70236481596740 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70097582863580
24
+ version_requirements: *70236481596740
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: bundler
27
- requirement: &70097582862040 !ruby/object:Gem::Requirement
27
+ requirement: &70236481572300 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 1.0.0
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70097582862040
35
+ version_requirements: *70236481572300
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: jeweler
38
- requirement: &70097582860220 !ruby/object:Gem::Requirement
38
+ requirement: &70236481568120 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 1.6.4
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70097582860220
46
+ version_requirements: *70236481568120
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rcov
49
- requirement: &70097582856980 !ruby/object:Gem::Requirement
49
+ requirement: &70236481564860 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70097582856980
57
+ version_requirements: *70236481564860
58
58
  description: To provide helper methods for handling rails flash messages.
59
59
  email: peter@peterwongpp.com
60
60
  executables: []
@@ -75,6 +75,67 @@ files:
75
75
  - lib/flushing-flash/action_controller_methods.rb
76
76
  - lib/flushing-flash/action_view_methods.rb
77
77
  - lib/flushing-flash/version.rb
78
+ - test/dummy-with-devise/.gitignore
79
+ - test/dummy-with-devise/Gemfile
80
+ - test/dummy-with-devise/Gemfile.lock
81
+ - test/dummy-with-devise/README
82
+ - test/dummy-with-devise/Rakefile
83
+ - test/dummy-with-devise/app/assets/images/rails.png
84
+ - test/dummy-with-devise/app/assets/javascripts/application.js
85
+ - test/dummy-with-devise/app/assets/javascripts/home.js.coffee
86
+ - test/dummy-with-devise/app/assets/stylesheets/application.css
87
+ - test/dummy-with-devise/app/assets/stylesheets/home.css.scss
88
+ - test/dummy-with-devise/app/controllers/application_controller.rb
89
+ - test/dummy-with-devise/app/controllers/home_controller.rb
90
+ - test/dummy-with-devise/app/helpers/application_helper.rb
91
+ - test/dummy-with-devise/app/helpers/home_helper.rb
92
+ - test/dummy-with-devise/app/mailers/.gitkeep
93
+ - test/dummy-with-devise/app/models/.gitkeep
94
+ - test/dummy-with-devise/app/models/user.rb
95
+ - test/dummy-with-devise/app/views/home/index.html.erb
96
+ - test/dummy-with-devise/app/views/layouts/application.html.erb
97
+ - test/dummy-with-devise/config.ru
98
+ - test/dummy-with-devise/config/application.rb
99
+ - test/dummy-with-devise/config/boot.rb
100
+ - test/dummy-with-devise/config/database.yml
101
+ - test/dummy-with-devise/config/environment.rb
102
+ - test/dummy-with-devise/config/environments/development.rb
103
+ - test/dummy-with-devise/config/environments/production.rb
104
+ - test/dummy-with-devise/config/environments/test.rb
105
+ - test/dummy-with-devise/config/initializers/backtrace_silencers.rb
106
+ - test/dummy-with-devise/config/initializers/devise.rb
107
+ - test/dummy-with-devise/config/initializers/inflections.rb
108
+ - test/dummy-with-devise/config/initializers/mime_types.rb
109
+ - test/dummy-with-devise/config/initializers/secret_token.rb
110
+ - test/dummy-with-devise/config/initializers/session_store.rb
111
+ - test/dummy-with-devise/config/initializers/wrap_parameters.rb
112
+ - test/dummy-with-devise/config/locales/devise.en.yml
113
+ - test/dummy-with-devise/config/locales/en.yml
114
+ - test/dummy-with-devise/config/routes.rb
115
+ - test/dummy-with-devise/db/migrate/20111110074559_devise_create_users.rb
116
+ - test/dummy-with-devise/db/schema.rb
117
+ - test/dummy-with-devise/db/seeds.rb
118
+ - test/dummy-with-devise/lib/assets/.gitkeep
119
+ - test/dummy-with-devise/lib/tasks/.gitkeep
120
+ - test/dummy-with-devise/log/.gitkeep
121
+ - test/dummy-with-devise/public/404.html
122
+ - test/dummy-with-devise/public/422.html
123
+ - test/dummy-with-devise/public/500.html
124
+ - test/dummy-with-devise/public/favicon.ico
125
+ - test/dummy-with-devise/public/robots.txt
126
+ - test/dummy-with-devise/script/rails
127
+ - test/dummy-with-devise/test/fixtures/.gitkeep
128
+ - test/dummy-with-devise/test/fixtures/users.yml
129
+ - test/dummy-with-devise/test/functional/.gitkeep
130
+ - test/dummy-with-devise/test/functional/home_controller_test.rb
131
+ - test/dummy-with-devise/test/integration/.gitkeep
132
+ - test/dummy-with-devise/test/performance/browsing_test.rb
133
+ - test/dummy-with-devise/test/test_helper.rb
134
+ - test/dummy-with-devise/test/unit/.gitkeep
135
+ - test/dummy-with-devise/test/unit/helpers/home_helper_test.rb
136
+ - test/dummy-with-devise/test/unit/user_test.rb
137
+ - test/dummy-with-devise/vendor/assets/stylesheets/.gitkeep
138
+ - test/dummy-with-devise/vendor/plugins/.gitkeep
78
139
  - test/dummy/.gitignore
79
140
  - test/dummy/Gemfile
80
141
  - test/dummy/Gemfile.lock
@@ -158,7 +219,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
158
219
  version: '0'
159
220
  segments:
160
221
  - 0
161
- hash: 1646023533304488713
222
+ hash: -1345439354169770468
162
223
  required_rubygems_version: !ruby/object:Gem::Requirement
163
224
  none: false
164
225
  requirements: