belly 0.3.5 → 0.4.1
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/.gitignore +2 -1
- data/Gemfile +3 -0
- data/Rakefile +0 -40
- data/VERSION +1 -1
- data/belly.gemspec +7 -4
- data/features/publish_scenario_results.feature +4 -1
- data/features/support/env.rb +1 -1
- data/features/todo.feature +0 -0
- data/features/why.feature +0 -0
- data/lib/belly.rb +6 -0
- data/lib/belly/client.rb +1 -2
- data/lib/belly/messages/cucumber_scenario_result_message.rb +6 -3
- metadata +8 -14
data/.gitignore
CHANGED
data/Gemfile
ADDED
data/Rakefile
CHANGED
@@ -19,46 +19,6 @@ rescue LoadError
|
|
19
19
|
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
|
20
20
|
end
|
21
21
|
|
22
|
-
require 'spec/rake/spectask'
|
23
|
-
Spec::Rake::SpecTask.new(:spec) do |spec|
|
24
|
-
spec.libs << 'lib' << 'spec'
|
25
|
-
spec.spec_files = FileList['spec/**/*_spec.rb']
|
26
|
-
end
|
27
|
-
|
28
|
-
Spec::Rake::SpecTask.new(:rcov) do |spec|
|
29
|
-
spec.libs << 'lib' << 'spec'
|
30
|
-
spec.pattern = 'spec/**/*_spec.rb'
|
31
|
-
spec.rcov = true
|
32
|
-
end
|
33
|
-
|
34
|
-
task :spec => :check_dependencies
|
35
|
-
|
36
|
-
begin
|
37
|
-
require 'cucumber/rake/task'
|
38
|
-
Cucumber::Rake::Task.new(:cucumber)
|
39
|
-
|
40
|
-
task :cucumber => :check_dependencies
|
41
|
-
rescue LoadError
|
42
|
-
task :cucumber do
|
43
|
-
abort "Cucumber is not available. In order to run features, you must: sudo gem install cucumber"
|
44
|
-
end
|
45
|
-
end
|
46
|
-
|
47
|
-
begin
|
48
|
-
require 'reek/rake_task'
|
49
|
-
Reek::RakeTask.new do |t|
|
50
|
-
t.fail_on_error = true
|
51
|
-
t.verbose = false
|
52
|
-
t.source_files = 'lib/**/*.rb'
|
53
|
-
end
|
54
|
-
rescue LoadError
|
55
|
-
task :reek do
|
56
|
-
abort "Reek is not available. In order to run reek, you must: sudo gem install reek"
|
57
|
-
end
|
58
|
-
end
|
59
|
-
|
60
|
-
task :default => :spec
|
61
|
-
|
62
22
|
require 'rake/rdoctask'
|
63
23
|
Rake::RDocTask.new do |rdoc|
|
64
24
|
if File.exist?('VERSION')
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.4.1
|
data/belly.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{belly}
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.4.1"
|
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"]
|
12
|
-
s.date = %q{2010-08-
|
12
|
+
s.date = %q{2010-08-21}
|
13
13
|
s.default_executable = %q{belly}
|
14
14
|
s.description = %q{Client app for the incredible new belly web service, coming soon.}
|
15
15
|
s.email = %q{matt@mattwynne.net}
|
@@ -23,6 +23,7 @@ Gem::Specification.new do |s|
|
|
23
23
|
".belly",
|
24
24
|
".document",
|
25
25
|
".gitignore",
|
26
|
+
"Gemfile",
|
26
27
|
"LICENSE",
|
27
28
|
"README.rdoc",
|
28
29
|
"Rakefile",
|
@@ -37,6 +38,8 @@ Gem::Specification.new do |s|
|
|
37
38
|
"features/support/belly.rb",
|
38
39
|
"features/support/env.rb",
|
39
40
|
"features/support/fake_hub.rb",
|
41
|
+
"features/todo.feature",
|
42
|
+
"features/why.feature",
|
40
43
|
"lib/belly.rb",
|
41
44
|
"lib/belly/cli.rb",
|
42
45
|
"lib/belly/cli/init.rb",
|
@@ -55,7 +58,7 @@ Gem::Specification.new do |s|
|
|
55
58
|
s.homepage = %q{http://belly.heroku.com}
|
56
59
|
s.rdoc_options = ["--charset=UTF-8"]
|
57
60
|
s.require_paths = ["lib"]
|
58
|
-
s.rubygems_version = %q{1.3.
|
61
|
+
s.rubygems_version = %q{1.3.6}
|
59
62
|
s.summary = %q{Client app for the incredible new belly web service, coming soon.}
|
60
63
|
s.test_files = [
|
61
64
|
"spec/belly/project_initializer_spec.rb",
|
@@ -66,7 +69,7 @@ Gem::Specification.new do |s|
|
|
66
69
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
67
70
|
s.specification_version = 3
|
68
71
|
|
69
|
-
if Gem::Version.new(Gem::
|
72
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
70
73
|
s.add_development_dependency(%q<rspec>, [">= 0"])
|
71
74
|
s.add_development_dependency(%q<cucumber>, [">= 0"])
|
72
75
|
else
|
data/features/support/env.rb
CHANGED
File without changes
|
File without changes
|
data/lib/belly.rb
CHANGED
@@ -6,7 +6,13 @@ module Belly
|
|
6
6
|
return unless ENV['BELLY_LOG']
|
7
7
|
puts "* [Belly] #{message}"
|
8
8
|
end
|
9
|
+
|
10
|
+
def version
|
11
|
+
@version ||= File.read(File.dirname(__FILE__) + '/../VERSION').strip
|
12
|
+
end
|
9
13
|
end
|
10
14
|
end
|
11
15
|
|
16
|
+
Belly.log "Belly version #{Belly.version} starting in #{File.expand_path(File.dirname(__FILE__))}"
|
17
|
+
|
12
18
|
require 'belly/client'
|
data/lib/belly/client.rb
CHANGED
@@ -1,16 +1,19 @@
|
|
1
1
|
module Belly
|
2
2
|
module Messages
|
3
3
|
class CucumberScenarioResultMessage
|
4
|
-
def initialize(feature_name,
|
4
|
+
def initialize(feature_name, scenario, user, project_name, feature_file, line)
|
5
5
|
@data = {
|
6
6
|
:type => self.class.name,
|
7
7
|
:id => {
|
8
8
|
:feature => feature_name,
|
9
|
-
:scenario =>
|
9
|
+
:scenario => scenario.name,
|
10
10
|
:feature_file => feature_file,
|
11
11
|
:line => line
|
12
12
|
},
|
13
|
-
:
|
13
|
+
:exception => {
|
14
|
+
:message => scenario.exception.to_s
|
15
|
+
},
|
16
|
+
:status => scenario.status,
|
14
17
|
:user => user,
|
15
18
|
:project => project_name
|
16
19
|
}
|
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: 25
|
5
4
|
prerelease: false
|
6
5
|
segments:
|
7
6
|
- 0
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 0.
|
7
|
+
- 4
|
8
|
+
- 1
|
9
|
+
version: 0.4.1
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- Matt Wynne
|
@@ -15,18 +14,16 @@ autorequire:
|
|
15
14
|
bindir: bin
|
16
15
|
cert_chain: []
|
17
16
|
|
18
|
-
date: 2010-08-
|
17
|
+
date: 2010-08-21 00:00:00 +01:00
|
19
18
|
default_executable: belly
|
20
19
|
dependencies:
|
21
20
|
- !ruby/object:Gem::Dependency
|
22
21
|
name: rspec
|
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: cucumber
|
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"
|
@@ -60,6 +55,7 @@ files:
|
|
60
55
|
- .belly
|
61
56
|
- .document
|
62
57
|
- .gitignore
|
58
|
+
- Gemfile
|
63
59
|
- LICENSE
|
64
60
|
- README.rdoc
|
65
61
|
- Rakefile
|
@@ -74,6 +70,8 @@ files:
|
|
74
70
|
- features/support/belly.rb
|
75
71
|
- features/support/env.rb
|
76
72
|
- features/support/fake_hub.rb
|
73
|
+
- features/todo.feature
|
74
|
+
- features/why.feature
|
77
75
|
- lib/belly.rb
|
78
76
|
- lib/belly/cli.rb
|
79
77
|
- lib/belly/cli/init.rb
|
@@ -98,27 +96,23 @@ rdoc_options:
|
|
98
96
|
require_paths:
|
99
97
|
- lib
|
100
98
|
required_ruby_version: !ruby/object:Gem::Requirement
|
101
|
-
none: false
|
102
99
|
requirements:
|
103
100
|
- - ">="
|
104
101
|
- !ruby/object:Gem::Version
|
105
|
-
hash: 3
|
106
102
|
segments:
|
107
103
|
- 0
|
108
104
|
version: "0"
|
109
105
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
110
|
-
none: false
|
111
106
|
requirements:
|
112
107
|
- - ">="
|
113
108
|
- !ruby/object:Gem::Version
|
114
|
-
hash: 3
|
115
109
|
segments:
|
116
110
|
- 0
|
117
111
|
version: "0"
|
118
112
|
requirements: []
|
119
113
|
|
120
114
|
rubyforge_project:
|
121
|
-
rubygems_version: 1.3.
|
115
|
+
rubygems_version: 1.3.6
|
122
116
|
signing_key:
|
123
117
|
specification_version: 3
|
124
118
|
summary: Client app for the incredible new belly web service, coming soon.
|