fyi 1.1.1 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (7) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +2 -0
  3. data/bin/fyi +1 -1
  4. data/fyi.gemspec +1 -2
  5. data/lib/fyi.rb +8 -3
  6. data/lib/fyi/version.rb +1 -1
  7. metadata +21 -34
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 0f46ffa3b6494ba6af77cdd1840594fe13e450fe
4
+ data.tar.gz: ae9ded38ef5735cdc8a94793f71dca20a862e757
5
+ SHA512:
6
+ metadata.gz: 36e7087b19b90f304f523cb96fceea1f30193e9259e477464578b145098bb1c7d0a59c1b88750dd6531b5caebef9665090b1f079ee54fff5ff8aee5a2f9828cc
7
+ data.tar.gz: 6452167a4d4654d9aa0656bc124b64f9e2d56eee5c3b9d1e80148c81d1c75fd89472bfd6bbfa2566939163675362ccf293edee1b9a213cd5a5a8606cb39b080e
data/Gemfile CHANGED
@@ -1 +1,3 @@
1
+ source 'https://rubygems.org'
2
+
1
3
  gemspec
data/bin/fyi CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- lib_dir = File.expand_path '../lib', __FILE__
3
+ lib_dir = File.expand_path '../../lib', __FILE__
4
4
  $LOAD_PATH.unshift lib_dir unless $LOAD_PATH.include? lib_dir
5
5
 
6
6
  require 'fyi'
@@ -19,6 +19,5 @@ Gem::Specification.new do |s|
19
19
  s.require_paths = %w[ lib ]
20
20
 
21
21
  s.add_development_dependency 'rake', '0.9.2.2'
22
- s.add_dependency 'mail', '~> 2.4.4'
23
- s.add_dependency 'systemu', '>= 2.4.0'
22
+ s.add_dependency 'mail', '> 2.4'
24
23
  end
data/lib/fyi.rb CHANGED
@@ -1,4 +1,4 @@
1
- require 'systemu'
1
+ require 'open3'
2
2
  require 'fyi/config'
3
3
  require 'fyi/core_ext'
4
4
 
@@ -17,9 +17,14 @@ class Fyi
17
17
 
18
18
  def run
19
19
  start_stopwatch
20
- status, stdout, stderr = systemu @command
20
+ # Append ";" to command to force Ruby to invoke via shell.
21
+ #
22
+ # Open3.capture3 -> Open3.popen3 -> Process.spawn
23
+ # Process.spawn is similar to Kernel.system
24
+ # Kernel.system is similar to Kernel.exec.
25
+ stdout, stderr, status = Open3.capture3 "#{@command};"
21
26
  stop_stopwatch
22
- status.exitstatus.to_i == 0 ? run_succeeded(stdout, stderr) : run_failed(stdout, stderr)
27
+ status.success? ? run_succeeded(stdout, stderr) : run_failed(stdout, stderr)
23
28
  rescue Object => e
24
29
  run_failed('', e.to_s)
25
30
  end
@@ -1,3 +1,3 @@
1
1
  class Fyi
2
- VERSION = '1.1.1'
2
+ VERSION = '1.2.0'
3
3
  end
metadata CHANGED
@@ -1,49 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fyi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
5
- prerelease:
4
+ version: 1.2.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Andy Stewart
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-10-09 00:00:00.000000000 Z
11
+ date: 2016-04-29 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rake
16
- requirement: &2160200000 !ruby/object:Gem::Requirement
17
- none: false
15
+ requirement: !ruby/object:Gem::Requirement
18
16
  requirements:
19
- - - =
17
+ - - '='
20
18
  - !ruby/object:Gem::Version
21
19
  version: 0.9.2.2
22
20
  type: :development
23
21
  prerelease: false
24
- version_requirements: *2160200000
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '='
25
+ - !ruby/object:Gem::Version
26
+ version: 0.9.2.2
25
27
  - !ruby/object:Gem::Dependency
26
28
  name: mail
27
- requirement: &2160199500 !ruby/object:Gem::Requirement
28
- none: false
29
+ requirement: !ruby/object:Gem::Requirement
29
30
  requirements:
30
- - - ~>
31
+ - - ">"
31
32
  - !ruby/object:Gem::Version
32
- version: 2.4.4
33
+ version: '2.4'
33
34
  type: :runtime
34
35
  prerelease: false
35
- version_requirements: *2160199500
36
- - !ruby/object:Gem::Dependency
37
- name: systemu
38
- requirement: &2160234600 !ruby/object:Gem::Requirement
39
- none: false
36
+ version_requirements: !ruby/object:Gem::Requirement
40
37
  requirements:
41
- - - ! '>='
38
+ - - ">"
42
39
  - !ruby/object:Gem::Version
43
- version: 2.4.0
44
- type: :runtime
45
- prerelease: false
46
- version_requirements: *2160234600
40
+ version: '2.4'
47
41
  description: Find out what cron is doing.
48
42
  email: boss@airbladesoftware.com
49
43
  executables:
@@ -51,7 +45,7 @@ executables:
51
45
  extensions: []
52
46
  extra_rdoc_files: []
53
47
  files:
54
- - .gitignore
48
+ - ".gitignore"
55
49
  - Gemfile
56
50
  - README.md
57
51
  - Rakefile
@@ -66,32 +60,25 @@ files:
66
60
  - lib/fyi/version.rb
67
61
  homepage: http://github.com/airblade/fyi
68
62
  licenses: []
63
+ metadata: {}
69
64
  post_install_message:
70
65
  rdoc_options: []
71
66
  require_paths:
72
67
  - lib
73
68
  required_ruby_version: !ruby/object:Gem::Requirement
74
- none: false
75
69
  requirements:
76
- - - ! '>='
70
+ - - ">="
77
71
  - !ruby/object:Gem::Version
78
72
  version: '0'
79
- segments:
80
- - 0
81
- hash: 3750240573240443090
82
73
  required_rubygems_version: !ruby/object:Gem::Requirement
83
- none: false
84
74
  requirements:
85
- - - ! '>='
75
+ - - ">="
86
76
  - !ruby/object:Gem::Version
87
77
  version: '0'
88
- segments:
89
- - 0
90
- hash: 3750240573240443090
91
78
  requirements: []
92
79
  rubyforge_project:
93
- rubygems_version: 1.8.11
80
+ rubygems_version: 2.5.1
94
81
  signing_key:
95
- specification_version: 3
82
+ specification_version: 4
96
83
  summary: Find out what cron is doing.
97
84
  test_files: []