vcr_better_binary 0.1.0 → 0.2.0

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: 99824329525ac6e2443b2fdd9312b518fd59fd8c64d69ffc707675706dcde35a
4
- data.tar.gz: b12e5a52879cf7d2080289417d93636e408eb407c20e8f39112c630d8840df3a
3
+ metadata.gz: 201c8f2477c01ecdfdd8f3066b177185832e5780dc6a7c415e10e197958ffdfb
4
+ data.tar.gz: 480a95b3b729e4dde131558952db9693ff783ababda6e2c6fb23f4038dc2aaff
5
5
  SHA512:
6
- metadata.gz: 8d8de28648b2eb946c478de83baf90ee005f56b5c179e2633a4ce8dea11a1765f524cca27a191f9b28bd65b46f352f865ca60c8cf20b60ecfdb4811164ed4339
7
- data.tar.gz: c981ae81c955320beeecb6afac34b80ee1eddd0df146135175d558b3ce99676b874310501ab923a9182fc5356da196b7c3f998d76cbe84bd2051665c0ed39e0d
6
+ metadata.gz: 7753e006de6a4288e79fa5764d019f3d892d92cf3b274f5e45f2fe602fa9c4ecddabfca1768bc520f7cc014ecbf452fd5b3b09cf8c868cee60366c80829bac84
7
+ data.tar.gz: 1a0c61fc3d0c2926b13eca25cd4c88818b408bcb3e9a4c486ae550834b633174f730cad134eb17902fff1b05d2a80e43592988fa886779816bdee6a3dde1a131
@@ -34,6 +34,12 @@ base_job: &base_job
34
34
  --format RspecJunitFormatter \
35
35
  --out /tmp/test-results/rspec.xml
36
36
 
37
+ - run:
38
+ name: run appraisals
39
+ command: |
40
+ bundle exec appraisal install --jobs 4 --retry 3
41
+ bundle exec appraisal rspec
42
+
37
43
  # collect reports
38
44
  - store_test_results:
39
45
  path: /tmp/test-results
data/.gitignore CHANGED
@@ -13,3 +13,5 @@
13
13
  spec/examples.txt
14
14
 
15
15
  coverage
