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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 625d77b74d21abe05a9ba46978762d0bcc251aade8db101e5512cd20e78114f0
4
- data.tar.gz: fe81927f9151831f66f1bcd7e43047139174eb4adc91af7ec02eb27e47d7971f
3
+ metadata.gz: 7c8b97bbd11a1adb9d3fac9c89639499ba5d3db37e5b85cfd4df2bd617c00fd7
4
+ data.tar.gz: 7b956cc8855dfb4035b7e8332b1b9f9d364cb685c3cb32b95c501bfe9b09e539
5
5
  SHA512:
6
- metadata.gz: 9419471b9a8812a80087df41ea7ac31627bca59bed7467d4440efe3740c94e94c2fd592fbd32a20a18fd501c86f2c181957673347120202a8ffca35d2141f192
7
- data.tar.gz: f7983337843514b011729a252652223173460a050dcfb0bfcdb920a48dfe25b81ece14a90951531c579f7329a9bdab53bee43fc6db52b5f3cadf72d3a37542ef
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.options[:for]} [#{method}] #{path}"
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
@@ -1,6 +1,6 @@
1
1
  module Skylight
2
2
  module Core
3
- VERSION = '3.1.1'
3
+ VERSION = '3.1.2'
4
4
  end
5
5
  end
6
6
 
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.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-10-25 00:00:00.000000000 Z
11
+ date: 2018-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport