assette 0.0.7 → 0.0.8

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.7
1
+ 0.0.8
data/assette.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{assette}
8
- s.version = "0.0.7"
8
+ s.version = "0.0.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = [%q{Tal Atlas}]
data/examples/.asset_key CHANGED
@@ -1 +1 @@
1
- 111121_203209
1
+ 111121_204651
@@ -5,6 +5,7 @@ asset_host 'http://cdn.gilt.com'
5
5
  asset_hosts 'http://cdn1.gilt.com', 'http://cdn2.gilt.com'
6
6
 
7
7
  asset_dir 'myassets'
8
+ asset_version_file 'myassets/version'
8
9
  templates_path 'myapp/templates'
9
10
 
10
11
  template_preloader 'javascripts/handlebars.js'
data/lib/assette/cli.rb CHANGED
@@ -152,7 +152,7 @@ module Assette
152
152
  end
153
153
 
154
154
 
155
- version_file = '.asset_key' # 'assets/version'
155
+ version_file = Assette.config.asset_version_file
156
156
  File.delete(version_file) if File.exist?(version_file)
157
157
  create_file(version_file,sha)
158
158
  end
@@ -16,8 +16,8 @@ module Assette
16
16
 
17
17
  class Config
18
18
  MULTIPLES = %w{file_path asset_host}.freeze
19
- SINGLES = %w{asset_dir templates_path template_format cache_method
20
- template_preloader template_partial}.freeze
19
+ SINGLES = %w{asset_dir templates_path template_format cache_method
20
+ template_preloader template_partial asset_version_file}.freeze
21
21
  BLOCKS = %w{after_compile}.freeze
22
22
 
23
23
  OPTIONS = begin
@@ -34,6 +34,7 @@ module Assette
34
34
 
35
35
  DEFAULTS = {
36
36
  :asset_dir => 'assets',
37
+ :asset_version_file => 'assets/version',
37
38
  :asset_hosts => [],
38
39
  :file_paths => %w{public},
39
40
  :templates_path => 'app/templates',
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: assette
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 15
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 7
10
- version: 0.0.7
9
+ - 8
10
+ version: 0.0.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tal Atlas