oauthenticator 1.3.1 → 1.3.2

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: 2d0739deb62d222a81dc6ba95d0070a981a97a69
4
- data.tar.gz: 7a97a08a180f36d1ecfc1bec9e8feb4b7ba0645a
3
+ metadata.gz: db80d67c9ca2a714efb0048d51559e1177f4189a
4
+ data.tar.gz: 9e4d2a061109d621b67aa147ebaf9d3aee6f4e81
5
5
  SHA512:
6
- metadata.gz: 5c3ae5a9de1a0b04dfc8449ba596e0d95e7846e2725bf02a151c97b38c71742ff0a0a553a388ebfe1a1e661079eb7574e53349fa100627d7e355eb2870cf2625
7
- data.tar.gz: 3dee24e48380e8787da2317cb51ffaf132c76785809f3d68c8659351814c2601868366a5f281a0a1f373ed5fe0af9eb8e8ecc337cff9b13eba6535c2ce1f1c79
6
+ metadata.gz: 1e02a8108f52fc163c5c766121eecc78c120becff60cd42007b574cfc27912c225fd6a78e2e6af2a3673a253db233c2625709791509a4a91e4adc80d4ae1ffb9
7
+ data.tar.gz: fff84c1346c81617b391facb3de890bd223ee304170afdbc16dd71f852f4cbe224c163bd70af5ae25828928e2fa099fef4d58c7d2b5cd0d80ab2f9480344f750
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 1.3.2
2
+
3
+ - loosen dependency to allow rack 2.0
4
+
1
5
  # 1.3.1
2
6
 
3
7
  - set media type to the default that the adapter will use if it's not specified on a request that is expected to have a body
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # OAuthenticator
2
2
 
3
+ [![Build Status](https://travis-ci.org/notEthan/oauthenticator.svg?branch=master)](https://travis-ci.org/notEthan/oauthenticator)
4
+
3
5
  OAuthenticator signs outgoing requests with OAuth 1.0.
4
6
 
5
7
  OAuthenticator authenticates incoming OAuth 1.0 signed requests, primarily as a middleware, and forms useful
@@ -1,4 +1,3 @@
1
- require 'oauthenticator'
2
1
  require 'faraday'
3
2
 
4
3
  if Faraday.respond_to?(:register_middleware)
@@ -35,7 +35,7 @@ module OAuthenticator
35
35
  auth_parse_error = proc { |message| raise ParseError.new(message, {'Authorization' => [message]}) }
36
36
  scanner.scan(/OAuth\s*/i) || auth_parse_error.call("Authorization scheme is not OAuth - recieved: #{header}")
37
37
  attributes = Hash.new { |h,k| h[k] = [] }
38
- while match = scanner.scan(/(\w+)="([^"]*)"\s*(,?)\s*/)
38
+ while scanner.scan(/(\w+)="([^"]*)"\s*(,?)\s*/)
39
39
  key = scanner[1]
40
40
  value = scanner[2]
41
41
  comma_follows = !scanner[3].empty?
@@ -1,5 +1,5 @@
1
1
  # OAuthenticator
2
2
  module OAuthenticator
3
3
  # OAuthenticator::VERSION
4
- VERSION = "1.3.1"
4
+ VERSION = "1.3.2"
5
5
  end
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oauthenticator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ethan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-20 00:00:00.000000000 Z
11
+ date: 2016-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.4'
20
+ - - <
21
+ - !ruby/object:Gem::Version
22
+ version: '2.1'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - ~>
27
+ - - '>='
25
28
  - !ruby/object:Gem::Version
26
29
  version: '1.4'
30
+ - - <
31
+ - !ruby/object:Gem::Version
32
+ version: '2.1'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: json
29
35
  requirement: !ruby/object:Gem::Requirement