minty 1.0.1 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +4 -16
- data/Gemfile.lock +28 -208
- data/README.md +58 -57
- data/Rakefile +4 -27
- data/docs/DefaultApi.md +217 -0
- data/docs/RedirectUrl.md +18 -0
- data/git_push.sh +57 -0
- data/lib/minty/api/default_api.rb +210 -0
- data/lib/minty/api_client.rb +388 -0
- data/lib/minty/api_error.rb +53 -0
- data/lib/minty/configuration.rb +275 -0
- data/lib/minty/models/redirect_url.rb +216 -0
- data/lib/minty/version.rb +9 -3
- data/lib/minty.rb +33 -7
- data/minty.gemspec +19 -32
- data/pkg/minty-1.1.0.gem +0 -0
- data/publish_rubygem.sh +1 -1
- data/spec/api/default_api_spec.rb +65 -0
- data/spec/api_client_spec.rb +222 -0
- data/spec/configuration_spec.rb +38 -0
- data/spec/models/redirect_url_spec.rb +28 -0
- data/spec/spec_helper.rb +95 -63
- metadata +37 -292
- data/.bundle/config +0 -4
- data/.devcontainer/Dockerfile +0 -19
- data/.devcontainer/devcontainer.json +0 -37
- data/.env.example +0 -2
- data/.gemrelease +0 -2
- data/.github/PULL_REQUEST_TEMPLATE.md +0 -33
- data/.github/dependabot.yml +0 -10
- data/.github/stale.yml +0 -20
- data/.gitignore +0 -18
- data/.rspec +0 -3
- data/.rubocop.yml +0 -9
- data/CODE_OF_CONDUCT.md +0 -3
- data/DEPLOYMENT.md +0 -61
- data/DEVELOPMENT.md +0 -35
- data/EXAMPLES.md +0 -195
- data/Guardfile +0 -39
- data/LICENSE +0 -21
- data/Makefile +0 -5
- data/RUBYGEM.md +0 -9
- data/codecov.yml +0 -22
- data/lib/minty/algorithm.rb +0 -7
- data/lib/minty/api/authentication_endpoints.rb +0 -55
- data/lib/minty/api/v2.rb +0 -8
- data/lib/minty/client.rb +0 -7
- data/lib/minty/exception.rb +0 -58
- data/lib/minty/mixins/api_token_struct.rb +0 -4
- data/lib/minty/mixins/headers.rb +0 -19
- data/lib/minty/mixins/httpproxy.rb +0 -125
- data/lib/minty/mixins/initializer.rb +0 -38
- data/lib/minty/mixins/validation.rb +0 -113
- data/lib/minty/mixins.rb +0 -23
- data/lib/minty_client.rb +0 -4
- data/spec/integration/lib/minty/api/api_authentication_spec.rb +0 -122
- data/spec/integration/lib/minty/minty_client_spec.rb +0 -92
- data/spec/lib/minty/client_spec.rb +0 -223
- data/spec/lib/minty/mixins/httpproxy_spec.rb +0 -658
- data/spec/lib/minty/mixins/initializer_spec.rb +0 -121
- data/spec/lib/minty/mixins/token_management_spec.rb +0 -129
- data/spec/lib/minty/mixins/validation_spec.rb +0 -559
- data/spec/support/credentials.rb +0 -14
- data/spec/support/dummy_class.rb +0 -20
- data/spec/support/dummy_class_for_proxy.rb +0 -6
- data/spec/support/dummy_class_for_restclient.rb +0 -4
- data/spec/support/dummy_class_for_tokens.rb +0 -18
- data/spec/support/import_users.json +0 -13
- data/spec/support/stub_response.rb +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec06a9334f1943e2b4caa2830ac1a2d8ed488919e471b159973d6da8b41eef7e
|
4
|
+
data.tar.gz: e8f3f53b1a1b714badfe7a343df11a759c417ef41d5a61898f817acbdbc1fe87
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68b2021c28b647925f85c7e79f95b0c7a5357627985fa95c3e94b2dcc10241feec346913bca47d429065e83c98fabac24e25cdbad79c2b5f9e6edd96137fc62f
|
7
|
+
data.tar.gz: 83962bf70b05e1391a50b719317f2018bb98055b352b104a6484c0b102e4f76884bb0d851686c3867e125600bc736003b1fe2e28a6dc4ad85f6c80d854952e2e
|
data/Gemfile
CHANGED
@@ -1,21 +1,9 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
1
|
source 'https://rubygems.org'
|
4
2
|
|
5
3
|
gemspec
|
6
4
|
|
7
|
-
group :development do
|
8
|
-
gem '
|
9
|
-
gem '
|
10
|
-
gem 'rubocop',
|
11
|
-
gem 'rubocop-rails', require: false
|
12
|
-
gem 'terminal-notifier-guard', require: false unless ENV['CIRCLECI']
|
13
|
-
end
|
14
|
-
|
15
|
-
group :test do
|
16
|
-
gem 'pp'
|
17
|
-
gem 'simplecov-cobertura'
|
18
|
-
gem 'timecop', require: false
|
19
|
-
gem 'vcr', require: false
|
20
|
-
gem 'webmock', require: false
|
5
|
+
group :development, :test do
|
6
|
+
gem 'rake', '~> 13.0.1'
|
7
|
+
gem 'pry-byebug'
|
8
|
+
gem 'rubocop', '~> 0.66.0'
|
21
9
|
end
|
data/Gemfile.lock
CHANGED
@@ -1,158 +1,34 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
minty (1.
|
5
|
-
|
6
|
-
jwt (~> 2.5)
|
7
|
-
rest-client (~> 2.1)
|
8
|
-
retryable (~> 3.0)
|
9
|
-
zache (~> 0.12)
|
4
|
+
minty (1.1.0)
|
5
|
+
typhoeus (~> 1.0, >= 1.0.1)
|
10
6
|
|
11
7
|
GEM
|
12
8
|
remote: https://rubygems.org/
|
13
9
|
specs:
|
14
|
-
actionpack (7.0.4)
|
15
|
-
actionview (= 7.0.4)
|
16
|
-
activesupport (= 7.0.4)
|
17
|
-
rack (~> 2.0, >= 2.2.0)
|
18
|
-
rack-test (>= 0.6.3)
|
19
|
-
rails-dom-testing (~> 2.0)
|
20
|
-
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
21
|
-
actionview (7.0.4)
|
22
|
-
activesupport (= 7.0.4)
|
23
|
-
builder (~> 3.1)
|
24
|
-
erubi (~> 1.4)
|
25
|
-
rails-dom-testing (~> 2.0)
|
26
|
-
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
27
|
-
activesupport (7.0.4)
|
28
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
29
|
-
i18n (>= 1.6, < 2)
|
30
|
-
minitest (>= 5.1)
|
31
|
-
tzinfo (~> 2.0)
|
32
|
-
addressable (2.8.1)
|
33
|
-
public_suffix (>= 2.0.2, < 6.0)
|
34
10
|
ast (2.4.2)
|
35
|
-
|
11
|
+
byebug (11.1.3)
|
36
12
|
coderay (1.1.3)
|
37
|
-
concurrent-ruby (1.1.10)
|
38
|
-
coveralls (0.7.1)
|
39
|
-
multi_json (~> 1.3)
|
40
|
-
rest-client
|
41
|
-
simplecov (>= 0.7)
|
42
|
-
term-ansicolor
|
43
|
-
thor
|
44
|
-
crack (0.4.5)
|
45
|
-
rexml
|
46
|
-
crass (1.0.6)
|
47
13
|
diff-lcs (1.5.0)
|
48
|
-
|
49
|
-
|
50
|
-
unf (>= 0.0.5, < 1.0.0)
|
51
|
-
dotenv (2.8.1)
|
52
|
-
dotenv-rails (2.8.1)
|
53
|
-
dotenv (= 2.8.1)
|
54
|
-
railties (>= 3.2)
|
55
|
-
erubi (1.11.0)
|
56
|
-
faker (2.23.0)
|
57
|
-
i18n (>= 1.8.11, < 2)
|
14
|
+
ethon (0.16.0)
|
15
|
+
ffi (>= 1.15.0)
|
58
16
|
ffi (1.15.5)
|
59
|
-
|
60
|
-
|
61
|
-
rspec-core (~> 3.0)
|
62
|
-
ruby-progressbar (~> 1.4)
|
63
|
-
gem-release (0.7.4)
|
64
|
-
guard (2.17.0)
|
65
|
-
formatador (>= 0.2.4)
|
66
|
-
listen (>= 2.7, < 4.0)
|
67
|
-
lumberjack (>= 1.0.12, < 2.0)
|
68
|
-
nenv (~> 0.1)
|
69
|
-
notiffany (~> 0.0)
|
70
|
-
pry (>= 0.9.12)
|
71
|
-
shellany (~> 0.0)
|
72
|
-
thor (>= 0.18.1)
|
73
|
-
guard-compat (1.2.1)
|
74
|
-
guard-rspec (4.7.3)
|
75
|
-
guard (~> 2.1)
|
76
|
-
guard-compat (~> 1.1)
|
77
|
-
rspec (>= 2.99.0, < 4.0)
|
78
|
-
hashdiff (1.0.1)
|
79
|
-
http-accept (1.7.0)
|
80
|
-
http-cookie (1.0.5)
|
81
|
-
domain_name (~> 0.5)
|
82
|
-
i18n (1.12.0)
|
83
|
-
concurrent-ruby (~> 1.0)
|
84
|
-
io-console (0.5.11)
|
85
|
-
irb (1.4.2)
|
86
|
-
reline (>= 0.3.0)
|
87
|
-
json (2.6.2)
|
88
|
-
jwt (2.5.0)
|
89
|
-
listen (3.7.1)
|
90
|
-
rb-fsevent (~> 0.10, >= 0.10.3)
|
91
|
-
rb-inotify (~> 0.9, >= 0.9.10)
|
92
|
-
loofah (2.19.0)
|
93
|
-
crass (~> 1.0.2)
|
94
|
-
nokogiri (>= 1.5.9)
|
95
|
-
lumberjack (1.2.8)
|
96
|
-
method_source (0.9.2)
|
97
|
-
mime-types (3.4.1)
|
98
|
-
mime-types-data (~> 3.2015)
|
99
|
-
mime-types-data (3.2022.0105)
|
100
|
-
minitest (5.16.3)
|
101
|
-
multi_json (1.15.0)
|
102
|
-
nenv (0.3.0)
|
103
|
-
netrc (0.11.0)
|
104
|
-
nokogiri (1.13.9-aarch64-linux)
|
105
|
-
racc (~> 1.4)
|
106
|
-
nokogiri (1.13.9-arm64-darwin)
|
107
|
-
racc (~> 1.4)
|
108
|
-
nokogiri (1.13.9-x86_64-linux)
|
109
|
-
racc (~> 1.4)
|
110
|
-
notiffany (0.1.3)
|
111
|
-
nenv (~> 0.1)
|
112
|
-
shellany (~> 0.0)
|
17
|
+
jaro_winkler (1.5.4)
|
18
|
+
method_source (1.0.0)
|
113
19
|
parallel (1.22.1)
|
114
20
|
parser (3.1.2.1)
|
115
21
|
ast (~> 2.4.1)
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
pry (
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
public_suffix (5.0.0)
|
125
|
-
racc (1.6.0)
|
126
|
-
rack (2.2.4)
|
127
|
-
rack-test (0.8.3)
|
128
|
-
rack (>= 1.0, < 3)
|
129
|
-
rails-dom-testing (2.0.3)
|
130
|
-
activesupport (>= 4.2.0)
|
131
|
-
nokogiri (>= 1.6)
|
132
|
-
rails-html-sanitizer (1.4.3)
|
133
|
-
loofah (~> 2.3)
|
134
|
-
railties (7.0.4)
|
135
|
-
actionpack (= 7.0.4)
|
136
|
-
activesupport (= 7.0.4)
|
137
|
-
method_source
|
138
|
-
rake (>= 12.2)
|
139
|
-
thor (~> 1.0)
|
140
|
-
zeitwerk (~> 2.5)
|
22
|
+
pry (0.14.1)
|
23
|
+
coderay (~> 1.1)
|
24
|
+
method_source (~> 1.0)
|
25
|
+
pry-byebug (3.10.1)
|
26
|
+
byebug (~> 11.0)
|
27
|
+
pry (>= 0.13, < 0.15)
|
28
|
+
psych (4.0.6)
|
29
|
+
stringio
|
141
30
|
rainbow (3.1.1)
|
142
31
|
rake (13.0.6)
|
143
|
-
rb-fsevent (0.11.2)
|
144
|
-
rb-inotify (0.10.1)
|
145
|
-
ffi (~> 1.0)
|
146
|
-
regexp_parser (2.6.0)
|
147
|
-
reline (0.3.1)
|
148
|
-
io-console (~> 0.5)
|
149
|
-
rest-client (2.1.0)
|
150
|
-
http-accept (>= 1.7.0, < 2.0)
|
151
|
-
http-cookie (>= 1.0.2, < 2.0)
|
152
|
-
mime-types (>= 1.16, < 4.0)
|
153
|
-
netrc (~> 0.8)
|
154
|
-
retryable (3.0.5)
|
155
|
-
rexml (3.2.5)
|
156
32
|
rspec (3.12.0)
|
157
33
|
rspec-core (~> 3.12.0)
|
158
34
|
rspec-expectations (~> 3.12.0)
|
@@ -166,85 +42,29 @@ GEM
|
|
166
42
|
diff-lcs (>= 1.2.0, < 2.0)
|
167
43
|
rspec-support (~> 3.12.0)
|
168
44
|
rspec-support (3.12.0)
|
169
|
-
rubocop (
|
170
|
-
|
45
|
+
rubocop (0.66.0)
|
46
|
+
jaro_winkler (~> 1.5.1)
|
171
47
|
parallel (~> 1.10)
|
172
|
-
parser (>=
|
48
|
+
parser (>= 2.5, != 2.5.1.1)
|
49
|
+
psych (>= 3.1.0)
|
173
50
|
rainbow (>= 2.2.2, < 4.0)
|
174
|
-
regexp_parser (>= 1.8, < 3.0)
|
175
|
-
rexml (>= 3.2.5, < 4.0)
|
176
|
-
rubocop-ast (>= 1.23.0, < 2.0)
|
177
51
|
ruby-progressbar (~> 1.7)
|
178
|
-
unicode-display_width (>= 1.4.0, <
|
179
|
-
rubocop-ast (1.23.0)
|
180
|
-
parser (>= 3.1.1.0)
|
181
|
-
rubocop-rails (2.17.2)
|
182
|
-
activesupport (>= 4.2.0)
|
183
|
-
rack (>= 1.1)
|
184
|
-
rubocop (>= 1.33.0, < 2.0)
|
52
|
+
unicode-display_width (>= 1.4.0, < 1.6)
|
185
53
|
ruby-progressbar (1.11.0)
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
simplecov_json_formatter (~> 0.1)
|
191
|
-
simplecov-cobertura (2.1.0)
|
192
|
-
rexml
|
193
|
-
simplecov (~> 0.19)
|
194
|
-
simplecov-html (0.12.3)
|
195
|
-
simplecov_json_formatter (0.1.4)
|
196
|
-
sync (0.5.0)
|
197
|
-
term-ansicolor (1.7.1)
|
198
|
-
tins (~> 1.0)
|
199
|
-
terminal-notifier-guard (1.7.0)
|
200
|
-
thor (1.2.1)
|
201
|
-
timecop (0.9.5)
|
202
|
-
tins (1.31.1)
|
203
|
-
sync
|
204
|
-
tzinfo (2.0.5)
|
205
|
-
concurrent-ruby (~> 1.0)
|
206
|
-
unf (0.1.4)
|
207
|
-
unf_ext
|
208
|
-
unf_ext (0.0.8.2)
|
209
|
-
unicode-display_width (2.3.0)
|
210
|
-
vcr (6.1.0)
|
211
|
-
webmock (3.18.1)
|
212
|
-
addressable (>= 2.8.0)
|
213
|
-
crack (>= 0.3.2)
|
214
|
-
hashdiff (>= 0.4.0, < 2.0.0)
|
215
|
-
zache (0.12.0)
|
216
|
-
zeitwerk (2.6.1)
|
54
|
+
stringio (3.0.2)
|
55
|
+
typhoeus (1.4.0)
|
56
|
+
ethon (>= 0.9.0)
|
57
|
+
unicode-display_width (1.5.0)
|
217
58
|
|
218
59
|
PLATFORMS
|
219
|
-
aarch64-linux
|
220
60
|
arm64-darwin-21
|
221
|
-
x86_64-linux
|
222
61
|
|
223
62
|
DEPENDENCIES
|
224
|
-
bundler
|
225
|
-
coveralls
|
226
|
-
dotenv-rails (~> 2.0)
|
227
|
-
faker (~> 2.0)
|
228
|
-
fuubar (~> 2.0)
|
229
|
-
gem-release (~> 0.7)
|
230
|
-
guard-rspec (~> 4.5)
|
231
|
-
irb
|
232
63
|
minty!
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
rack-test (~> 0.6)
|
238
|
-
rake (~> 13.0)
|
239
|
-
rspec (~> 3.11)
|
240
|
-
rubocop
|
241
|
-
rubocop-rails
|
242
|
-
simplecov (~> 0.9)
|
243
|
-
simplecov-cobertura
|
244
|
-
terminal-notifier-guard
|
245
|
-
timecop
|
246
|
-
vcr
|
247
|
-
webmock
|
64
|
+
pry-byebug
|
65
|
+
rake (~> 13.0.1)
|
66
|
+
rspec (~> 3.6, >= 3.6.0)
|
67
|
+
rubocop (~> 0.66.0)
|
248
68
|
|
249
69
|
BUNDLED WITH
|
250
70
|
2.3.25
|
data/README.md
CHANGED
@@ -1,88 +1,89 @@
|
|
1
|
-
|
1
|
+
# minty
|
2
2
|
|
3
|
-
|
3
|
+
MintyApi - the Ruby gem for the Minty API
|
4
4
|
|
5
|
-
|
5
|
+
Minty API
|
6
6
|
|
7
|
-
-
|
8
|
-
-
|
9
|
-
[FAQ](https://github.com/mintypage/ruby/blob/master/FAQ.md) - frequently asked questions about the SDK
|
10
|
-
- [Docs Site](https://minty.page/docs) - explore our Docs site and learn more about Minty
|
7
|
+
- API version: 1.0.0
|
8
|
+
- Package version: 1.0.2
|
11
9
|
|
12
|
-
##
|
10
|
+
## Installation
|
13
11
|
|
14
|
-
###
|
12
|
+
### Build a gem
|
15
13
|
|
16
|
-
|
14
|
+
To build the Ruby code into a gem:
|
17
15
|
|
18
|
-
```
|
19
|
-
|
16
|
+
```shell
|
17
|
+
gem build minty.gemspec
|
20
18
|
```
|
21
19
|
|
22
|
-
|
20
|
+
Then either install the gem locally:
|
23
21
|
|
24
|
-
```
|
25
|
-
|
22
|
+
```shell
|
23
|
+
gem install ./minty-1.0.2.gem
|
26
24
|
```
|
27
25
|
|
28
|
-
|
26
|
+
(for development, run `gem install --dev ./minty-1.0.2.gem` to install the development dependencies)
|
29
27
|
|
30
|
-
|
28
|
+
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
31
29
|
|
32
|
-
|
33
|
-
require 'minty'
|
30
|
+
Finally add this to the Gemfile:
|
34
31
|
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
```
|
32
|
+
gem 'minty', '~> 1.0.2'
|
33
|
+
|
34
|
+
### Install from Git
|
35
|
+
|
36
|
+
If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
|
41
37
|
|
42
|
-
|
38
|
+
gem 'minty', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
|
43
39
|
|
44
|
-
|
40
|
+
### Include the Ruby code directly
|
45
41
|
|
46
|
-
|
42
|
+
Include the Ruby code directly using `-I` as follows:
|
47
43
|
|
48
|
-
|
44
|
+
```shell
|
45
|
+
ruby -Ilib script.rb
|
46
|
+
```
|
47
|
+
|
48
|
+
## Getting Started
|
49
49
|
|
50
|
-
|
50
|
+
Please follow the [installation](#installation) procedure and then run the following code:
|
51
51
|
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
- [Ruby on Rails workflow with Docker (blog)](https://minty.page/blog/ruby-on-rails-killer-workflow-with-docker-part-1/)
|
52
|
+
```ruby
|
53
|
+
# Load the gem
|
54
|
+
require 'minty'
|
56
55
|
|
57
|
-
|
56
|
+
# Setup authorization
|
57
|
+
MintyApi.configure do |config|
|
58
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
59
|
+
config.scheme = 'https'
|
60
|
+
config.host = 'HOST'
|
61
|
+
end
|
58
62
|
|
59
|
-
|
63
|
+
api_instance = MintyApi::DefaultApi.new
|
64
|
+
api_minty_application_id = 'api_minty_application_id_example' # String |
|
60
65
|
|
61
|
-
|
66
|
+
begin
|
67
|
+
#forgot_password_url
|
68
|
+
result = api_instance.api_v1_forgot_password_url_get(api_minty_application_id)
|
69
|
+
p result
|
70
|
+
rescue MintyApi::ApiError => e
|
71
|
+
puts "Exception when calling DefaultApi->api_v1_forgot_password_url_get: #{e}"
|
72
|
+
end
|
62
73
|
|
63
|
-
|
64
|
-
- [Minty's code of conduct guidelines](https://github.com/minty/open-source-template/blob/master/CODE-OF-CONDUCT.md)
|
74
|
+
```
|
65
75
|
|
66
|
-
|
76
|
+
## Documentation for API Endpoints
|
67
77
|
|
68
|
-
|
78
|
+
All URIs are relative to *http://localhost*
|
69
79
|
|
70
|
-
|
80
|
+
Class | Method | HTTP request | Description
|
81
|
+
------------ | ------------- | ------------- | -------------
|
82
|
+
*MintyApi::DefaultApi* | [**api_v1_forgot_password_url_get**](docs/DefaultApi.md#api_v1_forgot_password_url_get) | **GET** /api/v1/forgot_password_url | forgot_password_url
|
83
|
+
*MintyApi::DefaultApi* | [**api_v1_sign_in_url_get**](docs/DefaultApi.md#api_v1_sign_in_url_get) | **GET** /api/v1/sign_in_url | sign_in_url summary
|
84
|
+
*MintyApi::DefaultApi* | [**api_v1_sign_up_url_get**](docs/DefaultApi.md#api_v1_sign_up_url_get) | **GET** /api/v1/sign_up_url | sign_up_url
|
71
85
|
|
72
|
-
Please do not report security vulnerabilities on the public GitHub issue tracker. The [Responsible Disclosure Program](https://minty.page/whitehat) details the procedure for disclosing security issues.
|
73
86
|
|
74
|
-
|
87
|
+
## Documentation for Models
|
75
88
|
|
76
|
-
|
77
|
-
<picture>
|
78
|
-
<source media="(prefers-color-scheme: dark)" srcset="https://cdn.minty.page/website/sdks/logos/minty_dark_mode.png" width="150">
|
79
|
-
<source media="(prefers-color-scheme: light)" srcset="https://cdn.minty.page/website/sdks/logos/minty_light_mode.png" width="150">
|
80
|
-
<img alt="Minty Logo" src="https://cdn.minty.page/website/sdks/logos/minty_light_mode.png" width="150">
|
81
|
-
</picture>
|
82
|
-
</p>
|
83
|
-
<p align="center">
|
84
|
-
Minty is an easy to implement, adaptable authentication and authorization platform. To learn more checkout <a href="https://minty.page/why-minty">Why Minty?</a>
|
85
|
-
</p>
|
86
|
-
<p align="center">
|
87
|
-
This project is licensed under the MIT license. See the <a href="https://github.com/mintypage/ruby/blob/master/LICENSE"> LICENSE</a> file for more info.
|
88
|
-
</p>
|
89
|
+
- [MintyApi::RedirectUrl](docs/RedirectUrl.md)
|
data/Rakefile
CHANGED
@@ -1,33 +1,10 @@
|
|
1
|
-
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
require 'bundler/gem_tasks'
|
1
|
+
require "bundler/gem_tasks"
|
5
2
|
|
6
3
|
begin
|
7
|
-
require 'rubocop/rake_task'
|
8
|
-
|
9
4
|
require 'rspec/core/rake_task'
|
10
5
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
desc 'Run Integration Tests'
|
15
|
-
RSpec::Core::RakeTask.new(:integration) do |t|
|
16
|
-
t.pattern = FileList["spec/integration/**/*#{ENV['PATTERN']}*_spec.rb"]
|
17
|
-
end
|
18
|
-
|
19
|
-
desc 'Run Unit Tests'
|
20
|
-
RSpec::Core::RakeTask.new(:spec) do |t|
|
21
|
-
t.pattern = FileList["spec/lib/minty/**/*#{ENV['PATTERN']}*_spec.rb"]
|
22
|
-
end
|
23
|
-
|
24
|
-
desc 'Run All Suites'
|
25
|
-
RSpec::Core::RakeTask.new(:all)
|
26
|
-
|
27
|
-
desc 'Run unit and integration tests'
|
28
|
-
task test: %i[spec integration]
|
29
|
-
|
30
|
-
task default: %i[rubocop test]
|
6
|
+
RSpec::Core::RakeTask.new(:spec)
|
7
|
+
task default: :spec
|
31
8
|
rescue LoadError
|
32
|
-
|
9
|
+
# no rspec available
|
33
10
|
end
|