16
+
17
+ gemfiles/*.lock
@@ -0,0 +1,7 @@
1
+ appraise "vcr-5" do
2
+ gem "vcr", "~> 5.0"
3
+ end
4
+
5
+ appraise "vcr-6" do
6
+ gem "vcr", "~> 6.0"
7
+ end
@@ -0,0 +1,9 @@
1
+ # Changelog
2
+
3
+ ## V0.2.0
4
+
5
+ - Support [VCR 6.0](https://github.com/vcr/vcr/releases/tag/v6.0.0)
6
+
7
+ ## V0.1.0
8
+
9
+ - Initial release
data/Gemfile CHANGED
@@ -1,3 +1,8 @@
1
1
  source "https://rubygems.org"
2
2
 
3
3
  gemspec
4
+
5
+ group :development do
6
+ # Move to standard release, in gemspec once released: https://github.com/thoughtbot/appraisal/commit/5868643
7
+ gem "appraisal", git: "https://github.com/thoughtbot/appraisal.git", ref: "5868643"
8
+ end
@@ -1,8 +1,18 @@
1
+ GIT
2
+ remote: https://github.com/thoughtbot/appraisal.git
3
+ revision: 586864393e405a67b1457b563a4d5adc99e50e2d
4
+ ref: 5868643
5
+ specs:
6
+ appraisal (2.2.0)
7
+ bundler
8
+ rake
9
+ thor (>= 0.14.0)
10
+
1
11
  PATH
2
12
  remote: .
3
13
  specs:
4
- vcr_better_binary (0.1.0)
5
- vcr (~> 5.0)
14
+ vcr_better_binary (0.2.0)
15
+ vcr (>= 5.0)
6
16
 
7
17
  GEM
8
18
  remote: https://rubygems.org/
@@ -18,6 +28,7 @@ GEM
18
28
  jet_black (0.6.0)
19
29
  json (2.3.0)
20
30
  method_source (1.0.0)
31
+ multi_json (1.14.1)
21
32
  pry (0.13.1)
22
33
  coderay (~> 1.1)
23
34
  method_source (~> 1.0)
@@ -44,7 +55,8 @@ GEM
44
55
  json (>= 1.8, < 3)
45
56
  simplecov-html (~> 0.10.0)
46
57
  simplecov-html (0.10.2)
47
- vcr (5.1.0)
58
+ thor (1.0.1)
59
+ vcr (6.0.0)
48
60
  webmock (3.8.3)
49
61
  addressable (>= 2.3.6)
50
62
  crack (>= 0.3.2)
@@ -54,7 +66,9 @@ PLATFORMS
54
66
  ruby
55
67
 
56
68
  DEPENDENCIES
69
+ appraisal!
57
70
  jet_black
71
+ multi_json
58
72
  pry
59
73
  rake
60
74
  rspec
data/README.md CHANGED
@@ -88,3 +88,13 @@ spec/fixtures/vcr_cassettes
88
88
 
89
89
  All remaining VCR functionality will operate as normal; the only adjustment is
90
90
  the storage of binary data.
91
+
92
+ ## Advanced configuration
93
+
94
+ You can adjust the underlying serializer to save your cassettes in different
95
+ formats, e.g:
96
+
97
+ ```ruby
98
+ # JSON cassettes
99
+ VcrBetterBinary::Serializer.new(base_serializer: VCR::Cassette::Serializers::JSON)
100
+ ```
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "vcr", "~> 5.0"
6
+
7
+ gemspec path: "../"
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "vcr", "~> 6.0"
6
+
7
+ gemspec path: "../"
@@ -1,3 +1,3 @@
1
1
  module VcrBetterBinary
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -5,13 +5,13 @@ Gem::Specification.new do |spec|
5
5
  spec.version = VcrBetterBinary::VERSION
6
6
  spec.authors = ["Oliver Peate"]
7
7
 
8
- spec.summary = "Persist binary data outside your VCR cassettes"
8
+ spec.summary = "VCR serializer for persisting binary data outside cassettes"
9
9
  spec.homepage = "https://github.com/odlp/vcr_better_binary"
10
10
  spec.license = "MIT"
11
11
  spec.required_ruby_version = Gem::Requirement.new(">= 2.5.0")
12
12
 
13
13
  spec.metadata["homepage_uri"] = spec.homepage
14
- # spec.metadata["source_code_uri"] = "TODO: Put your gem's public repo URL here."
14
+ spec.metadata["source_code_uri"] = spec.homepage
15
15
  # spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
16
16
 
17
17
  spec.files = Dir.chdir(__dir__) do
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.require_paths = ["lib"]
22
22
 
23
- spec.add_dependency "vcr", "~> 5.0"
23
+ spec.add_dependency "vcr", ">= 5.0"
24
24
 
25
25
  spec.add_development_dependency "pry"
26
26
  spec.add_development_dependency "rake"
@@ -29,4 +29,5 @@ Gem::Specification.new do |spec|
29
29
  spec.add_development_dependency "simplecov"
30
30
  spec.add_development_dependency "jet_black"
31
31
  spec.add_development_dependency "rspec_junit_formatter"
32
+ spec.add_development_dependency "multi_json"
32
33
  end
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vcr_better_binary
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oliver Peate
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-25 00:00:00.000000000 Z
11
+ date: 2020-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: vcr
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '5.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '5.0'
27
27
  - !ruby/object:Gem::Dependency
@@ -122,6 +122,20 @@ dependencies:
122
122
  - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: multi_json
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
125
139
  description:
126
140
  email:
127
141
  executables: []
@@ -132,11 +146,15 @@ files:
132
146
  - ".gitignore"
133
147
  - ".rspec"
134
148
  - ".ruby-version"
149
+ - Appraisals
150
+ - CHANGELOG.md
135
151
  - Gemfile
136
152
  - Gemfile.lock
137
153
  - LICENSE.txt
138
154
  - README.md
139
155
  - Rakefile
156
+ - gemfiles/vcr_5.gemfile
157
+ - gemfiles/vcr_6.gemfile
140
158
  - lib/vcr_better_binary.rb
141
159
  - lib/vcr_better_binary/pruner.rb
142
160
  - lib/vcr_better_binary/serializer.rb
@@ -147,6 +165,7 @@ licenses:
147
165
  - MIT
148
166
  metadata:
149
167
  homepage_uri: https://github.com/odlp/vcr_better_binary
168
+ source_code_uri: https://github.com/odlp/vcr_better_binary
150
169
  post_install_message:
151
170
  rdoc_options: []
152
171
  require_paths:
@@ -165,5 +184,5 @@ requirements: []
165
184
  rubygems_version: 3.1.2
166
185
  signing_key:
167
186
  specification_version: 4
168
- summary: Persist binary data outside your VCR cassettes
187
+ summary: VCR serializer for persisting binary data outside cassettes
169
188
  test_files: []