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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fec710af38ac546981bf0701c1d72a5960a1a9e7
4
- data.tar.gz: 68960166120b68f208bd5d8a4668a4a01e15d832
3
+ metadata.gz: 255832e4abbd834fbc4fb939c84c0eb3459a37ac
4
+ data.tar.gz: ff5caaaff4e331e3dfe14df19b527406c888f9a0
5
5
  SHA512:
6
- metadata.gz: 88bce7b601dbc7c8e111cd4105477b0be7543428e05b7738746f92c8e653c86e31353cbd9cf2843afd6c554758ba9765947eccfbf1a51d524c85402ea3546250
7
- data.tar.gz: b1eada79f6138649ee188b7f171cbc8cc37b1aa046ad97edd5cf52d8d1b9131a704ead4b67fa8b8cada24caebc17f2f288e554e5e6832ba48d6dd1623ce8283f
6
+ metadata.gz: 9e8857e078f2d91934a4a1f51b405a6921b709ea0d98c6f49e3c2b7fb3cfe2356412b88d1a5bc080d049a489c54f6d5f9a24c49f584077bf6cded63a5e6123b6
7
+ data.tar.gz: 2a18911e46290cf240ae5d0dcbea3c327c0eead29aa24690deb974034ce4d6ccbd8b9b3d45a8313eb165a758eb8079b32dbbfaf24c479e8998fb2881da5768cc
@@ -2,6 +2,10 @@
2
2
 
3
3
  Changes by [Daniel Khamsing][] unless otherwise noted.
4
4
 
5
+ # 1.17.0
6
+
7
+ - support basic http authentication by [Bill O'Neill](https://github.com/woneill)
8
+
5
9
  # 1.16.1
6
10
 
7
11
  - update dependencies
@@ -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
@@ -5,5 +5,5 @@ module AwesomeBot
5
5
  'Great for "awesome" projects.'
6
6
  PROJECT_URL = 'https://github.com/dkhamsing/awesome_bot'
7
7
 
8
- VERSION = '1.16.1'
8
+ VERSION = '1.17.0'
9
9
  end
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.16.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-05-26 00:00:00.000000000 Z
11
+ date: 2017-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parallel