hushed 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/hushed.gemspec +1 -0
- data/lib/hushed/client.rb +8 -0
- data/lib/hushed/version.rb +1 -1
- data/lib/hushed/web.rb +49 -0
- data/web/assets/bootstrap/css/bootstrap-docs.css +1067 -0
- data/web/assets/bootstrap/css/bootstrap-responsive.css +1109 -0
- data/web/assets/bootstrap/css/bootstrap.css +6167 -0
- data/web/assets/bootstrap/css/prettify.css +30 -0
- data/web/assets/bootstrap/img/glyphicons-halflings-white.png +0 -0
- data/web/assets/bootstrap/img/glyphicons-halflings.png +0 -0
- data/web/assets/bootstrap/js/application.js +156 -0
- data/web/assets/bootstrap/js/google-code-prettify/prettify.js +28 -0
- data/web/assets/bootstrap/js/holder.js +401 -0
- data/web/assets/images/demo/browser-2x.png +0 -0
- data/web/assets/images/demo/browser-author.jpg +0 -0
- data/web/assets/images/demo/browser-pic-1.jpg +0 -0
- data/web/assets/images/demo/browser-pic-2.jpg +0 -0
- data/web/assets/images/demo/browser-pic-3.jpg +0 -0
- data/web/assets/images/demo/browser-pic-4.jpg +0 -0
- data/web/assets/images/demo/browser-pic-5.jpg +0 -0
- data/web/assets/images/demo/browser-pic-6.jpg +0 -0
- data/web/assets/images/demo/browser.png +0 -0
- data/web/assets/images/demo/html-icon.png +0 -0
- data/web/assets/images/demo/logo-mask-2x.png +0 -0
- data/web/assets/images/demo/logo-mask.png +0 -0
- data/web/assets/images/demo/video.jpg +0 -0
- data/web/assets/images/favicon.ico +0 -0
- data/web/assets/images/footer/logo.png +0 -0
- data/web/assets/images/icons/Book@2x.png +0 -0
- data/web/assets/images/icons/Calendar@2x.png +0 -0
- data/web/assets/images/icons/Chat@2x.png +0 -0
- data/web/assets/images/icons/Clipboard@2x.png +0 -0
- data/web/assets/images/icons/Compas@2x.png +0 -0
- data/web/assets/images/icons/Gift-Box@2x.png +0 -0
- data/web/assets/images/icons/Infinity-Loop@2x.png +0 -0
- data/web/assets/images/icons/Mail@2x.png +0 -0
- data/web/assets/images/icons/Map@2x.png +0 -0
- data/web/assets/images/icons/Pensils@2x.png +0 -0
- data/web/assets/images/icons/Pocket@2x.png +0 -0
- data/web/assets/images/icons/Retina-Ready@2x.png +0 -0
- data/web/assets/images/icons/Toilet-Paper@2x.png +0 -0
- data/web/assets/images/icons/Watches@2x.png +0 -0
- data/web/assets/images/login/icon.png +0 -0
- data/web/assets/images/login/imac-2x.png +0 -0
- data/web/assets/images/login/imac.png +0 -0
- data/web/assets/images/switch/mask-square.png +0 -0
- data/web/assets/images/switch/mask.png +0 -0
- data/web/assets/images/tile/ribbon-2x.png +0 -0
- data/web/assets/images/tile/ribbon.png +0 -0
- data/web/assets/images/todo/done-2x.png +0 -0
- data/web/assets/images/todo/done.png +0 -0
- data/web/assets/images/todo/search-2x.png +0 -0
- data/web/assets/images/todo/search.png +0 -0
- data/web/assets/images/todo/todo-2x.png +0 -0
- data/web/assets/images/todo/todo.png +0 -0
- data/web/assets/images/video/fullscreen-2x.png +0 -0
- data/web/assets/images/video/fullscreen.png +0 -0
- data/web/assets/images/video/pause-2x.png +0 -0
- data/web/assets/images/video/pause.png +0 -0
- data/web/assets/images/video/play-2x.png +0 -0
- data/web/assets/images/video/play.png +0 -0
- data/web/assets/images/video/poster.jpg +0 -0
- data/web/assets/images/video/volume-full-2x.png +0 -0
- data/web/assets/images/video/volume-full.png +0 -0
- data/web/assets/images/video/volume-off-2x.png +0 -0
- data/web/assets/images/video/volume-off.png +0 -0
- data/web/assets/javascripts/application.js +68 -0
- data/web/assets/javascripts/bootstrap-select.js +412 -0
- data/web/assets/javascripts/bootstrap-switch.js +251 -0
- data/web/assets/javascripts/bootstrap.min.js +7 -0
- data/web/assets/javascripts/flatui-checkbox.js +112 -0
- data/web/assets/javascripts/flatui-radio.js +141 -0
- data/web/assets/javascripts/html5shiv.js +8 -0
- data/web/assets/javascripts/icon-font-ie7.js +57 -0
- data/web/assets/javascripts/jquery-1.8.3.min.js +2 -0
- data/web/assets/javascripts/jquery-ui-1.10.3.custom.min.js +6 -0
- data/web/assets/javascripts/jquery.placeholder.js +157 -0
- data/web/assets/javascripts/jquery.stacktable.js +54 -0
- data/web/assets/javascripts/jquery.tagsinput.js +355 -0
- data/web/assets/javascripts/jquery.ui.touch-punch.min.js +11 -0
- data/web/assets/stylesheets/flat-ui.css +3865 -0
- data/web/views/blackboard_contents.erb +31 -0
- data/web/views/blackboards.erb +14 -0
- data/web/views/dashboard.erb +11 -0
- data/web/views/layout.erb +48 -0
- data/web/views/queues.erb +22 -0
- metadata +103 -4
@@ -0,0 +1,31 @@
|
|
1
|
+
<div class="row">
|
2
|
+
<div class="span12 center">
|
3
|
+
<% if @blackboard.objects.count > 0 %>
|
4
|
+
<h1>Listing contents of <%= @blackboard.name %></h1>
|
5
|
+
|
6
|
+
<table>
|
7
|
+
<thead>
|
8
|
+
<th>File Name</th>
|
9
|
+
<th>File Size</th>
|
10
|
+
<th>Last Modified</th>
|
11
|
+
<th>Public URL</th>
|
12
|
+
</thead>
|
13
|
+
<tbody>
|
14
|
+
<% @blackboard.objects.each do |object| %>
|
15
|
+
<tr>
|
16
|
+
<td><%= object.key %></td>
|
17
|
+
<td><%= object.content_length %></td>
|
18
|
+
<td><%= object.last_modified %></td>
|
19
|
+
<td><a href="<%= object.public_url %>" target="blank">View on Amazon</a></td>
|
20
|
+
</tr>
|
21
|
+
<% end %>
|
22
|
+
</tbody>
|
23
|
+
</table>
|
24
|
+
<% else %>
|
25
|
+
<div class="hero-unit palette palette-alizarin text-center">
|
26
|
+
<h1><%= @blackboard.name %></h1>
|
27
|
+
<p>It appears that nothing has been stored in this bucket yet</p>
|
28
|
+
</div>
|
29
|
+
<% end %>
|
30
|
+
</div>
|
31
|
+
</div>
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<h3>Buckets</h3>
|
2
|
+
|
3
|
+
<table class="buckets table">
|
4
|
+
<thead>
|
5
|
+
<th>Name</th>
|
6
|
+
<th># of Documents</th>
|
7
|
+
</thead>
|
8
|
+
<% @blackboards.each do |blackboard| %>
|
9
|
+
<tr>
|
10
|
+
<td><a href="/blackboards/<%= blackboard.name %>"><%= blackboard.name %></a></td>
|
11
|
+
<td><%= blackboard.objects.count %></td>
|
12
|
+
</tr>
|
13
|
+
<% end %>
|
14
|
+
</table>
|
@@ -0,0 +1,48 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<title>Hushed Web</title>
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
7
|
+
|
8
|
+
<!-- Loading Bootstrap -->
|
9
|
+
<link href="/bootstrap/css/bootstrap.css" rel="stylesheet">
|
10
|
+
|
11
|
+
<!-- Loading Flat UI -->
|
12
|
+
<link href="/stylesheets/flat-ui.css" rel="stylesheet">
|
13
|
+
|
14
|
+
<link rel="shortcut icon" href="images/favicon.ico">
|
15
|
+
|
16
|
+
<!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
|
17
|
+
<!--[if lt IE 9]>
|
18
|
+
<script src="js/html5shiv.js"></script>
|
19
|
+
<![endif]-->
|
20
|
+
</head>
|
21
|
+
<body class="">
|
22
|
+
<div class="container">
|
23
|
+
<div class="navbar navbar-fixed-top">
|
24
|
+
<div class="navbar-inner">
|
25
|
+
<a href="/" class="brand">Hushed Web</a></li>
|
26
|
+
</div>
|
27
|
+
</div>
|
28
|
+
<div style="margin-top: 100px;">
|
29
|
+
<%= yield %>
|
30
|
+
</div>
|
31
|
+
</div>
|
32
|
+
|
33
|
+
<!-- Load JS here for greater good =============================-->
|
34
|
+
<script src="/javascripts/jquery-1.8.3.min.js"></script>
|
35
|
+
<script src="/javascripts/jquery-ui-1.10.3.custom.min.js"></script>
|
36
|
+
<script src="/javascripts/jquery.ui.touch-punch.min.js"></script>
|
37
|
+
<script src="/javascripts/bootstrap.min.js"></script>
|
38
|
+
<script src="/javascripts/bootstrap-select.js"></script>
|
39
|
+
<script src="/javascripts/bootstrap-switch.js"></script>
|
40
|
+
<script src="/javascripts/flatui-checkbox.js"></script>
|
41
|
+
<script src="/javascripts/flatui-radio.js"></script>
|
42
|
+
<script src="/javascripts/jquery.tagsinput.js"></script>
|
43
|
+
<script src="/javascripts/jquery.placeholder.js"></script>
|
44
|
+
<script src="/javascripts/jquery.stacktable.js"></script>
|
45
|
+
<script src="http://vjs.zencdn.net/c/video.js"></script>
|
46
|
+
<script src="/javascripts/application.js"></script>
|
47
|
+
</body>
|
48
|
+
</html>
|
@@ -0,0 +1,22 @@
|
|
1
|
+
<h3>Queues</h3>
|
2
|
+
|
3
|
+
<table class="queues table">
|
4
|
+
<thead>
|
5
|
+
<th>URL</th>
|
6
|
+
<th>Approximate Messages</th>
|
7
|
+
<th>Visibility Timeout</th>
|
8
|
+
<th>Message Retention Timeout</th>
|
9
|
+
<th>Messages Not Visible</th>
|
10
|
+
</thead>
|
11
|
+
<tbody>
|
12
|
+
<% @queues.each do |queue| %>
|
13
|
+
<tr>
|
14
|
+
<td><%= queue.url %></td>
|
15
|
+
<td><%= queue.approximate_number_of_messages %></td>
|
16
|
+
<td><%= humanize_duration(queue.visibility_timeout) %></td>
|
17
|
+
<td><%= humanize_duration(queue.message_retention_period) %></td>
|
18
|
+
<td><%= queue.approximate_number_of_messages_not_visible %></td>
|
19
|
+
</tr>
|
20
|
+
<% end %>
|
21
|
+
</tbody>
|
22
|
+
</table>
|
metadata
CHANGED
@@ -2,14 +2,14 @@
|
|
2
2
|
name: hushed
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0.
|
5
|
+
version: 0.0.7
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Chris Saunders
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-07-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
prerelease: false
|
@@ -123,6 +123,22 @@ dependencies:
|
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
125
|
none: false
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
prerelease: false
|
128
|
+
name: sinatra
|
129
|
+
type: :development
|
130
|
+
version_requirements: !ruby/object:Gem::Requirement
|
131
|
+
requirements:
|
132
|
+
- - ! '>='
|
133
|
+
- !ruby/object:Gem::Version
|
134
|
+
version: '0'
|
135
|
+
none: false
|
136
|
+
requirement: !ruby/object:Gem::Requirement
|
137
|
+
requirements:
|
138
|
+
- - ! '>='
|
139
|
+
- !ruby/object:Gem::Version
|
140
|
+
version: '0'
|
141
|
+
none: false
|
126
142
|
description: API Client for Quiet Logistics Services
|
127
143
|
email:
|
128
144
|
- chris.saunders@shopify.com
|
@@ -147,6 +163,7 @@ files:
|
|
147
163
|
- lib/hushed/request.rb
|
148
164
|
- lib/hushed/response.rb
|
149
165
|
- lib/hushed/version.rb
|
166
|
+
- lib/hushed/web.rb
|
150
167
|
- spec/fixtures/credentials.yml
|
151
168
|
- spec/fixtures/documents/responses/shipment_order_result.xml
|
152
169
|
- spec/fixtures/messages/purchase_order_message.xml
|
@@ -160,6 +177,88 @@ files:
|
|
160
177
|
- spec/unit/documents/response/shipment_order_result_spec.rb
|
161
178
|
- spec/unit/message_spec.rb
|
162
179
|
- spec/unit/queue_spec.rb
|
180
|
+
- web/assets/bootstrap/css/bootstrap-docs.css
|
181
|
+
- web/assets/bootstrap/css/bootstrap-responsive.css
|
182
|
+
- web/assets/bootstrap/css/bootstrap.css
|
183
|
+
- web/assets/bootstrap/css/prettify.css
|
184
|
+
- web/assets/bootstrap/img/glyphicons-halflings-white.png
|
185
|
+
- web/assets/bootstrap/img/glyphicons-halflings.png
|
186
|
+
- web/assets/bootstrap/js/application.js
|
187
|
+
- web/assets/bootstrap/js/google-code-prettify/prettify.js
|
188
|
+
- web/assets/bootstrap/js/holder.js
|
189
|
+
- web/assets/images/demo/browser-2x.png
|
190
|
+
- web/assets/images/demo/browser-author.jpg
|
191
|
+
- web/assets/images/demo/browser-pic-1.jpg
|
192
|
+
- web/assets/images/demo/browser-pic-2.jpg
|
193
|
+
- web/assets/images/demo/browser-pic-3.jpg
|
194
|
+
- web/assets/images/demo/browser-pic-4.jpg
|
195
|
+
- web/assets/images/demo/browser-pic-5.jpg
|
196
|
+
- web/assets/images/demo/browser-pic-6.jpg
|
197
|
+
- web/assets/images/demo/browser.png
|
198
|
+
- web/assets/images/demo/html-icon.png
|
199
|
+
- web/assets/images/demo/logo-mask-2x.png
|
200
|
+
- web/assets/images/demo/logo-mask.png
|
201
|
+
- web/assets/images/demo/video.jpg
|
202
|
+
- web/assets/images/favicon.ico
|
203
|
+
- web/assets/images/footer/logo.png
|
204
|
+
- web/assets/images/icons/Book@2x.png
|
205
|
+
- web/assets/images/icons/Calendar@2x.png
|
206
|
+
- web/assets/images/icons/Chat@2x.png
|
207
|
+
- web/assets/images/icons/Clipboard@2x.png
|
208
|
+
- web/assets/images/icons/Compas@2x.png
|
209
|
+
- web/assets/images/icons/Gift-Box@2x.png
|
210
|
+
- web/assets/images/icons/Infinity-Loop@2x.png
|
211
|
+
- web/assets/images/icons/Mail@2x.png
|
212
|
+
- web/assets/images/icons/Map@2x.png
|
213
|
+
- web/assets/images/icons/Pensils@2x.png
|
214
|
+
- web/assets/images/icons/Pocket@2x.png
|
215
|
+
- web/assets/images/icons/Retina-Ready@2x.png
|
216
|
+
- web/assets/images/icons/Toilet-Paper@2x.png
|
217
|
+
- web/assets/images/icons/Watches@2x.png
|
218
|
+
- web/assets/images/login/icon.png
|
219
|
+
- web/assets/images/login/imac-2x.png
|
220
|
+
- web/assets/images/login/imac.png
|
221
|
+
- web/assets/images/switch/mask-square.png
|
222
|
+
- web/assets/images/switch/mask.png
|
223
|
+
- web/assets/images/tile/ribbon-2x.png
|
224
|
+
- web/assets/images/tile/ribbon.png
|
225
|
+
- web/assets/images/todo/done-2x.png
|
226
|
+
- web/assets/images/todo/done.png
|
227
|
+
- web/assets/images/todo/search-2x.png
|
228
|
+
- web/assets/images/todo/search.png
|
229
|
+
- web/assets/images/todo/todo-2x.png
|
230
|
+
- web/assets/images/todo/todo.png
|
231
|
+
- web/assets/images/video/fullscreen-2x.png
|
232
|
+
- web/assets/images/video/fullscreen.png
|
233
|
+
- web/assets/images/video/pause-2x.png
|
234
|
+
- web/assets/images/video/pause.png
|
235
|
+
- web/assets/images/video/play-2x.png
|
236
|
+
- web/assets/images/video/play.png
|
237
|
+
- web/assets/images/video/poster.jpg
|
238
|
+
- web/assets/images/video/volume-full-2x.png
|
239
|
+
- web/assets/images/video/volume-full.png
|
240
|
+
- web/assets/images/video/volume-off-2x.png
|
241
|
+
- web/assets/images/video/volume-off.png
|
242
|
+
- web/assets/javascripts/application.js
|
243
|
+
- web/assets/javascripts/bootstrap-select.js
|
244
|
+
- web/assets/javascripts/bootstrap-switch.js
|
245
|
+
- web/assets/javascripts/bootstrap.min.js
|
246
|
+
- web/assets/javascripts/flatui-checkbox.js
|
247
|
+
- web/assets/javascripts/flatui-radio.js
|
248
|
+
- web/assets/javascripts/html5shiv.js
|
249
|
+
- web/assets/javascripts/icon-font-ie7.js
|
250
|
+
- web/assets/javascripts/jquery-1.8.3.min.js
|
251
|
+
- web/assets/javascripts/jquery-ui-1.10.3.custom.min.js
|
252
|
+
- web/assets/javascripts/jquery.placeholder.js
|
253
|
+
- web/assets/javascripts/jquery.stacktable.js
|
254
|
+
- web/assets/javascripts/jquery.tagsinput.js
|
255
|
+
- web/assets/javascripts/jquery.ui.touch-punch.min.js
|
256
|
+
- web/assets/stylesheets/flat-ui.css
|
257
|
+
- web/views/blackboard_contents.erb
|
258
|
+
- web/views/blackboards.erb
|
259
|
+
- web/views/dashboard.erb
|
260
|
+
- web/views/layout.erb
|
261
|
+
- web/views/queues.erb
|
163
262
|
homepage: http://github.com/csaunders/hushed
|
164
263
|
licenses:
|
165
264
|
- MIT
|
@@ -173,7 +272,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
173
272
|
- !ruby/object:Gem::Version
|
174
273
|
segments:
|
175
274
|
- 0
|
176
|
-
hash:
|
275
|
+
hash: 4146006481198685440
|
177
276
|
version: '0'
|
178
277
|
none: false
|
179
278
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
@@ -182,7 +281,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
182
281
|
- !ruby/object:Gem::Version
|
183
282
|
segments:
|
184
283
|
- 0
|
185
|
-
hash:
|
284
|
+
hash: 4146006481198685440
|
186
285
|
version: '0'
|
187
286
|
none: false
|
188
287
|
requirements: []
|