tsscmp-ruby 0.1.1 → 0.1.2
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/Gemfile +0 -4
- data/Gemfile.lock +1 -1
- data/lib/tsscmp/version.rb +1 -1
- data/lib/tsscmp.rb +2 -1
- data/tsscmp-ruby.gemspec +2 -1
- metadata +15 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d0746a23522e51666f0157f6c40f5908c003ae5fba2d050353f4a29b49795f0c
|
|
4
|
+
data.tar.gz: db91cd736584ff6c311322add64c74c5aa49030c3f88095b800db5af2b1ec0a2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b2beb9b4b9e1c11bbbf4ea7c8e3216a0a6b0386d2f531462944cdcb45eb353c8c38f38c0dbbb72a781779009626b556996822b011d1d345e48a0a654d869d9b4
|
|
7
|
+
data.tar.gz: 9e38e961128b19e299e90bdc6b86229daa879360b3db8cfa7d3283bf77907ffa395301347b71743c85310d277530024d64a682029b6a998db28b2e2d824e3ef5
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
data/lib/tsscmp/version.rb
CHANGED
data/lib/tsscmp.rb
CHANGED
|
@@ -22,7 +22,8 @@ module Tsscmp
|
|
|
22
22
|
|
|
23
23
|
# Implementation Note:
|
|
24
24
|
# `&& a == b` is a very very conservative comparison.
|
|
25
|
-
# In my opnion, `ah == bh` is enough to compare securely although several other implementations use
|
|
25
|
+
# In my opnion, `ah == bh` is enough to compare securely although several other implementations use
|
|
26
|
+
# the strictly method such as:
|
|
26
27
|
# - https://github.com/rails/rails/blob/v5.2.3/activesupport/lib/active_support/security_utils.rb#L27
|
|
27
28
|
# - https://github.com/suryagh/tsscmp/blob/v1.0.6/lib/index.js#L35
|
|
28
29
|
# So, as of the present time, I add `&& a == b`.
|
data/tsscmp-ruby.gemspec
CHANGED
|
@@ -16,7 +16,7 @@ Gem::Specification.new do |spec|
|
|
|
16
16
|
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
|
17
17
|
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
|
18
18
|
if spec.respond_to?(:metadata)
|
|
19
|
-
#spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
|
|
19
|
+
# spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
|
|
20
20
|
|
|
21
21
|
spec.metadata['homepage_uri'] = spec.homepage
|
|
22
22
|
spec.metadata['source_code_uri'] = 'https://github.com/saka1/tsscmp-ruby'
|
|
@@ -38,4 +38,5 @@ Gem::Specification.new do |spec|
|
|
|
38
38
|
spec.add_development_dependency 'bundler', '~> 2.0'
|
|
39
39
|
spec.add_development_dependency 'minitest', '~> 5.0'
|
|
40
40
|
spec.add_development_dependency 'rake', '~> 10.0'
|
|
41
|
+
spec.add_development_dependency 'rubocop'
|
|
41
42
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tsscmp-ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- saka1
|
|
@@ -52,6 +52,20 @@ dependencies:
|
|
|
52
52
|
- - "~>"
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
54
|
version: '10.0'
|
|
55
|
+
- !ruby/object:Gem::Dependency
|
|
56
|
+
name: rubocop
|
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
|
58
|
+
requirements:
|
|
59
|
+
- - ">="
|
|
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'
|
|
55
69
|
description: Timing safe string compare with double HMAC pattern
|
|
56
70
|
email:
|
|
57
71
|
- github@saka1.net
|