token-endpoint 0.1.0 → 0.1.1

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: 6b32e1dfaf73482e0e054e3addcc0579b0abecb4
4
- data.tar.gz: 8cea145e8df658dac0c4c035f8810ab1d47e6811
3
+ metadata.gz: 014bd90230d1d9e51b012a081285a317f9440573
4
+ data.tar.gz: de0b1c4f9ef47c7c3bb6e47c4c48eb2f09ee9e42
5
5
  SHA512:
6
- metadata.gz: c8dd4ad98ccf8995687ccf77e93dd43ffb872cabbccc2fe056e0c8a4c606e6a7ab5e4d500dcbab9919484dde336c8c85d1390abfa361f8074e9cd722b53e9d49
7
- data.tar.gz: 879851ed0d81b3190a63e3a21308d07e7026ece571ec09d3ee9dd857f96675a250a26f05e86e0681dfa69a0fb46d15cdb917540a0642cfd3c2e09a04d258ad29
6
+ metadata.gz: 2ddc0d6ee12003ec7ba1160012edaab85cc9c829d71010e416965c2197830df5d91820c4fa2deb61f3eeeb92c17103b3274d85b14da8213002302517317988b1
7
+ data.tar.gz: 4e25b7195ae9e6b7e7dbcc193ea2a81c82008f387ae22204dc71c96a026ecbff9a0c11a9842d681787f9744c2070f96353cf3f48e422cea9a246af756fdfdcea
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.1 / 2018-07-29
4
+
5
+ - Raise an `ArgumentError` when `Client` instantiated with non-absolute URI ([3c5b354](https://github.com/jgarber623/token-endpoint-ruby/commit/3c5b354)).
6
+
3
7
  ## 0.1.0 / 2018-07-22
4
8
 
5
9
  - Initial release!
@@ -4,6 +4,8 @@ module TokenEndpoint
4
4
  raise ArgumentError, "url must be a String (given #{url.class.name})" unless url.is_a?(String)
5
5
 
6
6
  @uri = Addressable::URI.parse(url)
7
+
8
+ raise ArgumentError, 'url must be an absolute URI (e.g. https://example.com)' unless @uri.absolute?
7
9
  rescue Addressable::URI::InvalidURIError => error
8
10
  raise InvalidURIError, error
9
11
  end
@@ -1,3 +1,3 @@
1
1
  module TokenEndpoint
2
- VERSION = '0.1.0'.freeze
2
+ VERSION = '0.1.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: token-endpoint
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Garber
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-22 00:00:00.000000000 Z
11
+ date: 2018-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler