cucumber-nagios 0.8.3 → 0.8.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -33,6 +33,11 @@ Install the gem with:
33
33
  This will add the `cucumber-nagios-gen` command to your path, and make the
34
34
  shipped cucumber-nagios steps available to other projects using Cucumber.
35
35
 
36
+ *Windows users* - you need to download and install the
37
+ [Ruby Installer](http://rubyinstaller.org/downloads/) and the
38
+ [development kit](http://rubyinstaller.org/add-ons/devkit/), otherwise
39
+ `gem install cucumber-nagios` will fail.
40
+
36
41
 
37
42
  Setting up a project
38
43
  ====================
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.8.3
1
+ 0.8.4
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{cucumber-nagios}
8
- s.version = "0.8.3"
8
+ s.version = "0.8.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Lindsay Holmwood"]
12
- s.date = %q{2010-12-31}
12
+ s.date = %q{2011-01-01}
13
13
  s.default_executable = %q{cucumber-nagios-gen}
14
14
  s.description = %q{cucumber-nagios helps you write high-level behavioural tests for your web applications and Unix infrastructure that can be plugged into Nagios.}
15
15
  s.email = %q{lindsay@holmwood.id.au}
@@ -1,21 +1,20 @@
1
- When /I fetch (.*)/ do | url |
2
- visit url
3
- @url_headers = response.header
1
+ When /I fetch headers from "(.*)"/ do |url|
2
+ visit(url)
3
+ @headers = response.header
4
4
  end
5
-
6
- Then /^the "(.*)" header should be "(.*)"$/ do | header_name, header_value|
7
- @url_headers[header_name].should == header_value
5
+
6
+ Then /^the "(.*)" header should be "(.*)"$/ do |name, value|
7
+ @headers[name].should == value
8
8
  end
9
-
10
- Then /^the response should contain the "(.*)" header$/ do | header_name |
11
- @url_headers.should have_key(header_name.downcase)
9
+
10
+ Then /^the response should contain the "(.*)" header$/ do |name|
11
+ @headers.should have_key(name.downcase)
12
12
  end
13
-
14
- ### header contains checks
15
- Then /^the "(.*)" header should contain "(.*)"$/ do | header_name, header_contains |
16
- @url_headers[header_name].should match header_contains
13
+
14
+ Then /^the "(.*)" header should contain "(.*)"$/ do |name, expression|
15
+ @headers[name].should match(expression)
17
16
  end
18
-
19
- Then /^the "(.*)" header should not contain "(.*)"$/ do | header_name, header_contains |
20
- @url_headers[header_name].should_not match header_contains
17
+
18
+ Then /^the "(.*)" header should not contain "(.*)"$/ do |name, expression|
19
+ @headers[name].should_not match(expression)
21
20
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cucumber-nagios
3
3
  version: !ruby/object:Gem::Version
4
- hash: 57
4
+ hash: 55
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 8
9
- - 3
10
- version: 0.8.3
9
+ - 4
10
+ version: 0.8.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Lindsay Holmwood
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-12-31 00:00:00 +11:00
18
+ date: 2011-01-01 00:00:00 +11:00
19
19
  default_executable: cucumber-nagios-gen
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency