fingerjam 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/fingerjam.gemspec +1 -1
- data/lib/fingerjam/base.rb +3 -3
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.2
|
data/fingerjam.gemspec
CHANGED
data/lib/fingerjam/base.rb
CHANGED
@@ -129,14 +129,14 @@ module Fingerjam
|
|
129
129
|
|
130
130
|
# Gzip version of asset
|
131
131
|
src_c_path = File.join(public_path, (relative_path[1..relative_path.length] + ".gz"))
|
132
|
-
dst_c_path = File.join(public_path, (cached_path[1..cached_path.length]
|
132
|
+
dst_c_path = File.join(public_path, (cached_path[1..cached_path.length] + ".gz"))
|
133
133
|
|
134
134
|
# Create root directory
|
135
135
|
FileUtils.mkdir_p(File.dirname(dst_u_path))
|
136
136
|
|
137
137
|
# Create relative symlink from RAILS_ROOT/public/cache/$MD5SUM.$EXT to original file
|
138
|
-
File.symlink(".." + relative_path,
|
139
|
-
File.symlink(".." + relative_path, dst_c_path.to_s) if !File.exists?(dst_c_path) && File.exists?(src_c_path)
|
138
|
+
File.symlink(".." + relative_path, dst_u_path.to_s) if !File.exists?(dst_u_path)
|
139
|
+
File.symlink(".." + relative_path + ".gz", dst_c_path.to_s) if !File.exists?(dst_c_path) && File.exists?(src_c_path)
|
140
140
|
|
141
141
|
cached_urls[relative_path] = generate_cached_url(relative_path)
|
142
142
|
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 4
|
8
|
-
-
|
9
|
-
version: 0.4.
|
8
|
+
- 2
|
9
|
+
version: 0.4.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Steve Hoeksema
|
@@ -174,7 +174,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
174
174
|
requirements:
|
175
175
|
- - ">="
|
176
176
|
- !ruby/object:Gem::Version
|
177
|
-
hash:
|
177
|
+
hash: -4470776337640440743
|
178
178
|
segments:
|
179
179
|
- 0
|
180
180
|
version: "0"
|