rookout 0.1.16 → 0.1.17
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/lib/rookout/commit.rb +1 -1
- data/lib/rookout/exceptions.rb +6 -0
- data/lib/rookout/interface.rb +5 -1
- data/lib/rookout/logger.rb +2 -1
- data/lib/rookout/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 412df2821122abb540f4baeed9fd11432ebdc2a50373130ba148c43863c62b9b
|
|
4
|
+
data.tar.gz: afe3d60125a31190bc17dcf2b27a5fa18cf7da70acde921cc959438a8a285dfc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4a576e0968b7fdc91b80e4ef7b6b465d046cb44ad5eac73e6817898c422796dedc0a33fc4749480966814029143c83984c26edfecad18b508aaf9da03455205e
|
|
7
|
+
data.tar.gz: 608e9960132a87e86fd1ab9fa6bc045d493b7f95dece96fa5dd8bcbceedc2ea538b4a30a28702ec4e7c8f7951005b9826755b48a4d3171f3a77345ac643b24ea
|
data/lib/rookout/commit.rb
CHANGED
data/lib/rookout/exceptions.rb
CHANGED
|
@@ -189,5 +189,11 @@ module Rookout
|
|
|
189
189
|
super 'Bad protobuf version. Please execute "bundle config force_ruby_platform true" before "bundler install".'
|
|
190
190
|
end
|
|
191
191
|
end
|
|
192
|
+
|
|
193
|
+
class RookBadProtobufPlatform < ToolException
|
|
194
|
+
def initialize platform
|
|
195
|
+
super "Bad protobuf platform: #{platform}"
|
|
196
|
+
end
|
|
197
|
+
end
|
|
192
198
|
end
|
|
193
199
|
end
|
data/lib/rookout/interface.rb
CHANGED
|
@@ -77,7 +77,11 @@ module Rookout
|
|
|
77
77
|
return unless File.exist? "/etc/alpine-release"
|
|
78
78
|
|
|
79
79
|
protobuf = Gem::Specification.find_by_path "google/protobuf"
|
|
80
|
-
|
|
80
|
+
STDERR.puts RookBadProtobuf.new.message if protobuf.nil?
|
|
81
|
+
return unless protobuf.platform != "ruby"
|
|
82
|
+
|
|
83
|
+
error = RookBadProtobufPlatform.new protobuf.platform
|
|
84
|
+
STDERR.puts error.message
|
|
81
85
|
end
|
|
82
86
|
|
|
83
87
|
def configure_globals options
|
data/lib/rookout/logger.rb
CHANGED
|
@@ -12,7 +12,8 @@ module Rookout
|
|
|
12
12
|
|
|
13
13
|
def initialize
|
|
14
14
|
# Detect unit tests
|
|
15
|
-
if (
|
|
15
|
+
if (Config.debug ||
|
|
16
|
+
$PROGRAM_NAME.end_with?("minitest_runner.rb") ||
|
|
16
17
|
$PROGRAM_NAME.end_with?("tunit_or_minitest_in_folder_runner.rb")) &&
|
|
17
18
|
Dir.pwd.end_with?("ruby-sdk")
|
|
18
19
|
Config.logger_log_level = :DEBUG
|
data/lib/rookout/version.rb
CHANGED
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.
|
|
4
|
+
version: 0.1.17
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Liran Haimovitch
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-01-
|
|
11
|
+
date: 2021-01-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: binding_of_caller
|