propel 0.0.2 → 0.0.3

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/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- propel (0.0.2)
4
+ propel (0.0.3)
5
5
  json
6
6
 
7
7
  GEM
@@ -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 |o|
26
- options[:status_url] = o
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|
@@ -1,3 +1,3 @@
1
1
  module Propel
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -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: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Justin Leitgeb