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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c9cf10c2307ea2495674c9ff766dc07b911ac28e935d12534805ba72c56e25de
4
- data.tar.gz: 3875daab3fc82690aa194a3187d67ca358f03d02decaa17535edc454b5071b3a
3
+ metadata.gz: 34cdd896466e30e6e8a834f712151e6a8b75a155856d3107aa9e75dfc4100c64
4
+ data.tar.gz: 27848e5986716c54ee83d4300f1a78832ee25d797727b2a71d06c9a610d8108a
5
5
  SHA512:
6
- metadata.gz: e1064d582fab2d35a225c0f0a27ffb228d46048a7843b00aea6ec72b95e76698c34adc8e5a7e9c78a06a66cfc75cf1d0cf15434d5ef0e978cdd35a9a0406a676
7
- data.tar.gz: 40a57f292b328d4e36b13a542d313b2daf565994a38161789c4883b7032c7dd97b288942a1d8ed2cf4a34d3553fc8bf24aa60daa0fe98fdfd40df084a60514bb
6
+ metadata.gz: 611048b14a55705fa5f7e7008a1c80c1bc59196e9d1370712dba69159974fc73111c5570cbc0a9c42229fa6dd373b40705eb6e590d8dab08f1ec9b74ddad52c4
7
+ data.tar.gz: 76fa6e87867ab70ba6167e69f535d023f921f159a471e76a9b9c5bba40da58e6d865da0a02c7cf9d5835feeb05b6d19a3e2f2bef77e2f3a4300367f49b3966e2
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- brine-dsl (0.12.0)
4
+ brine-dsl (0.13.0.pre.SNAPSHOT)
5
5
  cucumber (~> 3.1)
6
6
  faraday (~> 0.12)
7
7
  faraday_middleware (~> 0.12)
data/lib/brine.rb CHANGED
@@ -12,6 +12,7 @@
12
12
  ##
13
13
  def brine_mix
14
14
  require 'brine/assertions'
15
+ require 'brine/assigning'
15
16
  require 'brine/cleaning_up'
16
17
  require 'brine/hooks'
17
18
  require 'brine/mustache_expanding'
@@ -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
@@ -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
-
@@ -11,6 +11,7 @@ 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'
14
15
 
15
16
  ##
16
17
  # Transform supported input.
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.5
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
- rubyforge_project:
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