rest-ftp-daemon 0.501.0 → 0.502.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b771227ebc077ba4d30cb7bcce47a2bdb0d7d14
|
4
|
+
data.tar.gz: aa4dc8592a04fd1b83df3157854ad3b0dc8f34e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d26f7e76b9ab1f527d4efa5131ec43cc91837a7c60d9fa61661136b12338b4fcbdbe672d4f3b8352e21cd23457de454285ddb04516fa7d75c7b660b8769961e
|
7
|
+
data.tar.gz: 4f4937aaaceb79504b2ef05f8952acf4c47327ad8e7af22520c8ef0d4e7e56143d1424755fcb0d9b0dcd0cb33bf28cc555280513c9690c9e58801832b940ac4d
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rest-ftp-daemon (0.
|
4
|
+
rest-ftp-daemon (0.502.0)
|
5
5
|
activesupport (~> 4.2)
|
6
6
|
api-auth
|
7
7
|
aws-sdk-resources (~> 2)
|
@@ -38,11 +38,11 @@ GEM
|
|
38
38
|
public_suffix (~> 2.0, >= 2.0.2)
|
39
39
|
api-auth (2.0.1)
|
40
40
|
ast (2.3.0)
|
41
|
-
aws-sdk-core (2.6.
|
41
|
+
aws-sdk-core (2.6.27)
|
42
42
|
aws-sigv4 (~> 1.0)
|
43
43
|
jmespath (~> 1.0)
|
44
|
-
aws-sdk-resources (2.6.
|
45
|
-
aws-sdk-core (= 2.6.
|
44
|
+
aws-sdk-resources (2.6.27)
|
45
|
+
aws-sdk-core (= 2.6.27)
|
46
46
|
aws-sigv4 (1.0.0)
|
47
47
|
axiom-types (0.1.1)
|
48
48
|
descendants_tracker (~> 0.0.4)
|
@@ -87,7 +87,7 @@ GEM
|
|
87
87
|
multi_json (>= 1.3.2)
|
88
88
|
grape-swagger (0.25.0)
|
89
89
|
grape (>= 0.12.0)
|
90
|
-
grape-swagger-entity (0.1.
|
90
|
+
grape-swagger-entity (0.1.5)
|
91
91
|
grape-entity
|
92
92
|
grape-swagger (>= 0.20.4)
|
93
93
|
grape-swagger-representable (0.1.3)
|
@@ -112,30 +112,40 @@ module RestFtpDaemon
|
|
112
112
|
end
|
113
113
|
|
114
114
|
def location_label loc
|
115
|
-
#
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
#
|
120
|
-
|
121
|
-
|
122
|
-
'
|
123
|
-
<span class="label-group">
|
124
|
-
<span class="transfer-type label label-xs label-%s" title="%s">%s</span><span class="label label-simple" title="%s">%s</span>
|
125
|
-
</span>
|
126
|
-
',
|
115
|
+
# Open label-group
|
116
|
+
out = []
|
117
|
+
out << '<span class="label-group">'
|
118
|
+
|
119
|
+
# Add location style
|
120
|
+
out << sprintf(
|
121
|
+
'<span class="transfer-type label label-xs label-%s" title="%s">',
|
127
122
|
location_style(loc.uri),
|
128
|
-
loc.
|
129
|
-
loc.uri.class.name.split('::').last,
|
130
|
-
loc.tokens.first,
|
131
|
-
loc.tokens.first,
|
123
|
+
loc.uri
|
132
124
|
)
|
133
|
-
|
125
|
+
out << loc.uri.class.name.split('::').last
|
126
|
+
out << '</span>'
|
127
|
+
|
128
|
+
# Try to match a prefix token
|
129
|
+
matches = /^\[([^\[]+)\](.*)/.match(loc.url)
|
130
|
+
|
131
|
+
# Add a prefix label, if matched
|
132
|
+
if matches
|
133
|
+
out <<'<span class="transfer-prefix label label-xs label-simple">'
|
134
|
+
out << matches[1]
|
135
|
+
out << '</span>'
|
136
|
+
text = matches[2]
|
137
|
+
else
|
138
|
+
text = loc.path
|
139
|
+
end
|
134
140
|
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
141
|
+
# Add remaining stuff
|
142
|
+
out << '</span>'
|
143
|
+
out << ' '
|
144
|
+
out << text
|
145
|
+
|
146
|
+
# Output all that stuff
|
147
|
+
return out.join()
|
148
|
+
end
|
139
149
|
|
140
150
|
def text_or_empty text
|
141
151
|
return "-" if text.nil? || text.empty?
|
@@ -175,6 +175,7 @@ body {
|
|
175
175
|
color: black;
|
176
176
|
border: 1px solid silver;
|
177
177
|
background-color: white;
|
178
|
+
|
178
179
|
}
|
179
180
|
/*
|
180
181
|
.label-group>.label:first-child:not(:last-child) {
|
@@ -189,6 +190,10 @@ body {
|
|
189
190
|
*/
|
190
191
|
|
191
192
|
.transfer-type {
|
192
|
-
|
193
|
+
width: 40px;
|
193
194
|
}
|
194
195
|
|
196
|
+
.transfer-prefix {
|
197
|
+
/*color: red;*/
|
198
|
+
font-family: inherit;
|
199
|
+
}
|
@@ -33,16 +33,9 @@
|
|
33
33
|
|
34
34
|
%td= job.label
|
35
35
|
|
36
|
-
%td
|
37
|
-
= location_label job.source_loc
|
38
|
-
= job.source_uri.path
|
39
|
-
=# token_highlight job.source
|
40
|
-
|
41
|
-
%td
|
42
|
-
= location_label job.target_loc
|
43
|
-
= job.target_uri.path
|
36
|
+
%td= location_label(job.source_loc)
|
44
37
|
|
45
|
-
|
38
|
+
%td= location_label(job.target_loc)
|
46
39
|
|
47
40
|
%td
|
48
41
|
%span.push-status
|
data/rest-ftp-daemon.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rest-ftp-daemon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.502.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bruno MEDICI
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-11-
|
11
|
+
date: 2016-11-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|