rconf 0.8.5 → 0.8.8
Sign up to get free protection for your applications and to get access to all the features.
data/lib/rconf/configurator.rb
CHANGED
@@ -131,11 +131,12 @@ module RightConf
|
|
131
131
|
key = "#{self.class.key}-#{@index}"
|
132
132
|
sha = Profile.configurator_signature(key)
|
133
133
|
sig = signature
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
Profile.set_configurator_signature(key, sig)
|
134
|
+
must_configure = Profile.force_reconfigure?
|
135
|
+
if !must_configure && (only_if.nil? || instance_eval(only_if))
|
136
|
+
must_configure = (Profile.force_check? || sha != sig) && !check
|
138
137
|
end
|
138
|
+
Platform.dispatch(*args) { :run } if must_configure
|
139
|
+
Profile.set_configurator_signature(key, sig)
|
139
140
|
true
|
140
141
|
end
|
141
142
|
|
@@ -42,7 +42,7 @@ module RightConf
|
|
42
42
|
set_defaults
|
43
43
|
report_check("Checking for passenger gem #{gem_version}")
|
44
44
|
res = Command.execute_in_ruby('gem', 'list', 'passenger')
|
45
|
-
success = (res.output =~
|
45
|
+
success = (res.output =~ /#{gem_version}/)
|
46
46
|
report_result(success)
|
47
47
|
if success
|
48
48
|
report_check('Checking for passenger+nginx')
|
data/lib/rconf/version.rb
CHANGED
data/spec/configurator_spec.rb
CHANGED
@@ -59,7 +59,7 @@ describe RightConf::Configurator do
|
|
59
59
|
end
|
60
60
|
|
61
61
|
it 'should check' do
|
62
|
-
flexmock(
|
62
|
+
flexmock(RightConf::Profile.instance).should_receive(:configurator_signature).and_return(@configurator.signature)
|
63
63
|
flexmock(RightConf::Platform.instance).should_receive(:dispatch).never
|
64
64
|
@configurator.run
|
65
65
|
end
|
metadata
CHANGED
@@ -1,8 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rconf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
4
|
+
hash: 47
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 8
|
9
|
+
- 8
|
10
|
+
version: 0.8.8
|
6
11
|
platform: ruby
|
7
12
|
authors:
|
8
13
|
- Raphael Simon
|
@@ -21,6 +26,10 @@ dependencies:
|
|
21
26
|
requirements:
|
22
27
|
- - ~>
|
23
28
|
- !ruby/object:Gem::Version
|
29
|
+
hash: 9
|
30
|
+
segments:
|
31
|
+
- 2
|
32
|
+
- 5
|
24
33
|
version: "2.5"
|
25
34
|
type: :development
|
26
35
|
version_requirements: *id001
|
@@ -32,6 +41,10 @@ dependencies:
|
|
32
41
|
requirements:
|
33
42
|
- - ~>
|
34
43
|
- !ruby/object:Gem::Version
|
44
|
+
hash: 25
|
45
|
+
segments:
|
46
|
+
- 0
|
47
|
+
- 9
|
35
48
|
version: "0.9"
|
36
49
|
type: :development
|
37
50
|
version_requirements: *id002
|
@@ -121,17 +134,23 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
121
134
|
requirements:
|
122
135
|
- - ">="
|
123
136
|
- !ruby/object:Gem::Version
|
137
|
+
hash: 3
|
138
|
+
segments:
|
139
|
+
- 0
|
124
140
|
version: "0"
|
125
141
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
126
142
|
none: false
|
127
143
|
requirements:
|
128
144
|
- - ">="
|
129
145
|
- !ruby/object:Gem::Version
|
146
|
+
hash: 3
|
147
|
+
segments:
|
148
|
+
- 0
|
130
149
|
version: "0"
|
131
150
|
requirements: []
|
132
151
|
|
133
152
|
rubyforge_project: rconf
|
134
|
-
rubygems_version: 1.
|
153
|
+
rubygems_version: 1.3.7
|
135
154
|
signing_key:
|
136
155
|
specification_version: 3
|
137
156
|
summary: Cross platform environment configuration
|