m2m_keygen 0.4.5 → 0.4.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.overcommit.yml +2 -0
- data/.rubocop.yml +1 -1
- data/.ruby-version +1 -1
- data/CHANGELOG.md +15 -1
- data/Gemfile +2 -2
- data/Gemfile.lock +93 -90
- data/docs/M2mKeygen/Error.html +3 -3
- data/docs/M2mKeygen/ParamsEncoder.html +3 -3
- data/docs/M2mKeygen/RackValidator.html +6 -6
- data/docs/M2mKeygen/Signature.html +3 -3
- data/docs/M2mKeygen/Types.html +3 -3
- data/docs/M2mKeygen.html +4 -4
- data/docs/_index.html +4 -4
- data/docs/file.README.html +3 -3
- data/docs/frames.html +1 -1
- data/docs/index.html +3 -3
- data/docs/top-level-namespace.html +3 -3
- data/lib/m2m_keygen/rack_validator.rb +3 -3
- data/lib/m2m_keygen/version.rb +1 -1
- data/m2m_keygen.gemspec +1 -1
- data/yarn.lock +9 -4
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 911f6465123bb47e8eb24ce2d141398e6a457d7d73c9b65a3253ca1e679da34e
|
4
|
+
data.tar.gz: '098a66c06dcd076acc728a2b06083c4c9692058ded10bae010dea1ef8e45939a'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b02b9bc1c0b3d38a30acf714f2054880c909ed23803e4faca1ed289e19213e9990421e6649b1526b9b5ff37cda460665ee5eef4f8fa72391a9d04c119fecd67d
|
7
|
+
data.tar.gz: 7e25a5780b10ebd546d2fa220b937749a30c9244c614c7525d1d01307548e4e0dfb905d792c3bf55fc1b5190e7a2a02c1b4113c7a89571d92782a43029320143
|
data/.overcommit.yml
CHANGED
data/.rubocop.yml
CHANGED
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.
|
1
|
+
3.2.2
|
data/CHANGELOG.md
CHANGED
@@ -7,6 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
7
7
|
|
8
8
|
## [Unreleased]
|
9
9
|
|
10
|
+
## [0.4.7] - 2023-10-04
|
11
|
+
|
12
|
+
### Fixed
|
13
|
+
|
14
|
+
- Various updates
|
15
|
+
|
16
|
+
## [0.4.6] - 2022-11-14
|
17
|
+
|
18
|
+
### Fixed
|
19
|
+
|
20
|
+
- Expiry can be part of JSON body
|
21
|
+
|
10
22
|
## [0.4.5] - 2022-11-14
|
11
23
|
|
12
24
|
### Fixed
|
@@ -67,7 +79,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
67
79
|
|
68
80
|
- Basic skeleton for gem
|
69
81
|
|
70
|
-
[unreleased]: https://github.com/Billcorporate/m2m_keygen_ruby/compare/v0.4.
|
82
|
+
[unreleased]: https://github.com/Billcorporate/m2m_keygen_ruby/compare/v0.4.7...HEAD
|
83
|
+
[0.4.7]: https://github.com/Billcorporate/m2m_keygen_ruby/releases/tag/v0.4.7
|
84
|
+
[0.4.6]: https://github.com/Billcorporate/m2m_keygen_ruby/releases/tag/v0.4.6
|
71
85
|
[0.4.5]: https://github.com/Billcorporate/m2m_keygen_ruby/releases/tag/v0.4.5
|
72
86
|
[0.4.4]: https://github.com/Billcorporate/m2m_keygen_ruby/releases/tag/v0.4.4
|
73
87
|
[0.4.3]: https://github.com/Billcorporate/m2m_keygen_ruby/releases/tag/v0.4.3
|
data/Gemfile
CHANGED
@@ -14,8 +14,8 @@ group :development do
|
|
14
14
|
gem 'overcommit', require: false
|
15
15
|
gem 'prettier', require: false
|
16
16
|
gem 'pry-byebug'
|
17
|
-
gem 'rake', '
|
18
|
-
gem 'rspec', '
|
17
|
+
gem 'rake', '>= 13.0'
|
18
|
+
gem 'rspec', '>= 3.0'
|
19
19
|
gem 'rspec_in_context', '> 1'
|
20
20
|
gem 'rubocop', '> 0.58', require: false
|
21
21
|
gem 'rubocop-faker', require: false
|
data/Gemfile.lock
CHANGED
@@ -1,38 +1,40 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
m2m_keygen (0.4.
|
4
|
+
m2m_keygen (0.4.7)
|
5
5
|
rack
|
6
6
|
sorbet-runtime
|
7
|
-
zeitwerk (
|
7
|
+
zeitwerk (>= 2.6)
|
8
8
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
|
-
activesupport (7.0.
|
12
|
+
activesupport (7.0.8)
|
13
13
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
14
14
|
i18n (>= 1.6, < 2)
|
15
15
|
minitest (>= 5.1)
|
16
16
|
tzinfo (~> 2.0)
|
17
17
|
ast (2.4.2)
|
18
18
|
backport (1.2.0)
|
19
|
-
|
19
|
+
base64 (0.1.1)
|
20
|
+
benchmark (0.2.1)
|
20
21
|
bundler-audit (0.9.1)
|
21
22
|
bundler (>= 1.2.0, < 3)
|
22
23
|
thor (~> 1.0)
|
23
24
|
byebug (11.1.3)
|
24
25
|
childprocess (4.1.0)
|
25
26
|
coderay (1.1.3)
|
26
|
-
concurrent-ruby (1.
|
27
|
+
concurrent-ruby (1.2.2)
|
27
28
|
diff-lcs (1.5.0)
|
28
29
|
docile (1.4.0)
|
29
30
|
dotenv (2.8.1)
|
30
31
|
e2mmap (0.1.0)
|
31
|
-
|
32
|
+
erubi (1.12.0)
|
33
|
+
faker (3.2.1)
|
32
34
|
i18n (>= 1.8.11, < 2)
|
33
|
-
ffi (1.
|
35
|
+
ffi (1.16.3)
|
34
36
|
formatador (1.1.0)
|
35
|
-
guard (2.18.
|
37
|
+
guard (2.18.1)
|
36
38
|
formatador (>= 0.2.4)
|
37
39
|
listen (>= 2.7, < 4.0)
|
38
40
|
lumberjack (>= 1.0.12, < 2.0)
|
@@ -46,178 +48,179 @@ GEM
|
|
46
48
|
guard (~> 2.1)
|
47
49
|
guard-compat (~> 1.1)
|
48
50
|
rspec (>= 2.99.0, < 4.0)
|
49
|
-
haml (6.
|
51
|
+
haml (6.2.3)
|
50
52
|
temple (>= 0.8.2)
|
51
53
|
thor
|
52
54
|
tilt
|
53
|
-
i18n (1.
|
55
|
+
i18n (1.14.1)
|
54
56
|
concurrent-ruby (~> 1.0)
|
55
57
|
iniparse (1.5.0)
|
56
|
-
jaro_winkler (1.5.
|
57
|
-
json (2.6.
|
58
|
+
jaro_winkler (1.5.6)
|
59
|
+
json (2.6.3)
|
58
60
|
kramdown (2.4.0)
|
59
61
|
rexml
|
60
62
|
kramdown-parser-gfm (1.1.0)
|
61
63
|
kramdown (~> 2.0)
|
62
|
-
|
64
|
+
language_server-protocol (3.17.0.3)
|
65
|
+
listen (3.8.0)
|
63
66
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
64
67
|
rb-inotify (~> 0.9, >= 0.9.10)
|
65
|
-
lumberjack (1.2.
|
68
|
+
lumberjack (1.2.9)
|
66
69
|
method_source (1.0.0)
|
67
|
-
minitest (5.
|
70
|
+
minitest (5.20.0)
|
68
71
|
nenv (0.3.0)
|
69
72
|
netrc (0.11.0)
|
70
|
-
nokogiri (1.
|
73
|
+
nokogiri (1.15.4-arm64-darwin)
|
71
74
|
racc (~> 1.4)
|
72
|
-
nokogiri (1.
|
75
|
+
nokogiri (1.15.4-x86_64-linux)
|
73
76
|
racc (~> 1.4)
|
74
77
|
notiffany (0.1.3)
|
75
78
|
nenv (~> 0.1)
|
76
79
|
shellany (~> 0.0)
|
77
|
-
overcommit (0.
|
80
|
+
overcommit (0.60.0)
|
78
81
|
childprocess (>= 0.6.3, < 5)
|
79
82
|
iniparse (~> 1.4)
|
80
83
|
rexml (~> 3.2)
|
81
|
-
parallel (1.
|
82
|
-
parser (3.
|
84
|
+
parallel (1.23.0)
|
85
|
+
parser (3.2.2.4)
|
83
86
|
ast (~> 2.4.1)
|
84
|
-
|
85
|
-
|
86
|
-
syntax_tree
|
87
|
+
racc
|
88
|
+
prettier (4.0.2)
|
89
|
+
syntax_tree (>= 4.0.1)
|
90
|
+
syntax_tree-haml (>= 2.0.0)
|
87
91
|
syntax_tree-rbs (>= 0.2.0)
|
88
|
-
prettier_print (1.1
|
89
|
-
pry (0.14.
|
92
|
+
prettier_print (1.2.1)
|
93
|
+
pry (0.14.2)
|
90
94
|
coderay (~> 1.1)
|
91
95
|
method_source (~> 1.0)
|
92
96
|
pry-byebug (3.10.1)
|
93
97
|
byebug (~> 11.0)
|
94
98
|
pry (>= 0.13, < 0.15)
|
95
|
-
racc (1.
|
96
|
-
rack (3.0.
|
99
|
+
racc (1.7.1)
|
100
|
+
rack (3.0.8)
|
97
101
|
rainbow (3.1.1)
|
98
102
|
rake (13.0.6)
|
99
103
|
rb-fsevent (0.11.2)
|
100
104
|
rb-inotify (0.10.1)
|
101
105
|
ffi (~> 1.0)
|
102
|
-
rbi (0.
|
103
|
-
ast
|
104
|
-
parser (>= 2.6.4.0)
|
106
|
+
rbi (0.1.1)
|
105
107
|
sorbet-runtime (>= 0.5.9204)
|
106
|
-
|
107
|
-
rbs (2.
|
108
|
-
regexp_parser (2.
|
108
|
+
yarp (>= 0.11.0)
|
109
|
+
rbs (2.8.4)
|
110
|
+
regexp_parser (2.8.1)
|
109
111
|
reverse_markdown (2.1.1)
|
110
112
|
nokogiri
|
111
|
-
rexml (3.2.
|
113
|
+
rexml (3.2.6)
|
112
114
|
rspec (3.12.0)
|
113
115
|
rspec-core (~> 3.12.0)
|
114
116
|
rspec-expectations (~> 3.12.0)
|
115
117
|
rspec-mocks (~> 3.12.0)
|
116
|
-
rspec-core (3.12.
|
118
|
+
rspec-core (3.12.2)
|
117
119
|
rspec-support (~> 3.12.0)
|
118
|
-
rspec-expectations (3.12.
|
120
|
+
rspec-expectations (3.12.3)
|
119
121
|
diff-lcs (>= 1.2.0, < 2.0)
|
120
122
|
rspec-support (~> 3.12.0)
|
121
|
-
rspec-mocks (3.12.
|
123
|
+
rspec-mocks (3.12.6)
|
122
124
|
diff-lcs (>= 1.2.0, < 2.0)
|
123
125
|
rspec-support (~> 3.12.0)
|
124
|
-
rspec-support (3.12.
|
126
|
+
rspec-support (3.12.1)
|
125
127
|
rspec_in_context (1.1.0.3)
|
126
128
|
activesupport (> 2.0)
|
127
129
|
rspec (> 3.0)
|
128
|
-
rubocop (1.
|
130
|
+
rubocop (1.56.4)
|
131
|
+
base64 (~> 0.1.1)
|
129
132
|
json (~> 2.3)
|
133
|
+
language_server-protocol (>= 3.17.0)
|
130
134
|
parallel (~> 1.10)
|
131
|
-
parser (>= 3.
|
135
|
+
parser (>= 3.2.2.3)
|
132
136
|
rainbow (>= 2.2.2, < 4.0)
|
133
137
|
regexp_parser (>= 1.8, < 3.0)
|
134
138
|
rexml (>= 3.2.5, < 4.0)
|
135
|
-
rubocop-ast (>= 1.
|
139
|
+
rubocop-ast (>= 1.28.1, < 2.0)
|
136
140
|
ruby-progressbar (~> 1.7)
|
137
|
-
unicode-display_width (>=
|
138
|
-
rubocop-ast (1.
|
139
|
-
parser (>= 3.
|
141
|
+
unicode-display_width (>= 2.4.0, < 3.0)
|
142
|
+
rubocop-ast (1.29.0)
|
143
|
+
parser (>= 3.2.1.0)
|
140
144
|
rubocop-faker (1.1.0)
|
141
145
|
faker (>= 2.12.0)
|
142
146
|
rubocop (>= 0.82.0)
|
143
|
-
rubocop-performance (1.
|
147
|
+
rubocop-performance (1.19.1)
|
144
148
|
rubocop (>= 1.7.0, < 2.0)
|
145
149
|
rubocop-ast (>= 0.4.0)
|
146
|
-
rubocop-sorbet (0.
|
150
|
+
rubocop-sorbet (0.7.4)
|
147
151
|
rubocop (>= 0.90.0)
|
148
|
-
ruby-progressbar (1.
|
152
|
+
ruby-progressbar (1.13.0)
|
149
153
|
shellany (0.0.1)
|
150
|
-
simplecov (0.
|
154
|
+
simplecov (0.22.0)
|
151
155
|
docile (~> 1.1)
|
152
156
|
simplecov-html (~> 0.11)
|
153
157
|
simplecov_json_formatter (~> 0.1)
|
154
158
|
simplecov-html (0.12.3)
|
155
159
|
simplecov_json_formatter (0.1.4)
|
156
|
-
solargraph (0.
|
160
|
+
solargraph (0.49.0)
|
157
161
|
backport (~> 1.2)
|
158
162
|
benchmark
|
159
|
-
bundler (
|
163
|
+
bundler (~> 2.0)
|
160
164
|
diff-lcs (~> 1.4)
|
161
165
|
e2mmap
|
162
166
|
jaro_winkler (~> 1.5)
|
163
167
|
kramdown (~> 2.3)
|
164
168
|
kramdown-parser-gfm (~> 1.1)
|
165
169
|
parser (~> 3.0)
|
166
|
-
|
167
|
-
|
170
|
+
rbs (~> 2.0)
|
171
|
+
reverse_markdown (~> 2.0)
|
172
|
+
rubocop (~> 1.38)
|
168
173
|
thor (~> 1.0)
|
169
174
|
tilt (~> 2.0)
|
170
175
|
yard (~> 0.9, >= 0.9.24)
|
171
|
-
sorbet (0.5.
|
172
|
-
sorbet-static (= 0.5.
|
173
|
-
sorbet-runtime (0.5.
|
174
|
-
sorbet-static (0.5.
|
175
|
-
sorbet-static (0.5.
|
176
|
-
sorbet-static-and-runtime (0.5.
|
177
|
-
sorbet (= 0.5.
|
178
|
-
sorbet-runtime (= 0.5.
|
179
|
-
spoom (1.
|
180
|
-
|
181
|
-
sorbet-runtime (>= 0.5.
|
176
|
+
sorbet (0.5.11062)
|
177
|
+
sorbet-static (= 0.5.11062)
|
178
|
+
sorbet-runtime (0.5.11062)
|
179
|
+
sorbet-static (0.5.11062-universal-darwin)
|
180
|
+
sorbet-static (0.5.11062-x86_64-linux)
|
181
|
+
sorbet-static-and-runtime (0.5.11062)
|
182
|
+
sorbet (= 0.5.11062)
|
183
|
+
sorbet-runtime (= 0.5.11062)
|
184
|
+
spoom (1.2.4)
|
185
|
+
erubi (>= 1.10.0)
|
186
|
+
sorbet-static-and-runtime (>= 0.5.10187)
|
187
|
+
syntax_tree (>= 6.1.1)
|
182
188
|
thor (>= 0.19.2)
|
183
|
-
syntax_tree (
|
184
|
-
prettier_print (>= 1.
|
185
|
-
syntax_tree-haml (
|
186
|
-
haml (>= 5.2
|
187
|
-
prettier_print (>= 1.
|
188
|
-
syntax_tree (>=
|
189
|
-
syntax_tree-rbs (0.
|
189
|
+
syntax_tree (6.2.0)
|
190
|
+
prettier_print (>= 1.2.0)
|
191
|
+
syntax_tree-haml (4.0.3)
|
192
|
+
haml (>= 5.2)
|
193
|
+
prettier_print (>= 1.2.1)
|
194
|
+
syntax_tree (>= 6.0.0)
|
195
|
+
syntax_tree-rbs (1.0.0)
|
190
196
|
prettier_print
|
191
197
|
rbs
|
192
198
|
syntax_tree (>= 2.0.1)
|
193
|
-
tapioca (0.
|
194
|
-
bundler (>=
|
199
|
+
tapioca (0.11.9)
|
200
|
+
bundler (>= 2.2.25)
|
195
201
|
netrc (>= 0.11.0)
|
196
202
|
parallel (>= 1.21.0)
|
197
|
-
rbi (~> 0.
|
198
|
-
sorbet-static-and-runtime (>= 0.5.
|
199
|
-
spoom (~> 1.
|
203
|
+
rbi (~> 0.1.0, >= 0.1.0)
|
204
|
+
sorbet-static-and-runtime (>= 0.5.10187)
|
205
|
+
spoom (~> 1.2.0, >= 1.2.0)
|
200
206
|
thor (>= 1.2.0)
|
201
207
|
yard-sorbet
|
202
|
-
temple (0.
|
203
|
-
thor (1.2.
|
204
|
-
tilt (2.0
|
205
|
-
tzinfo (2.0.
|
208
|
+
temple (0.10.3)
|
209
|
+
thor (1.2.2)
|
210
|
+
tilt (2.3.0)
|
211
|
+
tzinfo (2.0.6)
|
206
212
|
concurrent-ruby (~> 1.0)
|
207
|
-
unicode-display_width (2.
|
208
|
-
|
209
|
-
|
210
|
-
parser (>= 3.1.0)
|
211
|
-
webrick (1.7.0)
|
212
|
-
yard (0.9.28)
|
213
|
-
webrick (~> 1.7.0)
|
214
|
-
yard-sorbet (0.7.0)
|
213
|
+
unicode-display_width (2.5.0)
|
214
|
+
yard (0.9.34)
|
215
|
+
yard-sorbet (0.8.1)
|
215
216
|
sorbet-runtime (>= 0.5)
|
216
217
|
yard (>= 0.9)
|
217
|
-
|
218
|
+
yarp (0.13.0)
|
219
|
+
zeitwerk (2.6.12)
|
218
220
|
|
219
221
|
PLATFORMS
|
220
222
|
arm64-darwin-21
|
223
|
+
arm64-darwin-23
|
221
224
|
x86_64-linux
|
222
225
|
|
223
226
|
DEPENDENCIES
|
@@ -230,8 +233,8 @@ DEPENDENCIES
|
|
230
233
|
overcommit
|
231
234
|
prettier
|
232
235
|
pry-byebug
|
233
|
-
rake (
|
234
|
-
rspec (
|
236
|
+
rake (>= 13.0)
|
237
|
+
rspec (>= 3.0)
|
235
238
|
rspec_in_context (> 1)
|
236
239
|
rubocop (> 0.58)
|
237
240
|
rubocop-faker
|
data/docs/M2mKeygen/Error.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Exception: M2mKeygen::Error
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.34
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -125,9 +125,9 @@
|
|
125
125
|
</div>
|
126
126
|
|
127
127
|
<div id="footer">
|
128
|
-
Generated on
|
128
|
+
Generated on Wed Oct 4 16:28:22 2023 by
|
129
129
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
130
|
-
0.9.
|
130
|
+
0.9.34 (ruby-3.2.2).
|
131
131
|
</div>
|
132
132
|
|
133
133
|
</div>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: M2mKeygen::ParamsEncoder
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.34
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -311,9 +311,9 @@
|
|
311
311
|
</div>
|
312
312
|
|
313
313
|
<div id="footer">
|
314
|
-
Generated on
|
314
|
+
Generated on Wed Oct 4 16:28:22 2023 by
|
315
315
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
316
|
-
0.9.
|
316
|
+
0.9.34 (ruby-3.2.2).
|
317
317
|
</div>
|
318
318
|
|
319
319
|
</div>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: M2mKeygen::RackValidator
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.34
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -505,13 +505,13 @@
|
|
505
505
|
<span class='comment'># This will cover the case when Rails is used.
|
506
506
|
</span> <span class='id identifier rubyid_req'>req</span> <span class='op'>=</span> <span class='const'>Rack</span><span class='op'>::</span><span class='const'>Request</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_req'>req</span><span class='period'>.</span><span class='id identifier rubyid_env'>env</span><span class='rparen'>)</span>
|
507
507
|
<span class='id identifier rubyid_params'>params</span> <span class='op'>=</span> <span class='lparen'>(</span><span class='id identifier rubyid_req'>req</span><span class='period'>.</span><span class='id identifier rubyid_params'>params</span> <span class='op'>||</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='id identifier rubyid_parse_json_body'>parse_json_body</span><span class='lparen'>(</span><span class='id identifier rubyid_req'>req</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
508
|
-
<span class='ivar'>@signature</span><span class='period'>.</span><span class='id identifier rubyid_validate'>validate</span><span class='lparen'>(</span>
|
508
|
+
<span class='op'>!</span><span class='op'>!</span><span class='ivar'>@signature</span><span class='period'>.</span><span class='id identifier rubyid_validate'>validate</span><span class='lparen'>(</span>
|
509
509
|
<span class='label'>params:</span> <span class='id identifier rubyid_params'>params</span><span class='comma'>,</span>
|
510
510
|
<span class='label'>verb:</span> <span class='id identifier rubyid_req'>req</span><span class='period'>.</span><span class='id identifier rubyid_request_method'>request_method</span> <span class='op'>||</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>get</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
511
511
|
<span class='label'>path:</span> <span class='id identifier rubyid_req'>req</span><span class='period'>.</span><span class='id identifier rubyid_path'>path</span> <span class='op'>||</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>/</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
512
512
|
<span class='label'>signature:</span> <span class='id identifier rubyid_req'>req</span><span class='period'>.</span><span class='id identifier rubyid_env'>env</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>HTTP_X_SIGNATURE</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
513
|
-
<span class='rparen'>)</span> <span class='op'>&&</span> <span class='id identifier
|
514
|
-
<span class='id identifier
|
513
|
+
<span class='rparen'>)</span> <span class='op'>&&</span> <span class='id identifier rubyid_params'>params</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>expiry</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='op'>&&</span> <span class='id identifier rubyid_params'>params</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>expiry</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span> <span class='op'>></span> <span class='const'>Time</span><span class='period'>.</span><span class='id identifier rubyid_now'>now</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span> <span class='op'>&&</span>
|
514
|
+
<span class='id identifier rubyid_params'>params</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>expiry</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span> <span class='op'><</span> <span class='const'>Time</span><span class='period'>.</span><span class='id identifier rubyid_now'>now</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span> <span class='op'>+</span> <span class='int'>120</span>
|
515
515
|
<span class='kw'>end</span></pre>
|
516
516
|
</td>
|
517
517
|
</tr>
|
@@ -523,9 +523,9 @@
|
|
523
523
|
</div>
|
524
524
|
|
525
525
|
<div id="footer">
|
526
|
-
Generated on
|
526
|
+
Generated on Wed Oct 4 16:28:22 2023 by
|
527
527
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
528
|
-
0.9.
|
528
|
+
0.9.34 (ruby-3.2.2).
|
529
529
|
</div>
|
530
530
|
|
531
531
|
</div>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: M2mKeygen::Signature
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.34
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -670,9 +670,9 @@
|
|
670
670
|
</div>
|
671
671
|
|
672
672
|
<div id="footer">
|
673
|
-
Generated on
|
673
|
+
Generated on Wed Oct 4 16:28:22 2023 by
|
674
674
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
675
|
-
0.9.
|
675
|
+
0.9.34 (ruby-3.2.2).
|
676
676
|
</div>
|
677
677
|
|
678
678
|
</div>
|
data/docs/M2mKeygen/Types.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: M2mKeygen::Types
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.34
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -137,9 +137,9 @@
|
|
137
137
|
</div>
|
138
138
|
|
139
139
|
<div id="footer">
|
140
|
-
Generated on
|
140
|
+
Generated on Wed Oct 4 16:28:22 2023 by
|
141
141
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
142
|
-
0.9.
|
142
|
+
0.9.34 (ruby-3.2.2).
|
143
143
|
</div>
|
144
144
|
|
145
145
|
</div>
|
data/docs/M2mKeygen.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: M2mKeygen
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.34
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -131,7 +131,7 @@
|
|
131
131
|
|
132
132
|
</div>
|
133
133
|
</dt>
|
134
|
-
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>0.4.
|
134
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>0.4.7</span><span class='tstring_end'>'</span></span></pre></dd>
|
135
135
|
|
136
136
|
</dl>
|
137
137
|
|
@@ -147,9 +147,9 @@
|
|
147
147
|
</div>
|
148
148
|
|
149
149
|
<div id="footer">
|
150
|
-
Generated on
|
150
|
+
Generated on Wed Oct 4 16:28:22 2023 by
|
151
151
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
152
|
-
0.9.
|
152
|
+
0.9.34 (ruby-3.2.2).
|
153
153
|
</div>
|
154
154
|
|
155
155
|
</div>
|
data/docs/_index.html
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
<meta charset="utf-8">
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
6
|
<title>
|
7
|
-
Documentation by YARD 0.9.
|
7
|
+
Documentation by YARD 0.9.34
|
8
8
|
|
9
9
|
</title>
|
10
10
|
|
@@ -52,7 +52,7 @@
|
|
52
52
|
<div class="clear"></div>
|
53
53
|
</div>
|
54
54
|
|
55
|
-
<div id="content"><h1 class="noborder title">Documentation by YARD 0.9.
|
55
|
+
<div id="content"><h1 class="noborder title">Documentation by YARD 0.9.34</h1>
|
56
56
|
<div id="listing">
|
57
57
|
<h1 class="alphaindex">Alphabetic Index</h1>
|
58
58
|
|
@@ -172,9 +172,9 @@
|
|
172
172
|
</div>
|
173
173
|
|
174
174
|
<div id="footer">
|
175
|
-
Generated on
|
175
|
+
Generated on Wed Oct 4 16:28:22 2023 by
|
176
176
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
177
|
-
0.9.
|
177
|
+
0.9.34 (ruby-3.2.2).
|
178
178
|
</div>
|
179
179
|
|
180
180
|
</div>
|
data/docs/file.README.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
File: README
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.34
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -220,9 +220,9 @@ The receiver will generate the same signature from the HTTP request it has recei
|
|
220
220
|
</div></div>
|
221
221
|
|
222
222
|
<div id="footer">
|
223
|
-
Generated on
|
223
|
+
Generated on Wed Oct 4 16:28:22 2023 by
|
224
224
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
225
|
-
0.9.
|
225
|
+
0.9.34 (ruby-3.2.2).
|
226
226
|
</div>
|
227
227
|
|
228
228
|
</div>
|
data/docs/frames.html
CHANGED
data/docs/index.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
File: README
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.34
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -220,9 +220,9 @@ The receiver will generate the same signature from the HTTP request it has recei
|
|
220
220
|
</div></div>
|
221
221
|
|
222
222
|
<div id="footer">
|
223
|
-
Generated on
|
223
|
+
Generated on Wed Oct 4 16:28:22 2023 by
|
224
224
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
225
|
-
0.9.
|
225
|
+
0.9.34 (ruby-3.2.2).
|
226
226
|
</div>
|
227
227
|
|
228
228
|
</div>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Top Level Namespace
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.34
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -100,9 +100,9 @@
|
|
100
100
|
</div>
|
101
101
|
|
102
102
|
<div id="footer">
|
103
|
-
Generated on
|
103
|
+
Generated on Wed Oct 4 16:28:22 2023 by
|
104
104
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
105
|
-
0.9.
|
105
|
+
0.9.34 (ruby-3.2.2).
|
106
106
|
</div>
|
107
107
|
|
108
108
|
</div>
|
@@ -23,13 +23,13 @@ module M2mKeygen
|
|
23
23
|
# This will cover the case when Rails is used.
|
24
24
|
req = Rack::Request.new(req.env)
|
25
25
|
params = (req.params || {}).merge(parse_json_body(req))
|
26
|
-
|
26
|
+
!!@signature.validate(
|
27
27
|
params: params,
|
28
28
|
verb: req.request_method || 'get',
|
29
29
|
path: req.path || '/',
|
30
30
|
signature: req.env['HTTP_X_SIGNATURE'] || '',
|
31
|
-
) &&
|
32
|
-
|
31
|
+
) && params['expiry'] && params['expiry'].to_i > Time.now.to_i &&
|
32
|
+
params['expiry'].to_i < Time.now.to_i + 120
|
33
33
|
end
|
34
34
|
|
35
35
|
private
|
data/lib/m2m_keygen/version.rb
CHANGED
data/m2m_keygen.gemspec
CHANGED
data/yarn.lock
CHANGED
@@ -9,7 +9,12 @@
|
|
9
9
|
dependencies:
|
10
10
|
prettier ">=2.3.0"
|
11
11
|
|
12
|
-
prettier@>=2.3.0
|
13
|
-
version "
|
14
|
-
resolved "https://registry.yarnpkg.com/prettier/-/prettier-
|
15
|
-
integrity sha512-
|
12
|
+
prettier@>=2.3.0:
|
13
|
+
version "3.0.3"
|
14
|
+
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.0.3.tgz#432a51f7ba422d1469096c0fdc28e235db8f9643"
|
15
|
+
integrity sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg==
|
16
|
+
|
17
|
+
prettier@^2.7.1:
|
18
|
+
version "2.8.8"
|
19
|
+
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.8.8.tgz#e8c5d7e98a4305ffe3de2e1fc4aca1a71c28b1da"
|
20
|
+
integrity sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: m2m_keygen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Denis <Zaratan> Pasin
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-10-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|
@@ -42,14 +42,14 @@ dependencies:
|
|
42
42
|
name: zeitwerk
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '2.6'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '2.6'
|
55
55
|
description: Secure M2M key generator for Ruby. Generates secure keys for M2M communication
|
@@ -215,7 +215,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
215
215
|
- !ruby/object:Gem::Version
|
216
216
|
version: '0'
|
217
217
|
requirements: []
|
218
|
-
rubygems_version: 3.
|
218
|
+
rubygems_version: 3.4.10
|
219
219
|
signing_key:
|
220
220
|
specification_version: 4
|
221
221
|
summary: Secure M2M key generator
|