mauth-client 4.0.3 → 4.0.4

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: 1f18ac348ac61d91254ad0c5dea4874b5e76f486
4
- data.tar.gz: 1516ee5f2fe7e7f26369e4d6878e9c5c6a220457
3
+ metadata.gz: cfde2c6e67fe8e386a2841a096e9e0d6e2e8259b
4
+ data.tar.gz: 975e40ebf4fadd4fc35c60f12afbd6ad97a25cbf
5
5
  SHA512:
6
- metadata.gz: b46db4cd5a12bcf4a7df96e97a529b505a773eb303b62e722c8d447e16a1667c1613cd0c5a71e7d8faaf661ee9022d41a2f9b5f7e95832d9ec6808eebb19cab9
7
- data.tar.gz: 18d84c20776c619f5821056b491d25b21a4ed9387bb89de4b2283740bffcaec4d793a807fe1eb9f8b17f452f6a3d44473d6bb62220f8331fb83fd8560a20ac1a
6
+ metadata.gz: 50642c879eb014f6fa2696dbf5a5825216e983066b8c7336311b74e8c8625078880dcc8eb7459b6fe6a89714673536e36aef931a7ea89a801cf4c09da7b99e14
7
+ data.tar.gz: 3bd2c7e5f1552f64e4194c98844ab35d04efe7699c1734978500a6da005e17b193f7621560b6fb1cd9df9928fc605b70b9b813499a0abe3130554f4ab297ebc0
data/.gitignore CHANGED
@@ -1,6 +1,7 @@
1
1
  .bundle
2
2
  .yardoc
3
3
 
4
+ /config
4
5
  /coverage
5
6
  /yardoc
6
7
  /log
@@ -3,15 +3,20 @@ cache: bundler
3
3
  sudo: false
4
4
 
5
5
  rvm:
6
- - 2.2.5
7
- - 2.3.1
8
-
9
- env:
10
- - MAUTH_CONFIG_YML=`pwd`/spec/config_root/config/mauth.yml
6
+ - 2.2.10
7
+ - 2.3.7
8
+ - 2.4.4
9
+ - 2.5.1
11
10
 
12
11
  matrix:
13
12
  include:
14
13
  - rvm: 2.1.10
15
14
  gemfile: gemfiles/ruby_2.1.gemfile
16
15
 
16
+ # https://github.com/travis-ci/travis-ci/issues/8978
17
+ before_install:
18
+ - gem update --system
19
+ - gem install bundler # https://github.com/travis-ci/travis-ci/issues/9383
20
+ - bundle --version
21
+
17
22
  script: "bundle exec rspec"
@@ -1,5 +1,8 @@
1
1
  # MAuth-Client History
2
2
 
3
+ ## v4.0.4
4
+ - Restore original behavior in the proxy of forwarding of headers that begin with HTTP_ (except for HTTP_HOST) but removing the HTTP_.
5
+
3
6
  ## v4.0.3
4
7
  - Updated signature to decode number sign (#) in requests
5
8
 
@@ -13,8 +13,8 @@
13
13
 
14
14
  To run tests, first run `bundle install`.
15
15
 
16
- Next, run the tests with an appropriate mauth config file, typically this is done by passing the provided one using an environment variable:
16
+ Next, run the tests:
17
17
 
18
18
  ```
19
- MAUTH_CONFIG_YML=`pwd`/spec/config_root/config/mauth.yml bundle exec rspec
19
+ bundle exec rspec
20
20
  ```
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # MAuth Client
2
- [![Build Status](https://travis-ci.org/mdsol/mauth-client-ruby.svg)](https://travis-ci.org/mdsol/mauth-client-ruby)
2
+ [![Build Status](https://travis-ci.org/mdsol/mauth-client-ruby.svg?branch=master)](https://travis-ci.org/mdsol/mauth-client-ruby)
3
3
 
4
4
  This gem consists of MAuth::Client, a class to manage the information needed to both sign and authenticate requests
5
5
  and responses, and middlewares for Rack and Faraday which leverage the client's capabilities.
@@ -1,6 +1,8 @@
1
1
  # MAuth-Client implementations
2
2
 
3
3
  - .Net: [mauth-client-dotnet](https://github.com/mdsol/mauth-client-dotnet)
4
- - Go (golang): [go-mauth-client](https://github.com/mdsol/go-mauth-client)
4
+ - Go: [go-mauth-client](https://github.com/mdsol/go-mauth-client)
5
+ - Java: [mauth-java-client](https://github.com/mdsol/mauth-java-client)
6
+ - Python: [flask-mauth](https://github.com/mdsol/flask-mauth)
5
7
  - R: [RMauthClient](https://github.com/mdsol/RMauthClient)
6
8
  - Ruby: [mauth-client-ruby](https://github.com/mdsol/mauth-client-ruby)
@@ -55,8 +55,8 @@ module MAuth
55
55
  request_env['rack.input'].rewind
56
56
  request_headers = {}
57
57
  request_env.each do |k, v|
58
- if k.start_with?('HTTP_') && !%w(HTTP_HOST).include?(k)
59
- name = $'
58
+ if k.start_with?('HTTP_') && k != 'HTTP_HOST'
59
+ name = k.sub(/\AHTTP_/, '')
60
60
  request_headers[name] = v
61
61
  end
62
62
  end
@@ -1,3 +1,3 @@
1
1
  module MAuth
2
- VERSION = '4.0.3'.freeze
2
+ VERSION = '4.0.4'.freeze
3
3
  end
@@ -26,6 +26,7 @@ Gem::Specification.new do |spec|
26
26
  spec.add_dependency 'dice_bag', '>= 0.9', '< 2.0'
27
27
 
28
28
  spec.add_development_dependency 'bundler', '~> 1.10'
29
+ spec.add_development_dependency 'byebug'
29
30
  spec.add_development_dependency 'kender', '~> 0.4'
30
31
  spec.add_development_dependency 'rack-test', '~> 0.6.3'
31
32
  spec.add_development_dependency 'rake', '~> 10.0'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mauth-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.3
4
+ version: 4.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Szenher
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: exe
13
13
  cert_chain: []
14
- date: 2017-05-11 00:00:00.000000000 Z
14
+ date: 2018-09-11 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: faraday
@@ -117,6 +117,20 @@ dependencies:
117
117
  - - "~>"
118
118
  - !ruby/object:Gem::Version
119
119
  version: '1.10'
120
+ - !ruby/object:Gem::Dependency
121
+ name: byebug
122
+ requirement: !ruby/object:Gem::Requirement
123
+ requirements:
124
+ - - ">="
125
+ - !ruby/object:Gem::Version
126
+ version: '0'
127
+ type: :development
128
+ prerelease: false
129
+ version_requirements: !ruby/object:Gem::Requirement
130
+ requirements:
131
+ - - ">="
132
+ - !ruby/object:Gem::Version
133
+ version: '0'
120
134
  - !ruby/object:Gem::Dependency
121
135
  name: kender
122
136
  requirement: !ruby/object:Gem::Requirement
@@ -285,7 +299,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
285
299
  version: '0'
286
300
  requirements: []
287
301
  rubyforge_project:
288
- rubygems_version: 2.6.8
302
+ rubygems_version: 2.6.14
289
303
  signing_key:
290
304
  specification_version: 4
291
305
  summary: Sign and authenticate requests and responses with mAuth authentication.