lesspainful 0.9.4 → 0.9.5
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/lesspainful +9 -2
- data/lib/version.rb +1 -1
- metadata +1 -1
data/bin/lesspainful
CHANGED
@@ -84,7 +84,7 @@ def all_files
|
|
84
84
|
if is_android?
|
85
85
|
files << test_server_path
|
86
86
|
end
|
87
|
-
{:
|
87
|
+
{:feature_prefix => dir, :workspace_prefix => workspace, :files => files.find_all { |file_or_dir| File.file? file_or_dir }}
|
88
88
|
end
|
89
89
|
|
90
90
|
def http_post(address, args, &block)
|
@@ -253,7 +253,8 @@ log_and_abort "Bundler failed. Please check command: bundle package" unless syst
|
|
253
253
|
log_header("Collecting files")
|
254
254
|
collected_files = all_files
|
255
255
|
file_paths = collected_files[:files]
|
256
|
-
|
256
|
+
feature_prefix = collected_files[:feature_prefix]
|
257
|
+
workspace_prefix = collected_files[:workspace_prefix]
|
257
258
|
|
258
259
|
hashes = file_paths.collect { |f| digest(f) }
|
259
260
|
hashes << digest(app)
|
@@ -282,6 +283,12 @@ file_paths.each do |file|
|
|
282
283
|
#Upload file
|
283
284
|
files << File.new(file)
|
284
285
|
end
|
286
|
+
|
287
|
+
if file.start_with?(feature_prefix)
|
288
|
+
prefix = feature_prefix
|
289
|
+
else
|
290
|
+
prefix = workspace_prefix
|
291
|
+
end
|
285
292
|
paths << file.sub(prefix, "")
|
286
293
|
end
|
287
294
|
|
data/lib/version.rb
CHANGED