helper_methods 0.0.15 → 0.0.16

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
  # HelperMethods
2
2
 
3
- Simple help methods that helps you to DRY.
3
+ Simple helper methods that helps you to DRY.
4
4
 
5
5
  ## Installation
6
6
 
@@ -1,3 +1,3 @@
1
1
  module HelperMethods
2
- VERSION = "0.0.15"
2
+ VERSION = "0.0.16"
3
3
  end
@@ -155,6 +155,11 @@ module HelperMethods
155
155
  "#{protocol}//#{request.host_with_port}#{file.url(style)}"
156
156
  end
157
157
 
158
+ def full_url_for(resource)
159
+ protocol = request.ssl? ? 'https' : 'http'
160
+ "#{protocol}//#{request.host_with_port}#{url_for(resource)}"
161
+ end
162
+
158
163
  def qr_code_for(data, size)
159
164
  image_tag "https://chart.googleapis.com/chart?chs=#{size}&cht=qr&chl=#{data}"
160
165
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: helper_methods
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.15
4
+ version: 0.0.16
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-24 00:00:00.000000000 Z
12
+ date: 2013-06-10 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: A small collection of simple methods
15
15
  email: