skylight 4.0.0.beta2 → 4.0.0.beta3
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 +4 -4
- data/CHANGELOG.md +13 -2
- data/CONTRIBUTING.md +17 -3
- data/lib/skylight/util/component.rb +8 -3
- data/lib/skylight/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d354e4f1bd6d0bf076da5e6c4d618eb290da26109f202dcedd24654851d2caf
|
4
|
+
data.tar.gz: 8b07e871b623735aec9516f29c823a9abfc181a8dbb3d0877d45d3a578b6b662
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '038fdfa7d28b98d2448a098bf7de9398cb93a3a96f0136849d6a9c639000ce05eec34b27741a7fa8e88fc1ecfa7d3d42b8e9ab96ef2d164a99cdc2604cdb9b91'
|
7
|
+
data.tar.gz: 57b4d306aa242a301f7e4d3c745db1cc14a39da6f84b36a996307fcc3f0b1856b2ba7e65969d1e7af9394b11b73e0ecf63e813f6c16ce31c4c5ed261f18ab47b
|
data/CHANGELOG.md
CHANGED
@@ -1,10 +1,21 @@
|
|
1
|
-
## 4.0.
|
1
|
+
## 4.0.0.beta3 (April 24, 2019)
|
2
|
+
* [IMPROVEMENT] Support anonymous ActiveModelSerializer classes
|
3
|
+
* [IMPROVEMENT] Improve error handling in normalizers
|
4
|
+
* [IMPROVEMENT] Handle Rails 6's middleware instrumentation
|
5
|
+
* [IMPROVEMENT] Better rendered format detection in Rails controllers
|
6
|
+
* [IMPROVEMENT] Recognize the Passenger startup script as 'web'
|
7
|
+
* [IMPROVEMENT] Detect Shoryuken as an ActiveJob framework
|
8
|
+
* [BUGFIX] Correct issue where component validation could raise errors during boot
|
9
|
+
* [BUGFIX] Make ActionView probe compatible with Rails 6.0.0.rc1
|
10
|
+
* [BUGFIX] Require http formatters for Faraday (thanks, @serkin!)
|
11
|
+
|
12
|
+
## 4.0.0.beta2 (March 11, 2019)
|
2
13
|
|
3
14
|
* [BUGFIX] Make ActionView probe compatible with Rails 6 Beta 2
|
4
15
|
* [IMPROVEMENT] ActionMailer::DeliveryJob are now reported using the mailer name and method
|
5
16
|
* [IMPROVEMENT] Better content type handling for ActionController normalizer
|
6
17
|
|
7
|
-
## 4.0.beta (February 14, 2019)
|
18
|
+
## 4.0.0.beta (February 14, 2019)
|
8
19
|
|
9
20
|
* [FEATURE] Skylight for Background Jobs
|
10
21
|
* [FEATURE] instrument ActiveStorage notifications
|
data/CONTRIBUTING.md
CHANGED
@@ -8,8 +8,22 @@ Before contributing, please [sign the CLA](https://docs.google.com/spreadsheet/v
|
|
8
8
|
|
9
9
|
In general, we recommend that you speak with us about any new features you'd like to add so we can make sure we're on the same page.
|
10
10
|
|
11
|
-
## Emulating
|
11
|
+
## Emulating Gitlab CI Builds
|
12
12
|
|
13
|
-
We have many
|
13
|
+
We have many CI build configurations that must pass in order to merge a pull request. You can run these individual configurations locally by running e.g., `gitlab-runner exec docker ruby23-rails42`. The only prerequisites are that you have both [Gitlab Runner](https://docs.gitlab.com/runner/) and [Docker](https://www.docker.com/) installed (most recent versions are best). Configuration names may be found in the `.gitlab.yml` file.
|
14
14
|
|
15
|
-
|
15
|
+
If you prefer to run tests in your own environment, you may do so as follows:
|
16
|
+
|
17
|
+
```shell
|
18
|
+
# Select a gemfile and bundle install
|
19
|
+
export BUNDLE_GEMFILE=$PWD/gemfiles/Gemfile.rails-5.2.x
|
20
|
+
bundle install
|
21
|
+
|
22
|
+
# Run the skylight-core test suite (takes a few seconds)
|
23
|
+
pushd skylight-core
|
24
|
+
bundle exec rspec
|
25
|
+
popd
|
26
|
+
|
27
|
+
# Run the main test suite (takes 5-10 minutes)
|
28
|
+
bundle exec rspec
|
29
|
+
```
|
@@ -3,7 +3,7 @@ module Skylight
|
|
3
3
|
class Component
|
4
4
|
attr_accessor :environment, :name
|
5
5
|
|
6
|
-
NAME_FORMAT = /\A[a-
|
6
|
+
NAME_FORMAT = /\A[a-zA-Z0-9_-]+\z/
|
7
7
|
DEFAULT_NAME = "web".freeze
|
8
8
|
WORKER_NAME = "worker".freeze
|
9
9
|
DEFAULT_ENVIRONMENT = "production".freeze
|
@@ -13,7 +13,8 @@ module Skylight
|
|
13
13
|
/backburner$/i,
|
14
14
|
/delayed_job$/i,
|
15
15
|
/que$/i,
|
16
|
-
/sneakers$/i
|
16
|
+
/sneakers$/i,
|
17
|
+
/shoryuken$/i
|
17
18
|
]
|
18
19
|
|
19
20
|
WORKER_RAKE_MATCHER = Regexp.union [
|
@@ -78,7 +79,7 @@ module Skylight
|
|
78
79
|
end
|
79
80
|
|
80
81
|
def known_web_context?
|
81
|
-
rails_server? || rackup?
|
82
|
+
rails_server? || rackup? || passenger?
|
82
83
|
end
|
83
84
|
|
84
85
|
def known_worker_context?
|
@@ -93,6 +94,10 @@ module Skylight
|
|
93
94
|
def rackup?
|
94
95
|
program_name[/rackup$/]
|
95
96
|
end
|
97
|
+
|
98
|
+
def passenger?
|
99
|
+
program_name[/\APassenger AppPreloader/]
|
100
|
+
end
|
96
101
|
end
|
97
102
|
end
|
98
103
|
end
|
data/lib/skylight/version.rb
CHANGED
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.0.beta3
|
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-
|
11
|
+
date: 2019-04-25 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.0.beta3
|
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.0.beta3
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: beefcake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -267,7 +267,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
267
267
|
- !ruby/object:Gem::Version
|
268
268
|
version: 1.3.1
|
269
269
|
requirements: []
|
270
|
-
rubygems_version: 3.0.
|
270
|
+
rubygems_version: 3.0.3
|
271
271
|
signing_key:
|
272
272
|
specification_version: 4
|
273
273
|
summary: Skylight is a smart profiler for Rails, Sinatra, and other Ruby apps.
|