mail_jack 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -11,7 +11,7 @@ module MailJack
11
11
  querystr = "#{MailJack.config.encode_to}=#{Base64.encode64(querystr)}"
12
12
  end
13
13
  hrefs.each do |h|
14
- q = "?#{querystr}" unless h.include?("?")
14
+ q = h.include?("?") ? "&#{querystr}" : "?#{querystr}"
15
15
  body.gsub!(h, "#{h}#{q}")
16
16
  end
17
17
  message.body = body
@@ -1,4 +1,4 @@
1
1
  module MailJack
2
2
  # The version of the gem
3
- VERSION = '0.2.2'.freeze unless defined?(::MailJack::VERSION)
3
+ VERSION = '0.2.3'.freeze unless defined?(::MailJack::VERSION)
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mail_jack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
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: 2013-06-06 00:00:00.000000000 Z
12
+ date: 2013-06-11 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Autogenerate query parameters to links in emails to track click throughs
15
15
  email: