mailkick 0.1.6 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile +1 -1
- data/Rakefile +1 -0
- data/app/controllers/mailkick/subscriptions_controller.rb +2 -0
- data/lib/generators/mailkick/install_generator.rb +7 -1
- data/lib/generators/mailkick/templates/install.rb +1 -1
- data/lib/mailkick/version.rb +1 -1
- data/test/test_helper.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 76321359a2413e9e97430e88ffa1bdea99830e5e
|
4
|
+
data.tar.gz: 670f814ee9ed48dd9b538f9ed23be64616ab65ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b73507e59e778e21879cea81b8f8a566baf4f890ca96faadae085d291996ee61ca893d3edea51cea24ed85e0258cafaac5b59769d85dcb87895b39ca4082c055
|
7
|
+
data.tar.gz: fa53579ac51115bc51fd925bb293828756c732a60a30f8fca44ce6f2d6e1bc187a9529e4be17b6869dcfedc6d3ccdabb465f1b787b3d360c754dc9b0f5a00d6b
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
data/Rakefile
CHANGED
@@ -22,7 +22,13 @@ module Mailkick
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def copy_migration
|
25
|
-
migration_template "install.rb", "db/migrate/install_mailkick.rb"
|
25
|
+
migration_template "install.rb", "db/migrate/install_mailkick.rb", migration_version: migration_version
|
26
|
+
end
|
27
|
+
|
28
|
+
def migration_version
|
29
|
+
if ActiveRecord::VERSION::MAJOR >= 5
|
30
|
+
"[#{ActiveRecord::VERSION::MAJOR}.#{ActiveRecord::VERSION::MINOR}]"
|
31
|
+
end
|
26
32
|
end
|
27
33
|
end
|
28
34
|
end
|
data/lib/mailkick/version.rb
CHANGED
data/test/test_helper.rb
CHANGED
@@ -15,8 +15,8 @@ class UserMailer < ActionMailer::Base
|
|
15
15
|
|
16
16
|
def welcome
|
17
17
|
mail to: "test@example.org", subject: "Hello" do |format|
|
18
|
-
format.html { render
|
19
|
-
format.text { render
|
18
|
+
format.html { render plain: "<p>%7B%7BMAILKICK_TOKEN%7D%7D</p>" }
|
19
|
+
format.text { render plain: "Boom: %7B%7BMAILKICK_TOKEN%7D%7D" }
|
20
20
|
end
|
21
21
|
end
|
22
22
|
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.
|
4
|
+
version: 0.2.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: 2017-01
|
11
|
+
date: 2017-05-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -135,7 +135,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
135
135
|
version: '0'
|
136
136
|
requirements: []
|
137
137
|
rubyforge_project:
|
138
|
-
rubygems_version: 2.
|
138
|
+
rubygems_version: 2.5.1
|
139
139
|
signing_key:
|
140
140
|
specification_version: 4
|
141
141
|
summary: Email subscriptions made easy
|