atpay_buttons 1.2.1 → 1.3.0

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.
@@ -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.2.1'
8
- spec.date = '2013-12-06'
7
+ spec.version = '1.3.0'
8
+ spec.date = '2014-01-29'
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'
data/circle.yml CHANGED
@@ -1,9 +1,9 @@
1
1
  dependencies:
2
2
  pre:
3
- - curl -O http://download.dnscrypt.org/libsodium/releases/libsodium-0.4.1.tar.gz
4
- - tar -xvzf libsodium-0.4.1.tar.gz
5
- - cd libsodium-0.4.1 && ./configure && make
6
- - cp libsodium-0.4.1/src/libsodium/.libs/libsodium.so ./lib/
3
+ - curl -O http://download.dnscrypt.org/libsodium/releases/libsodium-0.4.3.tar.gz
4
+ - tar -xvzf libsodium-0.4.3.tar.gz
5
+ - cd libsodium-0.4.3 && ./configure && make
6
+ - cp libsodium-0.4.3/src/libsodium/.libs/libsodium.so ./lib/
7
7
 
8
8
  test:
9
9
  override:
@@ -17,6 +17,8 @@ module AtPay
17
17
  :wrap => false,
18
18
  :wrap_text => "Made for Mobile"
19
19
  }.update(options)
20
+
21
+ @options[:image] = nil if @options[:image] == ''
20
22
  end
21
23
 
22
24
  def render(args={})
@@ -26,11 +26,13 @@
26
26
 
27
27
  <table class='out_mailto' border='0' cellpadding='0' cellspacing='0' style='width:0; height:0; padding:0; margin:0; font-size:0;'>
28
28
  <tr>
29
- <td class='cart'>
30
- <a href='{{outlook_url}}' style='display:none;' target="_blank">
31
- <img src='{{image}}' style='margin: 0px; width:0px; height:0px'>
32
- </a>
33
- </td>
29
+ {% if image %}
30
+ <td class='cart'>
31
+ <a href='{{outlook_url}}' style='display:none;' target="_blank">
32
+ <img src='{{image}}' style='margin: 0px; width:0px; height:0px'>
33
+ </a>
34
+ </td>
35
+ {% endif %}
34
36
  <td class='dollar' style='width:0; height:0; padding:0; margin:0; font-size:0;' valign='top'>
35
37
  <a href='{{outlook_url}}' style='display:none;' target="_blank">
36
38
  {{dollar}}
@@ -30,9 +30,11 @@
30
30
  <center>
31
31
  <table class="reg_mailto" border='0' cellpadding='0' cellspacing='0' style='font-family: Tahoma; background-color:{{background_color}}; padding:10px 15px 10px 0; width:150px;'>
32
32
  <tr>
33
- <td style='width:45px; padding-left:10px; height:39px; text-align:right;'>
34
- <a class='reg_mailto' href='{{url}}' style='display: inline-block; width:auto;' target="_blank"> <img src='{{image}}'> </a>
35
- </td>
33
+ {% if image %}
34
+ <td style='width:45px; padding-left:10px; height:39px; text-align:right;'>
35
+ <a class='reg_mailto' href='{{url}}' style='display: inline-block; width:auto;' target="_blank"> <img src='{{image}}'> </a>
36
+ </td>
37
+ {% endif %}
36
38
  <td style='padding-right:0px; color: {{foreground_color}};font-size:24px; padding-top:3px; text-align:right;' valign='top'>
37
39
  <a class='reg_mailto' href='{{url}}' style='display: inline-block; width:auto; text-decoration:none; color:{{foreground_color}};' target="_blank"> {{dollar}}</a>
38
40
  </td>
@@ -44,11 +46,13 @@
44
46
 
45
47
  <table class='out_mailto' border='0' cellpadding='0' cellspacing='0' style='width:0; height:0; padding:0; margin:0; font-size:0;'>
46
48
  <tr>
47
- <td class='cart'>
48
- <a href='{{outlook_url}}' style='display:none;' target="_blank">
49
- <img src='{{image}}' style='margin: 0px; width:0px; height:0px'>
50
- </a>
51
- </td>
49
+ {% if image %}
50
+ <td class='cart'>
51
+ <a href='{{outlook_url}}' style='display:none;' target="_blank">
52
+ <img src='{{image}}' style='margin: 0px; width:0px; height:0px'>
53
+ </a>
54
+ </td>
55
+ {% endif %}
52
56
  <td class='dollar' style='width:0; height:0; padding:0; margin:0; font-size:0;' valign='top'>
