kelredd-useful 0.1.14 → 0.1.15

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.
@@ -13,6 +13,11 @@ module Sinatra
13
13
  options.update :href => href
14
14
  tag(:a, options) { content }
15
15
  end
16
+
17
+ def open_link_to(content, href, options={})
18
+ options[:onclick] = "javascript: window.open('#{href}'); return false;"
19
+ link_to(content, href, options)
20
+ end
16
21
 
17
22
  def mail_link_to(email)
18
23
  link_to email, "mailto: #{email}"
@@ -3,7 +3,7 @@ module Useful
3
3
 
4
4
  MAJOR = 0
5
5
  MINOR = 1
6
- TINY = 14
6
+ TINY = 15
7
7
 
8
8
  def self.to_s # :nodoc:
9
9
  [MAJOR, MINOR, TINY].join('.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kelredd-useful
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.14
4
+ version: 0.1.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kelredd