awesome_bot 1.16.1 → 1.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/awesome_bot/net.rb +6 -0
- data/lib/awesome_bot/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 255832e4abbd834fbc4fb939c84c0eb3459a37ac
|
4
|
+
data.tar.gz: ff5caaaff4e331e3dfe14df19b527406c888f9a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e8857e078f2d91934a4a1f51b405a6921b709ea0d98c6f49e3c2b7fb3cfe2356412b88d1a5bc080d049a489c54f6d5f9a24c49f584077bf6cded63a5e6123b6
|
7
|
+
data.tar.gz: 2a18911e46290cf240ae5d0dcbea3c327c0eead29aa24690deb974034ce4d6ccbd8b9b3d45a8313eb165a758eb8079b32dbbfaf24c479e8998fb2881da5768cc
|
data/CHANGELOG.md
CHANGED
data/lib/awesome_bot/net.rb
CHANGED
@@ -16,6 +16,12 @@ module AwesomeBot
|
|
16
16
|
else
|
17
17
|
request = Net::HTTP::Get.new(uri,ua)
|
18
18
|
end
|
19
|
+
|
20
|
+
if uri.userinfo
|
21
|
+
auth_user, auth_pass = uri.userinfo.split(/:/)
|
22
|
+
request.basic_auth auth_user, auth_pass
|
23
|
+
end
|
24
|
+
|
19
25
|
response = http.request request
|
20
26
|
|
21
27
|
code = response.code==nil ? 200 : response.code.to_i
|
data/lib/awesome_bot/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: awesome_bot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.17.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Khamsing
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parallel
|