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: 62d3fe98c429ea088be61b3ecd2d31287dff6eb7
4
- data.tar.gz: b07a340fb289b103d506eceb007f6a0e5d8156c5
3
+ metadata.gz: 60f2541eb1776a574ad18d1ce8874c1a9c9c3d2b
4
+ data.tar.gz: 9907f3298da6d149a4434ccf92678dba9cca26d1
5
5
  SHA512:
6
- metadata.gz: 4b07e0cceefa744a5dcbdb36a55ef35ccc994b01f37da02ee4c0447b761865772f0fd374c16faf857788e5d82d0f3f1236fc345c6d4c2e9a24c9adc042a47855
7
- data.tar.gz: e1f798d993d882e51f27bb6ff964b0dafcd1311718c56509a30676772a9328b44f787020098ca5f92c3df7160f40eab8b18dbab91aa995dc45940912c3bca5eb
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
 
@@ -1,5 +1,5 @@
1
1
  module Middleman
2
2
  module CDN
3
- VERSION = '0.1.15'
3
+ VERSION = '0.1.16'
4
4
  end
5
5
  end
@@ -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.15
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-03-23 00:00:00.000000000 Z
11
+ date: 2016-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog