bootstrap-rails-flash 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 96285187efa11baf1487fc064399457f06158d10
4
- data.tar.gz: 0e01b478caa1f1b08006632625e515c7f34c2b38
3
+ metadata.gz: 612847f0ccf02ab28b75138e4b13044f38dd9d7e
4
+ data.tar.gz: e2667e6145d7770943a7fe5022a817eee1866b53
5
5
  SHA512:
6
- metadata.gz: ce71d189d72c9a6c4fdc9b995aafc5b7a6c5e5f7086bb5a968826ce36582cd62dbb0cde36ca3dea29dd73a6899a28c3ecd98a7a6b6517f237a031869f0a29699
7
- data.tar.gz: 22a55ae50cff2c40aef92ec61b5fb2c02a588e79f33fc7a5527ea45a74bcce18ce884a8994b043219e2ea737068ac2c8d61e573d2f7cc33e984e082298cd823b
6
+ metadata.gz: 7e00c52fc244072080d68204214bf8f3a5f27021d43aa004841a5968a451f334309bc325f1f16817a0c48a05cb001e9967f6dde67ef46fee0a1c7dde9a5d568d
7
+ data.tar.gz: da54c64d9de55c6cbba9dba0ba2645f97c7a0cb65ff42f25315874bcd5eb86c3ca720c26d7f89cd551d0c026a77d954d5455424bee7024b1a0969ef388d179a7
@@ -1,7 +1,3 @@
1
1
  require 'bootstrap_rails_flash/bootstrap_helper'
2
2
  require 'bootstrap_rails_flash/application_helper'
3
3
  require 'haml'
4
-
5
- module BootstrapRailsFlash
6
-
7
- end
@@ -4,7 +4,7 @@ class MessagesControllerTest < ActionController::TestCase
4
4
 
5
5
  test 'should show bootstrap flash message' do
6
6
  get :show
7
- assert response.body.include?('')
7
+ assert response.body.include?("<div class='alert alert-danger alert-dismissable fade in'>")
8
8
  end
9
9
 
10
10
  end
@@ -3,7 +3,7 @@ require File.expand_path('../boot', __FILE__)
3
3
  require 'rails/all'
4
4
 
5
5
  Bundler.require(*Rails.groups)
6
- require "bootstrap_rails_flash"
6
+ require "bootstrap-rails-flash"
7
7
 
8
8
  module Dummy
9
9
  class Application < Rails::Application
