skylight-core 4.1.1.beta → 4.1.1

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: ce4d566f74318b4c55a197c2b898c75f5290272f4c494cf50e3c17e7209acf36
4
- data.tar.gz: f3fbc95a7e8dbea8b26d5b34fa4088e237da85ed2d54a71a5baea4dc19ddd4ad
3
+ metadata.gz: f6111844bd4aded508831231401f042bf95d7500c40e4d65133f8a9ff3f5cbbe
4
+ data.tar.gz: 67a945de9d98815f76f193f675dfbc4a7f175b9edab87d3a7b7867d01cd83c50
5
5
  SHA512:
6
- metadata.gz: c4eb73cdcdf50b2f92ef1a662aea4d0e323f7676fa79b94042ad81b0cef3d91f02a8b5172d03d5cac80712ec6b1a9c55a5464977911f2d2b6e820f1c939a81ad
7
- data.tar.gz: 3aaf7f86edc09799509ac9a393f559819c74f4c1f3eaa21473170010d7d03841e616719ea42821f7210a947abd12baaaad7c64719c88405cb12e7d089d32c8ae
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
- register "coach.handler.finish"
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
- register "coach.middleware.finish"
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
 
@@ -1,5 +1,5 @@
1
1
  module Skylight
2
2
  module Core
3
- VERSION = "4.1.1-beta".freeze
3
+ VERSION = "4.1.1".freeze
4
4
  end
5
5
  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: 4.1.1.beta
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-13 00:00:00.000000000 Z
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: 1.3.1
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