brine-dsl 0.12.7 → 0.13.0.pre.SNAPSHOT

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
  SHA256:
3
- metadata.gz: bd71048f282a31238fdd84f2a54ee9b2023131b54535b6b834ee3570284172b6
4
- data.tar.gz: f89c174a0f8cb28c266c7b74fe4303ae69f89360ac5214fe1359584bb438ff57
3
+ metadata.gz: 0fdab59095bb86493430ffa5c2955d2cdf0cbb98e7c2bfe2ee133559977b1fc8
4
+ data.tar.gz: fb98a637de5bf522adf48c15300b7992801d4a6f80581a63839a7b1e448d7da8
5
5
  SHA512:
6
- metadata.gz: 976a4af775fec88382d65f4bc3fe910b133ce24d79b62da77f89934c010bd7bf3d36dc92087a81aec92ebe1b9e4cd5f679064f388e48f58605b4a927b1e05baa
7
- data.tar.gz: 802ac87a04668f265dbdc2a1273bb23f60c0a57557a0f5de773a275de3e050b24e52685dea0fb008075f98ba4f4d48c95656318b7fc6c4ccb567149364a737fb
6
+ metadata.gz: 914a86ae7b9bc11cb03168668ccffce0df44d06b5f6173120ce0c73d6184873f1313a47d6740d6694fe3ae9ee6a9773079f496d5a2d44bdb1b51d9282a8eb154
7
+ data.tar.gz: 47e4f002a3c0ed1d4c640f66d4369e92b619a37943e076945bdbf9da13fa9ba8c1855f7c96014277cb739bc62cd4801bfdfd42ca87c9fc93ce4ff4a5adb55a26
data/Gemfile.lock CHANGED
@@ -53,7 +53,6 @@ GEM
53
53
  multi_xml (~> 0.5)
54
54
  rack (>= 1.2, < 3)
55
55
  rack (2.0.7)
56
- rake (12.3.3)
57
56
  rspec (3.8.0)
58
57
  rspec-core (~> 3.8.0)
59
58
  rspec-expectations (~> 3.8.0)
@@ -74,7 +73,6 @@ PLATFORMS
74
73
 
75
74
  DEPENDENCIES
76
75
  brine-dsl!
77
- rake (~> 12.3)!
78
76
 
79
77
  BUNDLED WITH
80
78
  2.0.1
data/brine-dsl.gemspec CHANGED
@@ -21,8 +21,6 @@ Gem::Specification.new do |s|
21
21
  s.add_runtime_dependency 'faraday', '~> 0.12'
22
22
  s.add_runtime_dependency 'faraday_middleware', '~> 0.12'
23
23
 
24
- s.add_development_dependency 'rake', '~> 12.3'
25
-
26
24
  s.files = `git ls-files`.split("\n")
27
25
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
28
26
  s.require_paths = ['lib']
@@ -126,5 +126,5 @@ require 'brine/transforming'
126
126
  # This should be a String or a Template.
127
127
  ##
128
128
  When('a resource is created at {grave_param}') do |path|
129
- perform { track_created_resource(expand(path, binding)) }
129
+ perform { track_created_resource(path) }
130
130
  end
@@ -88,3 +88,31 @@ module Brine
88
88
  ##
89
89
  include MustacheExpanding
90
90
  end
91
+
92
+ ##
93
+ # Assign the provided value to the specified identifier.
94
+ #
95
+ # @param name [Object] Specify the identifier to which the value will be bound.
96
+ # @param value [Object} Provide the value to bind to the identifier.
97
+ ##
98
+ When('{grave_param} is assigned {grave_param}') do |name, value|
99
+ perform { bind(expand(name, binding), value) }
100
+ end
101
+
102
+ ##
103
+ # Assign a random string (UUID) to the specified identifier.
104
+ #
105
+ # @param name [Object] Specify the identifier to which a random string will be bound.
106
+ ##
107
+ When('{grave_param} is assigned a random string') do |name|
108
+ perform { bind(expand(name, binding), SecureRandom.uuid) }
109
+ end
110
+
111
+ ##
112
+ # Assign a current timestamp to the specified identifier.
113
+ #
114
+ # @param name [Object] Specify the identifier to which the timestamp will be bound.
115
+ ##
116
+ When('{grave_param} is assigned a timestamp') do |name|
117
+ perform { bind(expand(name, binding), DateTime.now) }
118
+ end
@@ -206,7 +206,6 @@ def response_attribute(attribute)
206
206
  response.send(attribute.to_sym)
