whisperer 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/CHANGELOG.md +10 -0
- data/Gemfile +2 -1
- data/README.md +80 -9
- data/TODO.md +30 -35
- data/lib/whisperer.rb +18 -48
- data/lib/whisperer/merger.rb +36 -0
- data/lib/whisperer/preprocessors/default_values.rb +22 -0
- data/lib/whisperer/preprocessors/response_body.rb +2 -2
- data/lib/whisperer/record.rb +2 -35
- data/lib/whisperer/record/body.rb +3 -3
- data/lib/whisperer/record/default_value.rb +13 -0
- data/lib/whisperer/record/headers.rb +6 -1
- data/lib/whisperer/record/request.rb +1 -1
- data/lib/whisperer/record/response.rb +1 -6
- data/lib/whisperer/record/response/status.rb +2 -2
- data/lib/whisperer/serializers.rb +21 -0
- data/lib/whisperer/serializers/json.rb +26 -1
- data/lib/whisperer/serializers/json_multiple.rb +1 -1
- data/lib/whisperer/storage.rb +41 -0
- data/lib/whisperer/tasks/whisperer.rake +3 -3
- data/lib/whisperer/version.rb +1 -1
- data/spec/cassettes/empty_robb_stark.yml +2 -2
- data/spec/cassettes/girls/arya_stark.yml +2 -2
- data/spec/cassettes/robb_stark.yml +2 -2
- data/spec/cassettes/robb_stark_without_content_length.yml +2 -2
- data/spec/cassettes/sansa_stark.yml +1 -1
- data/spec/cassettes/starks.yml +2 -2
- data/spec/cassettes/wolfs.yml +2 -2
- data/spec/unit/merger_spec.rb +98 -0
- data/spec/unit/preprocessors/content_length_spec.rb +9 -5
- data/spec/unit/preprocessors/default_values_spec.rb +26 -0
- data/spec/unit/preprocessors/response_body_spec.rb +4 -4
- data/spec/unit/record/headers_spec.rb +13 -1
- data/spec/unit/record_spec.rb +0 -73
- data/spec/unit/serializers/json_spec.rb +60 -12
- data/spec/unit/serializers_spec.rb +24 -0
- data/spec/unit/storage_spec.rb +82 -0
- data/spec/unit/whisperer_spec.rb +33 -103
- metadata +26 -12
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: whisperer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitriy Nesteryuk
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-12-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: factory_girl
|
@@ -56,56 +56,56 @@ dependencies:
|
|
56
56
|
name: activesupport
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - '>='
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - '>='
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: multi_json
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - '>='
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - '>='
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rainbow
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - '>='
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - '>='
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: thread_safe
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- -
|
101
|
+
- - '>='
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: '0'
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- -
|
108
|
+
- - '>='
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
111
|
description: Generate HTTP responses for VCR from structures defined by FactoryGirl
|
@@ -118,6 +118,7 @@ files:
|
|
118
118
|
- .gitignore
|
119
119
|
- .rspec
|
120
120
|
- .travis.yml
|
121
|
+
- CHANGELOG.md
|
121
122
|
- Gemfile
|
122
123
|
- LICENSE.txt
|
123
124
|
- README.md
|
@@ -136,21 +137,26 @@ files:
|
|
136
137
|
- lib/whisperer/dsl/response/status.rb
|
137
138
|
- lib/whisperer/generator.rb
|
138
139
|
- lib/whisperer/helpers.rb
|
140
|
+
- lib/whisperer/merger.rb
|
139
141
|
- lib/whisperer/placeholder.rb
|
140
142
|
- lib/whisperer/preprocessors.rb
|
141
143
|
- lib/whisperer/preprocessors/base.rb
|
142
144
|
- lib/whisperer/preprocessors/content_length.rb
|
145
|
+
- lib/whisperer/preprocessors/default_values.rb
|
143
146
|
- lib/whisperer/preprocessors/response_body.rb
|
144
147
|
- lib/whisperer/record.rb
|
145
148
|
- lib/whisperer/record/body.rb
|
149
|
+
- lib/whisperer/record/default_value.rb
|
146
150
|
- lib/whisperer/record/headers.rb
|
147
151
|
- lib/whisperer/record/request.rb
|
148
152
|
- lib/whisperer/record/response.rb
|
149
153
|
- lib/whisperer/record/response/status.rb
|
150
154
|
- lib/whisperer/samples/cassette_builder.rb
|
155
|
+
- lib/whisperer/serializers.rb
|
151
156
|
- lib/whisperer/serializers/base.rb
|
152
157
|
- lib/whisperer/serializers/json.rb
|
153
158
|
- lib/whisperer/serializers/json_multiple.rb
|
159
|
+
- lib/whisperer/storage.rb
|
154
160
|
- lib/whisperer/tasks/whisperer.rake
|
155
161
|
- lib/whisperer/version.rb
|
156
162
|
- spec/cassette_builders/arya_stark.rb
|
@@ -190,7 +196,9 @@ files:
|
|
190
196
|
- spec/unit/dsl_spec.rb
|
191
197
|
- spec/unit/generator_spec.rb
|
192
198
|
- spec/unit/helpers_spec.rb
|
199
|
+
- spec/unit/merger_spec.rb
|
193
200
|
- spec/unit/preprocessors/content_length_spec.rb
|
201
|
+
- spec/unit/preprocessors/default_values_spec.rb
|
194
202
|
- spec/unit/preprocessors/response_body_spec.rb
|
195
203
|
- spec/unit/preprocessors_spec.rb
|
196
204
|
- spec/unit/record/headers_spec.rb
|
@@ -199,6 +207,8 @@ files:
|
|
199
207
|
- spec/unit/serializers/base_spec.rb
|
200
208
|
- spec/unit/serializers/json_multiple_spec.rb
|
201
209
|
- spec/unit/serializers/json_spec.rb
|
210
|
+
- spec/unit/serializers_spec.rb
|
211
|
+
- spec/unit/storage_spec.rb
|
202
212
|
- spec/unit/whisperer_spec.rb
|
203
213
|
- whisperer.gemspec
|
204
214
|
homepage: http://github.com/dnesteryuk/whisperer
|
@@ -211,12 +221,12 @@ require_paths:
|
|
211
221
|
- lib
|
212
222
|
required_ruby_version: !ruby/object:Gem::Requirement
|
213
223
|
requirements:
|
214
|
-
- -
|
224
|
+
- - '>='
|
215
225
|
- !ruby/object:Gem::Version
|
216
226
|
version: '0'
|
217
227
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
218
228
|
requirements:
|
219
|
-
- -
|
229
|
+
- - '>='
|
220
230
|
- !ruby/object:Gem::Version
|
221
231
|
version: '0'
|
222
232
|
requirements: []
|
@@ -265,7 +275,9 @@ test_files:
|
|
265
275
|
- spec/unit/dsl_spec.rb
|
266
276
|
- spec/unit/generator_spec.rb
|
267
277
|
- spec/unit/helpers_spec.rb
|
278
|
+
- spec/unit/merger_spec.rb
|
268
279
|
- spec/unit/preprocessors/content_length_spec.rb
|
280
|
+
- spec/unit/preprocessors/default_values_spec.rb
|
269
281
|
- spec/unit/preprocessors/response_body_spec.rb
|
270
282
|
- spec/unit/preprocessors_spec.rb
|
271
283
|
- spec/unit/record/headers_spec.rb
|
@@ -274,4 +286,6 @@ test_files:
|
|
274
286
|
- spec/unit/serializers/base_spec.rb
|
275
287
|
- spec/unit/serializers/json_multiple_spec.rb
|
276
288
|
- spec/unit/serializers/json_spec.rb
|
289
|
+
- spec/unit/serializers_spec.rb
|
290
|
+
- spec/unit/storage_spec.rb
|
277
291
|
- spec/unit/whisperer_spec.rb
|