juicer-rails 0.1.0 → 0.1.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.
data/CHANGELOG.rdoc CHANGED
@@ -1,4 +1,8 @@
1
1
  = CHANGELOG
2
2
 
3
+ == 0.1.1 (01.02.2011)
4
+ * warn is undefined key is referenced
5
+ * don't try to bust cache for javascript files
6
+
3
7
  == 0.1.0 (26.01.2011)
4
8
  * initial release
data/lib/juicer-rails.rb CHANGED
@@ -37,6 +37,10 @@ module JuicerRails
37
37
  yield self
38
38
  end
39
39
 
40
+ def self.warn(text)
41
+ ActiveSupport::Deprecation.warn("** JUICER-RAILS: #{text}")
42
+ end
43
+
40
44
  end
41
45
 
42
46
  ActionView::Base.send(:include, Juicer::Helper)
@@ -58,6 +58,10 @@ class Juicer::Collection
58
58
  @type = type
59
59
  @key = key
60
60
  @paths = JuicerRails.config[type.to_s][key.to_s]
61
+ unless @paths.is_a?(Array)
62
+ JuicerRails.warn("Wrong configuration for '#{key}'. Check you config file")
63
+ @paths = []
64
+ end
61
65
  @destination_dir = self.class.compiled_directory
62
66
  @destination_path = self.class.compiled_path(key, type)
63
67
  ensure_destination_directory_exists
@@ -69,7 +73,7 @@ class Juicer::Collection
69
73
  # TODO: only merging and cache buster are implemented at the moment
70
74
  def compile
71
75
  merge
72
- bust_cache
76
+ bust_cache if @type == 'css'
73
77
  end
74
78
 
75
79
  # Depending on type merges and saves compiled asset
@@ -1,3 +1,3 @@
1
1
  module JuicerRails
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 0
9
- version: 0.1.0
8
+ - 1
9
+ version: 0.1.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - "Micha\xC5\x82 \xC5\x81omnicki"
@@ -14,13 +14,14 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-01-27 00:00:00 +01:00
17
+ date: 2011-02-01 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: juicer
22
22
  prerelease: false
23
23
  requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
24
25
  requirements:
25
26
  - - ~>
26
27
  - !ruby/object:Gem::Version
@@ -34,6 +35,7 @@ dependencies:
34
35
  name: actionpack
35
36
  prerelease: false
36
37
  requirement: &id002 !ruby/object:Gem::Requirement
38
+ none: false
37
39
  requirements:
38
40
  - - ">="
39
41
  - !ruby/object:Gem::Version
@@ -77,6 +79,7 @@ rdoc_options: []
77
79
  require_paths:
78
80
  - lib
79
81
  required_ruby_version: !ruby/object:Gem::Requirement
82
+ none: false
80
83
  requirements:
81
84
  - - ">="
82
85
  - !ruby/object:Gem::Version
@@ -84,6 +87,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
84
87
  - 0
85
88
  version: "0"
86
89
  required_rubygems_version: !ruby/object:Gem::Requirement
90
+ none: false
87
91
  requirements:
88
92
  - - ">="
89
93
  - !ruby/object:Gem::Version
@@ -93,7 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
97
  requirements: []
94
98
 
95
99
  rubyforge_project: juicer-rails
96
- rubygems_version: 1.3.6
100
+ rubygems_version: 1.3.7
97
101
  signing_key:
98
102
  specification_version: 3
99
103
  summary: Rails helpers for Juicer