puffing-billy 0.11.1 → 0.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +9 -0
- data/lib/billy/cache.rb +7 -1
- data/lib/billy/version.rb +1 -1
- data/puffing-billy.gemspec +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 21be9f1a9d60c193c942e9d49e30ebfe44619fce
|
4
|
+
data.tar.gz: f779ade84a243e2a03222c4ae0f8565cb4a22557
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8045149493d475f523b513ee115ba52def7c353960ce47069002f0af42ca6bdaf5d55695d775660675657482607fd6230c221ae5c6dbde139825298fcf310ca1
|
7
|
+
data.tar.gz: 21c72f430f8af471ecce4bad0aff8e796de883e57cfbf48bc4f48f24ca7ac30f0f7480e41b6f797cd9bfc624e6f337e09a1c84e44ca61991ead60f9daa481f3d
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
v0.12.0, 2018-02-07
|
2
|
+
-------------------
|
3
|
+
* Follow cache file symlinks [#220](https://github.com/oesmith/puffing-billy/pull/220)
|
4
|
+
* Update eventmachine to support HTTP/2 resources [#217](https://github.com/oesmith/puffing-billy/pull/217)
|
5
|
+
|
1
6
|
v0.11.1, 2017-12-22
|
2
7
|
-------------------
|
3
8
|
* Prevent eventmachine from installing 1.2.x [#206](https://github.com/oesmith/puffing-billy/pull/206)
|
data/README.md
CHANGED
@@ -515,6 +515,15 @@ end
|
|
515
515
|
|
516
516
|
Note that this approach may cause unexpected behavior if your backend sends the Referer HTTP header (which is unlikely).
|
517
517
|
|
518
|
+
### Raising errors from stubs
|
519
|
+
|
520
|
+
By default PuffingBilly suppress errors from stub-blocks.
|
521
|
+
To make it raise errors instead, add this test initializers:
|
522
|
+
|
523
|
+
```ruby
|
524
|
+
EM.error_handler { |e| raise e }
|
525
|
+
```
|
526
|
+
|
518
527
|
## SSL usage
|
519
528
|
|
520
529
|
Unfortunately we cannot setup the runtime certificate authority on your browser
|
data/lib/billy/cache.rb
CHANGED
@@ -118,7 +118,13 @@ module Billy
|
|
118
118
|
end
|
119
119
|
|
120
120
|
def cache_file(key)
|
121
|
-
File.join(Billy.config.cache_path, "#{key}.yml")
|
121
|
+
file = File.join(Billy.config.cache_path, "#{key}.yml")
|
122
|
+
|
123
|
+
if File.symlink? file
|
124
|
+
file = File.readlink file
|
125
|
+
end
|
126
|
+
|
127
|
+
file
|
122
128
|
end
|
123
129
|
|
124
130
|
def scope_to(new_scope = nil)
|
data/lib/billy/version.rb
CHANGED
data/puffing-billy.gemspec
CHANGED
@@ -31,7 +31,7 @@ Gem::Specification.new do |gem|
|
|
31
31
|
gem.add_development_dependency 'watir-webdriver', '0.9.1'
|
32
32
|
# addressable 2.5.0 drops support for ruby 1.9.3
|
33
33
|
gem.add_runtime_dependency 'addressable', '~> 2.4', '>= 2.4.0'
|
34
|
-
gem.add_runtime_dependency 'eventmachine', '
|
34
|
+
gem.add_runtime_dependency 'eventmachine', '1.2.0.1'
|
35
35
|
gem.add_runtime_dependency 'em-synchrony'
|
36
36
|
gem.add_runtime_dependency 'em-http-request', '~> 1.1', '>= 1.1.0'
|
37
37
|
gem.add_runtime_dependency 'eventmachine_httpserver'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: puffing-billy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Olly Smith
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-02-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -216,16 +216,16 @@ dependencies:
|
|
216
216
|
name: eventmachine
|
217
217
|
requirement: !ruby/object:Gem::Requirement
|
218
218
|
requirements:
|
219
|
-
- -
|
219
|
+
- - '='
|
220
220
|
- !ruby/object:Gem::Version
|
221
|
-
version: 1.0.
|
221
|
+
version: 1.2.0.1
|
222
222
|
type: :runtime
|
223
223
|
prerelease: false
|
224
224
|
version_requirements: !ruby/object:Gem::Requirement
|
225
225
|
requirements:
|
226
|
-
- -
|
226
|
+
- - '='
|
227
227
|
- !ruby/object:Gem::Version
|
228
|
-
version: 1.0.
|
228
|
+
version: 1.2.0.1
|
229
229
|
- !ruby/object:Gem::Dependency
|
230
230
|
name: em-synchrony
|
231
231
|
requirement: !ruby/object:Gem::Requirement
|