files.com 1.1.785 → 1.1.786
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/_VERSION +1 -1
- data/lib/files.com/version.rb +3 -1
- data/spec/lib/api_client_spec.rb +9 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 297ac56fe0c1ad0e834dcd371599ce418443650c0c136adbd6530e42da051e09
|
|
4
|
+
data.tar.gz: 20c046024f6830e02e7b73daccbe7dbe32ec9cce8ca38509a8c932bc4b826ab3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a0ceefe70ae7603de8bdfcaa0856a40c08201ec2a601ec2a4003cb093c8cb0eab0ace565d4a704ce93e487cc1d57bce3b85363da27a80f426f74c0000918a118
|
|
7
|
+
data.tar.gz: 6e9c93ff74b7f96d603b1da2249373c57c4843fbfbc66508d46b62e55ff1880a1d80c33427247db753f633649adfdc7f66dc17fcac9894fa756d8707a354e78f
|
data/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.1.
|
|
1
|
+
1.1.786
|
data/lib/files.com/version.rb
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
module Files
|
|
4
|
-
|
|
4
|
+
# The SDK's release version, reported in the API User-Agent. The package's _VERSION file holds it; the gemspec
|
|
5
|
+
# reads the same file for the gem version, and releases write the new version there.
|
|
6
|
+
VERSION = File.read(File.expand_path("../../_VERSION", __dir__)).strip.freeze
|
|
5
7
|
end
|
data/spec/lib/api_client_spec.rb
CHANGED
|
@@ -441,6 +441,15 @@ RSpec.describe Files::ApiClient do
|
|
|
441
441
|
end
|
|
442
442
|
end
|
|
443
443
|
|
|
444
|
+
describe "User-Agent" do
|
|
445
|
+
it "reports the SDK version the package declares" do
|
|
446
|
+
package_version = Gem::Specification.load(File.expand_path("../../files.com.gemspec", __dir__)).version.to_s
|
|
447
|
+
user_agent = described_class.new.send(:request_headers, nil, nil, :get, nil)["User-Agent"]
|
|
448
|
+
|
|
449
|
+
expect(user_agent).to match(/\AFiles\.com Ruby SDK v#{Regexp.escape(package_version)}(?: |\z)/)
|
|
450
|
+
end
|
|
451
|
+
end
|
|
452
|
+
|
|
444
453
|
describe "network timeouts" do
|
|
445
454
|
around do |example|
|
|
446
455
|
original = [ Files.open_timeout, Files.read_timeout ]
|