middleman-cdn 0.1.15 → 0.1.16
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 60f2541eb1776a574ad18d1ce8874c1a9c9c3d2b
|
4
|
+
data.tar.gz: 9907f3298da6d149a4434ccf92678dba9cca26d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e4aefc1cc4929f72e5dc5b7ddd6898c575f36d8c930cfa9645e02031c97031afbe2dcb78bbfaa1b2eab35cf5280061e54d105432fc57c6741b6d750ffcf42049
|
7
|
+
data.tar.gz: e9e1082251b096c0054f1132ef9c5161ac5569b73d3ed0d70ff827f3a8a13049116b4727a4f10c2374ed2eef9c4827c2dceedceab378abecd5453b0d6a7ec0b9
|
@@ -23,6 +23,7 @@ module Middleman
|
|
23
23
|
end
|
24
24
|
|
25
25
|
def invalidate(options, files, all: false)
|
26
|
+
options[:invalidate_zone_for_many_files] = true unless options.key?(:invalidate_zone_for_many_files)
|
26
27
|
options[:client_api_key] ||= ENV['CLOUDFLARE_CLIENT_API_KEY']
|
27
28
|
options[:email] ||= ENV['CLOUDFLARE_EMAIL']
|
28
29
|
|
@@ -114,6 +114,14 @@ describe Middleman::Cli::CloudFlareCDN do
|
|
114
114
|
expect(files.count).to be > 50
|
115
115
|
end
|
116
116
|
|
117
|
+
context "invalidate_zone_for_many_files is not set" do
|
118
|
+
before do
|
119
|
+
expect(options.key?(:invalidate_zone_for_many_files)).to be_falsy
|
120
|
+
end
|
121
|
+
|
122
|
+
it_behaves_like "invalidating the entire zone"
|
123
|
+
end
|
124
|
+
|
117
125
|
context "invalidate_zone_for_many_files is set to true" do
|
118
126
|
let(:options) { super().merge(invalidate_zone_for_many_files: true) }
|
119
127
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: middleman-cdn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Leigh McCulloch
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-04-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fog
|