skylight-core 3.1.1 → 3.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/skylight/core/normalizers/grape/endpoint_run.rb +10 -1
- data/lib/skylight/core/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7c8b97bbd11a1adb9d3fac9c89639499ba5d3db37e5b85cfd4df2bd617c00fd7
|
4
|
+
data.tar.gz: 7b956cc8855dfb4035b7e8332b1b9f9d364cb685c3cb32b95c501bfe9b09e539
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b8cd49554a693249c296f52f6c7aaf145949aa7cf355d9521efdab48b23f82b25b72f0ecd3b54652100d5050b2a9f0cd1ca5a34a64826452181acffc2f1268bc
|
7
|
+
data.tar.gz: b69dd825f542b7ad13aa7755edd153a9e453964c995366eaffc264c0cfb019597759702cdbe695bc6059401064a61beb6cbed131e4e3d6b889f10e7ec521a8c2
|
@@ -24,7 +24,16 @@ module Skylight::Core
|
|
24
24
|
path = "#{namespace}#{path}"
|
25
25
|
end
|
26
26
|
|
27
|
-
"#{endpoint
|
27
|
+
"#{base_app_name(endpoint)} [#{method}] #{path}".strip
|
28
|
+
end
|
29
|
+
|
30
|
+
def base_app_name(endpoint)
|
31
|
+
ep = endpoint.options[:for]
|
32
|
+
return ep.name if ep.name
|
33
|
+
|
34
|
+
if ep.respond_to?(:base) && ep.base.respond_to?(:name)
|
35
|
+
ep.base.name
|
36
|
+
end
|
28
37
|
end
|
29
38
|
|
30
39
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: skylight-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tilde, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|