atpay_buttons 1.3.6 → 1.3.7

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.3.6'
8
- spec.date = '2014-03-21'
7
+ spec.version = '1.3.7'
8
+ spec.date = '2014-03-31'
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'
@@ -7,7 +7,7 @@ module AtPay
7
7
  # Requires destination and email in addition to this, which should just be strings...
8
8
  def initialize(options)
9
9
  @options = {
10
- :subject => "Submit @Pay Payment",
10
+ :subject => "Email Order Form",
11
11
  :title => "Pay",
12
12
  :background_color => "#6dbe45",
13
13
  :foreground_color => "#ffffff",
@@ -48,12 +48,12 @@ module AtPay
48
48
 
49
49
  def provider
50
50
  return :default if @options[:email].nil?
51
-
51
+
52
52
  if ["yahoo.com", "ymail.com", "rocketmail.com"].any? { |c| @options[:email].include? c }
53
53
  :yahoo
54
54
  else
55
55
  :default
56
- end
56
+ end
57
57
  end
58
58
 
59
59
  def token
@@ -65,7 +65,7 @@ module AtPay
65
65
  end
66
66
 
67
67
  def yahoo_mailto
68
- "http://compose.mail.yahoo.com/?to=#{@options[:processor]}&subject=#{mailto_subject}&body=#{mailto_body}"
68
+ "http://compose.mail.yahoo.com/?to=#{@options[:processor]}&subject=#{mailto_subject}&body=#{mailto_body}"
69
69
  end
70
70
 
71
71
  def outlook_mailto
@@ -80,7 +80,7 @@ module AtPay
80
80
  def mailto_body_template
81
81
  Liquid::Template.parse(File.read(File.join(@options[:templates], "mailto_body.liquid")))
82
82
  end
83
-
83
+
84
84
  # Parse the mailto body, this is where we inject the token, name and amount values we received in
85
85
  # the options.
86
86
  #
@@ -1,8 +1,8 @@
1
1
 
2
- Send this email order form to confirm your purchase of {{amount}}. Thanks!
2
+ Send this email order form to confirm your purchase of {{amount}}. If we need more info we'll let you know. Thanks!
3
3
 
4
4
 
5
5
 
6
6
  ---
7
7
 
8
- The code below secures and validates your transaction:
8
+ This code secures and validates your transaction:
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.3.6
4
+ version: 1.3.7
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: 2014-03-21 00:00:00.000000000 Z
15
+ date: 2014-03-31 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: bundler
@@ -132,7 +132,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
132
132
  version: '0'
133
133
  requirements: []
134
134
  rubyforge_project:
135
- rubygems_version: 1.8.25
135
+ rubygems_version: 1.8.23
136
136
  signing_key:
137
137
  specification_version: 3
138
138
  summary: Command line tool and Ruby library for generating @Pay 2 click email buttons
@@ -146,4 +146,3 @@ test_files:
146
146
  - spec/generator_spec.rb
147
147
  - spec/spec_helper.rb
148
148
  - spec/template_spec.rb
149
- has_rdoc: