helper_methods 0.0.13 → 0.0.14

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -28,6 +28,8 @@ Included helpers:
28
28
  youtube_link('z8WXgoBGRb4')
29
29
  icon('th-large icon-white')
30
30
  active_link_to 'some string', some_path
31
+ attachment_url file, :style # return full url for attachment
32
+ qr_code_for 'url', 'size in pixels'
31
33
 
32
34
  ### Youtube helpers
33
35
 
@@ -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
@@ -1,3 +1,3 @@
1
1
  module HelperMethods
2
- VERSION = "0.0.13"
2
+ VERSION = "0.0.14"
3
3
  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.13
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: 2012-11-22 00:00:00.000000000 Z
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.24
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