piggybak_giftcerts 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,6 +3,7 @@ Your have purchased gift certificate(s). Gift certificate information:
3
3
  <% @order.giftcerts.each_with_index do |gc, i| %>
4
4
  Gift Certificate #<%= i + 1 %>:
5
5
  Code: <%= gc.code %>
6
+ Amount: <%= number_to_currency gc.amount %>
6
7
  Expiration Date: <%= gc.expiration_date %>
7
8
 
8
9
  <% end -%>
@@ -33,7 +33,9 @@ module PiggybakGiftcerts
33
33
  end
34
34
  end
35
35
  end
36
- ::PiggybakGiftcerts::GiftcertMailer.info(self).deliver
36
+ if self.giftcerts.any?
37
+ ::PiggybakGiftcerts::GiftcertMailer.info(self).deliver
38
+ end
37
39
  rescue
38
40
  end
39
41
  end
@@ -1,3 +1,3 @@
1
1
  module PiggybakGiftcerts
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: piggybak_giftcerts
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.6
5
+ version: 0.0.7
6
6
  platform: ruby
7
7
  authors:
8
8
  - Steph Skardal
@@ -119,7 +119,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
119
119
  requirements:
120
120
  - - ">="
121
121
  - !ruby/object:Gem::Version
122
- hash: 118553770716881012
122
+ hash: -984054387093023492
123
123
  segments:
124
124
  - 0
125
125
  version: "0"
@@ -128,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
128
128
  requirements:
129
129
  - - ">="
130
130
  - !ruby/object:Gem::Version
131
- hash: 118553770716881012
131
+ hash: -984054387093023492
132
132
  segments:
133
133
  - 0
134
134
  version: "0"