popper 0.3.0 → 0.3.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
  SHA1:
3
- metadata.gz: 4046c6a869c83db64c170e8047830e1aa196ee95
4
- data.tar.gz: 0487e61ee5edd2306b97bfd348e42d5f413be8a9
3
+ metadata.gz: d7ffe34cb0ff2bb00a9f362ca16c4969b2201287
4
+ data.tar.gz: 0fe54b8592410db02876702a67795e627d43ad0b
5
5
  SHA512:
6
- metadata.gz: f65ed4b78ff0abe203ab68f9d921415b628853d5e78a5b0ccbb5ad70815c3cb7e223938942187fde1bd831ec6e78de52d83c4fc8de82c1c41067436433885a1d
7
- data.tar.gz: a690f6169e5a4b08f65e064765bb0bc41d05789bbe821c8b34686d38a182994769b9e9d70a725adf634c9c8d679267580ad653ce53274d14faf7dd73e4b1c819
6
+ metadata.gz: cf261603d1a54bedd03c482c9d748e89dc322b6991133cfac7e70c37da2663302877603cc641311310655f20ce43e464efe68d23e8e2bdbff862733168564599
7
+ data.tar.gz: 9136eeba2a0ab374d109f075d63db5c1e9261185fdcaec7a34aac9f5bd4600ec5015281eb793f1bcbe650fb8d65db73decf2f521c8e64d223f43b543c8f41577
data/README.md CHANGED
@@ -78,7 +78,7 @@ message = "webmailer error mail"
78
78
  repo = "example/fuu"
79
79
 
80
80
  [example.rules.normal_log.action.exec_cmd]
81
- repo = "/path/to/other_command.rb"
81
+ cmd = "/path/to/other_command.rb"
82
82
 
83
83
  [example2.login]
84
84
  user = "example2@example.com"
@@ -1,7 +1,9 @@
1
1
  module Popper::Action
2
2
  class ExecCmd < Base
3
3
  def self.task(mail, params={})
4
- system(@action_config.cmd, mail.subject, mail.utf_body, mail.from.join(";"), mail.to.join(";"))
4
+ Bundler.with_clean_env do
5
+ system("#{@action_config.cmd} '#{mail.subject}' '#{mail.utf_body}' '#{mail.from.join(";")}' '#{mail.to.join(";")}'")
6
+ end
5
7
  params
6
8
  end
7
9
 
@@ -1,3 +1,3 @@
1
1
  module Popper
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.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.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - pyama86
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-06-26 00:00:00.000000000 Z
11
+ date: 2016-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -173,7 +173,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
173
173
  version: '0'
174
174
  requirements: []
175
175
  rubyforge_project:
176
- rubygems_version: 2.4.5.1
176
+ rubygems_version: 2.2.2
177
177
  signing_key:
178
178
  specification_version: 4
179
179
  summary: email notification tool