atpay_buttons 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,8 +4,8 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "atpay_buttons"
7
- spec.version = '1.1.0'
8
- spec.date = '2013-08-02'
7
+ spec.version = '1.1.1'
8
+ spec.date = '2013-09-24'
9
9
  spec.authors = ["Thomas Pastinsky", "Glen Holcomb", "James Kassemi", "Isaiah Baca"]
10
10
  spec.email = ["dev@atpay.com"]
11
11
  spec.description = 'Atpay button generator'
@@ -1,5 +1,5 @@
1
1
  require 'liquid'
2
- require 'uri'
2
+ require 'cgi'
3
3
 
4
4
  module AtPay
5
5
  module Button
@@ -51,7 +51,7 @@ module AtPay
51
51
  end
52
52
 
53
53
  def mailto_subject
54
- URI::encode(@options[:subject])
54
+ CGI.escape(@options[:subject])
55
55
  end
56
56
 
57
57
  def yahoo_mailto
@@ -76,7 +76,7 @@ module AtPay
76
76
  #
77
77
  # @return [String]
78
78
  def mailto_body
79
- URI::encode(mailto_body_template.render({
79
+ CGI.escape(mailto_body_template.render({
80
80
  'amount' => amount,
81
81
  'name' => @options[:destination],
82
82
  'token' => @options[:token]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atpay_buttons
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2013-08-02 00:00:00.000000000 Z
15
+ date: 2013-09-24 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: bundler