alcapon 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -0
- data/lib/capez.rb +2 -0
- metadata +2 -2
data/README.md
CHANGED
@@ -12,6 +12,8 @@ it on a preproduction environment before going further. Please also do read the
|
|
12
12
|
|
13
13
|
### 0.4.x
|
14
14
|
|
15
|
+
- added in 0.4.1 : downloaded files are hashed so that they can be downloaded
|
16
|
+
somewhere there's no eZ Publish installed
|
15
17
|
- added eZ Publish 5.x support for ezpublish_legacy. This means that version
|
16
18
|
of eZ Publish must be known by alcapon. You can either set ezpublish_version
|
17
19
|
(accepted values are 4 or 5) in your Capfile or add `-S ezpublish_version=4`
|
data/lib/capez.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'colored'
|
2
|
+
require 'md5'
|
2
3
|
|
3
4
|
load_paths.push File.expand_path('../', __FILE__)
|
4
5
|
load "utils"
|
@@ -175,6 +176,7 @@ namespace :capez do
|
|
175
176
|
tmp_filename = target_filename
|
176
177
|
else
|
177
178
|
tmp_filename = target_filename+".tmp"
|
179
|
+
tmp_filename = MD5.new( tmp_filename ).to_s
|
178
180
|
get "#{path}/#{target_filename}", tmp_filename
|
179
181
|
end
|
180
182
|
|