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: 180577d1189952b25cbcecf2a7ba1144116d2c41
4
- data.tar.gz: 013a7a6dbaac918ef25e2d3607e9d7cc89efb45e
3
+ metadata.gz: 3b771227ebc077ba4d30cb7bcce47a2bdb0d7d14
4
+ data.tar.gz: aa4dc8592a04fd1b83df3157854ad3b0dc8f34e3
5
5
  SHA512:
6
- metadata.gz: c0328a020bf3a3c59d649be271d92e3a2a6661ae0e654255e323c2fb5e6a3e18fbc425c48a905a8c1b84971c1251a393e51135c049d2b3192b2fa2f23307bcb7
7
- data.tar.gz: 3b42ec7c4feef47bb5005b338a56f4bb45e094919d97b00f822a66987cc7f749d65ad4912a42384bf7bece3acba7dc187a68ec184b3b976ec29b6c0a1273972b
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.501.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.26)
41
+ aws-sdk-core (2.6.27)
42
42
  aws-sigv4 (~> 1.0)
43
43
  jmespath (~> 1.0)
44
- aws-sdk-resources (2.6.26)
45
- aws-sdk-core (= 2.6.26)
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.4)
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
- # sprintf(
116
- # '<div class="transfer-type label label-%s" title="%s">%s</div>',
117
- # location_style(loc.uri),
118
- # loc.to_s,
119
- # loc.uri.class.name.split('::').last
120
- # )
121
- sprintf(
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.to_s,
129
- loc.uri.class.name.split('::').last,
130
- loc.tokens.first,
131
- loc.tokens.first,
123
+ loc.uri
132
124
  )
133
- end
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
- # def token_highlight path
136
- # return unless path.is_a? String
137
- # path.gsub(/\[([^\[]+)\]/, token_to_label('\1'))
138
- # end
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?
@@ -30,7 +30,7 @@ module RestFtpDaemon
30
30
  # end
31
31
  debug nil
32
32
 
33
- @url = url
33
+ @url = url.clone
34
34
  debug :url, url
35
35
  @tokens = []
36
36
 
@@ -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
- /*width: 40px;*/
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
- =# token_highlight job.target
38
+ %td= location_label(job.target_loc)
46
39
 
47
40
  %td
48
41
  %span.push-status
@@ -2,7 +2,7 @@
2
2
  Gem::Specification.new do |spec|
3
3
 
4
4
  # Project version
5
- spec.version = "0.501.0"
5
+ spec.version = "0.502.0"
6
6
 
7
7
  # Project description
8
8
  spec.name = "rest-ftp-daemon"
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.501.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-21 00:00:00.000000000 Z
11
+ date: 2016-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler