extface 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/extface/jobs_controller.rb +2 -0
- data/lib/extface/routes.rb +3 -1
- data/lib/extface/version.rb +1 -1
- metadata +2 -3
- data/app/assets/stylesheets/scaffold.css +0 -56
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 714c0243acf089e3b0d8578dd2f394596065b6e0
|
4
|
+
data.tar.gz: 6611c382e20b2188646f6e2f3cbf8641dbb24f30
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 12075904cb581e19cd763625b419aa4343a89b79b39a9bd490e74057c0c06d2b1fe105715657f079bf729da0876f87f3a480498f305b51b91977cdc26eef7869
|
7
|
+
data.tar.gz: e5e6dc9737e49882078aab1a19560421bc043619e05cade202d5c59b7b246f11a77f0694e530ed183499dc33dd50ae71f73c60eebf86fae1a4f03f501ae6bc8f
|
@@ -9,6 +9,8 @@ module Extface
|
|
9
9
|
@job = Job.find(params[:id])
|
10
10
|
if @job.completed?
|
11
11
|
response.stream.write("data: Job #{@job.id} completed!\n\n")
|
12
|
+
elsif @job.failed?
|
13
|
+
response.stream.write("data: Job #{@job.id} failed!\n\n")
|
12
14
|
else
|
13
15
|
#redis = Redis.new
|
14
16
|
response.stream.write("data: Job #{@job.id} waiting for device connection...\n\n")
|
data/lib/extface/routes.rb
CHANGED
@@ -2,7 +2,9 @@ module ActionDispatch::Routing
|
|
2
2
|
class Mapper
|
3
3
|
def extface_for(resource, options = {})
|
4
4
|
mapping = Extface.add_mapping(resource, options)
|
5
|
-
mount Extface::Engine, at: mapping.mount_point
|
5
|
+
mount Extface::Engine, at: mapping.mount_point, as: [options[:as],:extface].compact.join('_')
|
6
|
+
get "#{mapping.mount_point}/:device_uuid", to: "extface/handler#pull", as: :extface_device_pull
|
7
|
+
get "#{mapping.mount_point}/jobs/:id", to: "extface/jobs#show", as: :extface_job
|
6
8
|
end
|
7
9
|
end
|
8
10
|
end
|
data/lib/extface/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: extface
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Vangelov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
11
|
+
date: 2014-03-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -86,7 +86,6 @@ files:
|
|
86
86
|
- app/assets/stylesheets/extface/devices.css
|
87
87
|
- app/assets/stylesheets/extface/jobs.css
|
88
88
|
- app/assets/stylesheets/extface/sse.css
|
89
|
-
- app/assets/stylesheets/scaffold.css
|
90
89
|
- app/controllers/extface/application_controller.rb
|
91
90
|
- app/controllers/extface/devices_controller.rb
|
92
91
|
- app/controllers/extface/handler_controller.rb
|
@@ -1,56 +0,0 @@
|
|
1
|
-
body { background-color: #fff; color: #333; }
|
2
|
-
|
3
|
-
body, p, ol, ul, td {
|
4
|
-
font-family: verdana, arial, helvetica, sans-serif;
|
5
|
-
font-size: 13px;
|
6
|
-
line-height: 18px;
|
7
|
-
}
|
8
|
-
|
9
|
-
pre {
|
10
|
-
background-color: #eee;
|
11
|
-
padding: 10px;
|
12
|
-
font-size: 11px;
|
13
|
-
}
|
14
|
-
|
15
|
-
a { color: #000; }
|
16
|
-
a:visited { color: #666; }
|
17
|
-
a:hover { color: #fff; background-color:#000; }
|
18
|
-
|
19
|
-
div.field, div.actions {
|
20
|
-
margin-bottom: 10px;
|
21
|
-
}
|
22
|
-
|
23
|
-
#notice {
|
24
|
-
color: green;
|
25
|
-
}
|
26
|
-
|
27
|
-
.field_with_errors {
|
28
|
-
padding: 2px;
|
29
|
-
background-color: red;
|
30
|
-
display: table;
|
31
|
-
}
|
32
|
-
|
33
|
-
#error_explanation {
|
34
|
-
width: 450px;
|
35
|
-
border: 2px solid red;
|
36
|
-
padding: 7px;
|
37
|
-
padding-bottom: 0;
|
38
|
-
margin-bottom: 20px;
|
39
|
-
background-color: #f0f0f0;
|
40
|
-
}
|
41
|
-
|
42
|
-
#error_explanation h2 {
|
43
|
-
text-align: left;
|
44
|
-
font-weight: bold;
|
45
|
-
padding: 5px 5px 5px 15px;
|
46
|
-
font-size: 12px;
|
47
|
-
margin: -7px;
|
48
|
-
margin-bottom: 0px;
|
49
|
-
background-color: #c00;
|
50
|
-
color: #fff;
|
51
|
-
}
|
52
|
-
|
53
|
-
#error_explanation ul li {
|
54
|
-
font-size: 12px;
|
55
|
-
list-style: square;
|
56
|
-
}
|