airbrake-ruby 3.2.0 → 3.2.1
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
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b877a856be1ba5ba61bca3b657b66ac620d701fb
|
|
4
|
+
data.tar.gz: ef57204cd1e5bf6cdf689fea663cf38463d8ba9f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 259f8a30be4307e0bd51b0c4657ea83d700d79ec80d8bae8ed4882f5e33d78fbbc696f6aade64e0d0b175b31f468f98cba0b61c5465192ad48cc3f4e970eec66
|
|
7
|
+
data.tar.gz: 69bcdfb125b8f1008c83954ca790dacd737fd5409819f9f4850689e373cb953a19c8592ff376547a6a7ef34bc6d8007fe788a67301c1be496735a08b859cb0c9
|
|
@@ -11,7 +11,7 @@ module Airbrake
|
|
|
11
11
|
def initialize(root_directory)
|
|
12
12
|
@git_path = File.join(root_directory, '.git')
|
|
13
13
|
@repository = nil
|
|
14
|
-
@git_version = Gem::Version.new(`git --version`.split
|
|
14
|
+
@git_version = Gem::Version.new(`git --version`.split[2])
|
|
15
15
|
@weight = 116
|
|
16
16
|
end
|
|
17
17
|
|
|
@@ -5,6 +5,26 @@ RSpec.describe Airbrake::Filters::GitRepositoryFilter do
|
|
|
5
5
|
Airbrake::Notice.new(Airbrake::Config.new, AirbrakeTestError.new)
|
|
6
6
|
end
|
|
7
7
|
|
|
8
|
+
describe "#initialize" do
|
|
9
|
+
it "parses standard git version" do
|
|
10
|
+
allow_any_instance_of(Kernel).
|
|
11
|
+
to receive(:`).and_return('git version 2.18.0')
|
|
12
|
+
expect { subject }.not_to raise_error
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
it "parses release candidate git version" do
|
|
16
|
+
allow_any_instance_of(Kernel).
|
|
17
|
+
to receive(:`).and_return('git version 2.21.0-rc0')
|
|
18
|
+
expect { subject }.not_to raise_error
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
it "parses git version with brackets" do
|
|
22
|
+
allow_any_instance_of(Kernel).
|
|
23
|
+
to receive(:`).and_return('git version 2.17.2 (Apple Git-113)')
|
|
24
|
+
expect { subject }.not_to raise_error
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
|
|
8
28
|
context "when context/repository is defined" do
|
|
9
29
|
it "doesn't attach anything to context/repository" do
|
|
10
30
|
notice[:context][:repository] = 'git@github.com:kyrylo/test.git'
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: airbrake-ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.2.
|
|
4
|
+
version: 3.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Airbrake Technologies, Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-02-
|
|
11
|
+
date: 2019-02-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rbtree3
|