singed 0.2.2 → 0.3.0

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: 130f5fb69096f1a09875822dca8c86ca3a05876ca2b742cab274fb863ed7c253
4
- data.tar.gz: 342357ad154850a5e5be841820cefe69609825650c8f0401c58a182f1ffd992c
3
+ metadata.gz: 1ae5015ceb06bdcb4a4ee0149083fa5449bd6db4c508ab552a77f07a24c540aa
4
+ data.tar.gz: 533ff18bba4acbc7b19ee0c7875d5ae1beb97623eddab13c64b7eae5fae267c9
5
5
  SHA512:
6
- metadata.gz: 673f34810201f6050862488b728272ff769e5072b6a5fba90a4669b811efdbaa6fc9a8fd56c4f2cccebca7445c00bdc28700ec22881076dfcaef7bdf4bd5be2a
7
- data.tar.gz: a839d09f7b78c96c4b1e38aa101fb755fef1c72ac3cee5068c0aef1df9d199ce3a73cfee3c40f6a2f934b6c14abb90765b3475e2a9ffc1d23e5a29f8eba01aab
6
+ metadata.gz: 61e8d7689b0a1e23cc81b75a892910b53641bf3bdc8ace5d8956a62962941ec8ede1bf6dd30b2f1bd3d56d4faa5b37d9b9855dafa006e864cba36e07af9f9c52
7
+ data.tar.gz: 3b482b7351174cfd923be2df3fe8d04678cd2140a99141b4c0fb0c0d72cd5ad3736ce5b98b696d192b4575b7c7744df52a09981020542967f90783e11324e8cd
@@ -4,12 +4,15 @@ module Kernel
4
4
  result = fg.record(&)
5
5
  fg.save
6
6
 
7
+ # avoid a dep on a colorizing gem by doing this ourselves
8
+ bright_red = "\e[91m"
9
+ none = "\e[0m"
7
10
  if open
8
11
  # use npx, so we don't have to add it as a dependency
9
- io.puts "🔥📈 #{"Captured flamegraph, opening with".colorize(:bold).colorize(:red)}: #{fg.open_command}"
12
+ io.puts "🔥📈 #{bright_red}Captured flamegraph, opening with#{none}: #{fg.open_command}"
10
13
  fg.open
11
14
  else
12
- io.puts "🔥📈 #{"Captured flamegraph to file".colorize(:bold).colorize(:red)}: #{fg.filename}"
15
+ io.puts "🔥📈 #{bright_red}Captured flamegraph to file#{none}: #{fg.filename}"
13
16
  end
14
17
 
15
18
  result
@@ -14,7 +14,7 @@ module Singed
14
14
  end
15
15
 
16
16
  def self.init!
17
- Singed.output_directory = Rails.root.join("tmp/speedscope")
17
+ Singed.output_directory ||= Rails.root.join("tmp/speedscope")
18
18
  Singed.backtrace_cleaner = Rails.backtrace_cleaner
19
19
  end
20
20
  end
data/lib/singed.rb CHANGED
@@ -2,7 +2,6 @@
2
2
 
3
3
  require "json"
4
4
  require "stackprof"
5
- require "colorize"
6
5
 
7
6
  module Singed
8
7
  extend self
data/singed.gemspec CHANGED
@@ -3,7 +3,7 @@
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "singed"
5
5
 
6
- spec.version = "0.2.2"
6
+ spec.version = "0.3.0"
7
7
  spec.license = "MIT"
8
8
  spec.authors = ["Josh Nichols"]
9
9
  spec.email = ["josh.nichols@gusto.com"]
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
11
11
  spec.required_ruby_version = ">= 2.7.0"
12
12
  spec.homepage = "https://github.com/rubyatscale/singed"
13
13
  spec.metadata = {
14
- "source_code_uri" => "https://github.com/rubyatscale/singed.git",
14
+ "source_code_uri" => "https://github.com/rubyatscale/singed",
15
15
  "bug_tracker_uri" => "https://github.com/rubyatscale/singed/issues",
16
16
  "homepage_uri" => "https://github.com/rubyatscale/singed"
17
17
  }
@@ -21,7 +21,6 @@ Gem::Specification.new do |spec|
21
21
  spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
22
22
  spec.require_paths = ["lib"]
23
23
 
24
- spec.add_dependency "colorize"
25
24
  spec.add_dependency "stackprof", ">= 0.2.13"
26
25
 
27
26
  spec.add_development_dependency "rake", "~> 13.0"
metadata CHANGED
@@ -1,29 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: singed
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Nichols
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2024-05-09 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: colorize
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '0'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- version: '0'
27
12
  - !ruby/object:Gem::Dependency
28
13
  name: stackprof
29
14
  requirement: !ruby/object:Gem::Requirement
@@ -66,7 +51,6 @@ dependencies:
66
51
  - - ">="
67
52
  - !ruby/object:Gem::Version
68
53
  version: '0'
69
- description:
70
54
  email:
71
55
  - josh.nichols@gusto.com
72
56
  executables:
@@ -91,10 +75,9 @@ homepage: https://github.com/rubyatscale/singed
91
75
  licenses:
92
76
  - MIT
93
77
  metadata:
94
- source_code_uri: https://github.com/rubyatscale/singed.git
78
+ source_code_uri: https://github.com/rubyatscale/singed
95
79
  bug_tracker_uri: https://github.com/rubyatscale/singed/issues
96
80
  homepage_uri: https://github.com/rubyatscale/singed
97
- post_install_message:
98
81
  rdoc_options: []
99
82
  require_paths:
100
83
  - lib
@@ -109,8 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
109
92
  - !ruby/object:Gem::Version
110
93
  version: '0'
111
94
  requirements: []
112
- rubygems_version: 3.5.9
113
- signing_key:
95
+ rubygems_version: 3.6.7
114
96
  specification_version: 4
115
97
  summary: Quick and easy way to get flamegraphs from a specific part of your code base
116
98
  test_files: []