berkshelf-store 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.
- checksums.yaml +15 -0
- data/.gitignore +2 -0
- data/Gemfile +5 -0
- data/README.md +83 -0
- data/Rakefile +44 -0
- data/berkshelf-store.gemspec +26 -0
- data/bin/berkshelf-store +49 -0
- data/lib/berkshelf-store/backends/filesystem.rb +138 -0
- data/lib/berkshelf-store/backends.rb +5 -0
- data/lib/berkshelf-store/webservice.rb +100 -0
- data/lib/berkshelf-store.rb +5 -0
- data/test/data/arbo/cookbooks/apache2/1.10.4/data.json +1 -0
- data/test/data/arbo/cookbooks/couchbase/1.1.0/data.json +1 -0
- data/test/data/arbo/cookbooks/couchbase/1.2.0/data.json +1 -0
- data/test/data/catalog.json +69 -0
- data/test/data/tarballs/apache2-v1.10.4.tar.gz +0 -0
- data/test/data/tarballs/couchbase-v1.1.0.tar.gz +0 -0
- data/test/data/tarballs/couchbase-v1.2.0.tar.gz +0 -0
- data/test/data/tarballs/not_a_cookbook.tgz +0 -0
- data/test/test_berkshelf-store_backends_filesystem.rb +76 -0
- data/ui/static/bootstrap/css/bootstrap-theme.css +347 -0
- data/ui/static/bootstrap/css/bootstrap-theme.css.map +1 -0
- data/ui/static/bootstrap/css/bootstrap-theme.min.css +7 -0
- data/ui/static/bootstrap/css/bootstrap.css +5785 -0
- data/ui/static/bootstrap/css/bootstrap.css.map +1 -0
- data/ui/static/bootstrap/css/bootstrap.min.css +7 -0
- data/ui/static/bootstrap/fonts/glyphicons-halflings-regular.eot +0 -0
- data/ui/static/bootstrap/fonts/glyphicons-halflings-regular.svg +229 -0
- data/ui/static/bootstrap/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/ui/static/bootstrap/fonts/glyphicons-halflings-regular.woff +0 -0
- data/ui/static/bootstrap/js/bootstrap.js +1951 -0
- data/ui/static/bootstrap/js/bootstrap.min.js +6 -0
- data/ui/static/jquery/jquery.min.js +4 -0
- data/ui/static/jquery_file_upload/CONTRIBUTING.md +42 -0
- data/ui/static/jquery_file_upload/Gruntfile.js +37 -0
- data/ui/static/jquery_file_upload/README.md +123 -0
- data/ui/static/jquery_file_upload/angularjs.html +211 -0
- data/ui/static/jquery_file_upload/basic-plus.html +226 -0
- data/ui/static/jquery_file_upload/basic.html +136 -0
- data/ui/static/jquery_file_upload/blueimp-file-upload.jquery.json +50 -0
- data/ui/static/jquery_file_upload/bower.json +85 -0
- data/ui/static/jquery_file_upload/cors/postmessage.html +75 -0
- data/ui/static/jquery_file_upload/cors/result.html +24 -0
- data/ui/static/jquery_file_upload/css/demo-ie8.css +21 -0
- data/ui/static/jquery_file_upload/css/demo.css +67 -0
- data/ui/static/jquery_file_upload/css/jquery.fileupload-noscript.css +22 -0
- data/ui/static/jquery_file_upload/css/jquery.fileupload-ui-noscript.css +17 -0
- data/ui/static/jquery_file_upload/css/jquery.fileupload-ui.css +57 -0
- data/ui/static/jquery_file_upload/css/jquery.fileupload.css +36 -0
- data/ui/static/jquery_file_upload/css/style.css +15 -0
- data/ui/static/jquery_file_upload/img/loading.gif +0 -0
- data/ui/static/jquery_file_upload/img/progressbar.gif +0 -0
- data/ui/static/jquery_file_upload/index.html +255 -0
- data/ui/static/jquery_file_upload/jquery-ui.html +250 -0
- data/ui/static/jquery_file_upload/js/app.js +101 -0
- data/ui/static/jquery_file_upload/js/cors/jquery.postmessage-transport.js +117 -0
- data/ui/static/jquery_file_upload/js/cors/jquery.xdr-transport.js +86 -0
- data/ui/static/jquery_file_upload/js/jquery.fileupload-angular.js +429 -0
- data/ui/static/jquery_file_upload/js/jquery.fileupload-audio.js +106 -0
- data/ui/static/jquery_file_upload/js/jquery.fileupload-image.js +315 -0
- data/ui/static/jquery_file_upload/js/jquery.fileupload-jquery-ui.js +152 -0
- data/ui/static/jquery_file_upload/js/jquery.fileupload-process.js +172 -0
- data/ui/static/jquery_file_upload/js/jquery.fileupload-ui.js +699 -0
- data/ui/static/jquery_file_upload/js/jquery.fileupload-validate.js +119 -0
- data/ui/static/jquery_file_upload/js/jquery.fileupload-video.js +106 -0
- data/ui/static/jquery_file_upload/js/jquery.fileupload.js +1426 -0
- data/ui/static/jquery_file_upload/js/jquery.iframe-transport.js +214 -0
- data/ui/static/jquery_file_upload/js/main.js +75 -0
- data/ui/static/jquery_file_upload/js/vendor/jquery.ui.widget.js +530 -0
- data/ui/static/jquery_file_upload/package.json +54 -0
- data/ui/static/jquery_file_upload/server/gae-go/app/main.go +296 -0
- data/ui/static/jquery_file_upload/server/gae-go/app.yaml +12 -0
- data/ui/static/jquery_file_upload/server/gae-go/static/favicon.ico +0 -0
- data/ui/static/jquery_file_upload/server/gae-go/static/robots.txt +2 -0
- data/ui/static/jquery_file_upload/server/gae-python/app.yaml +16 -0
- data/ui/static/jquery_file_upload/server/gae-python/main.py +170 -0
- data/ui/static/jquery_file_upload/server/gae-python/static/favicon.ico +0 -0
- data/ui/static/jquery_file_upload/server/gae-python/static/robots.txt +2 -0
- data/ui/static/jquery_file_upload/server/node/package.json +41 -0
- data/ui/static/jquery_file_upload/server/node/server.js +292 -0
- data/ui/static/jquery_file_upload/server/php/UploadHandler.php +1330 -0
- data/ui/static/jquery_file_upload/server/php/index.php +15 -0
- data/ui/static/jquery_file_upload/test/index.html +166 -0
- data/ui/static/jquery_file_upload/test/test.js +1288 -0
- data/ui/views/catalog.erb +20 -0
- data/ui/views/doc.erb +23 -0
- data/ui/views/layout.erb +47 -0
- data/ui/views/upload.erb +46 -0
- metadata +210 -0
@@ -0,0 +1,15 @@
|
|
1
|
+
<?php
|
2
|
+
/*
|
3
|
+
* jQuery File Upload Plugin PHP Example 5.14
|
4
|
+
* https://github.com/blueimp/jQuery-File-Upload
|
5
|
+
*
|
6
|
+
* Copyright 2010, Sebastian Tschan
|
7
|
+
* https://blueimp.net
|
8
|
+
*
|
9
|
+
* Licensed under the MIT license:
|
10
|
+
* http://www.opensource.org/licenses/MIT
|
11
|
+
*/
|
12
|
+
|
13
|
+
error_reporting(E_ALL | E_STRICT);
|
14
|
+
require('UploadHandler.php');
|
15
|
+
$upload_handler = new UploadHandler();
|
@@ -0,0 +1,166 @@
|
|
1
|
+
<!DOCTYPE HTML>
|
2
|
+
<!--
|
3
|
+
/*
|
4
|
+
* jQuery File Upload Plugin Test 9.0.0
|
5
|
+
* https://github.com/blueimp/jQuery-File-Upload
|
6
|
+
*
|
7
|
+
* Copyright 2010, Sebastian Tschan
|
8
|
+
* https://blueimp.net
|
9
|
+
*
|
10
|
+
* Licensed under the MIT license:
|
11
|
+
* http://www.opensource.org/licenses/MIT
|
12
|
+
*/
|
13
|
+
-->
|
14
|
+
<html lang="en">
|
15
|
+
<head>
|
16
|
+
<!-- Force latest IE rendering engine or ChromeFrame if installed -->
|
17
|
+
<!--[if IE]>
|
18
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
19
|
+
<![endif]-->
|
20
|
+
<meta charset="utf-8">
|
21
|
+
<title>jQuery File Upload Plugin Test</title>
|
22
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
23
|
+
<link rel="stylesheet" href="http://codeorigin.jquery.com/qunit/qunit-1.14.0.css">
|
24
|
+
</head>
|
25
|
+
<body>
|
26
|
+
<h1 id="qunit-header">jQuery File Upload Plugin Test</h1>
|
27
|
+
<h2 id="qunit-banner"></h2>
|
28
|
+
<div id="qunit-testrunner-toolbar"></div>
|
29
|
+
<h2 id="qunit-userAgent"></h2>
|
30
|
+
<ol id="qunit-tests"></ol>
|
31
|
+
<div id="qunit-fixture">
|
32
|
+
<!-- The file upload form used as target for the file upload widget -->
|
33
|
+
<form id="fileupload" action="../server/php/" method="POST" enctype="multipart/form-data">
|
34
|
+
<!-- The fileupload-buttonbar contains buttons to add/delete files and start/cancel the upload -->
|
35
|
+
<div class="row fileupload-buttonbar">
|
36
|
+
<div class="col-lg-7">
|
37
|
+
<!-- The fileinput-button span is used to style the file input field as button -->
|
38
|
+
<span class="btn btn-success fileinput-button">
|
39
|
+
<i class="icon-plus icon-white"></i>
|
40
|
+
<span>Add files...</span>
|
41
|
+
<input type="file" name="files[]" multiple>
|
42
|
+
</span>
|
43
|
+
<button type="submit" class="btn btn-primary start">
|
44
|
+
<i class="icon-upload icon-white"></i>
|
45
|
+
<span>Start upload</span>
|
46
|
+
</button>
|
47
|
+
<button type="reset" class="btn btn-warning cancel">
|
48
|
+
<i class="icon-ban-circle icon-white"></i>
|
49
|
+
<span>Cancel upload</span>
|
50
|
+
</button>
|
51
|
+
<button type="button" class="btn btn-danger delete">
|
52
|
+
<i class="icon-trash icon-white"></i>
|
53
|
+
<span>Delete</span>
|
54
|
+
</button>
|
55
|
+
<input type="checkbox" class="toggle">
|
56
|
+
<!-- The global file processing state -->
|
57
|
+
<span class="fileupload-process"></span>
|
58
|
+
</div>
|
59
|
+
<!-- The global progress state -->
|
60
|
+
<div class="col-lg-5 fileupload-progress">
|
61
|
+
<!-- The global progress bar -->
|
62
|
+
<div class="progress progress-striped active" role="progressbar" aria-valuemin="0" aria-valuemax="100">
|
63
|
+
<div class="progress-bar progress-bar-success" style="width:0%;"></div>
|
64
|
+
</div>
|
65
|
+
<!-- The extended global progress state -->
|
66
|
+
<div class="progress-extended"> </div>
|
67
|
+
</div>
|
68
|
+
</div>
|
69
|
+
<!-- The table listing the files available for upload/download -->
|
70
|
+
<table role="presentation" class="table table-striped"><tbody class="files"></tbody></table>
|
71
|
+
</form>
|
72
|
+
</div>
|
73
|
+
<!-- The template to display files available for upload -->
|
74
|
+
<script id="template-upload" type="text/x-tmpl">
|
75
|
+
{% for (var i=0, file; file=o.files[i]; i++) { %}
|
76
|
+
<tr class="template-upload">
|
77
|
+
<td>
|
78
|
+
<span class="preview"></span>
|
79
|
+
</td>
|
80
|
+
<td>
|
81
|
+
<p class="name">{%=file.name%}</p>
|
82
|
+
<strong class="error text-danger"></strong>
|
83
|
+
</td>
|
84
|
+
<td>
|
85
|
+
<p class="size">Processing...</p>
|
86
|
+
<div class="progress progress-striped active" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="0"><div class="progress-bar progress-bar-success" style="width:0%;"></div></div>
|
87
|
+
</td>
|
88
|
+
<td>
|
89
|
+
{% if (!i && !o.options.autoUpload) { %}
|
90
|
+
<button class="btn btn-primary start" disabled>
|
91
|
+
<i class="glyphicon glyphicon-upload"></i>
|
92
|
+
<span>Start</span>
|
93
|
+
</button>
|
94
|
+
{% } %}
|
95
|
+
{% if (!i) { %}
|
96
|
+
<button class="btn btn-warning cancel">
|
97
|
+
<i class="glyphicon glyphicon-ban-circle"></i>
|
98
|
+
<span>Cancel</span>
|
99
|
+
</button>
|
100
|
+
{% } %}
|
101
|
+
</td>
|
102
|
+
</tr>
|
103
|
+
{% } %}
|
104
|
+
</script>
|
105
|
+
<!-- The template to display files available for download -->
|
106
|
+
<script id="template-download" type="text/x-tmpl">
|
107
|
+
{% for (var i=0, file; file=o.files[i]; i++) { %}
|
108
|
+
<tr class="template-download">
|
109
|
+
<td>
|
110
|
+
<span class="preview">
|
111
|
+
{% if (file.thumbnailUrl) { %}
|
112
|
+
<a href="{%=file.url%}" title="{%=file.name%}" download="{%=file.name%}" data-gallery><img src="{%=file.thumbnailUrl%}"></a>
|
113
|
+
{% } %}
|
114
|
+
</span>
|
115
|
+
</td>
|
116
|
+
<td>
|
117
|
+
<p class="name">
|
118
|
+
{% if (file.url) { %}
|
119
|
+
<a href="{%=file.url%}" title="{%=file.name%}" download="{%=file.name%}" {%=file.thumbnailUrl?'data-gallery':''%}>{%=file.name%}</a>
|
120
|
+
{% } else { %}
|
121
|
+
<span>{%=file.name%}</span>
|
122
|
+
{% } %}
|
123
|
+
</p>
|
124
|
+
{% if (file.error) { %}
|
125
|
+
<div><span class="label label-danger">Error</span> {%=file.error%}</div>
|
126
|
+
{% } %}
|
127
|
+
</td>
|
128
|
+
<td>
|
129
|
+
<span class="size">{%=o.formatFileSize(file.size)%}</span>
|
130
|
+
</td>
|
131
|
+
<td>
|
132
|
+
{% if (file.deleteUrl) { %}
|
133
|
+
<button class="btn btn-danger delete" data-type="{%=file.deleteType%}" data-url="{%=file.deleteUrl%}"{% if (file.deleteWithCredentials) { %} data-xhr-fields='{"withCredentials":true}'{% } %}>
|
134
|
+
<i class="glyphicon glyphicon-trash"></i>
|
135
|
+
<span>Delete</span>
|
136
|
+
</button>
|
137
|
+
<input type="checkbox" name="delete" value="1" class="toggle">
|
138
|
+
{% } else { %}
|
139
|
+
<button class="btn btn-warning cancel">
|
140
|
+
<i class="glyphicon glyphicon-ban-circle"></i>
|
141
|
+
<span>Cancel</span>
|
142
|
+
</button>
|
143
|
+
{% } %}
|
144
|
+
</td>
|
145
|
+
</tr>
|
146
|
+
{% } %}
|
147
|
+
</script>
|
148
|
+
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
|
149
|
+
<script src="../js/vendor/jquery.ui.widget.js"></script>
|
150
|
+
<script src="http://blueimp.github.io/JavaScript-Templates/js/tmpl.min.js"></script>
|
151
|
+
<script src="http://blueimp.github.io/JavaScript-Load-Image/js/load-image.min.js"></script>
|
152
|
+
<script src="http://blueimp.github.io/JavaScript-Canvas-to-Blob/js/canvas-to-blob.min.js"></script>
|
153
|
+
<script src="../js/jquery.iframe-transport.js"></script>
|
154
|
+
<script src="../js/jquery.fileupload.js"></script>
|
155
|
+
<script>window.testBasicWidget = $.blueimp.fileupload;</script>
|
156
|
+
<script src="../js/jquery.fileupload-process.js"></script>
|
157
|
+
<script src="../js/jquery.fileupload-image.js"></script>
|
158
|
+
<script src="../js/jquery.fileupload-audio.js"></script>
|
159
|
+
<script src="../js/jquery.fileupload-video.js"></script>
|
160
|
+
<script src="../js/jquery.fileupload-validate.js"></script>
|
161
|
+
<script src="../js/jquery.fileupload-ui.js"></script>
|
162
|
+
<script>window.testUIWidget = $.blueimp.fileupload;</script>
|
163
|
+
<script src="http://codeorigin.jquery.com/qunit/qunit-1.14.0.js"></script>
|
164
|
+
<script src="test.js"></script>
|
165
|
+
</body>
|
166
|
+
</html>
|