cronbox 0.0.1 → 1.0.0

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: 344b223d39b260d6f3197c8dc6d98686d7171955
4
- data.tar.gz: 4980b00c568b679f1e4efe53e5aecbafcd294179
3
+ metadata.gz: e5300d737aee8a0811c2a077db160a2d05e671ba
4
+ data.tar.gz: bb5edd8979fef91683fa2fcb7e120e87d6699eb7
5
5
  SHA512:
6
- metadata.gz: 3b676ba4b02121ed2e8cb43579ccf851c1f5f20fb14506aa9ce066c9393d1a1aafd10fa5a978b7ea8a610971585ce3b98f607773b70a9dad409500dda6cf655b
7
- data.tar.gz: 7b5c9b99eaf732da774d166f914c1d864d21487f2af44c0c4286205e413a9df91025c8770773a92399797751e1caa7629a5fcf7c9589e41ebf9cb03b17e30b1b
6
+ metadata.gz: 8f2eb651310c1b374d19db94534843fc3c38f4ada15a8dfa05052f8e21b22cceee30bbb8379981f18280a8f7c2abf9528aaa9f5ff3ed08e8404f24eaaf68c431
7
+ data.tar.gz: 9f86ca5023be02fdac6ba8653685dff0b77ddb7f9261baa027dc62f2114fc37f3c96ce623bb69813ff2f50e245f3292ddb065f91c497150c7b2850d0c31c87bb
@@ -1,8 +1,12 @@
1
1
  sudo: false
2
+ matrix:
3
+ fast_finish: true
2
4
  language: ruby
3
5
  rvm:
4
6
  - 2.3.1
5
7
  - 1.9.2
8
+ before_install:
9
+ - gem update bundler
6
10
 
7
11
  notifications:
8
12
  email: false
data/README.md CHANGED
@@ -1,18 +1,27 @@
1
1
  # Cronbox
2
2
 
3
- **Command line inbox and timecard for scheduled job status and output.**
3
+ **Command-line inbox and timecard for scheduled job status and output.**
4
4
 
