http_stub 0.14.0 → 0.14.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/http_stub/configurer/request/omittable.rb +16 -6
- data/lib/http_stub/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31d1c854f7ef573f7ecba95433c5e8e9071fd783
|
4
|
+
data.tar.gz: 4ec87eef0e59c8a308672aa494a8aa6fc2ebcead
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee44d8c1f4a6bb65e77291236d050c23cd656277bfdf64ef8ef0db83311404e07c36f8f3afac46900d9a6ba8da64cc7863bef56243692ee195fa5d641db4cc9e
|
7
|
+
data.tar.gz: 60bad966b7b2536085745e91dbf583f8b93541b0f6f56e73cd6fc9c767b622e32959a32dc6db71be4d467bd6fa907605463bf4a0609a64a7d43f2c6a2d144ad2
|
@@ -4,12 +4,22 @@ module HttpStub
|
|
4
4
|
|
5
5
|
class Omittable
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
7
|
+
class << self
|
8
|
+
|
9
|
+
def format(value)
|
10
|
+
value.is_a?(Hash) ? format_hash(value) : value
|
11
|
+
end
|
12
|
+
|
13
|
+
private
|
14
|
+
|
15
|
+
def format_hash(value)
|
16
|
+
value.reduce({}) do |result, entry|
|
17
|
+
key, value = entry
|
18
|
+
result[key] = value == :omitted ? "control:omitted" : value
|
19
|
+
result
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
13
23
|
end
|
14
24
|
|
15
25
|
end
|
data/lib/http_stub/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: http_stub
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.14.
|
4
|
+
version: 0.14.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthew Ueckerman
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-03-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -143,14 +143,14 @@ dependencies:
|
|
143
143
|
requirements:
|
144
144
|
- - "~>"
|
145
145
|
- !ruby/object:Gem::Version
|
146
|
-
version: '3.
|
146
|
+
version: '3.2'
|
147
147
|
type: :development
|
148
148
|
prerelease: false
|
149
149
|
version_requirements: !ruby/object:Gem::Requirement
|
150
150
|
requirements:
|
151
151
|
- - "~>"
|
152
152
|
- !ruby/object:Gem::Version
|
153
|
-
version: '3.
|
153
|
+
version: '3.2'
|
154
154
|
- !ruby/object:Gem::Dependency
|
155
155
|
name: simplecov
|
156
156
|
requirement: !ruby/object:Gem::Requirement
|
@@ -356,7 +356,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
356
356
|
version: '0'
|
357
357
|
requirements: []
|
358
358
|
rubyforge_project: http_stub
|
359
|
-
rubygems_version: 2.
|
359
|
+
rubygems_version: 2.4.6
|
360
360
|
signing_key:
|
361
361
|
specification_version: 4
|
362
362
|
summary: A HTTP Server replaying configured stub responses
|