sorcery 0.16.0 → 0.16.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 44ff0a756fa8a8379e9333f116a72be359847bd3f9611f643e2f2200180dd4f6
4
- data.tar.gz: 8e4bcf9034cac0cac8eddaf296df1a64757272d99c9954e35f99f45d2c9d2836
3
+ metadata.gz: 0f0614713fb5b564c7273b8f08b71547414613303b574156932f415dee83286e
4
+ data.tar.gz: aa2b3081950f5c5f4615dbb21f535fa90ade9a600b29a9d41e3449bdd8551c58
5
5
  SHA512:
6
- metadata.gz: e6ef63584276452138f36a8cc1f22928d79f9e5998d4ade707c116e825f63e114a8219a5157c13508116caf4a7b46e08670b34b0ee7ea2e84e673f5f68e1f092
7
- data.tar.gz: f5d3599a90e6a50896d19c67434e9ac9cf250f8357685d48426745da7bd210e8b3238a6b026243b5ea045f83c973914f505a77c000004b50ba40d721a51eb182
6
+ metadata.gz: 781c5dd4d01ab49353464f4e8eb1f1990351f75e1acf307ef9fb83892e4304fd5a5876afa4b8091e4f4edad6661e1f6a4b6b226eb8cb1b290d0712e30826414b
7
+ data.tar.gz: 347e36c6b09f16eaa1028e8ae02eca140763d07c9981a74b867997994e32a968dcde6016b4b8aab61738ee5eaf463989775ae1c1d257bc561e20ec30ac7e4068
@@ -0,0 +1 @@
1
+ github: athix
@@ -1,23 +1,49 @@
1
- name: Ruby
1
+ name: Test Suite
2
2
 
3
- on:
4
- push:
5
- branches: [ master ]
6
- pull_request:
7
- branches: [ master ]
3
+ # Run against all commits and pull requests.
4
+ on: [ push, pull_request ]
8
5
 
9
6
  jobs:
10
- test:
7
+ test_matrix:
11
8
 
12
9
  runs-on: ubuntu-latest
13
10
 
11
+ strategy:
12
+ fail-fast: false
13
+ matrix:
14
+ ruby:
15
+ - 2.4
16
+ - 2.5
17
+ - 2.6
18
+ - 2.7
19
+ - 3.0
20
+
21
+ rails:
22
+ - '52'
23
+ - '60'
24
+
25
+ exclude:
26
+ - ruby: 2.4
27
+ rails: '60'
28
+ - ruby: 3.0
29
+ rails: '52'
30
+
31
+ env:
32
+ BUNDLE_GEMFILE: gemfiles/rails_${{ matrix.rails }}.gemfile
33
+
34
+ steps:
35
+ - uses: actions/checkout@v2
36
+ - name: Set up Ruby
37
+ uses: ruby/setup-ruby@v1
38
+ with:
39
+ ruby-version: ${{ matrix.ruby }}
40
+ bundler-cache: true
41
+ - name: Run tests
42
+ run: bundle exec rake spec
43
+
44
+ finish:
45
+ runs-on: ubuntu-latest
46
+ needs: [ test_matrix ]
14
47
  steps:
15
- - uses: actions/checkout@v2
16
- - name: Set up Ruby
17
- uses: ruby/setup-ruby@v1
18
- with:
19
- ruby-version: 2.6
20
- - name: Install dependencies
21
- run: bundle install
22
- - name: Run tests
23
- run: bundle exec rake
48
+ - name: Wait for status checks
49
+ run: echo "All Green!"
data/.rubocop_todo.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2021-01-02 07:53:19 UTC using RuboCop version 0.88.0.
3
+ # on 2021-04-04 05:00:11 UTC using RuboCop version 0.88.0.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
@@ -147,6 +147,14 @@ Style/StringLiterals:
147
147
  - 'spec/controllers/controller_oauth2_spec.rb'
148
148
  - 'spec/sorcery_crypto_providers_spec.rb'
149
149
 
150
+ # Offense count: 1
151
+ # Cop supports --auto-correct.
152
+ # Configuration parameters: EnforcedStyle, MinSize.
153
+ # SupportedStyles: percent, brackets
154
+ Style/SymbolArray:
155
+ Exclude:
156
+ - 'Rakefile'
157
+
150
158
  # Offense count: 2
151
159
  # Cop supports --auto-correct.
152
160
  Style/UnpackFirst:
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  # Changelog
2
2
  ## HEAD
3
3
 
