http_baseline 2.0.3 → 2.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aeda321a0ed499f70ff1d5e1d86f438fdf715936
4
- data.tar.gz: 0efe5d913f8745396f1f21ce01d3f4b7199f4bec
3
+ metadata.gz: 35908a5a5c939ed707183f9dc3f18d410c5dca94
4
+ data.tar.gz: 054ffab816f9ec1d036ddbb14ad5cf41d5ea3897
5
5
  SHA512:
6
- metadata.gz: 9a221cf0dd25904f99e1023294eb84cbd70af70ab3867f2fa425724971f4fe63a7f44da16e99491e2cd3c4f7128ccb532f91d91a862f127d94e924e0979fa376
7
- data.tar.gz: 546bf9309373eb06558432e09cce759ff7c9d9ced0cc4264d28b829bb6eb33ae3e562874b652591dc9d9f88f3116ea153739a2a34db5b917a877f5054eb19543
6
+ metadata.gz: a4cb63fe8234bdd2cf4303fd28e1aad5afacdccef78721d6d82525e42f85f9f9eefb67cce4d6e3b8d60258033c1222c5aa23f7270e3527c47a41adbba371a6b8
7
+ data.tar.gz: 6247e8f1fc4c67c87eced475737a2437fabd6b3b7cf2e9dd10e28bf84e9851dd3c0e3348b59aa00478e83a15592e7847acb43e22400b801757b84a03e8831419
data/.gitignore CHANGED
@@ -21,3 +21,4 @@ tmp
21
21
  *.a
22
22
  mkmf.log
23
23
  rspec.xml
24
+ .idea
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # HTTP
2
2
 
3
3
  ### Status
4
- [![Build Status](https://travis-ci.org/simkimsia/UtilityBehaviors.png)](https://travis-ci.org/simkimsia/UtilityBehaviors)
4
+ [![Build Status](https://travis-ci.org/rlishtaba/http_baseline.svg?branch=master)](https://travis-ci.org/rlishtaba/http_baseline.svg?branch=master)
5
5
 
6
6
  ## Installation
7
7
 
@@ -19,7 +19,7 @@ end
19
19
  #
20
20
  # * the JSON response should have "userId" matching with "[a-zA-Z0-9_-]{3,50}"
21
21
  #
22
- Then /^the JSON response should (not)?\s?have "([^"]*)" matching with "([^"]*)"$/ do |*options|
22
+ Then /^the JSON response should (not)?\s?have "([^"]*)" matching with "((?!["]).*)"$/ do |*options|
23
23
  negative = options.shift
24
24
  json_path = options.shift
25
25
  regexp_string = options.shift
@@ -42,7 +42,7 @@ end
42
42
  #
43
43
  # * the JSON response should have "errCode" with the text "SYSTEM_ERROR"
44
44
  #
45
- Then /^the JSON response should (not)?\s?have "([^"]*)" with the text "([^"]*)"$/ do |negative, json_path, text|
45
+ Then /^the JSON response should (not)?\s?have "([^"]*)" with the text "((?!["]).*)"$/ do |negative, json_path, text|
46
46
  json = @response.body
47
47
  results = JsonPath.new(json_path).on(json).to_a.map(&:to_s)
48
48
 
@@ -68,7 +68,7 @@ end
68
68
  #
69
69
  # * the XML response should have "errCode" with the text "SYSTEM_ERROR"
70
70
  #
71
- Then /^the XML response should have "([^"]*)" with the text "([^"]*)"$/ do |xpath, text|
71
+ Then /^the XML response should have "([^"]*)" with the text "((?!["]).*)"$/ do |xpath, text|
72
72
  parsed_response = Nokogiri::XML(@response.body.to_s)
73
73
  elements = parsed_response.xpath(xpath)
74
74
  if self.respond_to?(:should)
@@ -1,6 +1,6 @@
1
1
  module HttpBaseline
2
2
  module Version
3
- MAJOR, MINOR, PATCH, PRE = 2, 0, 3
3
+ MAJOR, MINOR, PATCH, PRE = 2, 0, 4
4
4
  STRING = [MAJOR, MINOR, PATCH, PRE].compact.join('.')
5
5
  end
6
6
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: http_baseline
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.3
4
+ version: 2.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roman Lishtaba
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-21 00:00:00.000000000 Z
11
+ date: 2014-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler