brine-dsl 0.12.5 → 0.12.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/brine.rb +1 -0
- data/lib/brine/assigning.rb +33 -0
- data/lib/brine/mustache_expanding.rb +0 -28
- data/lib/brine/selecting.rb +1 -2
- data/lib/brine/transforming.rb +1 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 34cdd896466e30e6e8a834f712151e6a8b75a155856d3107aa9e75dfc4100c64
|
4
|
+
data.tar.gz: 27848e5986716c54ee83d4300f1a78832ee25d797727b2a71d06c9a610d8108a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 611048b14a55705fa5f7e7008a1c80c1bc59196e9d1370712dba69159974fc73111c5570cbc0a9c42229fa6dd373b40705eb6e590d8dab08f1ec9b74ddad52c4
|
7
|
+
data.tar.gz: 76fa6e87867ab70ba6167e69f535d023f921f159a471e76a9b9c5bba40da58e6d865da0a02c7cf9d5835feeb05b6d19a3e2f2bef77e2f3a4300367f49b3966e2
|
data/Gemfile.lock
CHANGED
data/lib/brine.rb
CHANGED
@@ -0,0 +1,33 @@
|
|
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
|
+
|
@@ -88,31 +88,3 @@ 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
|
data/lib/brine/selecting.rb
CHANGED
@@ -214,7 +214,7 @@ ParameterType(
|
|
214
214
|
name: 'assertion',
|
215
215
|
regexp: /.*[^:]/,
|
216
216
|
transformer: -> (input) { input },
|
217
|
-
|
217
|
+
use_for_snippets: false
|
218
218
|
)
|
219
219
|
|
220
220
|
##
|
@@ -372,4 +372,3 @@ Then('the value of the response {response_attribute}{traversal} has elements whi
|
|
372
372
|
step "it is #{assertion}:", multi.to_json
|
373
373
|
end
|
374
374
|
end
|
375
|
-
|
data/lib/brine/transforming.rb
CHANGED
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.
|
4
|
+
version: 0.12.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Whipple
|
@@ -138,6 +138,7 @@ files:
|
|
138
138
|
- feature_setup.rb
|
139
139
|
- lib/brine.rb
|
140
140
|
- lib/brine/assertions.rb
|
141
|
+
- lib/brine/assigning.rb
|
141
142
|
- lib/brine/cleaning_up.rb
|
142
143
|
- lib/brine/client_building.rb
|
143
144
|
- lib/brine/coercing.rb
|
@@ -168,8 +169,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
168
169
|
- !ruby/object:Gem::Version
|
169
170
|
version: '0'
|
170
171
|
requirements: []
|
171
|
-
|
172
|
-
rubygems_version: 2.7.9
|
172
|
+
rubygems_version: 3.0.6
|
173
173
|
signing_key:
|
174
174
|
specification_version: 4
|
175
175
|
summary: Cucumber@REST in Brine
|