rapid-rack 0.2.0 → 0.3.0
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 +5 -5
- data/.simplecov +2 -6
- data/Guardfile +3 -3
- data/README.md +14 -6
- data/lib/rapid_rack/default_receiver.rb +1 -1
- data/lib/rapid_rack/version.rb +1 -1
- data/rapid-rack.gemspec +3 -3
- data/spec/dummy/config.ru +1 -1
- data/spec/lib/rapid_rack/engine_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- data/spec/support/authenticator_examples.rb +1 -1
- metadata +4 -6
- data/.travis.yml +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 964bb70420d9431c7468dd9039c8dc17b6f29d453cdc60b80c0102e4647bfc53
|
4
|
+
data.tar.gz: be1282d26c324bb871e69c53c266f7a1ea2d36880e09902a6a2e3c334a0cce50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d2eda4d4ff48581d51fd8f78b9bb90a0f80ebaefbef9818a717f83fa2f4f4613379eb8494d244e2bfdabb5e341dd2c5b64fe90dfe24a547470666ff96c10ea4
|
7
|
+
data.tar.gz: 16bd5ebe3700eea241e67dbc9a09351602767acf09b56227cb90685ec5e81a63673735df6d08f02515908312f5a8cbaa3a25f5c7fd032205f8005f486ba7094b
|
data/.simplecov
CHANGED
@@ -1,9 +1,5 @@
|
|
1
|
-
require '
|
2
|
-
|
3
|
-
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
|
4
|
-
SimpleCov::Formatter::HTMLFormatter,
|
5
|
-
Coveralls::SimpleCov::Formatter
|
6
|
-
]
|
1
|
+
require 'codeclimate-test-reporter'
|
2
|
+
CodeClimate::TestReporter.start
|
7
3
|
|
8
4
|
SimpleCov.start do
|
9
5
|
add_filter('spec')
|
data/Guardfile
CHANGED
@@ -4,13 +4,13 @@ guard :bundler do
|
|
4
4
|
end
|
5
5
|
|
6
6
|
guard :rspec, cmd: 'bundle exec rspec' do
|
7
|
-
watch(
|
8
|
-
watch(
|
7
|
+
watch(%r{^spec/.+_spec\.rb$})
|
8
|
+
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
|
9
9
|
watch(%r{^spec/(dummy|support)/.+\.rb}) { 'spec' }
|
10
10
|
watch('spec/spec_helper.rb') { 'spec' }
|
11
11
|
end
|
12
12
|
|
13
13
|
guard :rubocop do
|
14
14
|
watch(/.+\.rb$/)
|
15
|
-
watch(
|
15
|
+
watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) }
|
16
16
|
end
|
data/README.md
CHANGED
@@ -4,19 +4,18 @@
|
|
4
4
|
[![Build Status][BS img]][Build Status]
|
5
5
|
[![Dependency Status][DS img]][Dependency Status]
|
6
6
|
[![Code Climate][CC img]][Code Climate]
|
7
|
-
[![Coverage Status][CS img]][
|
7
|
+
[![Coverage Status][CS img]][Code Climate]
|
8
8
|
|
9
9
|
[Gem Version]: https://rubygems.org/gems/rapid-rack
|
10
|
-
[Build Status]: https://
|
10
|
+
[Build Status]: https://codeship.com/projects/91209
|
11
11
|
[Dependency Status]: https://gemnasium.com/ausaccessfed/rapid-rack
|
12
12
|
[Code Climate]: https://codeclimate.com/github/ausaccessfed/rapid-rack
|
13
|
-
[Coverage Status]: https://coveralls.io/r/ausaccessfed/rapid-rack
|
14
13
|
|
15
14
|
[GV img]: https://img.shields.io/gem/v/rapid-rack.svg
|
16
|
-
[BS img]: https://img.shields.io/
|
15
|
+
[BS img]: https://img.shields.io/codeship/6fad8f80-0cd0-0133-0d1a-36a99efb0264/develop.svg
|
17
16
|
[DS img]: https://img.shields.io/gemnasium/ausaccessfed/rapid-rack.svg
|
18
17
|
[CC img]: https://img.shields.io/codeclimate/github/ausaccessfed/rapid-rack.svg
|
19
|
-
[CS img]: https://img.shields.io/
|
18
|
+
[CS img]: https://img.shields.io/codeclimate/coverage/github/ausaccessfed/rapid-rack.svg
|
20
19
|
|
21
20
|
[AAF Rapid Connect](https://rapid.aaf.edu.au) authentication plugin for
|
22
21
|
Rack-based web applications. Contains Rails-specific extensions for consumption
|
@@ -25,7 +24,7 @@ by Rails applications.
|
|
25
24
|
Author: Shaun Mangelsdorf
|
26
25
|
|
27
26
|
```
|
28
|
-
Copyright 2014, Australian Access Federation
|
27
|
+
Copyright 2014-2015, Australian Access Federation
|
29
28
|
|
30
29
|
Licensed under the Apache License, Version 2.0 (the "License");
|
31
30
|
you may not use this file except in compliance with the License.
|
@@ -48,6 +47,15 @@ Add the `rapid-rack` dependency to your application's `Gemfile`:
|
|
48
47
|
gem 'rapid-rack'
|
49
48
|
```
|
50
49
|
|
50
|
+
If you will be using the recommended `RapidRack::RedisRegistry` module, you will
|
51
|
+
require the `redis` gem to connect to your local [Redis][] data store:
|
52
|
+
|
53
|
+
[Redis]: http://redis.io
|
54
|
+
|
55
|
+
```
|
56
|
+
gem 'redis'
|
57
|
+
```
|
58
|
+
|
51
59
|
Use Bundler to install the dependency:
|
52
60
|
|
53
61
|
```
|
data/lib/rapid_rack/version.rb
CHANGED
data/rapid-rack.gemspec
CHANGED
@@ -13,8 +13,8 @@ Gem::Specification.new do |spec|
|
|
13
13
|
spec.license = 'Apache-2.0'
|
14
14
|
|
15
15
|
spec.files = `git ls-files -z`.split("\x0")
|
16
|
-
spec.executables = spec.files.grep(
|
17
|
-
spec.test_files = spec.files.grep(
|
16
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
17
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
18
18
|
spec.require_paths = ['lib']
|
19
19
|
|
20
20
|
spec.add_dependency 'json-jwt'
|
@@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
|
|
28
28
|
spec.add_development_dependency 'sqlite3'
|
29
29
|
spec.add_development_dependency 'fakeredis'
|
30
30
|
spec.add_development_dependency 'redis'
|
31
|
-
spec.add_development_dependency '
|
31
|
+
spec.add_development_dependency 'codeclimate-test-reporter'
|
32
32
|
|
33
33
|
spec.add_development_dependency 'guard'
|
34
34
|
spec.add_development_dependency 'guard-rspec'
|
data/spec/dummy/config.ru
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
require ::File.expand_path('../config/environment',
|
1
|
+
require ::File.expand_path('../config/environment', __FILE__)
|
2
2
|
run Rails.application
|
@@ -60,7 +60,7 @@ module RapidRack
|
|
60
60
|
{
|
61
61
|
aud: audience, iss: issuer, iat: Time.now, typ: 'authnresponse',
|
62
62
|
nbf: 1.minute.ago, exp: 2.minutes.from_now,
|
63
|
-
jti: 'accept',
|
63
|
+
jti: 'accept', 'https://aaf.edu.au/attributes' => attrs
|
64
64
|
}
|
65
65
|
end
|
66
66
|
|
data/spec/spec_helper.rb
CHANGED
@@ -70,7 +70,7 @@ shared_examples 'an authenticator' do
|
|
70
70
|
{
|
71
71
|
aud: audience, iss: issuer, iat: Time.now, typ: 'authnresponse',
|
72
72
|
nbf: 1.minute.ago, exp: 2.minutes.from_now,
|
73
|
-
jti: 'accept',
|
73
|
+
jti: 'accept', 'https://aaf.edu.au/attributes' => attrs
|
74
74
|
}
|
75
75
|
end
|
76
76
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rapid-rack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shaun Mangelsdorf
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json-jwt
|
@@ -151,7 +151,7 @@ dependencies:
|
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: '0'
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
|
-
name:
|
154
|
+
name: codeclimate-test-reporter
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
157
|
- - ">="
|
@@ -231,7 +231,6 @@ files:
|
|
231
231
|
- ".rspec"
|
232
232
|
- ".rubocop.yml"
|
233
233
|
- ".simplecov"
|
234
|
-
- ".travis.yml"
|
235
234
|
- Gemfile
|
236
235
|
- Guardfile
|
237
236
|
- LICENSE
|
@@ -287,8 +286,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
287
286
|
- !ruby/object:Gem::Version
|
288
287
|
version: '0'
|
289
288
|
requirements: []
|
290
|
-
|
291
|
-
rubygems_version: 2.2.2
|
289
|
+
rubygems_version: 3.0.3
|
292
290
|
signing_key:
|
293
291
|
specification_version: 4
|
294
292
|
summary: Rack middleware for AAF Rapid Connect authentication.
|