belly 0.5.3 → 0.5.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/VERSION +1 -1
- data/belly.gemspec +3 -3
- data/lib/belly/cli/init.rb +1 -1
- data/lib/belly/cli/rerun.rb +4 -1
- data/lib/belly/client/hub_proxy.rb +3 -1
- metadata +3 -16
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.4
|
data/belly.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{belly}
|
8
|
-
s.version = "0.5.
|
8
|
+
s.version = "0.5.4"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Matt Wynne"]
|
@@ -57,7 +57,7 @@ Gem::Specification.new do |s|
|
|
57
57
|
s.homepage = %q{http://belly.heroku.com}
|
58
58
|
s.rdoc_options = ["--charset=UTF-8"]
|
59
59
|
s.require_paths = ["lib"]
|
60
|
-
s.rubygems_version = %q{1.3.
|
60
|
+
s.rubygems_version = %q{1.3.6}
|
61
61
|
s.summary = %q{Client app for the incredible new belly web service, coming soon.}
|
62
62
|
s.test_files = [
|
63
63
|
"spec/belly/project_initializer_spec.rb",
|
@@ -68,7 +68,7 @@ Gem::Specification.new do |s|
|
|
68
68
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
69
69
|
s.specification_version = 3
|
70
70
|
|
71
|
-
if Gem::Version.new(Gem::
|
71
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
72
72
|
s.add_runtime_dependency(%q<trollop>, [">= 0"])
|
73
73
|
s.add_runtime_dependency(%q<rest-client>, [">= 0"])
|
74
74
|
s.add_development_dependency(%q<rspec>, [">= 0"])
|
data/lib/belly/cli/init.rb
CHANGED
data/lib/belly/cli/rerun.rb
CHANGED
@@ -2,7 +2,7 @@ require 'belly/client'
|
|
2
2
|
|
3
3
|
options = Trollop::options do
|
4
4
|
banner <<-EOF
|
5
|
-
This is the help for the rerun command. To see all commands
|
5
|
+
This is the help for the rerun command. To see all commands available, type belly --help
|
6
6
|
|
7
7
|
Usage: belly rerun
|
8
8
|
|
@@ -22,6 +22,9 @@ module Belly
|
|
22
22
|
scenarios = Belly.hub.get_failing_scenarios_for_project_named(Belly.config.project)
|
23
23
|
todos = scenarios.map { |scenario| "#{scenario["file_name"]}:#{scenario["line_number"]}" }
|
24
24
|
todos.sort.each { |todo| puts todo }
|
25
|
+
|
26
|
+
rescue Client::NoSuchProjectError
|
27
|
+
ui.die("Belly doesn't know enough about this project yet. Please run some tests, then try again.")
|
25
28
|
end
|
26
29
|
end
|
27
30
|
end
|
@@ -1,7 +1,9 @@
|
|
1
1
|
require 'rest_client'
|
2
2
|
|
3
3
|
module Belly::Client
|
4
|
+
class NoSuchProjectError < StandardError; end
|
4
5
|
class HubProxy
|
6
|
+
|
5
7
|
def initialize(config)
|
6
8
|
@config = config
|
7
9
|
end
|
@@ -21,7 +23,7 @@ module Belly::Client
|
|
21
23
|
def get_project_id_by_name(project_name)
|
22
24
|
response = request(:get, "/projects.json?name=#{project_name}")
|
23
25
|
projects = JSON.parse(response)["projects"]
|
24
|
-
raise
|
26
|
+
raise NoSuchProjectError unless projects.any?
|
25
27
|
projects.first["id"].to_i
|
26
28
|
end
|
27
29
|
|
metadata
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: belly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 13
|
5
4
|
prerelease: false
|
6
5
|
segments:
|
7
6
|
- 0
|
8
7
|
- 5
|
9
|
-
-
|
10
|
-
version: 0.5.
|
8
|
+
- 4
|
9
|
+
version: 0.5.4
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- Matt Wynne
|
@@ -22,11 +21,9 @@ dependencies:
|
|
22
21
|
name: trollop
|
23
22
|
prerelease: false
|
24
23
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
24
|
requirements:
|
27
25
|
- - ">="
|
28
26
|
- !ruby/object:Gem::Version
|
29
|
-
hash: 3
|
30
27
|
segments:
|
31
28
|
- 0
|
32
29
|
version: "0"
|
@@ -36,11 +33,9 @@ dependencies:
|
|
36
33
|
name: rest-client
|
37
34
|
prerelease: false
|
38
35
|
requirement: &id002 !ruby/object:Gem::Requirement
|
39
|
-
none: false
|
40
36
|
requirements:
|
41
37
|
- - ">="
|
42
38
|
- !ruby/object:Gem::Version
|
43
|
-
hash: 3
|
44
39
|
segments:
|
45
40
|
- 0
|
46
41
|
version: "0"
|
@@ -50,11 +45,9 @@ dependencies:
|
|
50
45
|
name: rspec
|
51
46
|
prerelease: false
|
52
47
|
requirement: &id003 !ruby/object:Gem::Requirement
|
53
|
-
none: false
|
54
48
|
requirements:
|
55
49
|
- - ">="
|
56
50
|
- !ruby/object:Gem::Version
|
57
|
-
hash: 3
|
58
51
|
segments:
|
59
52
|
- 0
|
60
53
|
version: "0"
|
@@ -64,11 +57,9 @@ dependencies:
|
|
64
57
|
name: cucumber
|
65
58
|
prerelease: false
|
66
59
|
requirement: &id004 !ruby/object:Gem::Requirement
|
67
|
-
none: false
|
68
60
|
requirements:
|
69
61
|
- - ">="
|
70
62
|
- !ruby/object:Gem::Version
|
71
|
-
hash: 3
|
72
63
|
segments:
|
73
64
|
- 0
|
74
65
|
version: "0"
|
@@ -128,27 +119,23 @@ rdoc_options:
|
|
128
119
|
require_paths:
|
129
120
|
- lib
|
130
121
|
required_ruby_version: !ruby/object:Gem::Requirement
|
131
|
-
none: false
|
132
122
|
requirements:
|
133
123
|
- - ">="
|
134
124
|
- !ruby/object:Gem::Version
|
135
|
-
hash: 3
|
136
125
|
segments:
|
137
126
|
- 0
|
138
127
|
version: "0"
|
139
128
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
140
|
-
none: false
|
141
129
|
requirements:
|
142
130
|
- - ">="
|
143
131
|
- !ruby/object:Gem::Version
|
144
|
-
hash: 3
|
145
132
|
segments:
|
146
133
|
- 0
|
147
134
|
version: "0"
|
148
135
|
requirements: []
|
149
136
|
|
150
137
|
rubyforge_project:
|
151
|
-
rubygems_version: 1.3.
|
138
|
+
rubygems_version: 1.3.6
|
152
139
|
signing_key:
|
153
140
|
specification_version: 3
|
154
141
|
summary: Client app for the incredible new belly web service, coming soon.
|