alert_message 1.1.7 → 1.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rspec +1 -1
- data/lib/generators/alert_message/templates/_alerts.html.erb +5 -5
- data/lib/version/version.rb +1 -1
- data/spec/alert_message/version_spec.rb +1 -1
- data/spec/dummy/app/controllers/home_controller.rb +1 -1
- data/spec/dummy/app/views/layouts/_alerts.html.erb +5 -5
- data/spec/features/alert_message_spec.rb +9 -3
- data/spec/spec_helper.rb +1 -1
- data/vendor/assets/stylesheets/alert_message.scss +1 -1
- metadata +30 -28
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 84a0a20779b2284425988b7a61f25ad967fff42a
|
4
|
+
data.tar.gz: af2ebede33ec49acddd523213a9ab3cd41e7e7bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f99859365a8cf991776a6e8fb2e5967fa05d6a56b10d8ae3c11905135ab2625f433bdded164cbfbe725ca3f3180c0fcb39758f95682c71c062cc84884adf6a08
|
7
|
+
data.tar.gz: 9e35a7e4f433e720988e6138c22c5f41db4bf5945b9c1ce6b992267997dbc5b71d5e2c98002ecdcf51461db9e1084a8f893ea85f498588a4f1688fdf2538ab18
|
data/.rspec
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
<% flash.each do |key, value| %>
|
2
2
|
<%
|
3
|
-
|
4
|
-
key = '
|
3
|
+
unless ['success', 'danger', 'error'].include?(key)
|
4
|
+
key = 'notice'
|
5
5
|
end
|
6
6
|
%>
|
7
|
-
|
8
|
-
|
9
|
-
|
7
|
+
<div class="alert-message alert-message-<%= key %>">
|
8
|
+
<%= value.html_safe %>
|
9
|
+
</div>
|
10
10
|
<% end %>
|
data/lib/version/version.rb
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
<% flash.each do |key, value| %>
|
2
2
|
<%
|
3
|
-
|
4
|
-
key = '
|
3
|
+
unless ['success', 'danger', 'error'].include?(key)
|
4
|
+
key = 'notice'
|
5
5
|
end
|
6
6
|
%>
|
7
|
-
|
8
|
-
|
9
|
-
|
7
|
+
<div class="alert-message alert-message-<%= key %>">
|
8
|
+
<%= value.html_safe %>
|
9
|
+
</div>
|
10
10
|
<% end %>
|
@@ -2,13 +2,19 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
feature 'show message', type: :feature do
|
4
4
|
|
5
|
-
selectors = %w(error notice success)
|
5
|
+
selectors = %w(error danger notice success)
|
6
6
|
|
7
7
|
selectors.each do |selector|
|
8
|
-
scenario
|
8
|
+
scenario "with valid selector" do
|
9
9
|
visit home_path(message: selector)
|
10
10
|
expect(page).to have_selector(".alert-message-#{selector}")
|
11
11
|
expect(page).to have_text("test #{selector} message")
|
12
12
|
end
|
13
13
|
end
|
14
|
-
|
14
|
+
|
15
|
+
scenario "with invalid selector" do
|
16
|
+
visit home_path(message: "wrong_selector")
|
17
|
+
expect(page).to have_selector(".alert-message-notice")
|
18
|
+
expect(page).to have_text("test wrong_selector message")
|
19
|
+
end
|
20
|
+
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: alert_message
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luiz Picolo
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2017-05-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -198,35 +198,37 @@ files:
|
|
198
198
|
- spec/dummy/public/uploads/rails_admin_content_builder/content_builder_image/image/2/center_example.jpg
|
199
199
|
- spec/dummy/public/uploads/rails_admin_content_builder/content_builder_image/image/2/example.jpg
|
200
200
|
- spec/dummy/public/uploads/rails_admin_content_builder/content_builder_image/image/2/left_or_right_example.jpg
|
201
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0
|
202
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/
|
203
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/
|
204
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/
|
205
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/
|
206
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/
|
207
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/
|
208
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/
|
209
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/
|
210
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/LS/LSFfDJ5-koMS4YIGbiJ2h4uZA8F3NgtcI9anatJ37xg.cache
|
211
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Mu/MuaSo_KOoOey-8Pj9B5wGtvJ-1MRk66inANspWfEkkQ.cache
|
212
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/N2/N2YuSs7IthN8uqOrFuCcPatO-kdSZ-nxfibmFMsJevQ.cache
|
201
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/24/24xLphksiFLkOJsNwjhHV8csV6xjgF72clahZzIS4hs.cache
|
202
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/2z/2zM3lL3ceuU8VahfOf15kLsspMRnaYCs7ejP2P71SDs.cache
|
203
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/3J/3J0IbqeWz6vo8nTxgPT9skUj2WgUknFgJFFHc-V3upw.cache
|
204
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/50/50iYoNv12ReM_w6xVbQKsSDK9ILti1w4w-DWFOmMo3U.cache
|
205
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/7B/7BFuxkgWdAuT7fJ-9zF9Z5AAwaoOEpPMnAOAgUzFWgk.cache
|
206
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/7s/7sIGdxVor9_hYnOaA5MsQTvAkMBqVb0mnwDqfHin8BQ.cache
|
207
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/A7/A7pQdEMOtj5SXh1CGogj07Uhgq7DJqaW2uTN8LSqj90.cache
|
208
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/AR/ARvDmPtLpytxl-oaQFi4zo7PUQ0M1vsWzwrsGVAdLdA.cache
|
209
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Lv/LvcZnMjHRHhPjy4ba5Z_I34ZEwus1CK1DvtGM3g4paE.cache
|
213
210
|
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Ok/OkDlaZcN8rrgBMIS-sjrleLMHmfwGb7uytdHFGAKyKQ.cache
|
214
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/PV/PVBO46Q1_CamxNf7kjGRA8f1WlYCGGMVYGrHrW6VBMI.cache
|
215
211
|
- spec/dummy/tmp/cache/assets/sprockets/v3.0/QM/QMUiivRdxFCeRM9TCF9MnYVpBJyvo0QfR_98E2Wze2M.cache
|
216
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/
|
217
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/
|
218
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/
|
219
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/
|
220
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/
|
212
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Re/Re5aR2FiIBFbBE_tFfGqee_uuQsoI2O8SbZY-0swAWA.cache
|
213
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Sj/SjYUiVTO21rvsC2Wk1uTyrvMaH1lSii72KCgDh3oFFA.cache
|
214
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/V7/V79OBKLVX2bmlpKPN2YLwOsGDPr6cRt9WdOJUwH7ncA.cache
|
215
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/YU/YUa76ekTtQ6dWPwKqmrcMeibOKUfQSIeWx5yToMlNG4.cache
|
216
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Yb/YbOBfsETECc5r2nn8awEIbkKPQd6qfjRwNCunHltQq8.cache
|
217
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/b2/b2nJHha5aJQMqkkhFtuROJ9CPdFavlKhoRZIi5YPWKQ.cache
|
218
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/fk/fkpgVsum7tjoVBQMAPu3LkaVyHz4W3VOgWaxubmoaqE.cache
|
219
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/fs/fs7UtD-RagBAjYlWZ-uBqnwIUDu_QEdQKta4p5NXIy4.cache
|
220
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/gg/gg7w9SedEy74i9oqWzT1DjvHCqc47TQn7RoHMpZDCz0.cache
|
221
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/iq/iqcmKKFxT36XZf4y3HEoh-lfDpi4-KS1wBvmeZAXL6Q.cache
|
222
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/j5/j5ZVbh-c6hBVVWk1VbqmErGzGi0PFPzLd_W3vONiOQo.cache
|
221
223
|
- spec/dummy/tmp/cache/assets/sprockets/v3.0/jL/jL7k7-KgU6sqvTphO9-yQX2mRkMFBufpP-czffkYEQs.cache
|
222
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/
|
223
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/
|
224
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/
|
225
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/
|
224
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/lr/lrFP_NZVK9ZYVOgV3BbpeO1OQcLXvwFv-RBcAyPoU48.cache
|
225
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/oj/ojUgQLquokxySsZqytKH-pK2HaAFR0A9t5xGuWK8jW4.cache
|
226
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/qg/qgpC_xrU51RsOVAHIaO4xZsG-696XRFsZZRGvN0becM.cache
|
227
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/sk/sk9hFWtm2AAMA9-HPf8rtY-sMY8_eIf2PoxuTdRoD4k.cache
|
228
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/tx/txbdH4JWN0amnpKHa8ayZuhBJ1c-qKTEOyoiWpkXME8.cache
|
226
229
|
- spec/dummy/tmp/cache/assets/sprockets/v3.0/wt/wtVa2jY11sapQGYQt6tZloSC7fC6DgJQI5WUq5aa-Yg.cache
|
227
|
-
- spec/dummy/tmp/
|
228
|
-
- spec/dummy/tmp/
|
229
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/zs/zsuKM_d03om6Co0SxgPgtInvOk6S5phfhDR4WvgqZR4.cache
|
230
|
+
- spec/dummy/tmp/capybara/capybara-20170515133334721551764.html
|
231
|
+
- spec/dummy/tmp/capybara/capybara-201705151334549309224818.html
|
230
232
|
- spec/features/alert_message_spec.rb
|
231
233
|
- spec/spec_helper.rb
|
232
234
|
- vendor/assets/javascripts/alert_message.coffee
|
@@ -251,7 +253,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
251
253
|
version: '0'
|
252
254
|
requirements: []
|
253
255
|
rubyforge_project:
|
254
|
-
rubygems_version: 2.
|
256
|
+
rubygems_version: 2.6.12
|
255
257
|
signing_key:
|
256
258
|
specification_version: 4
|
257
259
|
summary: Alert Message
|