zip-js 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/lib/zip-js/helper.rb DELETED
@@ -1,20 +0,0 @@
1
- module ZipJs
2
- module Helper
3
- def deflater_worker_url
4
- javascript_url('deflater-worker')
5
- end
6
-
7
- def inflate_worker_url
8
- javascript_url('inflate-worker')
9
- end
10
-
11
- def zipjs_script_tag
12
- javascript_tag <<-"SCRIPT"
13
- zip.workerScripts = {
14
- deflater: ["#{deflater_worker_url}"],
15
- inflater: ["#{inflate_worker_url}"]
16
- };
17
- SCRIPT
18
- end
19
- end
20
- end