53
57
  <a href='{{outlook_url}}' style='display:none;' target="_blank">
54
58
  {{dollar}}
@@ -31,11 +31,13 @@
31
31
  <td class='main' style='padding:3px 5px 5px 5px;' width='145'>
32
32
  <table>
33
33
  <tr>
34
- <td>
35
- <a class='yahoo' fix='email' href='{{yahoo_url}}' style='color:{{foreground_color}}; text-decoration:none; border:none; display:inline;'>
36
- <img src='{{image}}' style='margin-left: 5px; margin-right:10px; margin-top:8px;'>
37
- </a>
38
- </td>
34
+ {% if image %}
35
+ <td>
36
+ <a class='yahoo' fix='email' href='{{yahoo_url}}' style='color:{{foreground_color}}; text-decoration:none; border:none; display:inline;'>
37
+ <img src='{{image}}' style='margin-left: 5px; margin-right:10px; margin-top:8px;'>
38
+ </a>
39
+ </td>
40
+ {% endif %}
39
41
  <td>
40
42
  <table border='0' cellpadding='0' cellspacing='0' style='float:left; margin:0; margin-left:5px;'>
41
43
  <tr>
@@ -75,11 +77,13 @@
75
77
  <td class='main' style='padding:3px 5px 5px 5px;' width='145'>
76
78
  <table>
77
79
  <tr>
78
- <td>
79
- <a class='not_yahoo' href='{{url}}' style='color:{{foreground_color}}; text-decoration:none; border:none;'>
80
- <img src='{{image}}' style='margin-left: 5px; margin-right:10px; margin-top:8px;'>
81
- </a>
82
- </td>
80
+ {% if image %}
81
+ <td>
82
+ <a class='not_yahoo' href='{{url}}' style='color:{{foreground_color}}; text-decoration:none; border:none;'>
83
+ <img src='{{image}}' style='margin-left: 5px; margin-right:10px; margin-top:8px;'>
84
+ </a>
85
+ </td>
86
+ {% endif %}
83
87
  <td>
84
88
  <table border='0' cellpadding='0' cellspacing='0' style='float:left; margin:0; margin-left:5px;'>
85
89
  <tr>
@@ -16,11 +16,13 @@
16
16
  <td class='main' style='padding:3px 5px 5px 5px;' width='145'>
17
17
  <table>
18
18
  <tr>
19
- <td>
20
- <a class='yahoo' fix='email' href='{{yahoo_url}}' style='color:{{foreground_color}}; text-decoration:none; border:none; display:inline;'>
21
- <img src='{{image}}' style='margin-left: 5px; margin-right:10px; margin-top:8px;'>
22
- </a>
23
- </td>
19
+ {% if image %}
20
+ <td>
21
+ <a class='yahoo' fix='email' href='{{yahoo_url}}' style='color:{{foreground_color}}; text-decoration:none; border:none; display:inline;'>
22
+ <img src='{{image}}' style='margin-left: 5px; margin-right:10px; margin-top:8px;'>
23
+ </a>
24
+ </td>
25
+ {% endif %}
24
26
  <td>
25
27
  <table border='0' cellpadding='0' cellspacing='0' style='float:left; margin:0; margin-left:5px;'>
26
28
  <tr>
@@ -60,11 +62,13 @@
60
62
  <td class='main' style='padding:3px 5px 5px 5px;' width='145'>
61
63
  <table>
62
64
  <tr>
63
- <td>
64
- <a class='not_yahoo' href='{{url}}' style='color:{{foreground_color}}; text-decoration:none; border:none;'>
65
- <img src='{{image}}' style='margin-left: 5px; margin-right:10px; margin-top:8px;'>
66
- </a>
67
- </td>
65
+ {% if image %}
66
+ <td>
67
+ <a class='not_yahoo' href='{{url}}' style='color:{{foreground_color}}; text-decoration:none; border:none;'>
68
+ <img src='{{image}}' style='margin-left: 5px; margin-right:10px; margin-top:8px;'>
69
+ </a>
70
+ </td>
71
+ {% endif %}
68
72
  <td>
69
73
  <table border='0' cellpadding='0' cellspacing='0' style='float:left; margin:0; margin-left:5px;'>
70
74
  <tr>
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.2.1
4
+ version: 1.3.0
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-12-06 00:00:00.000000000 Z
15
+ date: 2014-01-29 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: