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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fb018c1afe91e68c99b859969ca2476e0f9557f78b76c5b794971268b1e64311
4
- data.tar.gz: ef1aa7ed579b1ccabce41e9602efebedd0b3464459edf20d09541ca5408c4dec
3
+ metadata.gz: cd83601b23cd0def143bdd34d55881d2adaa625525d39ffc5caa6b907a76aa9e
4
+ data.tar.gz: e402ed64d4f4fe1ecf58feec1f14c5e4cfa3dad83ae4441096895ae357af139c
5
5
  SHA512:
6
- metadata.gz: 28755e84cfc2f77c862ad31d390ec00bd9085bdb737b7c52310e1f3b975dd7dd7ae422325e08460ddad02f51b089c02575bde2c1ce312c46583df2fd9f47d212
7
- data.tar.gz: fb1c385f2c533df52621dbc7b92dbefeebc6e38716a542e0db6a80cd9f9a42fa1be8110cd6e29bceadc36092e4443ba7f79e2b97f4949893ddbbb65ca3bb26de
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} '#{mail.subject}' '#{mail.utf_body}' '#{mail.from.join(";")}' '#{mail.to.join(";")}'"
13
- cmd += " #{tmps.map {|t| "'#{t.path}'"}.join(' ')}" if tmps
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
@@ -1,3 +1,3 @@
1
1
  module Popper
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
  end
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.0
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: 2018-10-26 00:00:00.000000000 Z
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
- rubyforge_project:
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