branchable_cdn_assets-middleman 0.8.1 → 0.8.2

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: 99ca71123259f6e204e0198b4f36ad5267dc0a4e
4
- data.tar.gz: 2d3970a00b3bd71c0d76f9e73b69ae5684e023be
3
+ metadata.gz: acc9ce238e14e2467054b4510f790af4abc749a9
4
+ data.tar.gz: 3ebc52890b741a5790b7a829c1a7d3b7fe6d89d3
5
5
  SHA512:
6
- metadata.gz: d0a8957936305371b89d0f603a43400de77d963fb9d80edb98dbdbc62c153a0cf36460b0ba8b4b1d3380d9a3754dd8283cca4fe8efa87ee2830aaa072fb9390f
7
- data.tar.gz: 8aec9a0e94ba141da4056c7bf291830bdad1cabd2b5eae30fb8c4cd62824b44487304fadad8ec5a23c96e3083e613b8dbd3cf0bbba2bd697c25e70ef42d3ae78
6
+ metadata.gz: be5a3709cc938af216c359178fc9b521f304d7ee84a130dc2f552d4fe25624bf259c4e25a366279e808dcd835db1b4f5204de092b054187605e65115dc9eb40b
7
+ data.tar.gz: bd0b2cf0f3ff084929fc72ee7688e443747968c13f370ca0c3cf4159d727838d60bb5ca5ce666e8015dd4cd7fd724f32de169fa7a35c44acdaf0e15f40a2d825
@@ -58,6 +58,8 @@ module BranchableCDNAssets
58
58
  private
59
59
 
60
60
  def local_files_as_resources
61
+ return [] if app.build?
62
+
61
63
  file_manager.list( :local ).map do |file|
62
64
  ::Middleman::Sitemap::Resource.new(
63
65
  app.sitemap,
@@ -74,7 +74,8 @@ module BranchableCDNAssets
74
74
  #
75
75
  def application_context
76
76
  if options.key?(:custom)
77
- options[:custom][:middleman_context]
77
+ options[:custom][:middleman_context] ||
78
+ options[:custom][:sprockets_context]
78
79
  elsif options.key?(:sprockets)
79
80
  options[:sprockets][:context]
80
81
  end
@@ -1,5 +1,5 @@
1
1
  module BranchableCDNAssets
2
2
  module Middleman
3
- VERSION = '0.8.1' unless defined?(BranchableCDNAssets::Middleman::VERSION)
3
+ VERSION = '0.8.2' unless defined?(BranchableCDNAssets::Middleman::VERSION)
4
4
  end
5
5
  end
@@ -58,6 +58,8 @@ describe BranchableCDNAssets::Middleman::Extension do
58
58
  expect( resource_paths ).to include "/assets/cdn/#{@extension.object_id}/img_one"
59
59
  expect( resource_paths ).to include "/assets/cdn/#{@extension.object_id}/img_two"
60
60
  end
61
+
62
+ it "doesn't add local files when building"
61
63
  end
62
64
 
63
65
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: branchable_cdn_assets-middleman
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Sloan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-24 00:00:00.000000000 Z
11
+ date: 2016-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: middleman