omniauth-identity 3.0.1 → 3.0.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
  SHA256:
3
- metadata.gz: 7dcc9a20a3a2b96b6a97f6319eae36df210fed3cea3faa2f2251780e37ac1992
4
- data.tar.gz: 1c5644fef5b8e3381063228ef0d9d512db76d4358643d4685f19ea35c7efefe0
3
+ metadata.gz: 8e337a130887896ec09b2aa2a66fa1064a87b5aad59d1e068d484a2d2666f691
4
+ data.tar.gz: 7cdf49c8f0dc5db0d481233c91f9800932880d243f2c8311dc9336d3830d1296
5
5
  SHA512:
6
- metadata.gz: 900adc20c287fd19c5fb1545711a715a5235b51fd5f5cdff9f5e26445efe91e7db7fbdb59035ac64d1621c10b810183ff54beb701e940d6dd8908edb9e15532f
7
- data.tar.gz: bb1f0af1551b7f9de8bf3ea602a11780feb2f40390cd752fe201157179d985529ab39df4373803acda4fd1e7927678ed844854ff0493c18d2f527fdc21af3608
6
+ metadata.gz: 83e043a28067c4e22ce4be6932901eea262846000623626e73f9b6efa3ee2cd8a63263d93240d81173533d8db4e3a86815bf653814b26ced28b16b29e4787762
7
+ data.tar.gz: b12161b52c4d4f3b2d5e19d954ad965f0a7c73d4622a50f8004c2659ccd06445f19e20db23c81926f3ff9dc74930739f3f31d69c4da351e1208ea055832700a6
data/CHANGELOG.md CHANGED
@@ -6,9 +6,29 @@ All notable changes to this project will be documented in this file.
6
6
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
7
7
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
8
8
 
9
+ ## [Unreleased]
10
+
11
+ ## [3.0.2] - 2021-02-14
12
+
13
+ ### Fixed
14
+
15
+ - Github Actions CI Build for Ruby 2.4, 3.0 and ruby-head
16
+ - Updated copyright
17
+ - Code style cleanup
18
+ - Added Code Climate "Quality"
19
+ - Updated Readme
20
+
21
+ ## [3.0.1] - 2021-02-14
22
+
23
+ ### Fixed
24
+
25
+ - Github Actions CI Build for various Rubies
26
+
9
27
  ## [3.0] - 2021-02-13
10
28
 
11
29
  ### Added
30
+
31
+ - Compatibility with Ruby 3
12
32
  - Add option `:enable_login` to bypass OmniAuth disabling of GET method (default `true`)
13
33
  - NOTE: This restores compatibility between this gem and the current, core, omniauth gem!
14
34
  - README updates, including a rename to README.md
@@ -20,6 +40,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
20
40
  - Documentation in README.md
21
41
 
22
42
  ### Removed
43
+
23
44
  - Support for Rubies < 2.4
24
45
  - Support for DataMapper, which died long ago.
25
46
  - Unwanted git artifacts
@@ -27,10 +48,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
27
48
  ## [2.0] - 2020-09-01
28
49
 
29
50
  ### Added
51
+
30
52
  - CHANGELOG to maintain a history of changes.
31
53
  - Include mongoid-rspec gem.
32
54
 
33
55
  ### Changed
56
+
34
57
  - Fix failing Specs
35
58
  - Update Spec syntax to RSpec 3
36
59
  - Fix deprecation Warnings
data/LICENSE CHANGED
@@ -1,4 +1,5 @@
1
- Copyright (c) 2020- Andrew Roberts, and Jellybooks Ltd.
1
+ Copyright (c) 2021 OmniAuth-Identity Maintainers
2
+ Copyright (c) 2020 Peter Boling, Andrew Roberts, and Jellybooks Ltd.
2
3
  Copyright (c) 2010-2015 Michael Bleigh and Intridea, Inc.
3
4
 
4
5
  Permission is hereby granted, free of charge, to any person obtaining
data/README.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # OmniAuth Identity
2
2
 
