ominous 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MTA0NTllMzNjM2Q2MTZkNTFlYmRiNGI1N2FlMGY4Mzc3MmI1ZTVjZg==
5
+ data.tar.gz: !binary |-
6
+ YTM1NDAxOGUwMmU4ZTA3YzhkM2NiNzBlZjQ1NTdlYmY2YzFhNDhhMA==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ ZTc4MGQ0OWY1NzY1NmJjZmIwMTYzNDdkNDBlMDg4NTA5ZDdlNWJmNjcxOTZj
10
+ Mzk5Zjk5ZDAxYzNmZmNjY2JjYjU1N2VjZjIxYjRlY2ZlMmE0ZjMxMDg0MWY4
11
+ YjkyYmIxMWQ2NTgzZTAyN2UyMzU5MmU3ZjhlZTMyZDNjMTE3OTg=
12
+ data.tar.gz: !binary |-
13
+ MmQyODU0OTMyMDk4NzlhOTA1MDZhZTYzMmY4Zjk0OTg1NTczYmI3MGRjMjBj
14
+ ZjE3OTM0ZDhkZGZkODhmYzM3MmU4NTEzNTMzMDc2NmU3YjBjYTQ4ODNlYjJj
15
+ YzBlOGFiODdhYmY2MjlkNTA3ZjI0MDMwMmM4OWYyMDIyNzIxMDg=
@@ -19,7 +19,7 @@ module Ominous
19
19
 
20
20
  def ominous_closer_url(warning, closer)
21
21
  if closer.closure_method == 'close_and_dismiss_warning'
22
- ominous.dismiss_warning_path(warning)
22
+ ominous.dismiss_warning_url(warning)
23
23
  else
24
24
  return closer.url
25
25
  end
@@ -1,10 +1,16 @@
1
1
  module Ominous
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
4
4
 
5
5
  # History
6
6
  # =======
7
7
  #
8
+ # 0.1.2
9
+ # -----
10
+ # Fixes bug where close_and_dismiss_warning closure url was relative to root ('/')
11
+ # which causes error is host app is in sub-uri. Url is now absolute rather than
12
+ # relative.
13
+ #
8
14
  # 0.1.1
9
15
  # -----
10
16
  # Fix bug where trying to humanize the name to create a title cause an error
@@ -14,7 +20,7 @@ end
14
20
  # -----
15
21
  # Move to beta
16
22
  #
17
- # Rename ominous helper methods to remove likelihood of method classes in
23
+ # Rename ominous helper methods to remove likelihood of method clashes in
18
24
  # host app.
19
25
  #
20
26
  # 0.0.5
@@ -10,5 +10,18 @@
10
10
 
11
11
  <%= yield %>
12
12
 
13
+
14
+ <div>
15
+ <h2>Ominous Warning session data</h2>
16
+ <% if !session[:ominous_warnings] or session[:ominous_warnings].empty? %>
17
+ none
18
+ <% else %>
19
+ <ul>
20
+ <% session[:ominous_warnings].each do |name, content| %>
21
+ <li><strong><%= name %></strong>: <%= content %></li>
22
+ <% end %>
23
+ </ul>
24
+ <% end %>
25
+ </div>
13
26
  </body>
14
27
  </html>
@@ -20,4 +20,4 @@
20
20
 
21
21
  <br />
22
22
 
23
- <%= link_to 'New Thing', new_thing_path %>
23
+ <%= link_to 'New Thing', new_thing_path %>
Binary file