skylight 4.0.0.alpha2 → 4.0.0.alpha3
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 +8 -0
- data/ext/extconf.rb +11 -4
- data/lib/skylight/cli.rb +15 -15
- data/lib/skylight/config.rb +4 -4
- data/lib/skylight/version.rb +1 -1
- metadata +10 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b752e6d9345992e300714dadd52c136f9cac580b32b8521b8a468b553d024bb
|
4
|
+
data.tar.gz: 859be6714b4e397a510853afbf68906ff966ffa6ea307b3d2c5708c5c167bda2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf3ed69177fe7898803d19aa8656ed61c6fe5a29bcb4fe211649595c820361b549adcf0765387e9c90aa0b9d8e45cbfb00a8de918765bf9a30475fba0714c213
|
7
|
+
data.tar.gz: 00d54593b4f54ba3b8583ea2705360abb0787672b840c0a96d84b17ae39dd1cb72230fd1838b5481de1912ef1788e9ddfdeb8cd2340a400cb035dd5400802eb7
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
## 4.0.0.alpha3 (January 9, 2018)
|
2
|
+
|
3
|
+
* [BREAKING] Drop support for Ruby 2.2 since it is EOL
|
4
|
+
* [FEATURE] Add Skylight#started? method
|
5
|
+
* [IMPROVEMENT] Better handle some things in Ruby 2.6
|
6
|
+
* [IMPROVEMENT] Better logging in a couple places
|
7
|
+
* [IMPROVEMENT] Fixed a couple Ruby warnings (thanks, @y-yagi!)
|
8
|
+
|
1
9
|
## 4.0.0.alpha2 (December 19, 2018)
|
2
10
|
* [BUGFIX] skylightd should close cloned file descriptors on startup
|
3
11
|
* [FEATURE] instrument ActiveStorage notifications
|
data/ext/extconf.rb
CHANGED
@@ -80,10 +80,10 @@ if Platform::OS == "darwin"
|
|
80
80
|
# If the user installs Xcode-only, they have to approve the
|
81
81
|
# license or no "xc*" tool will work.
|
82
82
|
if `/usr/bin/xcrun clang 2>&1` =~ /license/ && !$CHILD_STATUS.success?
|
83
|
-
fail
|
84
|
-
You have not agreed to the Xcode license and so we are unable to build the native agent.
|
85
|
-
To resolve this, you can agree to the license by opening Xcode.app or running:
|
86
|
-
|
83
|
+
fail <<~MESSAGE
|
84
|
+
You have not agreed to the Xcode license and so we are unable to build the native agent.
|
85
|
+
To resolve this, you can agree to the license by opening Xcode.app or running:
|
86
|
+
sudo xcodebuild -license
|
87
87
|
MESSAGE
|
88
88
|
end
|
89
89
|
end
|
@@ -230,6 +230,13 @@ end
|
|
230
230
|
# potential issues.
|
231
231
|
if SKYLIGHT_EXT_STRICT
|
232
232
|
$CFLAGS << " -Werror"
|
233
|
+
|
234
|
+
if Platform::OS == "darwin"
|
235
|
+
# Enabling unused-parameter causes failures in Ruby 2.6
|
236
|
+
# ruby/ruby.h:2186:35: error: unused parameter 'allow_transient'
|
237
|
+
# For some reason this only seems to be an issue on macOS
|
238
|
+
$CFLAGS << ",-Wunused-parameter"
|
239
|
+
end
|
233
240
|
end
|
234
241
|
|
235
242
|
checking_for "fast thread local storage" do
|
data/lib/skylight/cli.rb
CHANGED
@@ -22,11 +22,11 @@ module Skylight
|
|
22
22
|
desc "setup TOKEN", "Sets up a new app using the provided token"
|
23
23
|
def setup(token)
|
24
24
|
if File.exist?(config_path)
|
25
|
-
say
|
26
|
-
A config/skylight.yml already exists for your application.
|
25
|
+
say <<~OUT, :green
|
26
|
+
A config/skylight.yml already exists for your application.
|
27
27
|
|
28
|
-
Visit your app at https://www.skylight.io/app or remove config/skylight.yml
|
29
|
-
to set it up as a new app in Skylight.
|
28
|
+
Visit your app at https://www.skylight.io/app or remove config/skylight.yml
|
29
|
+
to set it up as a new app in Skylight.
|
30
30
|
OUT
|
31
31
|
return
|
32
32
|
end
|
@@ -38,23 +38,23 @@ to set it up as a new app in Skylight.
|
|
38
38
|
config.write(config_path)
|
39
39
|
|
40
40
|
say "Congratulations. Your application is on Skylight! https://www.skylight.io", :green
|
41
|
-
say
|
41
|
+
say <<~OUT
|
42
42
|
|
43
|
-
The application was registered for you and we generated a config file
|
44
|
-
containing your API token at:
|
43
|
+
The application was registered for you and we generated a config file
|
44
|
+
containing your API token at:
|
45
45
|
|
46
|
-
|
46
|
+
#{relative_config_path}
|
47
47
|
|
48
|
-
The next step is for you to deploy your application to production. The
|
49
|
-
easiest way is to just commit the config file to your source control
|
50
|
-
repository and deploy from there. You can learn more about the process at:
|
48
|
+
The next step is for you to deploy your application to production. The
|
49
|
+
easiest way is to just commit the config file to your source control
|
50
|
+
repository and deploy from there. You can learn more about the process at:
|
51
51
|
|
52
|
-
|
52
|
+
https://docs.skylight.io/getting-set-up/#deployment
|
53
53
|
|
54
|
-
If you want to specify the authentication token as an environment variable,
|
55
|
-
you should set the `SKYLIGHT_AUTHENTICATION` variable to:
|
54
|
+
If you want to specify the authentication token as an environment variable,
|
55
|
+
you should set the `SKYLIGHT_AUTHENTICATION` variable to:
|
56
56
|
|
57
|
-
|
57
|
+
#{config[:authentication]}
|
58
58
|
|
59
59
|
OUT
|
60
60
|
rescue Api::CreateFailed => e
|
data/lib/skylight/config.rb
CHANGED
@@ -256,10 +256,10 @@ module Skylight
|
|
256
256
|
FileUtils.mkdir_p(File.dirname(path))
|
257
257
|
|
258
258
|
File.open(path, "w") do |f|
|
259
|
-
f.puts
|
260
|
-
---
|
261
|
-
# The authentication token for the application.
|
262
|
-
authentication: #{self[:authentication]}
|
259
|
+
f.puts <<~YAML
|
260
|
+
---
|
261
|
+
# The authentication token for the application.
|
262
|
+
authentication: #{self[:authentication]}
|
263
263
|
YAML
|
264
264
|
end
|
265
265
|
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.alpha3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tilde, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-01-10 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.alpha3
|
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.alpha3
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: beefcake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -42,16 +42,16 @@ dependencies:
|
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 1.17.3
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 1.17.3
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: puma
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -260,15 +260,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
260
260
|
requirements:
|
261
261
|
- - ">="
|
262
262
|
- !ruby/object:Gem::Version
|
263
|
-
version: 2.
|
263
|
+
version: '2.3'
|
264
264
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
265
265
|
requirements:
|
266
266
|
- - ">"
|
267
267
|
- !ruby/object:Gem::Version
|
268
268
|
version: 1.3.1
|
269
269
|
requirements: []
|
270
|
-
|
271
|
-
rubygems_version: 2.7.6
|
270
|
+
rubygems_version: 3.0.2
|
272
271
|
signing_key:
|
273
272
|
specification_version: 4
|
274
273
|
summary: Skylight is a smart profiler for Rails, Sinatra, and other Ruby apps.
|