skylight 4.0.0 → 4.0.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: c3ab4906c5e55f5599df096b3035c7657968a13cf4ee28e961697dd794354760
4
- data.tar.gz: 4513033d06bc72fd4a06484efedebc2fbb14975ef811e8648832cc7358ed8c5a
3
+ metadata.gz: f9284c24d50d2627e053cf5e7e73d8c5961b71c085f0f8200f7a505857e47d82
4
+ data.tar.gz: 84e8183da0dde6c1834da6db92898f280f2bda2c04d1657e375c09987b9625e4
5
5
  SHA512:
6
- metadata.gz: 1c6d727bec6c0cab4c1cec4f2d652d265a2dc26ce3aff90ce17702307e37f8cba6a0600e072db31c4ddeb5bc9e771cacff49a0b5f13685eba531ce7b8c582163
7
- data.tar.gz: 4a9cd5ba12247577aab22251462f49b392b5bee2544b7e23829c6370b5c4ce3c15c6852d351a7134ad1050c02f3e1b65adbab44b93bdcfdf50cf8627d31005ea
6
+ metadata.gz: fd8007de9e639b06f71040fc1f01ced07059878be13b2a08eda4b8560b1f3ab6bfea11cddd23d7c30dd0bd7821a81163a31b9e470374d468d99a111112bdb70d
7
+ data.tar.gz: add7a4ffab54af803c6bbebecb5fd1deba798b0a02e9b89d50aa2ac0a62084c0ea50aeb927863652e93a2f1d53428905f19b8c25d5b8715cbdd8d2e719f6e09c
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 4.0.1 (May 9, 2019)
2
+ * [BUGFIX] Better detection of known web servers
3
+
1
4
  ## 4.0.0 (May 6, 2019)
2
5
 
3
6
  * [FEATURE] Skylight for Background Jobs
data/LICENSE.md CHANGED
@@ -1,5 +1,5 @@
1
1
  All other components of this product, except where otherwise noted, are
2
- Copyright (c) 2013-2016 Tilde, Inc.
2
+ Copyright (c) 2013-2019 Tilde, Inc.
3
3
  All rights reserved.
4
4
 
5
5
  Certain inventions disclosed in this file may be claimed within patents
@@ -79,7 +79,7 @@ module Skylight
79
79
  end
80
80
 
81
81
  def known_web_context?
82
- rails_server? || rackup? || passenger?
82
+ rails_server? || rack_server? || passenger? || unicorn?
83
83
  end
84
84
 
85
85
  def known_worker_context?
@@ -91,8 +91,12 @@ module Skylight
91
91
  defined?(Rails::Server)
92
92
  end
93
93
 
94
- def rackup?
95
- program_name[/rackup$/]
94
+ def rack_server?
95
+ program_name[/(?<!\w)(falcon|puma|rackup|thin)$/]
96
+ end
97
+
98
+ def unicorn?
99
+ program_name[/\Aunicorn/]
96
100
  end
97
101
 
98
102
  def passenger?
@@ -1,3 +1,3 @@
1
1
  module Skylight
2
- VERSION = "4.0.0".freeze
2
+ VERSION = "4.0.1".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: skylight
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0
4
+ version: 4.0.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-05-06 00:00:00.000000000 Z
11
+ date: 2019-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: skylight-core
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 4.0.0
19
+ version: 4.0.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 4.0.0
26
+ version: 4.0.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: beefcake
29
29
  requirement: !ruby/object:Gem::Requirement