has_email_authentication 0.0.1 → 1.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: cfdfe7668bddb4d05f86c79270ccf8e4a018fa42
4
- data.tar.gz: a9b0a059b801a3ef99e78fc005d2069041f474c6
2
+ SHA256:
3
+ metadata.gz: beb136bf2fd806cbae13f99864d85e4875e88efdd17833d662286a51164221ab
4
+ data.tar.gz: 3da676bc8a67992d678013c58974caf7e9d8b921482c1757067db787b29c960e
5
5
  SHA512:
6
- metadata.gz: 8c559d07630a1e680a9fdaeec91a3761be7adc6bb7ef2e109a0ef15b56126be09031d42501f76bcf440d8899becc2cea76ba58a1b77da3c2138c18598047d17d
7
- data.tar.gz: c650c67a21c94b9266ebd78fdffe01831406543c77d7c5266ae0ac7ee033928ac4b0614a9b6fd56243f174292038b3b36ca86f261452316887862941fec72efa
6
+ metadata.gz: 15027086015482a621479697c0623f3835edeb671235b49ff938f6871c51947c56405391f2071fc7b4fcf71a99ab38788b7a3f30e9446e5ada652051a0c73230
7
+ data.tar.gz: 31b7637f3ebc5696180fdf70c83fcb9200441211702337ba2b6f88a6c032daf256e82c458d9a895a6313a2a6aa11a1b244e6a7b22714ae496c79354df6b2d2aa
@@ -0,0 +1,4 @@
1
+ source "https://rubygems.org"
2
+ gem "activerecord", "~> 5.0.0"
3
+ gem "sqlite3", "~> 1.3.0"
4
+ gemspec path: "../"
@@ -0,0 +1,4 @@
1
+ source "https://rubygems.org"
2
+ gem "activerecord", "~> 5.1.0"
3
+ gem "sqlite3", "~> 1.3.0"
4
+ gemspec path: "../"
@@ -0,0 +1,4 @@
1
+ source "https://rubygems.org"
2
+ gem "activerecord", "~> 5.2.0"
3
+ gem "sqlite3", "~> 1.3.0"
4
+ gemspec path: "../"
@@ -0,0 +1,4 @@
1
+ source "https://rubygems.org"
2
+ gem "activerecord", "~> 6.0.0"
3
+ gem "sqlite3", "~> 1.4.0"
4
+ gemspec path: "../"
@@ -0,0 +1,34 @@
1
+ name: Test
2
+
3
+ on:
4
+ - push
5
+
6
+ jobs:
7
+ build:
8
+ runs-on: ubuntu-latest
9
+ strategy:
10
+ matrix:
11
+ ruby:
12
+ - 2.5
13
+ - 2.6
14
+ - 2.7
15
+ gemfile:
16
+ - .gemfiles/5.1.gemfile
17
+ - .gemfiles/5.2.gemfile
18
+ - .gemfiles/6.0.gemfile
19
+ steps:
20
+ - uses: actions/checkout@v2
21
+ - name: Use Ruby ${{ matrix.ruby }}
22
+ uses: actions/setup-ruby@v1
23
+ with:
24
+ ruby-version: ${{ matrix.ruby }}
25
+ - name: Install libsqlite3
26
+ run: |
27
+ sudo apt-get -yqq install libsqlite3-dev
28
+ - name: Run tests
29
+ run: |
30
+ gem install bundler
31
+ bundle install --jobs 4 --retry 3
32
+ bundle exec rake
33
+ env:
34
+ BUNDLE_GEMFILE: ${{ matrix.gemfile }}
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2014 Michael van Rooijen
1
+ Copyright (c) Michael van Rooijen
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -1,10 +1,10 @@
1
1
  # Has Email Authentication
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/has_email_authentication.svg)](http://badge.fury.io/rb/has_email_authentication)
4
- [![Code Climate](https://codeclimate.com/github/meskyanichi/has_email_authentication.png)](https://codeclimate.com/github/meskyanichi/has_email_authentication)
5
- [![Build Status](https://travis-ci.org/meskyanichi/has_email_authentication.svg)](https://travis-ci.org/meskyanichi/has_email_authentication)
4
+ [![Code Climate](https://codeclimate.com/github/mrrooijen/has_email_authentication.png)](https://codeclimate.com/github/mrrooijen/has_email_authentication)
5
+ [![Test Status](https://github.com/mrrooijen/has_email_authentication/workflows/Test/badge.svg)](https://github.com/mrrooijen/has_email_authentication/actions?query=workflow%3ATest)
6
6
 
7
- HasEmailAuthentication, for Rails/ActiveRecord 4.0.0+, is a micro library that compliments `has_secure_password` by providing `has_email_authentication`.
7
+ HasEmailAuthentication, for Rails/ActiveRecord 5.0+, is a micro library that compliments `has_secure_password` by providing `has_email_authentication`.
8
8
 
9
9
  This library was developed for- and extracted from [HireFire].
10
10
 
@@ -13,9 +13,8 @@ The documentation can be found on [RubyDoc].
13
13
 
14
14
  ### Compatibility
15
15
 
16
- - Rails/ActiveRecord 4.0.0+
17
- - Ruby (MRI) 2.0+
18
- - Ruby (RBX) 2.2+
16
+ - Rails/ActiveRecord 5.0+
17
+ - Ruby (MRI) 2.5+
19
18
 
20
19
 
21
20
  ### Installation
@@ -50,9 +49,8 @@ This does a few things:
50
49
 
51
50
  Contributions are welcome, but please conform to these requirements:
52
51
 
53
- - Ruby (MRI) 2.0+
54
- - Ruby (RBX) 2.2+
55
- - ActiveRecord 4.0.0+
52
+ - Ruby (MRI) 2.5+
53
+ - ActiveRecord 5.0+
56
54
  - 100% Spec Coverage
57
55
  - Generated by when running the test suite
58
56
  - 100% [Passing Specs]
@@ -94,13 +92,13 @@ Submit a pull request.
94
92
 
95
93
  ### Author / License
96
94
 
97
- Copyright (c) 2014 Michael van Rooijen ( [@meskyanichi] )<br />
95
+ Copyright (c) Michael van Rooijen ( [@mrrooijen] )<br />
98
96
  Released under the MIT [License].
99
97
 
100
- [@meskyanichi]: https://twitter.com/meskyanichi
101
- [HireFire]: http://hirefire.io
102
- [Passing Specs]: https://travis-ci.org/meskyanichi/has_email_authentication
103
- [Code Climate Score]: https://codeclimate.com/github/meskyanichi/has_email_authentication
104
- [RubyDoc]: http://rubydoc.info/github/meskyanichi/has_email_authentication/master/frames
105
- [License]: https://github.com/meskyanichi/has_email_authentication/blob/master/LICENSE
98
+ [@mrrooijen]: https://twitter.com/mrrooijen
99
+ [HireFire]: https://www.hirefire.io
100
+ [Passing Specs]: https://travis-ci.org/mrrooijen/has_email_authentication
101
+ [Code Climate Score]: https://codeclimate.com/github/mrrooijen/has_email_authentication
102
+ [RubyDoc]: http://rubydoc.info/github/mrrooijen/has_email_authentication/master/frames
103
+ [License]: https://github.com/mrrooijen/has_email_authentication/blob/master/LICENSE
106
104
  [RubyGems.org]: https://rubygems.org/gems/has_email_authentication
@@ -3,26 +3,25 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
  require "has_email_authentication/version"
4
4
 
5
5
  Gem::Specification.new do |spec|
6
- spec.name = "has_email_authentication"
7
- spec.version = HasEmailAuthentication::VERSION
8
- spec.authors = ["Michael van Rooijen"]
9
- spec.email = ["michael@vanrooijen.io"]
10
- spec.summary = %q{A micro library that compliments has_secure_password by providing has_email_authentication.}
11
- spec.homepage = "http://meskyanichi.github.io/has_email_authentication/"
12
- spec.license = "MIT"
6
+ spec.name = "has_email_authentication"
7
+ spec.version = HasEmailAuthentication::VERSION
8
+ spec.authors = ["Michael van Rooijen"]
9
+ spec.email = ["michael@vanrooijen.io"]
10
+ spec.summary = "The email equivalent of has_secure_password for ActiveRecord."
11
+ spec.homepage = "https://github.com/mrrooijen/has_email_authentication"
12
+ spec.license = "MIT"
13
+ spec.files = `git ls-files -z`.split("\x0")
14
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
15
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
16
+ spec.require_paths = ["lib"]
17
+ spec.required_ruby_version = ">= 2.5.0"
13
18
 
14
- spec.files = `git ls-files -z`.split("\x0")
15
- spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
16
- spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
17
- spec.require_paths = ["lib"]
18
-
19
- spec.add_dependency "activerecord", ">= 4.0.0"
19
+ spec.add_dependency "activerecord", ">= 5.0.0"
20
20
  spec.add_development_dependency "bundler"
21
- spec.add_development_dependency "rake"
22
- spec.add_development_dependency "rspec"
23
- spec.add_development_dependency "sqlite3"
24
- spec.add_development_dependency "database_cleaner"
25
- spec.add_development_dependency "pry"
26
- spec.add_development_dependency "simplecov"
27
- spec.add_development_dependency "yard"
21
+ spec.add_development_dependency "rake", "~> 13.0.0"
22
+ spec.add_development_dependency "rspec", "~> 3.9.0"
23
+ spec.add_development_dependency "database_cleaner", "~> 1.8.0"
24
+ spec.add_development_dependency "pry", "~> 0.12.0"
25
+ spec.add_development_dependency "simplecov", "~> 0.18.0"
26
+ spec.add_development_dependency "yard", "~> 0.9.0"
28
27
  end
@@ -1,3 +1,3 @@
1
1
  module HasEmailAuthentication
2
- VERSION = "0.0.1"
2
+ VERSION = "1.0.0"
3
3
  end
@@ -1,8 +1,9 @@
1
1
  ActiveRecord::Base.establish_connection(
2
- adapter: "sqlite3", database: ":memory:"
2
+ :adapter => "sqlite3",
3
+ :database => ":memory:",
3
4
  )
4
5
 
5
- class Schema < ActiveRecord::Migration
6
+ class Schema < ActiveRecord::Migration[5.0]
6
7
 
7
8
  def change
8
9
  create_table :users do |t|
@@ -11,6 +12,4 @@ class Schema < ActiveRecord::Migration
11
12
  end
12
13
  end
13
14
 
14
- silence_stream(STDOUT) do
15
- Schema.new.change
16
- end
15
+ Schema.new.change
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: has_email_authentication
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael van Rooijen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-20 00:00:00.000000000 Z
11
+ date: 2020-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 4.0.0
19
+ version: 5.0.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 4.0.0
26
+ version: 5.0.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -42,100 +42,86 @@ dependencies:
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: 13.0.0
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: 13.0.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
- - !ruby/object:Gem::Dependency
70
- name: sqlite3
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: '0'
61
+ version: 3.9.0
76
62
  type: :development
77
63
  prerelease: false
78
64
  version_requirements: !ruby/object:Gem::Requirement
79
65
  requirements:
80
- - - ">="
66
+ - - "~>"
81
67
  - !ruby/object:Gem::Version
82
- version: '0'
68
+ version: 3.9.0
83
69
  - !ruby/object:Gem::Dependency
84
70
  name: database_cleaner
85
71
  requirement: !ruby/object:Gem::Requirement
86
72
  requirements:
87
- - - ">="
73
+ - - "~>"
88
74
  - !ruby/object:Gem::Version
89
- version: '0'
75
+ version: 1.8.0
90
76
  type: :development
91
77
  prerelease: false
92
78
  version_requirements: !ruby/object:Gem::Requirement
93
79
  requirements:
94
- - - ">="
80
+ - - "~>"
95
81
  - !ruby/object:Gem::Version
96
- version: '0'
82
+ version: 1.8.0
97
83
  - !ruby/object:Gem::Dependency
98
84
  name: pry
99
85
  requirement: !ruby/object:Gem::Requirement
100
86
  requirements:
101
- - - ">="
87
+ - - "~>"
102
88
  - !ruby/object:Gem::Version
103
- version: '0'
89
+ version: 0.12.0
104
90
  type: :development
105
91
  prerelease: false
106
92
  version_requirements: !ruby/object:Gem::Requirement
107
93
  requirements:
108
- - - ">="
94
+ - - "~>"
109
95
  - !ruby/object:Gem::Version
110
- version: '0'
96
+ version: 0.12.0
111
97
  - !ruby/object:Gem::Dependency
112
98
  name: simplecov
113
99
  requirement: !ruby/object:Gem::Requirement
114
100
  requirements:
115
- - - ">="
101
+ - - "~>"
116
102
  - !ruby/object:Gem::Version
117
- version: '0'
103
+ version: 0.18.0
118
104
  type: :development
119
105
  prerelease: false
120
106
  version_requirements: !ruby/object:Gem::Requirement
121
107
  requirements:
122
- - - ">="
108
+ - - "~>"
123
109
  - !ruby/object:Gem::Version
124
- version: '0'
110
+ version: 0.18.0
125
111
  - !ruby/object:Gem::Dependency
126
112
  name: yard
127
113
  requirement: !ruby/object:Gem::Requirement
128
114
  requirements:
129
- - - ">="
115
+ - - "~>"
130
116
  - !ruby/object:Gem::Version
131
- version: '0'
117
+ version: 0.9.0
132
118
  type: :development
133
119
  prerelease: false
134
120
  version_requirements: !ruby/object:Gem::Requirement
135
121
  requirements:
136
- - - ">="
122
+ - - "~>"
137
123
  - !ruby/object:Gem::Version
138
- version: '0'
124
+ version: 0.9.0
139
125
  description:
140
126
  email:
141
127
  - michael@vanrooijen.io
@@ -143,12 +129,13 @@ executables: []
143
129
  extensions: []
144
130
  extra_rdoc_files: []
145
131
  files:
146
- - ".gemfiles/4.0.gemfile"
147
- - ".gemfiles/4.1.gemfile"
148
- - ".gemfiles/4.2.gemfile"
132
+ - ".gemfiles/5.0.gemfile"
133
+ - ".gemfiles/5.1.gemfile"
134
+ - ".gemfiles/5.2.gemfile"
135
+ - ".gemfiles/6.0.gemfile"
136
+ - ".github/workflows/test.yml"
149
137
  - ".gitignore"
150
138
  - ".rspec"
151
- - ".travis.yml"
152
139
  - Gemfile
153
140
  - LICENSE
154
141
  - README.md
@@ -162,7 +149,7 @@ files:
162
149
  - spec/support/db.rb
163
150
  - spec/support/env.rb
164
151
  - spec/support/models.rb
165
- homepage: http://meskyanichi.github.io/has_email_authentication/
152
+ homepage: https://github.com/mrrooijen/has_email_authentication
166
153
  licenses:
167
154
  - MIT
168
155
  metadata: {}
@@ -174,22 +161,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
174
161
  requirements:
175
162
  - - ">="
176
163
  - !ruby/object:Gem::Version
177
- version: '0'
164
+ version: 2.5.0
178
165
  required_rubygems_version: !ruby/object:Gem::Requirement
179
166
  requirements:
180
167
  - - ">="
181
168
  - !ruby/object:Gem::Version
182
169
  version: '0'
183
170
  requirements: []
184
- rubyforge_project:
185
- rubygems_version: 2.2.2
171
+ rubygems_version: 3.0.3
186
172
  signing_key:
187
173
  specification_version: 4
188
- summary: A micro library that compliments has_secure_password by providing has_email_authentication.
174
+ summary: The email equivalent of has_secure_password for ActiveRecord.
189
175
  test_files:
190
176
  - spec/lib/has_email_authentication_spec.rb
191
177
  - spec/spec_helper.rb
192
178
  - spec/support/db.rb
193
179
  - spec/support/env.rb
194
180
  - spec/support/models.rb
195
- has_rdoc:
@@ -1,3 +0,0 @@
1
- source "https://rubygems.org"
2
- gem "activerecord", "~> 4.0.0"
3
- gemspec path: "../"
@@ -1,3 +0,0 @@
1
- source "https://rubygems.org"
2
- gem "activerecord", "~> 4.1.0"
3
- gemspec path: "../"
@@ -1,3 +0,0 @@
1
- source "https://rubygems.org"
2
- gem "activerecord", "4.2.0.beta1"
3
- gemspec path: "../"
@@ -1,9 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.0.0
4
- - 2.1.0
5
- - rbx-2.2
6
- gemfile:
7
- - .gemfiles/4.0.gemfile
8
- - .gemfiles/4.1.gemfile
9
- - .gemfiles/4.2.gemfile