stealth-bandwidth 2.0.0 → 2.0.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 +4 -4
- data/Gemfile.lock +1 -1
- data/VERSION +1 -1
- data/lib/stealth/services/bandwidth/client.rb +8 -0
- metadata +4 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23a30f87cbca9992da45151b85deda271a504e538587053af93f24b00abd120b
|
4
|
+
data.tar.gz: f7c48136801ba6d6d246577b85df3ad0949d6f53b5383af83341e1e9165f340f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a034a88529e7ebe94f96e3a9724dde4c05a737a569cb12b5b0a8c10f422335b32e01922c5060ea60505a71f5243d488b265700ab1f6ac08b50ae3bc299c19f2
|
7
|
+
data.tar.gz: 3917f3f9cd27e31c071f7b3756a46e3473389896c7befa71d00302e936f48fa75ab73ebb173e4bd79d88f5868f97751ec607065112e2c0d264cc433f04df5a6b
|
data/Gemfile.lock
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.0.
|
1
|
+
2.0.1
|
@@ -24,6 +24,14 @@ module Stealth
|
|
24
24
|
.timeout(connect: 15, read: 30)
|
25
25
|
.basic_auth(user: username, pass: password)
|
26
26
|
.headers('Content-Type' => 'application/json; charset=utf-8')
|
27
|
+
# Set up proxy if one is configured
|
28
|
+
if proxy = URI(@endpoint).find_proxy
|
29
|
+
if proxy.user || proxy.password
|
30
|
+
@http_client = @http_client.via(proxy.host, proxy.port, proxy.user, proxy.password)
|
31
|
+
else
|
32
|
+
@http_client = @http_client.via(proxy.host, proxy.port)
|
33
|
+
end
|
34
|
+
end
|
27
35
|
end
|
28
36
|
|
29
37
|
def transmit
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stealth-bandwidth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Emilie Morissette
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: stealth
|
@@ -122,7 +121,6 @@ homepage: https://github.com/hellostealth/stealth-bandwidth
|
|
122
121
|
licenses:
|
123
122
|
- MIT
|
124
123
|
metadata: {}
|
125
|
-
post_install_message:
|
126
124
|
rdoc_options: []
|
127
125
|
require_paths:
|
128
126
|
- lib
|
@@ -137,10 +135,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
137
135
|
- !ruby/object:Gem::Version
|
138
136
|
version: '0'
|
139
137
|
requirements: []
|
140
|
-
rubygems_version: 3.
|
141
|
-
signing_key:
|
138
|
+
rubygems_version: 3.6.9
|
142
139
|
specification_version: 4
|
143
140
|
summary: Stealth Bandwidth SMS driver
|
144
|
-
test_files:
|
145
|
-
- spec/spec_helper.rb
|
146
|
-
- spec/version_spec.rb
|
141
|
+
test_files: []
|