skylight-core 4.1.1.beta → 4.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f6111844bd4aded508831231401f042bf95d7500c40e4d65133f8a9ff3f5cbbe
|
4
|
+
data.tar.gz: 67a945de9d98815f76f193f675dfbc4a7f175b9edab87d3a7b7867d01cd83c50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a1413dcaccc572122c1644c961356266e6fa22a9a6b3982663e16d7b67cb9382d2e5ca7e6304799009f5cf36e0f120c45beb350687fc1db4747bf69890c90e4
|
7
|
+
data.tar.gz: 5452f8fd0b791de5fda31acf9375d1b7dbde4a9f6bc4c57b489eaf11deab349117844f02451680200227566be0291ef43ff33d19751bf840829b44aa25ec32e7
|
@@ -2,7 +2,17 @@ module Skylight::Core
|
|
2
2
|
module Normalizers
|
3
3
|
module Coach
|
4
4
|
class HandlerFinish < Normalizer
|
5
|
-
|
5
|
+
begin
|
6
|
+
require "coach/version"
|
7
|
+
version = Gem::Version.new(::Coach::VERSION)
|
8
|
+
rescue LoadError # rubocop:disable Lint/HandleExceptions
|
9
|
+
end
|
10
|
+
|
11
|
+
if version && version < Gem::Version.new("1.0")
|
12
|
+
register "coach.handler.finish"
|
13
|
+
else
|
14
|
+
register "finish_handler.coach"
|
15
|
+
end
|
6
16
|
|
7
17
|
CAT = "app.coach.handler".freeze
|
8
18
|
|
@@ -2,7 +2,17 @@ module Skylight::Core
|
|
2
2
|
module Normalizers
|
3
3
|
module Coach
|
4
4
|
class MiddlewareFinish < Normalizer
|
5
|
-
|
5
|
+
begin
|
6
|
+
require "coach/version"
|
7
|
+
version = Gem::Version.new(::Coach::VERSION)
|
8
|
+
rescue LoadError # rubocop:disable Lint/HandleExceptions
|
9
|
+
end
|
10
|
+
|
11
|
+
if version && version < Gem::Version.new("1.0")
|
12
|
+
register "coach.middleware.finish"
|
13
|
+
else
|
14
|
+
register "finish_middleware.coach"
|
15
|
+
end
|
6
16
|
|
7
17
|
CAT = "app.coach.middleware".freeze
|
8
18
|
|
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: 4.1.1
|
4
|
+
version: 4.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tilde, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-06-
|
11
|
+
date: 2019-06-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -245,7 +245,6 @@ files:
|
|
245
245
|
- lib/skylight/core/util/gzip.rb
|
246
246
|
- lib/skylight/core/util/inflector.rb
|
247
247
|
- lib/skylight/core/util/logging.rb
|
248
|
-
- lib/skylight/core/util/platform.rb
|
249
248
|
- lib/skylight/core/util/proxy.rb
|
250
249
|
- lib/skylight/core/version.rb
|
251
250
|
- lib/skylight/core/vm/gc.rb
|
@@ -264,9 +263,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
264
263
|
version: '2.3'
|
265
264
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
266
265
|
requirements:
|
267
|
-
- - "
|
266
|
+
- - ">="
|
268
267
|
- !ruby/object:Gem::Version
|
269
|
-
version:
|
268
|
+
version: '0'
|
270
269
|
requirements: []
|
271
270
|
rubygems_version: 3.0.3
|
272
271
|
signing_key:
|
@@ -1,80 +0,0 @@
|
|
1
|
-
require "rbconfig"
|
2
|
-
|
3
|
-
# Used from extconf and to load libskylight
|
4
|
-
module Skylight
|
5
|
-
module Core
|
6
|
-
module Util
|
7
|
-
module Platform
|
8
|
-
# Normalize the platform OS
|
9
|
-
OS =
|
10
|
-
case os = RbConfig::CONFIG["host_os"].downcase
|
11
|
-
when /linux/
|
12
|
-
# The official ruby-alpine Docker containers pre-build Ruby. As a result,
|
13
|
-
# Ruby doesn't know that it's on a musl-based platform. `ldd` is the
|
14
|
-
# only reliable way to detect musl that we've found.
|
15
|
-
# See https://github.com/skylightio/skylight-ruby/issues/92
|
16
|
-
if ENV["SKYLIGHT_MUSL"] || `ldd --version 2>&1` =~ /musl/
|
17
|
-
"linux-musl"
|
18
|
-
else
|
19
|
-
"linux"
|
20
|
-
end
|
21
|
-
when /darwin/
|
22
|
-
"darwin"
|
23
|
-
when /freebsd/
|
24
|
-
"freebsd"
|
25
|
-
when /netbsd/
|
26
|
-
"netbsd"
|
27
|
-
when /openbsd/
|
28
|
-
"openbsd"
|
29
|
-
when /sunos|solaris/
|
30
|
-
"solaris"
|
31
|
-
when /mingw|mswin/
|
32
|
-
"windows"
|
33
|
-
else
|
34
|
-
os
|
35
|
-
end
|
36
|
-
|
37
|
-
# Normalize the platform CPU
|
38
|
-
ARCH =
|
39
|
-
case cpu = RbConfig::CONFIG["host_cpu"].downcase
|
40
|
-
when /amd64|x86_64/
|
41
|
-
"x86_64"
|
42
|
-
when /i?86|x86|i86pc/
|
43
|
-
"x86"
|
44
|
-
when /ppc|powerpc/
|
45
|
-
"powerpc"
|
46
|
-
when /^arm/
|
47
|
-
"arm"
|
48
|
-
else
|
49
|
-
cpu
|
50
|
-
end
|
51
|
-
|
52
|
-
LIBEXT =
|
53
|
-
case OS
|
54
|
-
when /darwin/
|
55
|
-
"dylib"
|
56
|
-
when /linux|bsd|solaris/
|
57
|
-
"so"
|
58
|
-
when /windows|cygwin/
|
59
|
-
"dll"
|
60
|
-
else
|
61
|
-
"so"
|
62
|
-
end
|
63
|
-
|
64
|
-
TUPLE = "#{ARCH}-#{OS}".freeze
|
65
|
-
|
66
|
-
def self.tuple
|
67
|
-
TUPLE
|
68
|
-
end
|
69
|
-
|
70
|
-
def self.libext
|
71
|
-
LIBEXT
|
72
|
-
end
|
73
|
-
|
74
|
-
def self.dlext
|
75
|
-
RbConfig::CONFIG["DLEXT"]
|
76
|
-
end
|
77
|
-
end
|
78
|
-
end
|
79
|
-
end
|
80
|
-
end
|