helper_methods 0.0.13 → 0.0.14
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 +2 -0
- data/lib/helper_methods.rb +4 -0
- data/lib/helper_methods/version.rb +1 -1
- metadata +3 -3
data/README.md
CHANGED
data/lib/helper_methods.rb
CHANGED
|
@@ -155,6 +155,10 @@ module HelperMethods
|
|
|
155
155
|
"#{protocol}//#{request.host_with_port}#{file.url(style)}"
|
|
156
156
|
end
|
|
157
157
|
|
|
158
|
+
def qr_code_for(data, size)
|
|
159
|
+
"https://chart.googleapis.com/chart?chs=#{size}&cht=qr&chl=#{data}"
|
|
160
|
+
end
|
|
161
|
+
|
|
158
162
|
end
|
|
159
163
|
|
|
160
164
|
ActionView::Base.send :include, HelperMethods
|
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.
|
|
4
|
+
version: 0.0.14
|
|
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:
|
|
12
|
+
date: 2013-02-24 00:00:00.000000000 Z
|
|
13
13
|
dependencies: []
|
|
14
14
|
description: There are a small collection of simple methods
|
|
15
15
|
email:
|
|
@@ -46,7 +46,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
46
46
|
version: '0'
|
|
47
47
|
requirements: []
|
|
48
48
|
rubyforge_project:
|
|
49
|
-
rubygems_version: 1.8.
|
|
49
|
+
rubygems_version: 1.8.23
|
|
50
50
|
signing_key:
|
|
51
51
|
specification_version: 3
|
|
52
52
|
summary: Helper methods that helps you to DRY
|