5
- Run any scheduled command through Cronbox to store its exit status and output for later review and diagnostics. Data is stored as simple JSON in the default location of `$HOME/.cronbox`
5
+ [![Gem Version](https://badge.fury.io/rb/cronbox.svg)](https://badge.fury.io/rb/cronbox) [![Build Status](https://travis-ci.org/binarybabel/gem-cronbox.svg?branch=master)](https://travis-ci.org/binarybabel/gem-cronbox)
6
+
7
+ Run any command through Cronbox to store its exit status and output for later review and diagnostics. Data is stored as JSON with a default location of `$HOME/.cronbox`
8
+
9
+ **Just prefix scheduled commands with `cb`**
10
+
11
+ $ cb /usr/bin/rsync -rav something somewhere
12
+
13
+ **And review the results later, with full output available:**
6
14
 
7
15
  ```
8
- | Cronbox | *=Output
9
- =====================================================================
10
- | ID | COMMAND | EXIT | WHEN |
11
- =====================================================================
12
- | 1 | /usr/local/bin/task sync | 0 | 12 minutes ago |
13
- ---------------------------------------------------------------------
14
- | 2 | ~/Dropbox/bin/run-daily-backup | *0 | 20 minutes ago |
15
- ---------------------------------------------------------------------
16
+ $ cb
17
+ | Cronbox | *=Output
18
+ ========================================================================
19
+ | ID | COMMAND | EXIT | WHEN |
20
+ ========================================================================
21
+ | 1 | /usr/bin/rsync -rav something somewhere | 0 | 2 minutes ago |
22
+ ------------------------------------------------------------------------
23
+ | 2 | ~/Dropbox/bin/run-daily-backup | *0 | 8 hours ago |
24
+ ------------------------------------------------------------------------
16
25
  ```
17
26
 
18
27
  ## Installation
@@ -23,13 +32,13 @@ Run any scheduled command through Cronbox to store its exit status and output fo
23
32
 
24
33
  For complete usage options, please consult `cb --help`
25
34
 
26
- $ cb # Query cronbox index timecard
35
+ $ cb # Print the cronbox index timecard
27
36
  $ cb CMD [ARGS] # Run and record output of command
28
- $ cb -o ID # Review full-output of entry
37
+ $ cb -o ID # Review command output of entry
29
38
 
30
- ### CRONTAB USAGE WITH RVM
39
+ ### CRONTAB USAGE & RVM
31
40
 
32
- If you're using RVM to manage Ruby, Cronbox may not be available to crontab due to missing paths. Try adding the following two options to the top of your file:
41
+ If you're using RVM to manage Ruby, Cronbox may not be available inside crontab due to missing paths. Try adding the following two options to the top of your crontab file...
33
42
 
34
43
  ```
35
44
  SHELL=/bin/bash
@@ -37,19 +46,23 @@ BASH_ENV=$HOME/.profile
37
46
  * * * * * cb true # Cronbox testing
38
47
  ```
39
48
 
40
- * Depending on your OS/Environment you might require `.bash_profile` instead.
49
+ * Depending on your OS/Environment you might need `.bash_profile` instead.
41
50
  * The `cb true` test line should show up on your Cronbox timecard.
42
51
  * Once it does you'll know you have everything working correctly and can remove it.
43
52
 
44
53
  ## Contributing
45
54
 
46
- Bug reports and pull requests are welcome on GitHub at https://github.com/binarybabel/cronbox.
55
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
56
+
57
+ Bug reports and pull requests are welcome on GitHub at https://github.com/binarybabel/gem-cronbox.
47
58
 
48
59
  * After checking out the repo, run `bin/setup` to install dependencies.
49
60
  * Then, run `rake test` to run the tests.
50
61
 
62
+ ## Author and License
51
63
 
52
- ## Author & License
64
+ - **Author:** BinaryBabel OSS ([https://keybase.io/binarybabel](https://keybase.io/binarybabel))
65
+ - **License:** GNU GPL 3
53
66
 
54
67
  0101010
55
68
  0010011
@@ -67,5 +80,3 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/binary
67
80
  00111 0010011110100011001010
68
81
  0110 10000010100111001000100
69
82
 
70
- The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
71
-
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
9
9
  spec.authors = ['BinaryBabel OSS']
10
10
  spec.email = ['oss@binarybabel.org']
11
11
 
12
- spec.summary = 'Command line inbox and timecard for scheduled job status and output.'
12
+ spec.summary = 'Command-line inbox and timecard for scheduled job status and output.'
13
13
  spec.homepage = 'https://github.com/binarybabel/cronbox'
14
14
  spec.license = 'MIT'
15
15
 
@@ -21,11 +21,11 @@ Gem::Specification.new do |spec|
21
21
  spec.require_paths = ['lib']
22
22
 
23
23
  spec.files += ['version.lock']
24
- spec.add_runtime_dependency 'versioneer'
24
+ spec.add_dependency 'versioneer'
25
25
 
26
26
  spec.add_development_dependency 'bundler', '~> 1.13'
27
27
  spec.add_development_dependency 'rake', '~> 10.0'
28
28
  spec.add_development_dependency 'minitest', '~> 5.0'
29
- spec.add_development_dependency 'pry', '~> 0.10.0'
30
- spec.add_development_dependency 'pry-byebug', '> 3'
29
+ #spec.add_development_dependency 'pry', '~> 0.10.0'
30
+ #spec.add_development_dependency 'pry-byebug', '> 3'
31
31
  end
data/exe/cb CHANGED
@@ -15,6 +15,7 @@ opparser = OptionParser.new do |opts|
15
15
  ' Run: cb [-l LABEL] RUN_CMD [CMD_ARGS]',
16
16
  '---------------------------------------------',
17
17
  '',
18
+ " Version: #{::Cronbox::VERSION}",
18
19
  ' Options:'
19
20
  ].join("\n")
20
21
  opts.on('-f DATA_FILE', '--file DATA_FILE', 'Data file, default: $HOME/.cronbox') do |v|
@@ -1,5 +1,9 @@
1
- require 'versioneer'
2
-
3
1
  class Cronbox
4
- VERSION = ::Versioneer::Config.new(::File.expand_path('../../../', __FILE__))
2
+ begin
3
+ require 'versioneer'
4
+ VERSION = ::Versioneer::Config.new(::File.expand_path('../../../', __FILE__))
5
+ rescue LoadError
6
+ VERSION = '0.0.0'
7
+ end
5
8
  end
9
+
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cronbox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - BinaryBabel OSS
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-01-31 00:00:00.000000000 Z
11
+ date: 2017-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: versioneer
@@ -66,34 +66,6 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '5.0'
69
- - !ruby/object:Gem::Dependency
70
- name: pry
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - "~>"
74
- - !ruby/object:Gem::Version
75
- version: 0.10.0
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - "~>"
81
- - !ruby/object:Gem::Version
82
- version: 0.10.0
83
- - !ruby/object:Gem::Dependency
84
- name: pry-byebug
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ">"
88
- - !ruby/object:Gem::Version
89
- version: '3'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ">"
95
- - !ruby/object:Gem::Version
96
- version: '3'
97
69
  description:
98
70
  email:
99
71
  - oss@binarybabel.org
@@ -142,5 +114,5 @@ rubyforge_project:
142
114
  rubygems_version: 2.5.1
143
115
  signing_key:
144
116
  specification_version: 4
145
- summary: Command line inbox and timecard for scheduled job status and output.
117
+ summary: Command-line inbox and timecard for scheduled job status and output.
146
118
  test_files: []