fingerjam 0.5.5 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
data/lib/fingerjam/base.rb
CHANGED
data/lib/fingerjam/jammit.rb
CHANGED
@@ -1,16 +1,17 @@
|
|
1
|
-
|
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
|
-
|
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
|
data/lib/fingerjam/version.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: fingerjam
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.
|
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-
|
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.
|
147
|
+
rubygems_version: 1.8.1
|
150
148
|
signing_key:
|
151
149
|
specification_version: 3
|
152
150
|
summary: Fingerprinting for Jammit
|