flash_rails_messages 0.0.3 → 0.0.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: befba1959a7d7a4abefa54a65bec976d58e2e267
4
- data.tar.gz: abe1e8c1e7e0870b01d768f3d833990b48db8093
3
+ metadata.gz: ba9acc1b60b8fc0d96d578d7dd2e88f7eacab3f2
4
+ data.tar.gz: b8760c7385bfafdfb12da84b5e57542886d66122
5
5
  SHA512:
6
- metadata.gz: f1658f1ee876903e484c479169f7871d08dcc9160e334c0d94c6b8191b008da95619f46fea2d432f86f5186e77537e3a51bd234074c18a2f0eadcb2da050be10
7
- data.tar.gz: 729c37def682ffb7992fb5a4abf805d159b40852ac46f27c4e634a785ded259cd95070483c1e8e320c23064f09a73811c3cd2bb0e73d9349a4c74dd24a2c0b17
6
+ metadata.gz: 57dadbbf6ab066d18eb74d22d4751c0fa804c1c35efb8c45eb468178c7a080f570b891f9b6f0c76396f0e31a1369d95f89b591773a7f6465679b9528cc91859f
7
+ data.tar.gz: c6212427be6a71c368a84cf949c189ac0686c9e1e21a1fc0cdf1a7ce9f2f02e738f6658378962f95f73d9f83c50954882987a01fcc561a156112f7c0d4c22d5a
data/README.md CHANGED
@@ -27,8 +27,7 @@ You only need to add this line wherever you want to display the messages:
27
27
  You can add the line above in your html in multiple places.
28
28
 
29
29
 
30
- The flash messages are displayed according to the flash type.
31
- By default shows a yellow alert.
30
+ The flash messages are displayed according to the flash type. By default shows a yellow alert.
32
31
 
33
32
  **success**
34
33
  - Shows a green alert
@@ -43,12 +42,17 @@ By default shows a yellow alert.
43
42
 
44
43
  By the way, the alerts are customizable. They will have a specific class according to the flash key. Example...
45
44
 
46
- A flash message like this...
47
-
48
45
  flash[:whatever] = "Some flash rails message"
49
46
 
50
47
  Will generate a html class in the alert wrapper like this `alert-whatever` to customize the css style.
51
48
 
49
+ ## Adding HTML elements
50
+
51
+ The alerts that will be generated can include html elements. You just add html elements in the flash message.
52
+ Example...
53
+
54
+ flash[:success] = "<strong>This text will be bold</strong> and this one will be normal"
55
+
52
56
  ## Contributing
53
57
 
54
58
  1. Fork it
@@ -1,3 +1,3 @@
1
1
  module FlashRailsMessages
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flash_rails_messages
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alejandro Gutiérrez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-13 00:00:00.000000000 Z
11
+ date: 2013-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler