rubycron 0.3.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/Gemfile +9 -4
- data/README.md +7 -6
- data/lib/rubycron/main.rb +1 -1
- data/lib/rubycron/version.rb +1 -1
- data/sample/test.rcj +2 -2
- metadata +11 -19
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
ZmRkMDMwZmVkNWUyMTBkNTU0M2MxNGE0YzI4MDdmNmYxNzFhZGQ1ZQ==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
NzIwZDUwMDBkMDdjMTQxZDA5ODU3Njk1ZGI3MmNiNmIyNWU2YjI0YQ==
|
7
|
+
SHA512:
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
ZDFmZTg0YmQwOGRiZDg4ZWI1NTZmOTJhZWE5YjY2OWIwOGZiNTM5NmFlNDU0
|
10
|
+
MjFkYjgyOWMyMTcwMGQ5ZTY1YTlmYjdhZjY1YzM1NjNiNTA4ZjljMDliNDJh
|
11
|
+
MGRiYTk0ZGMwZGFlMTFhMThkMWYzMDM5YzAzYjg4Y2M2ZmY4Yzg=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
ZTgwODczZjhjMDUwNjhmNWIzYjY5NmMyZDcwYmI3ZjgxOWQ2NDZkOWFiOTkx
|
14
|
+
ZmRkOWMwMzcyYzFkMDFkYzUwY2Y0NjU1ZDZkZjQ1OTE1N2RkODk4MThmZTJm
|
15
|
+
N2U5ODZmMjU1Mzg4MDViYjA0ZjgzMjY5OTlmYjZkMmQ4ZGRmNDA=
|
data/Gemfile
CHANGED
@@ -1,11 +1,16 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
|
3
|
-
gem "mail", ">= 2.
|
3
|
+
gem "mail", ">= 2.6.3"
|
4
4
|
|
5
|
-
gem
|
5
|
+
gem "mime-types", "~> 1.23", :platforms => :ruby_18
|
6
|
+
gem "rest-client", "~> 1.6.7", :platforms => :ruby_18
|
7
|
+
gem "tins", "~> 1.3.2", :platforms => :ruby_19
|
8
|
+
|
9
|
+
gem 'coveralls', :require => false
|
6
10
|
|
7
11
|
group :test do
|
8
|
-
gem "rspec", "~>
|
12
|
+
gem "rspec", "~> 3.4"
|
13
|
+
gem "rspec-collection_matchers", "~> 1.1.2"
|
9
14
|
gem "simplecov", "~> 0.7.1"
|
10
15
|
gem "rake", ">= 0.9.2.2"
|
11
|
-
end
|
16
|
+
end
|
data/README.md
CHANGED
@@ -23,11 +23,12 @@ By default, RubyCron assumes you have a local smtp server running on port 25 in
|
|
23
23
|
|
24
24
|
### Tested on
|
25
25
|
|
26
|
-
* ruby-1.8.7-
|
26
|
+
* ruby-1.8.7-p374 [ i686 ]
|
27
27
|
* ruby-1.9.2-p320 [ x86_64 ]
|
28
28
|
* ruby-1.9.3-p448 [ x86_64 ]
|
29
|
-
* ruby-2.0.0-
|
30
|
-
*
|
29
|
+
* ruby-2.0.0-p451 [ x86_64 ]
|
30
|
+
* ruby-2.1.1
|
31
|
+
* jruby-1.7.11 [ x86_64 ]
|
31
32
|
|
32
33
|
## Usage
|
33
34
|
|
@@ -45,8 +46,8 @@ Call RubyCronJob's execute method, and define your cronjob within the do-end blo
|
|
45
46
|
```ruby
|
46
47
|
rcj.execute do
|
47
48
|
info "Starting run on #{`uname -n`}"
|
48
|
-
unless File.directory?(
|
49
|
-
|
49
|
+
unless File.directory?(Dir.tmpdir)
|
50
|
+
warning "Something seems wrong with the tmp directory."
|
50
51
|
end
|
51
52
|
begin
|
52
53
|
File.open('/tmp/rubycrontest', 'w') do |f|
|
@@ -179,7 +180,7 @@ Note that in the latter case the values of the directives specified within the R
|
|
179
180
|
|
180
181
|
## License
|
181
182
|
|
182
|
-
Copyright (c) 2011 -
|
183
|
+
Copyright (c) 2011 - 2015, Bart Kamphorst
|
183
184
|
|
184
185
|
(Modified BSD License)
|
185
186
|
|
data/lib/rubycron/main.rb
CHANGED
data/lib/rubycron/version.rb
CHANGED
data/sample/test.rcj
CHANGED
@@ -16,7 +16,7 @@ rcj = RubyCronJob.new(
|
|
16
16
|
|
17
17
|
rcj.execute do
|
18
18
|
unless File.directory?(Dir.tmpdir)
|
19
|
-
warning "Something
|
19
|
+
warning "Something seems wrong with the tmp directory."
|
20
20
|
end
|
21
21
|
begin
|
22
22
|
Dir.mktmpdir do |dir|
|
@@ -27,4 +27,4 @@ rcj.execute do
|
|
27
27
|
rescue => e
|
28
28
|
error "Something went wrong trying to write to file: #{e.message}"
|
29
29
|
end
|
30
|
-
end
|
30
|
+
end
|
metadata
CHANGED
@@ -1,36 +1,32 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubycron
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
5
|
-
prerelease:
|
4
|
+
version: 1.0.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Bart Kamphorst
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2015-12-05 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: mail
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - ! '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
|
-
version: 2.
|
19
|
+
version: '2.6'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - ! '>='
|
28
25
|
- !ruby/object:Gem::Version
|
29
|
-
version: 2.
|
26
|
+
version: '2.6'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: simplecov
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
31
|
- - ~>
|
36
32
|
- !ruby/object:Gem::Version
|
@@ -38,7 +34,6 @@ dependencies:
|
|
38
34
|
type: :development
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
38
|
- - ~>
|
44
39
|
- !ruby/object:Gem::Version
|
@@ -46,19 +41,17 @@ dependencies:
|
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: rspec
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
45
|
- - ~>
|
52
46
|
- !ruby/object:Gem::Version
|
53
|
-
version: '
|
47
|
+
version: '3.4'
|
54
48
|
type: :development
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
52
|
- - ~>
|
60
53
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
54
|
+
version: '3.4'
|
62
55
|
description: Write clean cronjobs in Ruby, and get reporting for free!
|
63
56
|
email: rubycron@kamphorst.com
|
64
57
|
executables:
|
@@ -67,38 +60,37 @@ extensions: []
|
|
67
60
|
extra_rdoc_files:
|
68
61
|
- README.md
|
69
62
|
files:
|
70
|
-
- README.md
|
71
63
|
- Gemfile
|
64
|
+
- README.md
|
65
|
+
- bin/rcjrunner.rb
|
72
66
|
- lib/rubycron.rb
|
73
67
|
- lib/rubycron/errors.rb
|
74
68
|
- lib/rubycron/main.rb
|
75
69
|
- lib/rubycron/report.erb
|
76
70
|
- lib/rubycron/version.rb
|
77
71
|
- sample/test.rcj
|
78
|
-
- bin/rcjrunner.rb
|
79
72
|
homepage: https://github.com/bartkamphorst/rubycron
|
80
73
|
licenses:
|
81
74
|
- Modified BSD
|
75
|
+
metadata: {}
|
82
76
|
post_install_message:
|
83
77
|
rdoc_options: []
|
84
78
|
require_paths:
|
85
79
|
- lib
|
86
80
|
required_ruby_version: !ruby/object:Gem::Requirement
|
87
|
-
none: false
|
88
81
|
requirements:
|
89
82
|
- - ! '>='
|
90
83
|
- !ruby/object:Gem::Version
|
91
84
|
version: '0'
|
92
85
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
93
|
-
none: false
|
94
86
|
requirements:
|
95
87
|
- - ! '>='
|
96
88
|
- !ruby/object:Gem::Version
|
97
89
|
version: '0'
|
98
90
|
requirements: []
|
99
91
|
rubyforge_project:
|
100
|
-
rubygems_version:
|
92
|
+
rubygems_version: 2.4.6
|
101
93
|
signing_key:
|
102
|
-
specification_version:
|
94
|
+
specification_version: 4
|
103
95
|
summary: Simplifies your Ruby cronjobs by automating the reporting process.
|
104
96
|
test_files: []
|