propel 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/propel/option_parser.rb +2 -2
- data/lib/propel/version.rb +1 -1
- data/spec/propel/option_parser_spec.rb +5 -0
- metadata +3 -3
data/Gemfile.lock
CHANGED
data/lib/propel/option_parser.rb
CHANGED
@@ -22,8 +22,8 @@ module Propel
|
|
22
22
|
options[:verbose] = false
|
23
23
|
options[:wait] = false
|
24
24
|
|
25
|
-
parser.on('-s', '--status-url', 'Location of build status') do |
|
26
|
-
options[:status_url] =
|
25
|
+
parser.on('-s', '--status-url STATUS_URL', 'Location of build status feed') do |build_status_url|
|
26
|
+
options[:status_url] = build_status_url
|
27
27
|
end
|
28
28
|
|
29
29
|
parser.on('-f', '--[no-]force', 'Use propel --force to ignore any remote build failures') do |o|
|
data/lib/propel/version.rb
CHANGED
@@ -21,5 +21,10 @@ describe Propel::OptionParser do
|
|
21
21
|
it "should set wait to true when given as an option" do
|
22
22
|
Propel::OptionParser.parse!(['--wait'])[:wait].should be_true
|
23
23
|
end
|
24
|
+
|
25
|
+
it "should set the status url based on the given parameters" do
|
26
|
+
Propel::OptionParser.parse!(['--status-url', 'http://ci.example.com/feed.rss'])[:status_url].
|
27
|
+
should == 'http://ci.example.com/feed.rss'
|
28
|
+
end
|
24
29
|
end
|
25
30
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: propel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 3
|
10
|
+
version: 0.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Justin Leitgeb
|