@@ -190,3 +190,28 @@ ActionView::Template::Error (undefined method `bootstrap_class_for' for #<#<Clas
190
190
  Rendered /Users/georg/.rvm/gems/ruby-2.1.0/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.7ms)
191
191
  Rendered /Users/georg/.rvm/gems/ruby-2.1.0/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.0ms)
192
192
  Rendered /Users/georg/.rvm/gems/ruby-2.1.0/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (11.6ms)
193
+
194
+
195
+ Started GET "/" for 127.0.0.1 at 2014-05-26 23:24:59 +0200
196
+ Processing by Rails::WelcomeController#index as HTML
197
+ Rendered /Users/georg/.rvm/gems/ruby-2.1.0/gems/railties-4.1.1/lib/rails/templates/rails/welcome/index.html.erb (1.6ms)
198
+ Completed 200 OK in 7ms (Views: 6.9ms | ActiveRecord: 0.0ms)
199
+
200
+
201
+ Started GET "/messages/show" for 127.0.0.1 at 2014-05-26 23:25:03 +0200
202
+ Processing by MessagesController#show as HTML
203
+ Rendered messages/show.html.erb within layouts/application (0.3ms)
204
+ Rendered shared/_flash_messages.html.haml (2.0ms)
205
+ Completed 200 OK in 41ms (Views: 30.7ms | ActiveRecord: 0.0ms)
206
+
207
+
208
+ Started GET "/assets/messages.js?body=1" for 127.0.0.1 at 2014-05-26 23:25:03 +0200
209
+
210
+
211
+ Started GET "/assets/messages.css?body=1" for 127.0.0.1 at 2014-05-26 23:25:03 +0200
212
+
213
+
214
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-05-26 23:25:03 +0200
215
+
216
+
217
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-05-26 23:25:03 +0200
@@ -129,3 +129,59 @@ Processing by MessagesController#show as HTML
129
129
  Rendered shared/_flash_messages.html.haml (2.7ms)
130
130
  Completed 200 OK in 21ms (Views: 20.8ms | ActiveRecord: 0.0ms)
131
131
   (0.1ms) rollback transaction
132
+  (0.1ms) begin transaction
133
+ ----------------------------------------------------------------
134
+ MessagesControllerTest: test_should_show_bootstrap_flash_message
135
+ ----------------------------------------------------------------
136
+ Processing by MessagesController#show as HTML
137
+ Rendered messages/show.html.erb within layouts/application (1.0ms)
138
+ Rendered shared/_flash_messages.html.haml (2.1ms)
139
+ Completed 200 OK in 18ms (Views: 18.2ms | ActiveRecord: 0.0ms)
140
+  (0.1ms) rollback transaction
141
+  (0.0ms) begin transaction
142
+ ------------------------------------------------------
143
+ BootstrapHelperTest: test_returns_class_for_flash_type
144
+ ------------------------------------------------------
145
+  (0.0ms) rollback transaction
146
+  (0.1ms) begin transaction
147
+ ----------------------------------------------------------------
148
+ MessagesControllerTest: test_should_show_bootstrap_flash_message
149
+ ----------------------------------------------------------------
150
+ Processing by MessagesController#show as HTML
151
+ Rendered messages/show.html.erb within layouts/application (1.2ms)
152
+ Rendered shared/_flash_messages.html.haml (2.9ms)
153
+ Completed 200 OK in 21ms (Views: 21.0ms | ActiveRecord: 0.0ms)
154
+  (0.1ms) rollback transaction
155
+  (0.1ms) begin transaction
156
+ ------------------------------------------------------
157
+ BootstrapHelperTest: test_returns_class_for_flash_type
158
+ ------------------------------------------------------
159
+  (0.1ms) rollback transaction
160
+  (0.1ms) begin transaction
161
+ ----------------------------------------------------------------
162
+ MessagesControllerTest: test_should_show_bootstrap_flash_message
163
+ ----------------------------------------------------------------
164
+ Processing by MessagesController#show as HTML
165
+ Rendered messages/show.html.erb within layouts/application (1.1ms)
166
+ Rendered shared/_flash_messages.html.haml (2.8ms)
167
+ Completed 200 OK in 20ms (Views: 20.2ms | ActiveRecord: 0.0ms)
168
+  (0.1ms) rollback transaction
169
+  (0.1ms) begin transaction
170
+ ------------------------------------------------------
171
+ BootstrapHelperTest: test_returns_class_for_flash_type
172
+ ------------------------------------------------------
173
+  (0.1ms) rollback transaction
174
+  (0.1ms) begin transaction
175
+ ----------------------------------------------------------------
176
+ MessagesControllerTest: test_should_show_bootstrap_flash_message
177
+ ----------------------------------------------------------------
178
+ Processing by MessagesController#show as HTML
179
+ Rendered messages/show.html.erb within layouts/application (1.6ms)
180
+ Rendered shared/_flash_messages.html.haml (2.1ms)
181
+ Completed 200 OK in 26ms (Views: 25.5ms | ActiveRecord: 0.0ms)
182
+  (0.1ms) rollback transaction
183
+  (0.1ms) begin transaction
184
+ ------------------------------------------------------
185
+ BootstrapHelperTest: test_returns_class_for_flash_type
186
+ ------------------------------------------------------
187
+  (0.0ms) rollback transaction
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap-rails-flash
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Georg Schlenkhoff
@@ -81,7 +81,7 @@ files:
81
81
  - MIT-LICENSE
82
82
  - Rakefile
83
83
  - app/views/shared/_flash_messages.html.haml
84
- - lib/bootstrap_rails_flash.rb
84
+ - lib/bootstrap-rails-flash.rb
85
85
  - lib/bootstrap_rails_flash/application_helper.rb
86
86
  - lib/bootstrap_rails_flash/bootstrap_helper.rb
87
87
  - lib/generators/bootstrap_rails_flash/install_generator.rb