3
+ [![Build Status](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fomniauth%2Fomniauth-identity%2Fbadge&style=flat)](https://actions-badge.atrox.dev/omniauth/omniauth-identity/goto)
4
+ [![Maintainability](https://api.codeclimate.com/v1/badges/621d6211cb2e0959ce00/maintainability)](https://codeclimate.com/github/omniauth/omniauth-identity/maintainability)
5
+ [![Test Coverage](https://api.codeclimate.com/v1/badges/621d6211cb2e0959ce00/test_coverage)](https://codeclimate.com/github/omniauth/omniauth-identity/test_coverage)
6
+ [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)
7
+ [![Open Source Helpers](https://www.codetriage.com/omniauth/omniauth-identity/badges/users.svg)](https://www.codetriage.com/omniauth/omniauth-identity)
8
+ [![Downloads Rank](https://img.shields.io/gem/rd/omniauth-identity.svg)](https://rubygems.org/gems/omniauth-identity)
9
+
3
10
  The OmniAuth Identity gem provides a way for applications to utilize a
4
11
  traditional login/password based authentication system without the need
5
12
  to give up the simple authentication flow provided by OmniAuth. Identity
@@ -8,9 +15,10 @@ basic construct for user management and then gets out of the way.
8
15
 
9
16
  ## Compatibility
10
17
 
11
- This gem is compatible with, as of Feb 2021:
12
- • latest released version of omniauth, v2.0.2
13
- Ruby 2.4, 2.5, 2.6, 2.7
18
+ This gem is compatible with, as of Feb 2021, version 3:
19
+
20
+ * Latest released version of omniauth, v2.0.2
21
+ * Ruby 2.4, 2.5, 2.6, 2.7, 3.0, ruby-head
14
22
 
15
23
  ## Installation
16
24
 
@@ -1,2 +1,4 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'omniauth-identity/version'
2
4
  require 'omniauth/identity'
@@ -1,5 +1,7 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module OmniAuth
2
4
  module Identity
3
- VERSION = '3.0.1'
5
+ VERSION = '3.0.2'
4
6
  end
5
7
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'omniauth'
2
4
 
3
5
  module OmniAuth
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module OmniAuth
2
4
  module Identity
3
5
  # This module provides an includable interface for implementing the
@@ -53,7 +55,7 @@ module OmniAuth
53
55
  raise NotImplementedError
54
56
  end
55
57
 
56
- SCHEMA_ATTRIBUTES = %w[name email nickname first_name last_name location description image phone]
58
+ SCHEMA_ATTRIBUTES = %w[name email nickname first_name last_name location description image phone].freeze
57
59
  # A hash of as much of the standard OmniAuth schema as is stored
58
60
  # in this particular model. By default, this will call instance
59
61
  # methods for each of the attributes it needs in turn, ignoring
@@ -104,7 +106,7 @@ module OmniAuth
104
106
  # @param [String] value The value to which the auth key should be
105
107
  # set.
106
108
  def auth_key=(value)
107
- auth_key_setter = (self.class.auth_key + '=').to_sym
109
+ auth_key_setter = "#{self.class.auth_key}=".to_sym
108
110
  if respond_to?(auth_key_setter)
109
111
  send(auth_key_setter, value)
110
112
  else
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'active_record'
2
4
 
3
5
  module OmniAuth
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'couch_potato'
2
4
 
3
5
  module OmniAuth
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'mongoid'
2
4
 
3
5
  module OmniAuth
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'bcrypt'
2
4
 
3
5
  module OmniAuth
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module OmniAuth
2
4
  module Strategies
3
5
  # The identity strategy allows you to provide simple internal
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class ExampleModel
2
4
  include OmniAuth::Identity::Model
3
5
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  RSpec.describe(OmniAuth::Identity::Models::ActiveRecord, db: true) do
2
4
  describe 'model', type: :model do
3
5
  subject(:model_klass) do
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  RSpec.describe(OmniAuth::Identity::Models::CouchPotatoModule, db: true) do
2
4
  class CouchPotatoTestIdentity
3
5
  include CouchPotato::Persistence
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  RSpec.describe(OmniAuth::Identity::Models::Mongoid, db: true) do
2
4
  class MongoidTestIdentity
3
5
  include Mongoid::Document
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class HasTheMethod
2
4
  def self.has_secure_password; end
3
5
  end
@@ -8,17 +10,17 @@ end
8
10
  RSpec.describe OmniAuth::Identity::SecurePassword do
9
11
  it 'extends with the class methods if it does not have the method' do
10
12
  expect(DoesNotHaveTheMethod).to receive(:extend).with(OmniAuth::Identity::SecurePassword::ClassMethods)
11
- DoesNotHaveTheMethod.include OmniAuth::Identity::SecurePassword
13
+ DoesNotHaveTheMethod.include described_class
12
14
  end
13
15
 
14
16
  it 'does not extend if the method is already defined' do
15
17
  expect(HasTheMethod).not_to receive(:extend)
16
- HasTheMethod.include OmniAuth::Identity::SecurePassword
18
+ HasTheMethod.include described_class
17
19
  end
18
20
 
19
21
  it 'responds to has_secure_password afterwards' do
20
22
  [HasTheMethod, DoesNotHaveTheMethod].each do |klass|
21
- klass.send(:include, OmniAuth::Identity::SecurePassword)
23
+ klass.send(:include, described_class)
22
24
  expect(klass).to be_respond_to(:has_secure_password)
23
25
  end
24
26
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  RSpec.describe OmniAuth::Strategies::Identity do
2
4
  attr_accessor :app
3
5
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-identity
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1
4
+ version: 3.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Boling
@@ -40,20 +40,6 @@ dependencies:
40
40
  - - ">="
41
41
  - !ruby/object:Gem::Version
42
42
  version: '0'
43
- - !ruby/object:Gem::Dependency
44
- name: activerecord
45
- requirement: !ruby/object:Gem::Requirement
46
- requirements:
47
- - - "~>"
48
- - !ruby/object:Gem::Version
49
- version: '6'
50
- type: :development
51
- prerelease: false
52
- version_requirements: !ruby/object:Gem::Requirement
53
- requirements:
54
- - - "~>"
55
- - !ruby/object:Gem::Version
56
- version: '6'
57
43
  - !ruby/object:Gem::Dependency
58
44
  name: anonymous_active_record
59
45
  requirement: !ruby/object:Gem::Requirement
@@ -68,20 +54,6 @@ dependencies:
68
54
  - - ">="
69
55
  - !ruby/object:Gem::Version
70
56
  version: 1.0.7
71
- - !ruby/object:Gem::Dependency
72
- name: byebug
73
- requirement: !ruby/object:Gem::Requirement
74
- requirements:
75
- - - "~>"
76
- - !ruby/object:Gem::Version
77
- version: '11'
78
- type: :development
79
- prerelease: false
80
- version_requirements: !ruby/object:Gem::Requirement
81
- requirements:
82
- - - "~>"
83
- - !ruby/object:Gem::Version
84
- version: '11'
85
57
  - !ruby/object:Gem::Dependency
86
58
  name: mongoid
87
59
  requirement: !ruby/object:Gem::Requirement
@@ -139,131 +111,19 @@ dependencies:
139
111
  - !ruby/object:Gem::Version
140
112
  version: '3'
141
113
  - !ruby/object:Gem::Dependency
142
- name: rubocop
143
- requirement: !ruby/object:Gem::Requirement
144
- requirements:
145
- - - "~>"
146
- - !ruby/object:Gem::Version
147
- version: '1.9'
148
- type: :development
149
- prerelease: false
150
- version_requirements: !ruby/object:Gem::Requirement
151
- requirements:
152
- - - "~>"
153
- - !ruby/object:Gem::Version
154
- version: '1.9'
155
- - !ruby/object:Gem::Dependency
156
- name: rubocop-md
157
- requirement: !ruby/object:Gem::Requirement
158
- requirements:
159
- - - ">="
160
- - !ruby/object:Gem::Version
161
- version: '0'
162
- type: :development
163
- prerelease: false
164
- version_requirements: !ruby/object:Gem::Requirement
165
- requirements:
166
- - - ">="
167
- - !ruby/object:Gem::Version
168
- version: '0'
169
- - !ruby/object:Gem::Dependency
170
- name: rubocop-minitest
171
- requirement: !ruby/object:Gem::Requirement
172
- requirements:
173
- - - ">="
174
- - !ruby/object:Gem::Version
175
- version: '0'
176
- type: :development
177
- prerelease: false
178
- version_requirements: !ruby/object:Gem::Requirement
179
- requirements:
180
- - - ">="
181
- - !ruby/object:Gem::Version
182
- version: '0'
183
- - !ruby/object:Gem::Dependency
184
- name: rubocop-packaging
185
- requirement: !ruby/object:Gem::Requirement
186
- requirements:
187
- - - ">="
188
- - !ruby/object:Gem::Version
189
- version: '0'
190
- type: :development
191
- prerelease: false
192
- version_requirements: !ruby/object:Gem::Requirement
193
- requirements:
194
- - - ">="
195
- - !ruby/object:Gem::Version
196
- version: '0'
197
- - !ruby/object:Gem::Dependency
198
- name: rubocop-performance
199
- requirement: !ruby/object:Gem::Requirement
200
- requirements:
201
- - - ">="
202
- - !ruby/object:Gem::Version
203
- version: '0'
204
- type: :development
205
- prerelease: false
206
- version_requirements: !ruby/object:Gem::Requirement
207
- requirements:
208
- - - ">="
209
- - !ruby/object:Gem::Version
210
- version: '0'
211
- - !ruby/object:Gem::Dependency
212
- name: rubocop-rake
213
- requirement: !ruby/object:Gem::Requirement
214
- requirements:
215
- - - ">="
216
- - !ruby/object:Gem::Version
217
- version: '0'
218
- type: :development
219
- prerelease: false
220
- version_requirements: !ruby/object:Gem::Requirement
221
- requirements:
222
- - - ">="
223
- - !ruby/object:Gem::Version
224
- version: '0'
225
- - !ruby/object:Gem::Dependency
226
- name: rubocop-rspec
227
- requirement: !ruby/object:Gem::Requirement
228
- requirements:
229
- - - ">="
230
- - !ruby/object:Gem::Version
231
- version: '0'
232
- type: :development
233
- prerelease: false
234
- version_requirements: !ruby/object:Gem::Requirement
235
- requirements:
236
- - - ">="
237
- - !ruby/object:Gem::Version
238
- version: '0'
239
- - !ruby/object:Gem::Dependency
240
- name: simplecov
114
+ name: sqlite3
241
115
  requirement: !ruby/object:Gem::Requirement
242
116
  requirements:
243
117
  - - "~>"
244
118
  - !ruby/object:Gem::Version
245
- version: '0.21'
119
+ version: '1.4'
246
120
  type: :development
247
121
  prerelease: false
248
122
  version_requirements: !ruby/object:Gem::Requirement
249
123
  requirements:
250
124
  - - "~>"
251
125
  - !ruby/object:Gem::Version
252
- version: '0.21'
253
- - !ruby/object:Gem::Dependency
254
- name: sqlite3
255
- requirement: !ruby/object:Gem::Requirement
256
- requirements:
257
- - - ">="
258
- - !ruby/object:Gem::Version
259
- version: '0'
260
- type: :development
261
- prerelease: false
262
- version_requirements: !ruby/object:Gem::Requirement
263
- requirements:
264
- - - ">="
265
- - !ruby/object:Gem::Version
266
- version: '0'
126
+ version: '1.4'
267
127
  description: Internal authentication handlers for OmniAuth.
268
128
  email:
269
129
  executables: []