cigarette 2.0 → 2.1
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.
- data/lib/cigarette.rb +7 -5
- metadata +37 -21
data/lib/cigarette.rb
CHANGED
@@ -7,7 +7,7 @@ require 'cigarette/rvm'
|
|
7
7
|
class Cigarette
|
8
8
|
include Colors
|
9
9
|
|
10
|
-
VERSION = "2.
|
10
|
+
VERSION = "2.1"
|
11
11
|
# Hope.
|
12
12
|
CANCER_DO_NOT_APPEAR = 42
|
13
13
|
|
@@ -21,15 +21,17 @@ class Cigarette
|
|
21
21
|
RVM.use_system!
|
22
22
|
@rubies = [RUBY_VERSION]
|
23
23
|
end
|
24
|
-
@time =
|
24
|
+
@time = cnf['each'].to_i
|
25
25
|
@next_check = Time.now.to_i + @time
|
26
|
-
@command = cnf[
|
26
|
+
@command = cnf['command']
|
27
|
+
rescue NoMethodError
|
28
|
+
abort "Problem during .cigarette loading: 'each:' and 'command:' attributes are MANDATORY."
|
27
29
|
rescue TypeError
|
28
30
|
abort "Didn't you make a mistake in .cigarette file ?"
|
29
31
|
rescue ArgumentError
|
30
|
-
abort "Did you configure attribute like this: 'attribute: <value>'"
|
32
|
+
abort "Did you configure attribute like this: 'attribute: <value>'."
|
31
33
|
rescue Exception => e
|
32
|
-
abort "Problem during .cigarette loading: #{e.message}"
|
34
|
+
abort "Problem during .cigarette loading: #{e.message}."
|
33
35
|
end
|
34
36
|
deploy_trap
|
35
37
|
init_curses
|
metadata
CHANGED
@@ -1,24 +1,31 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: cigarette
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 1
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 2
|
8
|
+
- 1
|
9
|
+
version: "2.1"
|
6
10
|
platform: ruby
|
7
|
-
authors:
|
11
|
+
authors:
|
8
12
|
- Thibaut Deloffre
|
9
13
|
autorequire:
|
10
14
|
bindir: bin
|
11
15
|
cert_chain: []
|
12
|
-
|
16
|
+
|
17
|
+
date: 2012-12-28 00:00:00 Z
|
13
18
|
dependencies: []
|
19
|
+
|
14
20
|
description: Tiny test tool
|
15
21
|
email: tib@rocknroot.org
|
16
|
-
executables:
|
22
|
+
executables:
|
17
23
|
- cigarette
|
18
24
|
extensions: []
|
19
|
-
|
25
|
+
|
26
|
+
extra_rdoc_files:
|
20
27
|
- LICENSE.txt
|
21
|
-
files:
|
28
|
+
files:
|
22
29
|
- lib/cigarette.rb
|
23
30
|
- lib/cigarette/numeric.rb
|
24
31
|
- lib/cigarette/rvm.rb
|
@@ -26,28 +33,37 @@ files:
|
|
26
33
|
- LICENSE.txt
|
27
34
|
- bin/cigarette
|
28
35
|
homepage: https://github.com/TibshoOT/cigarette
|
29
|
-
licenses:
|
36
|
+
licenses:
|
30
37
|
- BSD
|
31
38
|
post_install_message:
|
32
39
|
rdoc_options: []
|
33
|
-
|
40
|
+
|
41
|
+
require_paths:
|
34
42
|
- lib
|
35
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
43
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
36
44
|
none: false
|
37
|
-
requirements:
|
38
|
-
- -
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
|
41
|
-
|
45
|
+
requirements:
|
46
|
+
- - ">="
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
hash: 3
|
49
|
+
segments:
|
50
|
+
- 0
|
51
|
+
version: "0"
|
52
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
42
53
|
none: false
|
43
|
-
requirements:
|
44
|
-
- -
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
|
54
|
+
requirements:
|
55
|
+
- - ">="
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
hash: 3
|
58
|
+
segments:
|
59
|
+
- 0
|
60
|
+
version: "0"
|
47
61
|
requirements: []
|
62
|
+
|
48
63
|
rubyforge_project:
|
49
|
-
rubygems_version: 1.8.
|
64
|
+
rubygems_version: 1.8.24
|
50
65
|
signing_key:
|
51
66
|
specification_version: 3
|
52
67
|
summary: Tiny test tool
|
53
68
|
test_files: []
|
69
|
+
|