mailkick 0.0.6 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8d4fb1e1eaf185bcbd871ca33a750adc96d59a0d
4
- data.tar.gz: 02f59a537d2695a7c9ba6ffa1e5e629f74b92866
3
+ metadata.gz: 2ceddc58f9f600bae3a7d185763f7ef36e1f369e
4
+ data.tar.gz: 83f27d1562f61034bcb2370db0ca2fa7fe6b7f5e
5
5
  SHA512:
6
- metadata.gz: bb6c806ca9f17e3382a3276eca84c6112f5165222aaff3dd9c6f6d9e23a0ce1a30c7edd97be6355e72663fac9ef82328fbfb1ba8ec3af9cfdc3183b469d3eb2c
7
- data.tar.gz: a292f6a4519de74686fbde58f24754ce20a30bf1ee8a479b95b76d4e65b70b93f262acadda2bcc63eccec347dc747bc98f6758d29c49548d38cfae28dbae6bff
6
+ metadata.gz: dbf8ce2d36210c93295a26b0ba813fe51ca0a4c978b38263fe33e2fac0bd78229e96974e06c16eb6ca769611f4694159f0e69737ae629bd8b8c4969c03d8fb84
7
+ data.tar.gz: e21bb468323465d717abf90114460de7450e4448ab5cb9bcfa8e8d5d7a806b279c9f9731d8d4fd5043a8fc9e14b3b8eee1287494cff3f90451c0b08873e53d3a
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.1.0
2
+
3
+ - Fixed secret token for Rails 4.1
4
+
1
5
  ## 0.0.6
2
6
 
3
7
  - Rails 3 fix
@@ -3,7 +3,7 @@ module Mailkick
3
3
 
4
4
  def mailkick_unsubscribe_url
5
5
  Mailkick::Engine.routes.url_helpers.url_for(
6
- Rails.application.config.action_mailer.default_url_options.merge(
6
+ (ActionMailer::Base.default_url_options || {}).merge(
7
7
  controller: "mailkick/subscriptions",
8
8
  action: "unsubscribe",
9
9
  id: "{{MAILKICK_TOKEN}}"
@@ -4,7 +4,8 @@ module Mailkick
4
4
 
5
5
  initializer "mailkick" do |app|
6
6
  Mailkick.discover_services
7
- Mailkick.secret_token = app.config.respond_to?(:secret_key_base) ? app.config.secret_key_base : app.config.secret_token
7
+ secrets = app.respond_to?(:secrets) ? app.secrets : app.config
8
+ Mailkick.secret_token = secrets.respond_to?(:secret_key_base) ? secrets.secret_key_base : secrets.secret_token
8
9
  ActiveSupport.on_load :action_mailer do
9
10
  helper Mailkick::UrlHelper
10
11
  end
@@ -1,3 +1,3 @@
1
1
  module Mailkick
2
- VERSION = "0.0.6"
2
+ VERSION = "0.1.0"
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.0.6
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-09 00:00:00.000000000 Z
11
+ date: 2014-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -95,3 +95,4 @@ signing_key:
95
95
  specification_version: 4
96
96
  summary: Email subscriptions made easy
97
97
  test_files: []
98
+ has_rdoc: