bootstrap_flash_messages 0.0.1 → 0.0.2

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.
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # bootstrap_flash_messages
2
2
 
3
- version 0.0.1
3
+ version 0.0.2
4
4
  Robin Brouwer
5
5
  45north
6
6
 
@@ -22,6 +22,10 @@ And that's it!
22
22
 
23
23
  ## Changes
24
24
 
25
+ Version 0.0.2 changes (10/08/2012):
26
+
27
+ - Changed the 'x' in close to & t i m e s ;
28
+
25
29
  Version 0.0.1 changes (08/08/2012):
26
30
 
27
31
  - Changed redirect_to method
@@ -66,7 +70,7 @@ When you've defined the messages it's really easy to call them inside your Contr
66
70
  end
67
71
  end
68
72
 
69
- You can use the `:flash` parameter inside the `redirect_to` method (note: this gem changes the redirect_to method!) to set the flash messages. You only need to pass the corresponding key and the gem will automatically set `gflash[:success]` to `t("flash_messages.posts.create.success")`. The `:flash` parameter also accepts an Array.
73
+ You can use the `:flash` parameter inside the `redirect_to` method (note: this gem changes the redirect_to method!) to set the flash messages. You only need to pass the corresponding key and the gem will automatically set `flash[:success]` to `t("flash_messages.posts.create.success")`. The `:flash` parameter also accepts an Array.
70
74
 
71
75
  redirect_to(@post, :flash => [:success, :info])
72
76
 
@@ -89,15 +93,15 @@ And that's it! To change the flash messages inside a `.js.erb` file, you can do
89
93
 
90
94
  $("#flash_messages").html("#{j(flash_messages)}");
91
95
 
92
- The `flash_messages` helper shows a simple Bootstrap alert box. If you want to add a close button you can add the :close option.
96
+ The `flash_messages` helper shows a simple Bootstrap alert box. If you want to add a close button you can add the `:close` option.
93
97
 
94
98
  <%= flash_messages(:close) %>
95
99
 
96
- Want to use the `.alert-block` class? Just add :block.
100
+ Want to use the `.alert-block` class? Just add `:block`.
97
101
 
98
102
  <%= flash_messages(:close, :block) %>
99
103
 
100
- Want a heading? Add :heading. The headings inside flash.en.yml are used.
104
+ Want a heading? Add `:heading`. The headings inside flash.en.yml are used for the headings.
101
105
 
102
106
  <%= flash_messages(:close, :block, :heading) %>
103
107
 
@@ -15,7 +15,7 @@ module BootstrapFlashMessages
15
15
  end
16
16
  close = ""
17
17
  if show_close
18
- close = link_to("x", "#", :class => "close", :data => { :dismiss => "alert" })
18
+ close = link_to(raw("&times;"), "#", :class => "close", :data => { :dismiss => "alert" })
19
19
  end
20
20
 
21
21
  messages << content_tag(:div, :class => "alert alert-#{key} #{"alert-block" if block}") do
@@ -1,3 +1,3 @@
1
1
  module BootstrapFlashMessages
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap_flash_messages
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Robin Brouwer
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-08-08 00:00:00 +02:00
18
+ date: 2012-08-10 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies: []
21
21