mailkick 0.1.2 → 0.1.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b352637be3b03e2c64e52936662205cf4524aa93
4
- data.tar.gz: 5c3340840799c56a44c246667f86c13e22ad375c
3
+ metadata.gz: 0750bea0ea92b3202ed0d741f50efb0c40ec7a1f
4
+ data.tar.gz: 55d4087445153084af0810e7e5a729eb379d3bbb
5
5
  SHA512:
6
- metadata.gz: 5a0b3d37bc1d3e883e30518960d486784850ab703ba4a8108cc4d1ca5b0d9d78fe0981bbf130fec0188db53d3011d0e5b9cd8ad8c9832b3491f77eb5263da92f
7
- data.tar.gz: 1524cf7d6fd3d9a297a1ca9854868cccda35c42bff1ff325ade4f38b37ce6862cca05ce4ab91d00c70a2b0d353f82b9f733e520471e047b385454b1398e87065
6
+ metadata.gz: 3fce62385ba937b6ad173db9a27d93dcb26a95e453868bf5f81b278ee1d8b5ce3ae98661aa4bc53894e07793ad6be240fc29b2294123717e03b4f4cf6916aa22
7
+ data.tar.gz: 57818f63ff5dba4a8c020e926a19bc5733e7b75c3b0278629ed2ca9ee010195d9791061f544cd5b8e06e8fa0b2173baa3c3459ecab3cd728e71095d75245a731
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.1.3
2
+
3
+ - Fixed issue with double escaping tokens
4
+
1
5
  ## 0.1.2
2
6
 
3
7
  - Added support for Mailgun
@@ -7,12 +7,12 @@ module Mailkick
7
7
 
8
8
  def unsubscribe
9
9
  Mailkick.opt_out(@options)
10
- redirect_to subscription_path(url_token)
10
+ redirect_to subscription_path(params[:id])
11
11
  end
12
12
 
13
13
  def subscribe
14
14
  Mailkick.opt_in(@options)
15
- redirect_to subscription_path(url_token)
15
+ redirect_to subscription_path(params[:id])
16
16
  end
17
17
 
18
18
  protected
@@ -41,19 +41,13 @@ module Mailkick
41
41
  helper_method :opted_out?
42
42
 
43
43
  def subscribe_url
44
- subscribe_subscription_path(url_token)
44
+ subscribe_subscription_path(params[:id])
45
45
  end
46
46
  helper_method :subscribe_url
47
47
 
48
48
  def unsubscribe_url
49
- unsubscribe_subscription_path(url_token)
49
+ unsubscribe_subscription_path(params[:id])
50
50
  end
51
51
  helper_method :unsubscribe_url
52
-
53
- private
54
-
55
- def url_token
56
- @url_token ||= CGI.escape(params[:id])
57
- end
58
52
  end
59
53
  end
@@ -1,3 +1,3 @@
1
1
  module Mailkick
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mailkick
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-07 00:00:00.000000000 Z
11
+ date: 2015-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler