rapid-rack 0.2.0 → 0.3.0

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
- SHA1:
3
- metadata.gz: 8a7a45733ec5f445a2b7cca550518cfcf6758508
4
- data.tar.gz: 71743e8d43c0f32a356f502dbea161231aae1f73
2
+ SHA256:
3
+ metadata.gz: 964bb70420d9431c7468dd9039c8dc17b6f29d453cdc60b80c0102e4647bfc53
4
+ data.tar.gz: be1282d26c324bb871e69c53c266f7a1ea2d36880e09902a6a2e3c334a0cce50
5
5
  SHA512:
6
- metadata.gz: 44f99dc995ba155323f9f8afb067d2df829c845ddaf4a7dcb5180065b4400e63bb24ff359f7d72bb977b5fc5684290675fb12f36838bcb143f7e6b4a929dee0a
7
- data.tar.gz: 7578c349a4e9a6f49a782d2e3003f56bedf5c4c4496000386714ec17a00339f31c44531dce1e9667eaf9494d67083854e3a349c6c0619ecdb5e6ad875536fd02
6
+ metadata.gz: 3d2eda4d4ff48581d51fd8f78b9bb90a0f80ebaefbef9818a717f83fa2f4f4613379eb8494d244e2bfdabb5e341dd2c5b64fe90dfe24a547470666ff96c10ea4
7
+ data.tar.gz: 16bd5ebe3700eea241e67dbc9a09351602767acf09b56227cb90685ec5e81a63673735df6d08f02515908312f5a8cbaa3a25f5c7fd032205f8005f486ba7094b
data/.simplecov CHANGED
@@ -1,9 +1,5 @@
1
- require 'coveralls'
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(/^spec\/.+_spec\.rb$/)
8
- watch(/^lib\/(.+)\.rb$/) { |m| "spec/lib/#{m[1]}_spec.rb" }
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(/(?:.+\/)?\.rubocop\.yml$/) { |m| File.dirname(m[0]) }
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]][Coverage Status]
7
+ [![Coverage Status][CS img]][Code Climate]
8
8
 
9
9
  [Gem Version]: https://rubygems.org/gems/rapid-rack
10
- [Build Status]: https://travis-ci.org/ausaccessfed/rapid-rack
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/travis/ausaccessfed/rapid-rack/develop.svg
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/coveralls/ausaccessfed/rapid-rack.svg
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
  ```
@@ -23,7 +23,7 @@ module RapidRack
23
23
  end
24
24
 
25
25
  def logout(env)
26
- env['rack.session'].clear
26
+ env['rack.session'].destroy
27
27
  redirect_to('/')
28
28
  end
29
29
  end
@@ -1,3 +1,3 @@
1
1
  module RapidRack
2
- VERSION = '0.2.0'
2
+ VERSION = '0.3.0'
3
3
  end
@@ -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(/^bin\//) { |f| File.basename(f) }
17
- spec.test_files = spec.files.grep(/^(test|spec|features)\//)
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 'coveralls'
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'
@@ -1,2 +1,2 @@
1
- require ::File.expand_path('../config/environment', __FILE__)
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', :'https://aaf.edu.au/attributes' => attrs
63
+ jti: 'accept', 'https://aaf.edu.au/attributes' => attrs
64
64
  }
65
65
  end
66
66
 
@@ -1,7 +1,7 @@
1
1
  require 'simplecov'
2
2
 
3
3
  ENV['RAILS_ENV'] ||= 'test'
4
- require File.expand_path('../dummy/config/environment.rb', __FILE__)
4
+ require File.expand_path('../dummy/config/environment.rb', __FILE__)
5
5
 
6
6
  require 'rspec/rails'
7
7
  require 'capybara/rspec'
@@ -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', :'https://aaf.edu.au/attributes' => attrs
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.2.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: 2014-12-15 00:00:00.000000000 Z
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: coveralls
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
- rubyforge_project:
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.
@@ -1,8 +0,0 @@
1
- ---
2
- language: ruby
3
- rvm:
4
- - 2.1.1
5
- branches:
6
- only:
7
- - master
8
- - develop