popper 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/popper/action/exec_cmd.rb +3 -3
- data/lib/popper/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd83601b23cd0def143bdd34d55881d2adaa625525d39ffc5caa6b907a76aa9e
|
4
|
+
data.tar.gz: e402ed64d4f4fe1ecf58feec1f14c5e4cfa3dad83ae4441096895ae357af139c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d68d22f8326ea0333b122c6af7c186ef8f96c4eba11c07a40f1fb13b2d5f37767da8f046067c9c54070176842f1b3c5509b6af0fea5738f0e5eaa8de7f6e66e
|
7
|
+
data.tar.gz: 75d3da4e96ca7fbfe9166d89faac3bf7db3f1bb7712edcbadb450dca248c7697375c1bd3b15b7cf825377d7b0fdfc41ca75fc43ce3926abb36bee773d9286905
|
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'bundler'
|
2
|
+
require 'shellwords'
|
2
3
|
require 'tempfile'
|
3
4
|
module Popper::Action
|
4
5
|
class ExecCmd < Base
|
@@ -9,9 +10,8 @@ module Popper::Action
|
|
9
10
|
f
|
10
11
|
end
|
11
12
|
end unless mail.attachments.empty?
|
12
|
-
cmd = "#{@action_config.cmd}
|
13
|
-
cmd += " #{tmps.map {|t|
|
14
|
-
|
13
|
+
cmd = "#{@action_config.cmd} #{Shellwords.escape(mail.subject)} #{Shellwords.escape(mail.utf_body)} #{Shellwords.escape(mail.from.join(";"))} #{Shellwords.escape(mail.to.join(";"))}"
|
14
|
+
cmd += " #{tmps.map {|t| Shellwords.escape(t.path) }.join(' ')}" if tmps && !tmps.empty?
|
15
15
|
::Bundler.with_clean_env do
|
16
16
|
system(cmd)
|
17
17
|
end
|
data/lib/popper/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: popper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- pyama86
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-05-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -172,8 +172,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
172
172
|
- !ruby/object:Gem::Version
|
173
173
|
version: '0'
|
174
174
|
requirements: []
|
175
|
-
|
176
|
-
rubygems_version: 2.7.6
|
175
|
+
rubygems_version: 3.0.1
|
177
176
|
signing_key:
|
178
177
|
specification_version: 4
|
179
178
|
summary: email notification tool
|