blue_colr 0.1.3 → 0.1.4
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/blue_colr.rb +12 -9
- metadata +9 -25
data/lib/blue_colr.rb
CHANGED
@@ -43,15 +43,18 @@ class BlueColr
|
|
43
43
|
# Configuration hash read from yaml config file
|
44
44
|
def conf
|
45
45
|
unless @conf
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
46
|
+
if @db_url || @db # skip loading config if db set explicitly
|
47
|
+
@conf = {}
|
48
|
+
else
|
49
|
+
parse_command_line unless @args
|
50
|
+
|
51
|
+
raise "No configuration file defined (-c <config>)." if @args["config"].nil?
|
52
|
+
raise "Couldn't read #{@args["config"]} file." unless @args['config'] && @conf = YAML::load(File.new(@args["config"]).read)
|
53
|
+
# setting default options that should be written along with all the records to process_items
|
54
|
+
if @conf['default_options']
|
55
|
+
@conf['default_options'].each do |k,v|
|
56
|
+
default_options.send("#{k}=", v)
|
57
|
+
end
|
55
58
|
end
|
56
59
|
end
|
57
60
|
end
|
metadata
CHANGED
@@ -1,13 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blue_colr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 1
|
9
|
-
- 3
|
10
|
-
version: 0.1.3
|
4
|
+
version: 0.1.4
|
11
5
|
platform: ruby
|
12
6
|
authors:
|
13
7
|
- Mladen Jablanovic
|
@@ -15,23 +9,19 @@ autorequire:
|
|
15
9
|
bindir: bin
|
16
10
|
cert_chain: []
|
17
11
|
|
18
|
-
date: 2011-10-
|
12
|
+
date: 2011-10-19 00:00:00 +02:00
|
19
13
|
default_executable:
|
20
14
|
dependencies:
|
21
15
|
- !ruby/object:Gem::Dependency
|
22
16
|
name: sequel
|
23
|
-
|
24
|
-
|
25
|
-
|
17
|
+
type: :runtime
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
20
|
requirements:
|
27
21
|
- - ">="
|
28
22
|
- !ruby/object:Gem::Version
|
29
|
-
hash: 3
|
30
|
-
segments:
|
31
|
-
- 0
|
32
23
|
version: "0"
|
33
|
-
|
34
|
-
version_requirements: *id001
|
24
|
+
version:
|
35
25
|
description: Blue_colr provides simple DSL to enqueue processes in given order, using database table as a queue, and a deamon to run them
|
36
26
|
email:
|
37
27
|
- jablan@radioni.ca
|
@@ -58,27 +48,21 @@ rdoc_options: []
|
|
58
48
|
require_paths:
|
59
49
|
- lib
|
60
50
|
required_ruby_version: !ruby/object:Gem::Requirement
|
61
|
-
none: false
|
62
51
|
requirements:
|
63
52
|
- - ">="
|
64
53
|
- !ruby/object:Gem::Version
|
65
|
-
hash: 3
|
66
|
-
segments:
|
67
|
-
- 0
|
68
54
|
version: "0"
|
55
|
+
version:
|
69
56
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
70
|
-
none: false
|
71
57
|
requirements:
|
72
58
|
- - ">="
|
73
59
|
- !ruby/object:Gem::Version
|
74
|
-
hash: 3
|
75
|
-
segments:
|
76
|
-
- 0
|
77
60
|
version: "0"
|
61
|
+
version:
|
78
62
|
requirements: []
|
79
63
|
|
80
64
|
rubyforge_project:
|
81
|
-
rubygems_version: 1.
|
65
|
+
rubygems_version: 1.3.5
|
82
66
|
signing_key:
|
83
67
|
specification_version: 3
|
84
68
|
summary: Database based process launcher
|