4
+ ## 0.16.1
5
+
6
+ * Fix default table name being incorrect in migration generator [#274](https://github.com/Sorcery/sorcery/pull/274)
7
+ * Update `oauth` dependency per CVE-2016-11086
8
+
4
9
  ## 0.16.0
5
10
 
6
11
  * Add BattleNet Provider [#260](https://github.com/Sorcery/sorcery/pull/260)
@@ -11,6 +16,10 @@
11
16
  * Fix ruby 2.7 deprecation warnings [#241](https://github.com/Sorcery/sorcery/pull/241)
12
17
  * Use set to ensure unique arrays [#233](https://github.com/Sorcery/sorcery/pull/233)
13
18
 
19
+ ## 0.15.1
20
+
21
+ * Update `oauth` dependency per CVE-2016-11086
22
+
14
23
  ## 0.15.0
15
24
 
16
25
  * Fix brute force vuln due to callbacks no being ran [#235](https://github.com/Sorcery/sorcery/pull/235)
data/README.md CHANGED
@@ -4,7 +4,6 @@
4
4
  [![Gem Downloads](https://img.shields.io/gem/dt/sorcery.svg)](https://rubygems.org/gems/sorcery)
5
5
  [![Build Status](https://travis-ci.org/Sorcery/sorcery.svg?branch=master)](https://travis-ci.org/Sorcery/sorcery)
6
6
  [![Code Climate](https://codeclimate.com/github/Sorcery/sorcery.svg)](https://codeclimate.com/github/Sorcery/sorcery)
7
- [![Inline docs](http://inch-ci.org/github/Sorcery/sorcery.svg?branch=master)](http://inch-ci.org/github/Sorcery/sorcery)
8
7
  [![Join the chat at https://gitter.im/Sorcery/sorcery](https://badges.gitter.im/join_chat.svg)](https://gitter.im/Sorcery/sorcery?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
9
8
 
10
9
  Magical Authentication for Rails. Supports ActiveRecord, DataMapper, Mongoid and MongoMapper.
data/Rakefile CHANGED
@@ -1,6 +1,8 @@
1
1
  require 'bundler/gem_tasks'
2
2
 
3
3
  require 'rspec/core/rake_task'
4
+ require 'rubocop/rake_task'
4
5
  RSpec::Core::RakeTask.new(:spec)
6
+ RuboCop::RakeTask.new
5
7
 
6
- task default: :spec
8
+ task default: [:rubocop, :spec]
data/SECURITY.md CHANGED
@@ -2,10 +2,11 @@
2
2
 
3
3
  ## Supported Versions
4
4
 
5
- | Version | Supported |
6
- | -------- | ------------------ |
7
- | 0.15.0 | :white_check_mark: |
8
- | < 0.15.0 | :x: |
5
+ | Version | Supported |
6
+ | --------- | ------------------ |
7
+ | ~> 0.16.0 | :white_check_mark: |
8
+ | ~> 0.15.0 | :white_check_mark: |
9
+ | < 0.15.0 | :x: |
9
10
 
10
11
  ## Reporting a Vulnerability
11
12
 
@@ -13,7 +13,7 @@ module Sorcery
13
13
  end
14
14
 
15
15
  def tableized_model_class
16
- options[:model] ? options[:model].gsub(/::/, '').tableize : 'User'
16
+ options[:model] ? options[:model].gsub(/::/, '').tableize : 'users'
17
17
  end
18
18
 
19
19
  def model_path
@@ -28,9 +28,6 @@ module Sorcery
28
28
  require 'sorcery/providers/line'
29
29
  require 'sorcery/providers/discord'
30
30
  require 'sorcery/providers/battlenet'
31
-
32
-
33
-
34
31
 
35
32
  Config.module_eval do
36
33
  class << self
@@ -1,3 +1,3 @@
1
1
  module Sorcery
2
- VERSION = '0.16.0'.freeze
2
+ VERSION = '0.16.1'.freeze
3
3
  end
data/sorcery.gemspec CHANGED
@@ -34,7 +34,7 @@ Gem::Specification.new do |s|
34
34
  s.required_ruby_version = '>= 2.4.9'
35
35
 
36
36
  s.add_dependency 'bcrypt', '~> 3.1'
37
- s.add_dependency 'oauth', '~> 0.4', '>= 0.4.4'
37
+ s.add_dependency 'oauth', '~> 0.5', '>= 0.5.5'
38
38
  s.add_dependency 'oauth2', '~> 1.0', '>= 0.8.0'
39
39
 
40
40
  s.add_development_dependency 'byebug', '~> 10.0.0'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sorcery
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.16.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Noam Ben Ari
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2021-02-16 00:00:00.000000000 Z
15
+ date: 2021-04-30 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: bcrypt
@@ -34,20 +34,20 @@ dependencies:
34
34
  requirements:
35
35
  - - "~>"
36
36
  - !ruby/object:Gem::Version
37
- version: '0.4'
37
+ version: '0.5'
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 0.4.4
40
+ version: 0.5.5
41
41
  type: :runtime
42
42
  prerelease: false
43
43
  version_requirements: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0.4'
47
+ version: '0.5'
48
48
  - - ">="
49
49
  - !ruby/object:Gem::Version
50
- version: 0.4.4
50
+ version: 0.5.5
51
51
  - !ruby/object:Gem::Dependency
52
52
  name: oauth2
53
53
  requirement: !ruby/object:Gem::Requirement
@@ -195,6 +195,7 @@ extensions: []
195
195
  extra_rdoc_files: []
196
196
  files:
197
197
  - ".document"
198
+ - ".github/FUNDING.yml"
198
199
  - ".github/ISSUE_TEMPLATE.md"
199
200
  - ".github/PULL_REQUEST_TEMPLATE.md"
200
201
  - ".github/workflows/ruby.yml"
@@ -202,7 +203,6 @@ files:
202
203
  - ".rspec"
203
204
  - ".rubocop.yml"
204
205
  - ".rubocop_todo.yml"
205
- - ".travis.yml"
206
206
  - CHANGELOG.md
207
207
  - CODE_OF_CONDUCT.md
208
208
  - Gemfile
@@ -386,7 +386,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
386
386
  - !ruby/object:Gem::Version
387
387
  version: '0'
388
388
  requirements: []
389
- rubygems_version: 3.1.2
389
+ rubygems_version: 3.1.4
390
390
  signing_key:
391
391
  specification_version: 4
392
392
  summary: Magical authentication for Rails applications
data/.travis.yml DELETED
@@ -1,17 +0,0 @@
1
- language: ruby
2
- cache: bundler
3
-
4
- rvm:
5
- - 2.4.9
6
- - 2.5.7
7
- - 2.6.5
8
- - 2.7.1
9
-
10
- gemfile:
11
- - gemfiles/rails_52.gemfile
12
- - gemfiles/rails_60.gemfile
13
-
14
- jobs:
15
- exclude:
16
- - rvm: 2.4.9
17
- gemfile: gemfiles/rails_60.gemfile