rookout 0.1.9 → 0.1.10

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: bd5c74f51143ba52e7cda082e0202b1408e90d570f310c36e1669477667931a8
4
- data.tar.gz: 0ae53bf98ff8f9c91e159e0e2187a57c4841493874950b43a64731c026fc5d9c
3
+ metadata.gz: bb5339cdc9cb66af897ace6857663f6c784809a17948e17a854f7b204fc9c4a1
4
+ data.tar.gz: d80f3651e6284b7b2262a4f092b7f41b96d7fc45ada08ff1b70a4e1a1efe1304
5
5
  SHA512:
6
- metadata.gz: 31764b2a5805fdb3063d050c8f20f6b4819132ec432af6e160bcd77fb73a96b1552fede6654a786d2c5f7b67cad3596d85a2ff2150b67fd891c935e313ce0551
7
- data.tar.gz: f790ea9db6c948bfc7581f661bb96a6e8300de8b5740e42a9d5d9024a614f2ffc1fc73c7aa04c28e1c48d1593499e6bfbfd0b4ee325da88da5ba05b653784d42
6
+ metadata.gz: 05c9290a00720940c4f3782126dd3d59d346bddf417e41334b00a3386d7ab14274a06f4744ddb89dad81ab65c0074ae99a13e799dceddd57c54c33a93ffef81a
7
+ data.tar.gz: 50f822a8bac76ead40a06595a8467661c4ac6718d72e270d2c5b88abbadd1e4754e06ff54d3e8d89a9397faabb2a208f9b97ef3d808c1ecd9c890560e781277b
@@ -7,6 +7,7 @@ module Rookout
7
7
  require_relative "../processor/namespaces/container_namespace"
8
8
  require_relative "../processor/namespaces/ruby_utils_namespace"
9
9
  require_relative "../processor/namespaces/noop_namespace"
10
+ require_relative "../logger"
10
11
 
11
12
  class Aug
12
13
  def initialize aug_id, action, condition, rate_limiter, _max_aug_time
@@ -32,6 +33,7 @@ module Rookout
32
33
 
33
34
  @rate_limiter.with_limit do
34
35
  report_id = Utils.uuid
36
+ Logger.instance.info "Executing aug-\t#{id} (msg ID #{report_id})"
35
37
  @action.execute @id, report_id, namespace, output
36
38
  end
37
39
  end
@@ -1,3 +1,3 @@
1
1
  module Rookout
2
- COMMIT = "2a847bf58dabb4d6abd2957f4c382256a4a467db".freeze
2
+ COMMIT = "1ef929297eb0815aa058874e7a9a342c77062fdf".freeze
3
3
  end
@@ -114,7 +114,7 @@ module Rookout
114
114
  class RookSourceFilePathSuggestion < ToolException
115
115
  def initialize wanted_path, matching_path
116
116
  super "Rookout found alternative file path: #{matching_path}",
117
- { wanted_path: wanted_path, matching_path: matching_path }
117
+ { "wanted_path" => wanted_path, "matching_path" => matching_path }
118
118
  end
119
119
  end
120
120
 
@@ -102,13 +102,16 @@ module Rookout
102
102
  elsif suggested_match? location, filename
103
103
  warning = Exceptions::RookSourceFilePathSuggestion.new location.filename, filename
104
104
  location.notify_warning warning
105
+ # Must return nil in order to skip this script
106
+ nil
105
107
  end
106
108
  end
107
109
 
108
110
  #########################################################################################
109
111
  # Utils
110
112
  def exact_match? location_filename, script_filename
111
- script_filename.end_with? location_filename
113
+ return unless script_filename.end_with? location_filename
114
+ File.basename(script_filename) == File.basename(location_filename)
112
115
  end
113
116
 
114
117
  def suggested_match? location, filename
@@ -1,3 +1,3 @@
1
1
  module Rookout
2
- VERSION = "0.1.9".freeze
2
+ VERSION = "0.1.10".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rookout
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Liran Haimovitch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-16 00:00:00.000000000 Z
11
+ date: 2020-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: binding_of_caller
@@ -70,16 +70,16 @@ dependencies:
70
70
  name: google-protobuf
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - '='
74
74
  - !ruby/object:Gem::Version
