execution_checker 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/execution_checker.rb +52 -0
- metadata +108 -0
- metadata.gz.sig +1 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 7c22395fa5bd9cc7ef3db2fea769883b615c5164
|
4
|
+
data.tar.gz: bc418924c9fbe2c964a22000598af03265412928
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 6a992f4deb527911917fbef8f6107adf8cd57a737bbe75eef05eefc08fa549629f4b7a44d7e8f588bb850b955a90fa859e71d98710ea0602ceaab220b3522f6c
|
7
|
+
data.tar.gz: e394c67cddbdc9dcb6e9925209a434193a4ef9bf2acbab61edf0efc44125f959471939f60e3f28befd330daf48eda24e104afffdcff49cdd39c2d14adff5c9e5
|
checksums.yaml.gz.sig
ADDED
Binary file
|
data.tar.gz.sig
ADDED
Binary file
|
@@ -0,0 +1,52 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
# file: execution_checker.rb
|
4
|
+
|
5
|
+
require 'sps-pub'
|
6
|
+
require 'dynarex'
|
7
|
+
|
8
|
+
|
9
|
+
class ExecutionChecker
|
10
|
+
|
11
|
+
def initialize(dxfile, sps_address: 'sps', verbose: true)
|
12
|
+
|
13
|
+
@dx = Dynarex.new dxfile
|
14
|
+
@sps = SPSPub.new host: sps_address
|
15
|
+
@verbose = verbose
|
16
|
+
|
17
|
+
end
|
18
|
+
|
19
|
+
def check(tag)
|
20
|
+
|
21
|
+
rx = @dx.find_by_tag tag
|
22
|
+
|
23
|
+
puts 'checking ...'
|
24
|
+
|
25
|
+
if rx then
|
26
|
+
|
27
|
+
if File.exists? rx.filepath then
|
28
|
+
|
29
|
+
if File.mtime(rx.filepath).to_date == Date.today then
|
30
|
+
|
31
|
+
puts 'success: ' + rx.filepath.inspect if @verbose
|
32
|
+
@sps.notice rx.success unless rx.success.empty?
|
33
|
+
|
34
|
+
else
|
35
|
+
@sps.notice rx.failure unless rx.failure.empty?
|
36
|
+
end
|
37
|
+
|
38
|
+
end
|
39
|
+
|
40
|
+
else
|
41
|
+
|
42
|
+
puts 'execution_checker warning: tag ' + tag + ' not found'
|
43
|
+
|
44
|
+
end
|
45
|
+
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
if $0 == __FILE__ then
|
50
|
+
ec = ExecutionChecker.new ARGV[0]
|
51
|
+
ec.check tag=ARGV[1]
|
52
|
+
end
|
metadata
ADDED
@@ -0,0 +1,108 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: execution_checker
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- James Robertson
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain:
|
11
|
+
- |
|
12
|
+
-----BEGIN CERTIFICATE-----
|
13
|
+
MIIDljCCAn6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBIMRIwEAYDVQQDDAlnZW1t
|
14
|
+
YXN0ZXIxHjAcBgoJkiaJk/IsZAEZFg5qYW1lc3JvYmVydHNvbjESMBAGCgmSJomT
|
15
|
+
8ixkARkWAmV1MB4XDTE3MDcxMjIwMjgzNVoXDTE4MDcxMjIwMjgzNVowSDESMBAG
|
16
|
+
A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLGQBGRYOamFtZXNyb2JlcnRzb24x
|
17
|
+
EjAQBgoJkiaJk/IsZAEZFgJldTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
|
18
|
+
ggEBAM35pI3Zu5OssYhqQzFpkHEBZCwHDbsMiCxXgzV9ZruHkdG2AAjkEyN8l5zJ
|
19
|
+
Rerm5ImY4AuxQHVqGjN5YPJh2WJltJzjUGY3lcBgGPAoOYn0euvBA8+Oaxdbzo11
|
20
|
+
6YOTV06BEYVcHkHlgRbTky5SugyYK/4t8EpyJI6jxVEkyClzYpjCyuTVxr9we9g7
|
21
|
+
GbMlHuj6fvNPSbSzIZmoDmVOjjVwkbn11etV9Xzm7Y8j4TSQyv3XVG94VUTyMmAo
|
22
|
+
H5KyKn95mviaSN+6avoZ4uKO0IWEab9R+ZpP3PT53qkmIrEYD8xY9cxykPtKzQGK
|
23
|
+
sGVTbs5jOMmxYA7bmJNBTa3YbC0CAwEAAaOBijCBhzAJBgNVHRMEAjAAMAsGA1Ud
|
24
|
+
DwQEAwIEsDAdBgNVHQ4EFgQU459ryqzVVcbn7Qo0U63JWVx2LB8wJgYDVR0RBB8w
|
25
|
+
HYEbZ2VtbWFzdGVyQGphbWVzcm9iZXJ0c29uLmV1MCYGA1UdEgQfMB2BG2dlbW1h
|
26
|
+
c3RlckBqYW1lc3JvYmVydHNvbi5ldTANBgkqhkiG9w0BAQUFAAOCAQEAmUfIXd/K
|
27
|
+
3D/esklcEJPz68ecqBChmOBQDFMkE61MQXxbtjHNsEQo0zSJLk0l9FSrcIVekpmI
|
28
|
+
ZjXzmHAc9Pm+FtgtXZQruXziB3DVQj6kwDYvPyiY2qi4hmT2v8KCFogfJyCJ8jus
|
29
|
+
4YdnmPs27IRol2j6aF7soPhnrmAvYn/0xxt7WhlCTC/8GWb8YCmiPPV422gA2JO+
|
30
|
+
E3QFuUw1LPyEoSD/7HlRfMVOWPnue3cK7F5bhTdDe5YnofRqvGSzKju8P0zkLNVx
|
31
|
+
BagliWYEZRogUc9AHUKb+wTRY2uQoSkFpeWJAwyRLJwJf9y24ShtJOFjVBrkhl0G
|
32
|
+
cQ+S6xKimWP4Vg==
|
33
|
+
-----END CERTIFICATE-----
|
34
|
+
date: 2017-07-12 00:00:00.000000000 Z
|
35
|
+
dependencies:
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: dynarex
|
38
|
+
requirement: !ruby/object:Gem::Requirement
|
39
|
+
requirements:
|
40
|
+
- - "~>"
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '1.7'
|
43
|
+
- - ">="
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 1.7.22
|
46
|
+
type: :runtime
|
47
|
+
prerelease: false
|
48
|
+
version_requirements: !ruby/object:Gem::Requirement
|
49
|
+
requirements:
|
50
|
+
- - "~>"
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '1.7'
|
53
|
+
- - ">="
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: 1.7.22
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: sps-pub
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - "~>"
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '0.5'
|
63
|
+
- - ">="
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: 0.5.5
|
66
|
+
type: :runtime
|
67
|
+
prerelease: false
|
68
|
+
version_requirements: !ruby/object:Gem::Requirement
|
69
|
+
requirements:
|
70
|
+
- - "~>"
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: '0.5'
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 0.5.5
|
76
|
+
description:
|
77
|
+
email: james@jamesrobertson.eu
|
78
|
+
executables: []
|
79
|
+
extensions: []
|
80
|
+
extra_rdoc_files: []
|
81
|
+
files:
|
82
|
+
- lib/execution_checker.rb
|
83
|
+
homepage: https://github.com/jrobertson/execution_checker
|
84
|
+
licenses:
|
85
|
+
- MIT
|
86
|
+
metadata: {}
|
87
|
+
post_install_message:
|
88
|
+
rdoc_options: []
|
89
|
+
require_paths:
|
90
|
+
- lib
|
91
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - ">="
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '0'
|
96
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
97
|
+
requirements:
|
98
|
+
- - ">="
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
version: '0'
|
101
|
+
requirements: []
|
102
|
+
rubyforge_project:
|
103
|
+
rubygems_version: 2.6.8
|
104
|
+
signing_key:
|
105
|
+
specification_version: 4
|
106
|
+
summary: Checks the execution of a script by checking the file modification date of
|
107
|
+
the output file generated by the script.
|
108
|
+
test_files: []
|
metadata.gz.sig
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
}�,3P��h�.��:#�t0sU�l�6�a`��R�fu�ŲD(�3�GI�{���{��Y�f<�#.���p$�5Ԍ�u
|