airbrake-ruby 3.2.0 → 3.2.1

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
  SHA1:
3
- metadata.gz: d9434113b46be898d421f70cba2eb683fc5fdc1a
4
- data.tar.gz: d9f06c9d709dbc0c11c5210d52b7f2d3ca030e27
3
+ metadata.gz: b877a856be1ba5ba61bca3b657b66ac620d701fb
4
+ data.tar.gz: ef57204cd1e5bf6cdf689fea663cf38463d8ba9f
5
5
  SHA512:
6
- metadata.gz: 10d9a2fef303a9b785e33ee7300c2b26773edb4f617ffede7fbf3b0185ca2bed955d4f865db344079a15b1bb83f7cc8306f866250bcb7c68b4d7201db7762a68
7
- data.tar.gz: d1a63fa071431c4333c657d8843bebb684919d68983b5abf476e6a3208cc18894a272a6a64a7adf9520e9ee01eca87b25f2d7cc0f0837464b280018a1cd44213
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.last)
14
+ @git_version = Gem::Version.new(`git --version`.split[2])
15
15
  @weight = 116
16
16
  end
17
17
 
@@ -2,5 +2,5 @@
2
2
  # More information: http://semver.org/
3
3
  module Airbrake
4
4
  # @return [String] the library version
5
- AIRBRAKE_RUBY_VERSION = '3.2.0'.freeze
5
+ AIRBRAKE_RUBY_VERSION = '3.2.1'.freeze
6
6
  end
@@ -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.0
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-08 00:00:00.000000000 Z
11
+ date: 2019-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rbtree3