cucumber-rest-bdd 0.4.2 → 0.4.3.pre.114

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: 8b7f180881f5d80b4b36c7c229b47156505674dd
4
- data.tar.gz: f5c853116b66d7940487885c623cd35a4c2b770d
3
+ metadata.gz: de06c1aa104f0b375f20b7fb25669115cf1b78fe
4
+ data.tar.gz: 8b8cd9c626d41b1adeb62092455a1d58fa7a04ad
5
5
  SHA512:
6
- metadata.gz: 8534d33fac68794a495e785d5ea9e58cd3f80f6fcab4e303851ded93693998773f98164c44380f44266802a8d7f02be01ab50664f9eb668a4bc75dda9e1ae6be
7
- data.tar.gz: a55ab2c94ae020c254ce8100da5b32e496338a4fad6a0e96d7b013543b136183b4439e6b4f42d770ae4d74baf6df50a2ff11b13138e84f07c9da47e3d82222a3
6
+ metadata.gz: b0477e470c13c16146976f538bac0f2e905e5d143f48092c903d29ca9d9112e42faea18227838b8db102d5f17c8932436bd7a64730a8b3ad069875c8c4f995ad
7
+ data.tar.gz: b35056324778b0a8e9a3e2e4807e239dd287a4db5fb6dd842b3a135d70daf2e533ddd27b1f578dd372efb044f6a96dd14ab97a6846f1b5e0a9f56eeb701a7612
data/Dockerfile CHANGED
@@ -1,7 +1,7 @@
1
1
  FROM ruby
2
2
 
3
3
  MAINTAINER "Harry Bragg <harry.bragg@graze.com>"
4
- LABEL version="0.4.2" \
4
+ LABEL version="0.4.3" \
5
5
  license="MIT"
6
6
 
7
7
  COPY . /usr/local/cucumber-rest-bdd
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'cucumber-rest-bdd'
3
- s.version = '0.4.2'
3
+ s.version = '0.4.3'
4
4
  s.version = "#{s.version}-#{ENV['TRAVIS_BUILD_NUMBER']}" if ENV['TRAVIS'] && ENV['TRAVIS_TAG'] == ''
5
5
  s.platform = Gem::Platform::RUBY
6
6
  s.date = '2017-01-10'
@@ -91,7 +91,7 @@ end
91
91
 
92
92
  # PUT
93
93
 
94
- When(/^I request to (?:create|replace) (?:an?|the) ((?![^"]+?(?: for | in | on ))[^"]+?)(?: with (?:key|id))? "([^"]+)"(#{LEVELS})?$/) do |resource, id, levels|
94
+ When(/^I request to (?:create|replace|set) (?:an?|the) ((?![^"]+?(?: for | in | on ))[^"]+?)(?: with (?:key|id))? "([^"]+)"(#{LEVELS})?$/) do |resource, id, levels|
95
95
  resource_name = get_resource(resource)
96
96
  level = Level.new(levels)
97
97
  if ENV['set_parent_id'] == 'true'
@@ -144,7 +144,7 @@ end
144
144
  # value capture
145
145
 
146
146
  When(/^I save (?:attribute )?"([^"]+)"$/) do |attribute|
147
- steps %Q{When I grab "#{get_json_path(attribute)}"}
147
+ steps %Q{When I grab "#{get_json_path(attribute)}" as "#{attribute}"}
148
148
  end
149
149
 
150
150
  When(/^I save (?:attribute )?"([^"]+)" to "([^"]+)"$/) do |attribute, ref|
@@ -103,7 +103,7 @@ def get_resource(name)
103
103
  end
104
104
 
105
105
  def get_root_json_path()
106
- key = ENV.has_key?('data_key') && !ENV['data_key'].empty? ? %/$.#{ENV['data_key']}./ : "$."
106
+ return ENV.has_key?('data_key') && !ENV['data_key'].empty? ? "$.#{ENV['data_key']}." : "$."
107
107
  end
108
108
 
109
109
  def get_json_path(names)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cucumber-rest-bdd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3.pre.114
5
5
  platform: ruby
6
6
  authors:
7
7
  - Harry Bragg
@@ -104,9 +104,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
104
104
  version: '0'
105
105
  required_rubygems_version: !ruby/object:Gem::Requirement
106
106
  requirements:
107
- - - ">="
107
+ - - ">"
108
108
  - !ruby/object:Gem::Version
109
- version: '0'
109
+ version: 1.3.1
110
110
  requirements: []
111
111
  rubyforge_project:
112
112
  rubygems_version: 2.4.8