limited_red 0.3.7 → 0.3.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -31,7 +31,7 @@ module LimitedRed
31
31
 
32
32
  @thread_pool.with_a_thread_run do
33
33
  response = @adapter.post("/projects/#{@project_id}/builds", :body => data)
34
- log(response) if error?(response)
34
+ log(response) if response && error?(response)
35
35
  end
36
36
  end
37
37
 
@@ -68,7 +68,7 @@ module LimitedRed
68
68
  end
69
69
 
70
70
  def error?(response)
71
- response.code != 200
71
+ response && response.code != 200
72
72
  end
73
73
 
74
74
  def log(response)
@@ -2,11 +2,11 @@ AfterConfiguration do |config|
2
2
  unless ENV['STOP_RECORDING']
3
3
  require 'limited_red'
4
4
 
5
- options = config.instance_variable_get("@options")
6
- options[:formats] << ['LimitedRed::Cucumber::Formatter::Stats', config.out_stream]
7
-
8
5
  limited_red_config = LimitedRed::Config.load_and_validate_config('cucumber')
9
6
  if limited_red_config
7
+ options = config.instance_variable_get("@options")
8
+ options[:formats] << ['LimitedRed::Cucumber::Formatter::Stats', config.out_stream]
9
+
10
10
  cuke_stats = LimitedRed::Stats.new(limited_red_config)
11
11
 
12
12
  feature_files = options[:paths]
@@ -16,8 +16,7 @@ AfterConfiguration do |config|
16
16
 
17
17
  options[:paths] = prioritised_features + feature_files
18
18
  else
19
- puts "Aborting Cucumber run"
20
- exit
19
+ puts "Warning: Limited Red unable to load"
21
20
  end
22
21
  end
23
22
  end
@@ -1,5 +1,5 @@
1
1
  module LimitedRed # :nodoc:
2
2
  module Version # :nodoc:
3
- STRING = '0.3.7'
3
+ STRING = '0.3.8'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,60 +1,47 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: limited_red
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 3
8
- - 7
9
- version: 0.3.7
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.8
5
+ prerelease:
10
6
  platform: ruby
11
- authors:
7
+ authors:
12
8
  - Joseph Wilk
13
9
  autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
-
17
- date: 2012-02-20 00:00:00 +00:00
18
- default_executable:
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2012-03-05 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: httparty
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- requirements:
25
- - - "="
26
- - !ruby/object:Gem::Version
27
- segments:
28
- - 0
29
- - 8
30
- - 1
16
+ requirement: &70323131301880 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - =
20
+ - !ruby/object:Gem::Version
31
21
  version: 0.8.1
32
22
  type: :runtime
33
- version_requirements: *id001
34
- - !ruby/object:Gem::Dependency
35
- name: cucumber
36
23
  prerelease: false
37
- requirement: &id002 !ruby/object:Gem::Requirement
38
- requirements:
39
- - - ">="
40
- - !ruby/object:Gem::Version
41
- segments:
42
- - 1
43
- - 1
44
- - 4
24
+ version_requirements: *70323131301880
25
+ - !ruby/object:Gem::Dependency
26
+ name: cucumber
27
+ requirement: &70323131301180 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
45
32
  version: 1.1.4
46
33
  type: :runtime
47
- version_requirements: *id002
48
- description: Learn and adapt from you test metrics. Used with the www.limited-red.com service. Tests are priorited by the probability of failure
34
+ prerelease: false
35
+ version_requirements: *70323131301180
36
+ description: Learn and adapt from you test metrics. Used with the www.limited-red.com
37
+ service. Tests are priorited by the probability of failure
49
38
  email: joe@josephwilk.net
50
39
  executables: []
51
-
52
40
  extensions: []
53
-
54
- extra_rdoc_files:
41
+ extra_rdoc_files:
55
42
  - LICENSE
56
43
  - README.rdoc
57
- files:
44
+ files:
58
45
  - lib/limited_red/adapter/httparty.rb
59
46
  - lib/limited_red/client.rb
60
47
  - lib/limited_red/config.rb
@@ -68,35 +55,30 @@ files:
68
55
  - lib/limited_red.rb
69
56
  - LICENSE
70
57
  - README.rdoc
71
- has_rdoc: true
72
58
  homepage: http://www.limited-red.com
73
- licenses:
59
+ licenses:
74
60
  - MIT
75
61
  post_install_message:
76
- rdoc_options:
62
+ rdoc_options:
77
63
  - --charset=UTF-8
78
- require_paths:
64
+ require_paths:
79
65
  - lib
80
- required_ruby_version: !ruby/object:Gem::Requirement
81
- requirements:
82
- - - ">="
83
- - !ruby/object:Gem::Version
84
- segments:
85
- - 0
86
- version: "0"
87
- required_rubygems_version: !ruby/object:Gem::Requirement
88
- requirements:
89
- - - ">="
90
- - !ruby/object:Gem::Version
91
- segments:
92
- - 0
93
- version: "0"
66
+ required_ruby_version: !ruby/object:Gem::Requirement
67
+ none: false
68
+ requirements:
69
+ - - ! '>='
70
+ - !ruby/object:Gem::Version
71
+ version: '0'
72
+ required_rubygems_version: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
94
78
  requirements: []
95
-
96
79
  rubyforge_project:
97
- rubygems_version: 1.3.6
80
+ rubygems_version: 1.8.6
98
81
  signing_key:
99
82
  specification_version: 3
100
83
  summary: Client for www.limited-red.com service
101
84
  test_files: []
102
-