fingerjam 0.5.5 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -43,6 +43,8 @@ module Fingerjam
43
43
 
44
44
  silence_warnings do
45
45
  Jammit.const_set("ASSET_ROOT", root_path)
46
+ Jammit.const_set("PUBLIC_ROOT", public_path)
47
+ Jammit.const_set("DEFAULT_CONFIG_PATH", assets_yml_path)
46
48
  end
47
49
  end
48
50
 
@@ -5,5 +5,4 @@ Capistrano::Configuration.instance(:must_exist).load do
5
5
  _cset(:cache_host) { "www.example.com" }
6
6
  _cset(:cache_protocol) { "https" }
7
7
 
8
- end
9
-
8
+ end
@@ -12,7 +12,7 @@ module Jammit
12
12
  js = js.force_encoding('utf-8')
13
13
  Jammit.compress_assets ? @js_compressor.compress(js) : js
14
14
  end
15
-
15
+
16
16
  end
17
-
17
+
18
18
  end
@@ -1,16 +1,17 @@
1
- # Used by rake fingerjam:package
1
+ require "jammit/compressor"
2
+
2
3
  module Jammit
4
+ class Compressor
5
+
6
+ alias :rewrite_asset_path_without_fingerjam :rewrite_asset_path
3
7
 
4
- module JammitCompressor
5
8
  def rewrite_asset_path(relative_path, absolute_path)
6
9
  if File.exist?(absolute_path)
7
10
  Fingerjam::Base.save_cached_url_from_path(relative_path, absolute_path)
8
11
  else
9
- super
12
+ rewrite_asset_path_without_fingerjam(relative_path, absolute_path)
10
13
  end
11
14
  end
12
- end
13
-
14
- Compressor.send :include, JammitCompressor
15
15
 
16
+ end
16
17
  end
@@ -1,3 +1,3 @@
1
1
  module Fingerjam
2
- VERSION = "0.5.5"
2
+ VERSION = "0.6.0"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: fingerjam
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.5.5
5
+ version: 0.6.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - Steve Hoeksema
@@ -10,8 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-05-09 00:00:00 +12:00
14
- default_executable:
13
+ date: 2011-05-13 00:00:00 Z
15
14
  dependencies:
16
15
  - !ruby/object:Gem::Dependency
17
16
  name: rails
@@ -122,7 +121,6 @@ files:
122
121
  - lib/fingerjam/version.rb
123
122
  - spec/fingerjam_spec.rb
124
123
  - spec/spec_helper.rb
125
- has_rdoc: true
126
124
  homepage: https://github.com/steveh/fingerjam
127
125
  licenses: []
128
126
 
@@ -146,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
146
144
  requirements: []
147
145
 
148
146
  rubyforge_project: fingerjam
149
- rubygems_version: 1.6.2
147
+ rubygems_version: 1.8.1
150
148
  signing_key:
151
149
  specification_version: 3
152
150
  summary: Fingerprinting for Jammit