htauth 2.1.0 → 2.2.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 +4 -4
- data/HISTORY.md +7 -1
- data/README.md +5 -3
- data/Rakefile +9 -2
- data/lib/htauth/algorithm.rb +2 -1
- data/lib/htauth/version.rb +1 -1
- data/tasks/default.rake +5 -5
- data/tasks/this.rb +2 -2
- metadata +30 -12
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a392e544654ec732a878871166ba48129a72dc8e7d2b3b9e1ed37d99117546b9
|
|
4
|
+
data.tar.gz: fb244f0b94603e5829d36d10e1309d98608a584c1bc8ea3a3d95f60f9950b7fb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3350108830c0ce7bb7e406ec2d449c89eaf3ce1047f095cab78cffe8c197fb03eb9a5ffe7ad1b782e6d15c1ed88017ef96cb48e87cd8e91993454e00bc1fffda
|
|
7
|
+
data.tar.gz: 3b4183cd67ab796c5de2c2fcee847a94ab7d83e925b5283640bd7718274667e141d1618a10f927cf5c6e70cc5a667c284577d83d449a7566770ea60e5a2bc20e
|
data/HISTORY.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
|
-
## Version 2.
|
|
2
|
+
## Version 2.2.0 - 2023-02-XX
|
|
3
|
+
|
|
4
|
+
* Update ruby versions
|
|
5
|
+
* Add to sempahore for CI
|
|
6
|
+
* fix various spelling issues
|
|
7
|
+
|
|
8
|
+
## Version 2.1.1 - 2020-04-02
|
|
3
9
|
|
|
4
10
|
* Update minimum ruby versions to modern versions
|
|
5
11
|
* Support bcrypt password entries [#12](https://github.com/copiousfreetime/htauth/issues/12)
|
data/README.md
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
## HTAuth
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
[](https://copiousfreetime.semaphoreci.com/projects/htauth)
|
|
4
|
+
|
|
5
|
+
* [Homepage](http://github.com/copiousfreetime/htauth)
|
|
6
|
+
* [Github](http://github.com/copiousfreetime/htauth)
|
|
5
7
|
|
|
6
8
|
## DESCRIPTION
|
|
7
9
|
|
|
@@ -49,7 +51,7 @@ Additionally, you can access all the functionality of *htdigest-ruby* and
|
|
|
49
51
|
-v, --version Show version info.
|
|
50
52
|
--verify Verify password for the specified user
|
|
51
53
|
|
|
52
|
-
The SHA
|
|
54
|
+
The SHA algorithm does not use a salt and is less secure than the MD5 algorithm.
|
|
53
55
|
|
|
54
56
|
### htdigest-ruby command line application
|
|
55
57
|
|
data/Rakefile
CHANGED
|
@@ -10,10 +10,17 @@ This.ruby_gemspec do |spec|
|
|
|
10
10
|
spec.add_dependency( 'bcrypt', '~> 3.1' )
|
|
11
11
|
|
|
12
12
|
spec.add_development_dependency( 'rake' , '~> 13.0')
|
|
13
|
-
spec.add_development_dependency( 'minitest' , '~> 5.
|
|
14
|
-
spec.add_development_dependency( '
|
|
13
|
+
spec.add_development_dependency( 'minitest' , '~> 5.11' )
|
|
14
|
+
spec.add_development_dependency( 'minitest-junit' , '~> 1.0' )
|
|
15
|
+
spec.add_development_dependency( 'rdoc' , '~> 6.4' )
|
|
15
16
|
spec.add_development_dependency( 'simplecov', '~> 0.17' )
|
|
16
17
|
|
|
18
|
+
spec.metadata = {
|
|
19
|
+
"bug_tracker_uri" => "https://github.com/copiousfreetime/htauth/issues",
|
|
20
|
+
"changelog_uri" => "https://github.com/copiousfreetime/htauth/blob/master/HISTORY.md",
|
|
21
|
+
"homepage_uri" => "https://github.com/copiousfreetime/htauth",
|
|
22
|
+
"source_code_uri" => "https://github.com/copiousfreetime/htauth",
|
|
23
|
+
}
|
|
17
24
|
spec.license = "MIT"
|
|
18
25
|
end
|
|
19
26
|
|
data/lib/htauth/algorithm.rb
CHANGED
|
@@ -92,7 +92,8 @@ module HTAuth
|
|
|
92
92
|
end
|
|
93
93
|
|
|
94
94
|
# Internal: this is not the Base64 encoding, this is the to64()
|
|
95
|
-
# method from the
|
|
95
|
+
# method from the Apache Portable Runtime (APR) library
|
|
96
|
+
# https://github.com/apache/apr/blob/trunk/crypto/apr_md5.c#L493-L502
|
|
96
97
|
def to_64(number, rounds)
|
|
97
98
|
r = StringIO.new
|
|
98
99
|
rounds.times do |x|
|
data/lib/htauth/version.rb
CHANGED
data/tasks/default.rake
CHANGED
|
@@ -213,19 +213,19 @@ end
|
|
|
213
213
|
# Release - the steps we go through to do a final release, this is pulled from
|
|
214
214
|
# a compbination of mojombo's rakegem, hoe and hoe-git
|
|
215
215
|
#
|
|
216
|
-
# 1) make sure we are on the
|
|
216
|
+
# 1) make sure we are on the main branch
|
|
217
217
|
# 2) make sure there are no uncommitted items
|
|
218
218
|
# 3) check the manifest and make sure all looks good
|
|
219
219
|
# 4) build the gem
|
|
220
220
|
# 5) do an empty commit to have the commit message of the version
|
|
221
221
|
# 6) tag that commit as the version
|
|
222
|
-
# 7) push
|
|
222
|
+
# 7) push main
|
|
223
223
|
# 8) push the tag
|
|
224
224
|
# 7) pus the gem
|
|
225
225
|
#------------------------------------------------------------------------------
|
|
226
226
|
task :release_check do
|
|
227
|
-
unless `git branch` =~ /^\*
|
|
228
|
-
abort "You must be on the
|
|
227
|
+
unless `git branch` =~ /^\* main/
|
|
228
|
+
abort "You must be on the main branch to release!"
|
|
229
229
|
end
|
|
230
230
|
unless `git status` =~ /^nothing to commit/m
|
|
231
231
|
abort "Nope, sorry, you have unfinished business"
|
|
@@ -236,7 +236,7 @@ desc "Create tag v#{This.version}, build and push #{This.platform_gemspec.full_n
|
|
|
236
236
|
task :release => [ :release_check, 'manifest:check', :gem ] do
|
|
237
237
|
sh "git commit --allow-empty -a -m 'Release #{This.version}'"
|
|
238
238
|
sh "git tag -a -m 'v#{This.version}' v#{This.version}"
|
|
239
|
-
sh "git push origin
|
|
239
|
+
sh "git push origin main"
|
|
240
240
|
sh "git push origin v#{This.version}"
|
|
241
241
|
sh "gem push pkg/#{This.platform_gemspec.full_name}.gem"
|
|
242
242
|
end
|
data/tasks/this.rb
CHANGED
|
@@ -25,7 +25,7 @@ class ThisProject
|
|
|
25
25
|
#
|
|
26
26
|
# Yields self
|
|
27
27
|
def initialize(&block)
|
|
28
|
-
@exclude_from_manifest = Regexp.union(/\.(git|DS_Store)/,
|
|
28
|
+
@exclude_from_manifest = Regexp.union(/\.(git|DS_Store|semaphore)/,
|
|
29
29
|
/^(doc|coverage|pkg|tmp|Gemfile(\.lock)?)/,
|
|
30
30
|
/^[^\/]+\.gemspec/,
|
|
31
31
|
/\.(swp|jar|bundle|so|rvmrc|travis.yml|byebug_history|fossa.yml|ruby-version)$/,
|
|
@@ -146,7 +146,7 @@ class ThisProject
|
|
|
146
146
|
spec.rdoc_options = [ "--main" , 'README.md',
|
|
147
147
|
"--markup", "tomdoc" ]
|
|
148
148
|
|
|
149
|
-
spec.required_ruby_version = '>= 2.
|
|
149
|
+
spec.required_ruby_version = '>= 2.3.0'
|
|
150
150
|
end
|
|
151
151
|
end
|
|
152
152
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: htauth
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jeremy Hinegardner
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2023-02-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bcrypt
|
|
@@ -44,28 +44,42 @@ dependencies:
|
|
|
44
44
|
requirements:
|
|
45
45
|
- - "~>"
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: '5.
|
|
47
|
+
version: '5.11'
|
|
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: '5.
|
|
54
|
+
version: '5.11'
|
|
55
|
+
- !ruby/object:Gem::Dependency
|
|
56
|
+
name: minitest-junit
|
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
|
58
|
+
requirements:
|
|
59
|
+
- - "~>"
|
|
60
|
+
- !ruby/object:Gem::Version
|
|
61
|
+
version: '1.0'
|
|
62
|
+
type: :development
|
|
63
|
+
prerelease: false
|
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
+
requirements:
|
|
66
|
+
- - "~>"
|
|
67
|
+
- !ruby/object:Gem::Version
|
|
68
|
+
version: '1.0'
|
|
55
69
|
- !ruby/object:Gem::Dependency
|
|
56
70
|
name: rdoc
|
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
|
58
72
|
requirements:
|
|
59
73
|
- - "~>"
|
|
60
74
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: '6.
|
|
75
|
+
version: '6.4'
|
|
62
76
|
type: :development
|
|
63
77
|
prerelease: false
|
|
64
78
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
79
|
requirements:
|
|
66
80
|
- - "~>"
|
|
67
81
|
- !ruby/object:Gem::Version
|
|
68
|
-
version: '6.
|
|
82
|
+
version: '6.4'
|
|
69
83
|
- !ruby/object:Gem::Dependency
|
|
70
84
|
name: simplecov
|
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -148,8 +162,12 @@ files:
|
|
|
148
162
|
homepage: http://github.com/copiousfreetime/htauth
|
|
149
163
|
licenses:
|
|
150
164
|
- MIT
|
|
151
|
-
metadata:
|
|
152
|
-
|
|
165
|
+
metadata:
|
|
166
|
+
bug_tracker_uri: https://github.com/copiousfreetime/htauth/issues
|
|
167
|
+
changelog_uri: https://github.com/copiousfreetime/htauth/blob/master/HISTORY.md
|
|
168
|
+
homepage_uri: https://github.com/copiousfreetime/htauth
|
|
169
|
+
source_code_uri: https://github.com/copiousfreetime/htauth
|
|
170
|
+
post_install_message:
|
|
153
171
|
rdoc_options:
|
|
154
172
|
- "--main"
|
|
155
173
|
- README.md
|
|
@@ -161,15 +179,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
161
179
|
requirements:
|
|
162
180
|
- - ">="
|
|
163
181
|
- !ruby/object:Gem::Version
|
|
164
|
-
version: 2.
|
|
182
|
+
version: 2.3.0
|
|
165
183
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
166
184
|
requirements:
|
|
167
185
|
- - ">="
|
|
168
186
|
- !ruby/object:Gem::Version
|
|
169
187
|
version: '0'
|
|
170
188
|
requirements: []
|
|
171
|
-
rubygems_version: 3.
|
|
172
|
-
signing_key:
|
|
189
|
+
rubygems_version: 3.4.6
|
|
190
|
+
signing_key:
|
|
173
191
|
specification_version: 4
|
|
174
192
|
summary: HTAuth is a pure ruby replacement for the Apache support programs htdigest
|
|
175
193
|
and htpasswd. Command line and API access are provided for access to htdigest and
|