classy_assets 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5b2a4669a0892222ca15c7eb900fdb362d9e7d71
4
- data.tar.gz: 7c3994fcfa62f5a9097337c9b1dd294654805da2
3
+ metadata.gz: 83e4f9455ec87bfa8e83ba414d6228e3698f0581
4
+ data.tar.gz: ce2b857bd304a44c4feb78f16ca0bbe224c0916c
5
5
  SHA512:
6
- metadata.gz: 66d0e7c3e2bebe79615c8a126fa17d98481b552e0b1e239ddba67b9a6fd85df1d2d82fbd980421b2e2f4cf785a79d95dee8b1cb1efef010c3968955d20402116
7
- data.tar.gz: 7d04b3eb7ba3f67d766b7bff6328c5ffac2fe6684bb476d0cbab75ffffb86f0e841a8ed480f9a5f985a6c4637ae8ec2f51b64762e69ca568a885a4a3e178caa4
6
+ metadata.gz: f5f37a36ee90b9daf1ab813db45ebf71217ee127730189d1f7c8d2312918ae032cb8720b2645cd37d15e777d729a6566d1b2c85bca055aeca9bbea8dbae6ce06
7
+ data.tar.gz: ed53046b86e14a179d2c4699a5e32e3c334e9a47a4e3894a8a7486c785d6f625615b6bb9f965a3220cac3fd9a99bd08ac510f1f16e3105af30554728fc71643a
data/lib/classy_assets.rb CHANGED
@@ -38,6 +38,14 @@ module ClassyAssets
38
38
  @asset_host = host
39
39
  end
40
40
 
41
+ def self.asset_host_protocol
42
+ @asset_host_protoco || :relative
43
+ end
44
+
45
+ def self.asset_host_protocol=(host)
46
+ @asset_host = host
47
+ end
48
+
41
49
  def self.asset_prefix
42
50
  @asset_prefix || 'assets'
43
51
  end
@@ -1,3 +1,3 @@
1
1
  module ClassyAssets
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
@@ -21,6 +21,7 @@ module Sinatra
21
21
  config.environment = classy_config.sprockets
22
22
  config.public_path = classy_config.public_path
23
23
  config.prefix = "/#{classy_config.asset_prefix}"
24
+ config.protocol = classy_config.asset_host_protocol
24
25
 
25
26
  if ::File.exists? manifest_file
26
27
  config.manifest = ::Sprockets::Manifest.new(config.environment, manifest_file)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: classy_assets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - StyleSeek Engineering