airbrake-ruby 1.4.0 → 1.4.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: 872e5dbd662f107ff1edc407c3e0464816884252
4
- data.tar.gz: ad9561bb25b64fe45eaab08f8e53860dd26d92dd
3
+ metadata.gz: 2649182552b42388d488153498cd971ffa2c7ca1
4
+ data.tar.gz: 2d8eb9a2e0e54e8784e8f9204545519456f4b87c
5
5
  SHA512:
6
- metadata.gz: 7026eac93af682eb7885c62ca608507cc66273da5341fda6d145ad0b692dfa866195ffb3331cea33e8b276199608b0f706fb67db08a64ba8477f0300a9557ecf
7
- data.tar.gz: 2f6d1b674f9342088ddb4cc0231d5fc923814a99077131ab67abcf121d66ac96dccbc4eaad3a16dc758148dd4e8caffec193c08436a8dac356fd1827220ea32b
6
+ metadata.gz: d0b5e3f1bb6d74d84a619bfeb416688cbb7c773b14f9328365c800aa0b8532673ef58727991dd1e035256e6018f8d12186bc37ce2effc9d5ee5e10018210efbb
7
+ data.tar.gz: c413d29e92a294952a73db358a7a62949075ab4d6bb5ed5b6295f7682517285d601e32bf93ed6fb2641fd6610ea2822e8b0e760d207d6c9033ced88aa5b919fb
@@ -130,7 +130,7 @@ module Airbrake
130
130
  # otherwise
131
131
  def valid?
132
132
  return true if ignored_environment?
133
- return false unless project_id.is_a?(Integer)
133
+ return false if project_id.to_i.zero?
134
134
  project_key.is_a?(String) && !project_key.empty?
135
135
  end
136
136
 
@@ -3,5 +3,5 @@
3
3
  module Airbrake
4
4
  ##
5
5
  # @return [String] the library version
6
- AIRBRAKE_RUBY_VERSION = '1.4.0'.freeze
6
+ AIRBRAKE_RUBY_VERSION = '1.4.1'.freeze
7
7
  end
@@ -120,15 +120,24 @@ RSpec.describe Airbrake::Config do
120
120
  end
121
121
  end
122
122
 
123
- context "when the project_id value is not an Integer" do
123
+ context "when the project_id value is not a number" do
124
124
  it "returns false" do
125
- config.project_id = '123'
125
+ config.project_id = 'bingo'
126
126
  config.project_key = '321'
127
127
 
128
128
  expect(config).not_to be_valid
129
129
  end
130
130
  end
131
131
 
132
+ context "when the project_id value is a String number" do
133
+ it "returns true" do
134
+ config.project_id = '123'
135
+ config.project_key = '321'
136
+
137
+ expect(config).to be_valid
138
+ end
139
+ end
140
+
132
141
  context "when the project_key value is not a String" do
133
142
  it "returns false" do
134
143
  config.project_id = 123
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: airbrake-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Airbrake Technologies, Inc.