limited_red 0.3.5 → 0.3.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,10 +3,10 @@ module LimitedRed
3
3
  class HttParty
4
4
  def self.new(config, options = {})
5
5
  services = {}
6
- services[:rspec] = 'https://limited-red-unit-data-service.heroku.com/'
7
- services[:cucumber] = 'https://limited-red-data-service.heroku.com/'
6
+ services['rspec'] = 'https://limited-red-unit-data-service.heroku.com/'
7
+ services['cucumber'] = 'https://limited-red-data-service.heroku.com/'
8
8
 
9
- host = config['host'] || services[options[:type]]
9
+ host = config['host'] || services[config['type']]
10
10
  port = config['port'] || ''
11
11
  uri = "#{host}#{port == '' ? '' : ":#{port}"}"
12
12
 
@@ -12,7 +12,7 @@ module LimitedRed
12
12
  def load_and_validate_config(type)
13
13
  ensure_config_exists
14
14
  if valid_config?
15
- config.merge({:type => type})
15
+ config.merge({'type' => type})
16
16
  else
17
17
  errors = "Make sure you have the following set in your .limited_red:\n"
18
18
  errors += " * project name\n" unless config['project name']
@@ -11,7 +11,7 @@ module LimitedRed
11
11
  @t = Time.now
12
12
  @build_id = Time.now.to_i
13
13
  @step_mother = step_mother
14
- @client = LimitedRed::Client.new(LimitedRed::Config.load_and_validate_config(:cucumber))
14
+ @client = LimitedRed::Client.new(LimitedRed::Config.load_and_validate_config('cucumber'))
15
15
 
16
16
  super
17
17
  end
@@ -5,7 +5,7 @@ AfterConfiguration do |config|
5
5
  options = config.instance_variable_get("@options")
6
6
  options[:formats] << ['LimitedRed::Cucumber::Formatter::Stats', config.out_stream]
7
7
 
8
- limited_red_config = LimitedRed::Config.load_and_validate_config(:cucumber)
8
+ limited_red_config = LimitedRed::Config.load_and_validate_config('cucumber')
9
9
  if limited_red_config
10
10
  cuke_stats = LimitedRed::Stats.new(limited_red_config)
11
11
 
@@ -1,5 +1,5 @@
1
1
  module LimitedRed # :nodoc:
2
2
  module Version # :nodoc:
3
- STRING = '0.3.5'
3
+ STRING = '0.3.6'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: limited_red
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-02-19 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty
16
- requirement: &70346083672400 !ruby/object:Gem::Requirement
16
+ requirement: &70244157382760 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - =
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.8.1
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70346083672400
24
+ version_requirements: *70244157382760
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: cucumber
27
- requirement: &70346083671860 !ruby/object:Gem::Requirement
27
+ requirement: &70244157381320 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: 1.1.4
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70346083671860
35
+ version_requirements: *70244157381320
36
36
  description: Learn and adapt from you test metrics. Used with the www.limited-red.com
37
37
  service. Tests are priorited by the probability of failure
38
38
  email: joe@josephwilk.net