zip-js 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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