limited_red 0.3.8 → 0.3.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -38,7 +38,12 @@ module LimitedRed
38
38
  def find_failing_features
39
39
  raise "No project name was found in params: #{@config.inspect}" if @project_id.nil?
40
40
 
41
- response = @adapter.get("/projects/#{@project_id}/features/fails?user=#{@username}")
41
+ begin
42
+ response = @adapter.get("/projects/#{@project_id}/features/fails?user=#{@username}")
43
+ rescue
44
+ puts "[Limited Red] Unable to reach www.limited-red.com. No tests will be recorded."
45
+ return []
46
+ end
42
47
 
43
48
  if response.nil? || response.empty? || error?(response)
44
49
  return []
@@ -20,7 +20,13 @@ module LimitedRed
20
20
  end
21
21
 
22
22
  def wait_for_all_threads_to_finish
23
- @threads.each { |thread| thread.join }
23
+ @threads.each do |thread|
24
+ begin
25
+ thread.join
26
+ rescue
27
+ puts "[Limited Red] Error trying to post results to Limited Red: #{$!}"
28
+ end
29
+ end
24
30
  end
25
31
 
26
32
  end
@@ -1,5 +1,5 @@
1
1
  module LimitedRed # :nodoc:
2
2
  module Version # :nodoc:
3
- STRING = '0.3.8'
3
+ STRING = '0.3.9'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,47 +1,64 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: limited_red
3
- version: !ruby/object:Gem::Version
4
- version: 0.3.8
3
+ version: !ruby/object:Gem::Version
4
+ hash: 1
5
5
  prerelease:
6
+ segments:
7
+ - 0
8
+ - 3
9
+ - 9
10
+ version: 0.3.9
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Joseph Wilk
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2012-03-05 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
17
+
18
+ date: 2012-03-14 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
15
21
  name: httparty
16
- requirement: &70323131301880 !ruby/object:Gem::Requirement
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
17
24
  none: false
18
- requirements:
19
- - - =
20
- - !ruby/object:Gem::Version
25
+ requirements:
26
+ - - "="
27
+ - !ruby/object:Gem::Version
28
+ hash: 61
29
+ segments:
30
+ - 0
31
+ - 8
32
+ - 1
21
33
  version: 0.8.1
22
34
  type: :runtime
23
- prerelease: false
24
- version_requirements: *70323131301880
25
- - !ruby/object:Gem::Dependency
35
+ version_requirements: *id001
36
+ - !ruby/object:Gem::Dependency
26
37
  name: cucumber
27
- requirement: &70323131301180 !ruby/object:Gem::Requirement
38
+ prerelease: false
39
+ requirement: &id002 !ruby/object:Gem::Requirement
28
40
  none: false
29
- requirements:
30
- - - ! '>='
31
- - !ruby/object:Gem::Version
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ hash: 27
45
+ segments:
46
+ - 1
47
+ - 1
48
+ - 4
32
49
  version: 1.1.4
33
50
  type: :runtime
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
51
+ version_requirements: *id002
52
+ description: Learn and adapt from you test metrics. Used with the www.limited-red.com service. Tests are priorited by the probability of failure
38
53
  email: joe@josephwilk.net
39
54
  executables: []
55
+
40
56
  extensions: []
41
- extra_rdoc_files:
57
+
58
+ extra_rdoc_files:
42
59
  - LICENSE
43
60
  - README.rdoc
44
- files:
61
+ files:
45
62
  - lib/limited_red/adapter/httparty.rb
46
63
  - lib/limited_red/client.rb
47
64
  - lib/limited_red/config.rb
@@ -56,29 +73,37 @@ files:
56
73
  - LICENSE
57
74
  - README.rdoc
58
75
  homepage: http://www.limited-red.com
59
- licenses:
76
+ licenses:
60
77
  - MIT
61
78
  post_install_message:
62
- rdoc_options:
79
+ rdoc_options:
63
80
  - --charset=UTF-8
64
- require_paths:
81
+ require_paths:
65
82
  - lib
66
- required_ruby_version: !ruby/object:Gem::Requirement
83
+ required_ruby_version: !ruby/object:Gem::Requirement
67
84
  none: false
68
- requirements:
69
- - - ! '>='
70
- - !ruby/object:Gem::Version
71
- version: '0'
72
- required_rubygems_version: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ hash: 3
89
+ segments:
90
+ - 0
91
+ version: "0"
92
+ required_rubygems_version: !ruby/object:Gem::Requirement
73
93
  none: false
74
- requirements:
75
- - - ! '>='
76
- - !ruby/object:Gem::Version
77
- version: '0'
94
+ requirements:
95
+ - - ">="
96
+ - !ruby/object:Gem::Version
97
+ hash: 3
98
+ segments:
99
+ - 0
100
+ version: "0"
78
101
  requirements: []
102
+
79
103
  rubyforge_project:
80
- rubygems_version: 1.8.6
104
+ rubygems_version: 1.8.18
81
105
  signing_key:
82
106
  specification_version: 3
83
107
  summary: Client for www.limited-red.com service
84
108
  test_files: []
109
+