75
- version: 3.0.0
76
- type: :development
75
+ version: 3.9.2
76
+ type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ">="
80
+ - - '='
81
81
  - !ruby/object:Gem::Version
82
- version: 3.0.0
82
+ version: 3.9.2
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: google-style
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -183,13 +183,11 @@ email:
183
183
  - support@rookout.com
184
184
  executables:
185
185
  - rookout
186
- extensions:
187
- - ext/mkrf_conf.rb
186
+ extensions: []
188
187
  extra_rdoc_files: []
189
188
  files:
190
189
  - LICENSE
191
190
  - bin/rookout
192
- - ext/mkrf_conf.rb
193
191
  - lib/rookout.rb
194
192
  - lib/rookout/atfork.rb
195
193
  - lib/rookout/augs/actions/action.rb
@@ -250,7 +248,6 @@ files:
250
248
  - lib/rookout/user_warnings.rb
251
249
  - lib/rookout/utils.rb
252
250
  - lib/rookout/version.rb
253
- - rookout.gemspec
254
251
  homepage: https://rookout.com
255
252
  licenses:
256
253
  - Proprietary
@@ -1,30 +0,0 @@
1
- require "rubygems"
2
- require "rubygems/command.rb"
3
- require "rubygems/dependency_installer.rb"
4
-
5
- # We override platform comparison to only match source gems
6
- class Gem::Platform
7
- def self.match platform
8
- platform.nil? || platform == Gem::Platform::RUBY
9
- end
10
- end
11
-
12
- inst = Gem::DependencyInstaller.new
13
- begin
14
- puts "[Rookout] installing appropriate google-protobuf gem"
15
- if File.exist? "/etc/alpine-release"
16
- # Versions from 3.10 onwards don't compile on Alpine
17
- installed = inst.install "google-protobuf", [">= 3.0.0", "< 3.10.0"]
18
- else
19
- installed = inst.install "google-protobuf", ">= 3.0.0"
20
- end
21
- puts "[Rookout] Installed additional dependencies:"
22
- installed.each { |dep| puts dep.name }
23
- rescue
24
- exit 1
25
- end
26
-
27
- # create dummy rakefile to indicate success
28
- f = File.open(File.join(File.dirname(__FILE__), "Rakefile"), "w")
29
- f.write("task :default\n")
30
- f.close
@@ -1,39 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
- require_relative "lib/rookout/version"
3
-
4
- Gem::Specification.new do |spec|
5
- spec.name = "rookout"
6
- spec.version = Rookout::VERSION
7
-
8
- spec.authors = ["Liran Haimovitch"]
9
- spec.email = ["support@rookout.com"]
10
- spec.description = "rookout is the Ruby SDK for the Rookout Debugging Platform"
11
- spec.summary = "rookout is the Ruby SDK for the Rookout Debugging Platform"
12
- spec.homepage = "https://rookout.com"
13
- spec.license = "Proprietary"
14
-
15
- spec.metadata["homepage_uri"] = spec.homepage
16
-
17
- spec.files = `git ls-files -- ext/* lib/* bin/*`.split("\n") +
18
- ["lib/rookout/commit.rb", "LICENSE", "rookout.gemspec"]
19
- spec.extensions = ["ext/mkrf_conf.rb"]
20
- spec.executables = ["rookout"]
21
-
22
- spec.require_paths = ["lib"]
23
-
24
- spec.required_ruby_version = ">= 2.6"
25
-
26
- spec.add_dependency "binding_of_caller", ">= 0.7"
27
- spec.add_dependency "concurrent-ruby", ">= 1.1"
28
- spec.add_dependency "websocket-driver", ">= 0.5.0"
29
- spec.add_dependency "event_emitter", ">= 0.2.6"
30
-
31
- spec.add_development_dependency "google-protobuf", ">= 3.0.0"
32
- spec.add_development_dependency "google-style", ">= 1.24.0"
33
- spec.add_development_dependency "minitest", ">= 5.14"
34
- spec.add_development_dependency "minitest-autotest", ">= 1.0"
35
- spec.add_development_dependency "minitest-focus", ">= 1.1"
36
- spec.add_development_dependency "minitest-rg", ">= 5.2"
37
- spec.add_development_dependency "autotest-suffix", ">= 1.1"
38
- spec.add_development_dependency "rake-compiler", ">= 1.0"
39
- end