fyi 1.1.1 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +2 -0
- data/bin/fyi +1 -1
- data/fyi.gemspec +1 -2
- data/lib/fyi.rb +8 -3
- data/lib/fyi/version.rb +1 -1
- metadata +21 -34
checksums.yaml
ADDED
@@ -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
data/bin/fyi
CHANGED
data/fyi.gemspec
CHANGED
data/lib/fyi.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require '
|
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
|
-
|
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.
|
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
|
data/lib/fyi/version.rb
CHANGED
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.
|
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:
|
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:
|
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:
|
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:
|
28
|
-
none: false
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
29
30
|
requirements:
|
30
|
-
- -
|
31
|
+
- - ">"
|
31
32
|
- !ruby/object:Gem::Version
|
32
|
-
version: 2.4
|
33
|
+
version: '2.4'
|
33
34
|
type: :runtime
|
34
35
|
prerelease: false
|
35
|
-
version_requirements:
|
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
|
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:
|
80
|
+
rubygems_version: 2.5.1
|
94
81
|
signing_key:
|
95
|
-
specification_version:
|
82
|
+
specification_version: 4
|
96
83
|
summary: Find out what cron is doing.
|
97
84
|
test_files: []
|