207
207
  end
208
208
 
209
-
210
209
  ##
211
210
  # Extract assertion step text.
212
211
  ##
@@ -11,7 +11,6 @@ module Brine
11
11
  # This eases use of types beyond the Cucumber-provided simple strings.
12
12
  ##
13
13
  module ParameterTransforming
14
- require 'brine/mustache_expanding'
15
14
 
16
15
  ##
17
16
  # Transform supported input.
data/lib/brine.rb CHANGED
@@ -12,7 +12,6 @@
12
12
  ##
13
13
  def brine_mix
14
14
  require 'brine/assertions'
15
- require 'brine/assigning'
16
15
  require 'brine/cleaning_up'
17
16
  require 'brine/hooks'
18
17
  require 'brine/mustache_expanding'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brine-dsl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.7
4
+ version: 0.13.0.pre.SNAPSHOT
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Whipple
@@ -108,20 +108,6 @@ dependencies:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0.12'
111
- - !ruby/object:Gem::Dependency
112
- name: rake
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - "~>"
116
- - !ruby/object:Gem::Version
117
- version: '12.3'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - "~>"
123
- - !ruby/object:Gem::Version
124
- version: '12.3'
125
111
  description: Cucumber@REST in Brine
126
112
  email:
127
113
  - mwhipple@brightcove.com
@@ -133,12 +119,10 @@ files:
133
119
  - ".ruby-version"
134
120
  - Gemfile
135
121
  - Gemfile.lock
136
- - Rakefile
137
122
  - brine-dsl.gemspec
138
123
  - feature_setup.rb
139
124
  - lib/brine.rb
140
125
  - lib/brine/assertions.rb
141
- - lib/brine/assigning.rb
142
126
  - lib/brine/cleaning_up.rb
143
127
  - lib/brine/client_building.rb
144
128
  - lib/brine/coercing.rb
@@ -165,9 +149,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
165
149
  version: 2.3.0
166
150
  required_rubygems_version: !ruby/object:Gem::Requirement
167
151
  requirements:
168
- - - ">="
152
+ - - ">"
169
153
  - !ruby/object:Gem::Version
170
- version: '0'
154
+ version: 1.3.1
171
155
  requirements: []
172
156
  rubygems_version: 3.0.6
173
157
  signing_key:
data/Rakefile DELETED
@@ -1,5 +0,0 @@
1
- # encoding: utf-8
2
- require 'bundler'
3
-
4
- Bundler::GemHelper.install_tasks
5
-
@@ -1,33 +0,0 @@
1
- ##
2
- # @file assigning.rb
3
- # Provide some assignment steps.
4
- ##
5
-
6
- ##
7
- # Assign the provided value to the specified identifier.
8
- #
9
- # @param name [Object] Specify the identifier to which the value will be bound.
10
- # @param value [Object} Provide the value to bind to the identifier.
11
- ##
12
- When('{grave_param} is assigned {grave_param}') do |name, value|
13
- perform { bind(expand(name, binding), value) }
14
- end
15
-
16
- ##
17
- # Assign a random string (UUID) to the specified identifier.
18
- #
19
- # @param name [Object] Specify the identifier to which a random string will be bound.
20
- ##
21
- When('{grave_param} is assigned a random string') do |name|
22
- perform { bind(expand(name, binding), SecureRandom.uuid) }
23
- end
24
-
25
- ##
26
- # Assign a current timestamp to the specified identifier.
27
- #
28
- # @param name [Object] Specify the identifier to which the timestamp will be bound.
29
- ##
30
- When('{grave_param} is assigned a timestamp') do |name|
31
- perform { bind(expand(name, binding), DateTime.now) }
32
- end
33
-