lhc 6.1.0 → 6.1.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: a7b186ab553693a0c1b20fba140fce7ebc27dd04
4
- data.tar.gz: b59c6f79a6c4433838bcde9c02b8a011458d1a3b
3
+ metadata.gz: 2827291e4ad9cb6ff9752a2a091feb0b2a2434ef
4
+ data.tar.gz: 30c81d451d22d7d52dd0890c5c98405d5dfed24b
5
5
  SHA512:
6
- metadata.gz: a887d6528be9aa62b548a9a558bea5ae0df4a34689f8233181b05537e596310fa1716e946ed5817734ca91e6da61dcb10887e42a32a6e21bf4491340ea455002
7
- data.tar.gz: fdd5ce8c809b8f8240ac6e8bbca2509ee05f0d45ef8801c9dfd82c6289af0f08e2c70eafc57206c67710ba84a4935128497440d08ccd2f9a8146238b01597d05
6
+ metadata.gz: e0a84470ea8886ee64fa2e93793faa1dba4ed63741ece2a7de4b318955971f0c9827ba8f915d492a45030ea5adcc7aea00de67f922bb2235c6c39e7eb442a159
7
+ data.tar.gz: 6ff625ec53ebd93d97165a89c06118d31f4dbd45cb11de593e52c58f6c42cdebcfffcda1a1bba1364b8edaab40e8918a9afb091080894c8ddc2cf9ad0d506ebf
@@ -3,7 +3,7 @@
3
3
  # The url can also be an url-template.
4
4
  class LHC::Endpoint
5
5
 
6
- PLACEHOLDER ||= %r{:[^\/\.:;\d\&]+}
6
+ PLACEHOLDER ||= %r{:[^\/\.:;\d\&@]+}
7
7
  ANYTHING_BUT_SINGLE_SLASH_AND_DOT ||= '([^\/\.]|\/\/)+'.freeze
8
8
  URL_PARAMETERS ||= '(\\?.*)*'
9
9
 
@@ -1,3 +1,3 @@
1
1
  module LHC
2
- VERSION ||= "6.1.0"
2
+ VERSION ||= "6.1.1"
3
3
  end
@@ -8,5 +8,13 @@ describe LHC::Endpoint do
8
8
  endpoint.placeholders
9
9
  ).to eq [':campaign_id', ':datastore']
10
10
  end
11
+
12
+ it 'allows basic auth token in url, like used on github' do
13
+ stub_request(:get, "https://d123token:@api.github.com/search")
14
+ .to_return(body: {}.to_json)
15
+ expect(->{
16
+ LHC.get("https://d123token:@api.github.com/search")
17
+ }).not_to raise_error
18
+ end
11
19
  end
12
20
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lhc
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.1.0
4
+ version: 6.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - https://github.com/local-ch/lhc/contributors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-30 00:00:00.000000000 Z
11
+ date: 2017-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -319,7 +319,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
319
319
  requirements:
320
320
  - Ruby >= 2.0.0
321
321
  rubyforge_project:
322
- rubygems_version: 2.6.10
322
+ rubygems_version: 2.6.8
323
323
  signing_key:
324
324
  specification_version: 4
325
325
  summary: LocalHttpClient