inkcite 1.9.0 → 1.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/inkcite/cli/test.rb +2 -19
- data/lib/inkcite/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aabad99d9252f3ff61ea16a6fcd79c145de6f399
|
4
|
+
data.tar.gz: 0642dc04ebf7c0ca068bbe6bb782bb6cf1539e2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d7fd3bd14490e024b7e3a06e928c3fb796c66d47a7ada0ae4902ddff30f60cc444f178a535290ec51e32281891799eb6301c72e8f5677d066817c73f3f5279d
|
7
|
+
data.tar.gz: 3975bf906623676bdbbebe8cccc763326e67739a959fdadf4e3f21a7c9222dfe3385cef18ce1fa67b044dad6dae9c14f9b3d44041dcfb1ac3210d0986eb6544a
|
data/lib/inkcite/cli/test.rb
CHANGED
@@ -5,7 +5,7 @@ module Inkcite
|
|
5
5
|
module Cli
|
6
6
|
class Test
|
7
7
|
|
8
|
-
def self.invoke email,
|
8
|
+
def self.invoke email, opts
|
9
9
|
|
10
10
|
# Check to see if the test-address has been specified.
|
11
11
|
send_to = email.config[TEST_ADDRESS]
|
@@ -33,24 +33,7 @@ module Inkcite
|
|
33
33
|
# latest images are available.
|
34
34
|
email.upload
|
35
35
|
|
36
|
-
|
37
|
-
# we convert to an array in case the user is sending to multiple
|
38
|
-
# addresses for their own compatibility testing.
|
39
|
-
send_to = Array(send_to)
|
40
|
-
|
41
|
-
# Check to see if the user wants to test a specific version of the
|
42
|
-
# email - otherwise test all of them.
|
43
|
-
versions = Array(opt[:version] || email.versions)
|
44
|
-
|
45
|
-
# Send each version to the testing service separately
|
46
|
-
versions.each do |version|
|
47
|
-
|
48
|
-
view = email.view(:preview, :email, version)
|
49
|
-
puts "Sending '#{view.subject}' to #{send_to.join(', ')} ..."
|
50
|
-
|
51
|
-
Inkcite::Mailer.send_version(email, version, { :to => send_to })
|
52
|
-
|
53
|
-
end
|
36
|
+
Inkcite::Mailer.send(email, opts.merge({ :to => send_to }))
|
54
37
|
|
55
38
|
true
|
56
39
|
end
|
data/lib/inkcite/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: inkcite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.9.
|
4
|
+
version: 1.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeffrey D. Hoffman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|