minty 1.0.0 → 1.1.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.
Files changed (70) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +4 -16
  3. data/Gemfile.lock +28 -208
  4. data/README.md +58 -57
  5. data/Rakefile +4 -27
  6. data/docs/DefaultApi.md +217 -0
  7. data/docs/RedirectUrl.md +18 -0
  8. data/git_push.sh +57 -0
  9. data/lib/minty/api/default_api.rb +210 -0
  10. data/lib/minty/api_client.rb +388 -0
  11. data/lib/minty/api_error.rb +53 -0
  12. data/lib/minty/configuration.rb +275 -0
  13. data/lib/minty/models/redirect_url.rb +216 -0
  14. data/lib/minty/version.rb +9 -3
  15. data/lib/minty.rb +33 -7
  16. data/minty.gemspec +19 -32
  17. data/pkg/minty-1.1.0.gem +0 -0
  18. data/publish_rubygem.sh +1 -1
  19. data/spec/api/default_api_spec.rb +65 -0
  20. data/spec/api_client_spec.rb +222 -0
  21. data/spec/configuration_spec.rb +38 -0
  22. data/spec/models/redirect_url_spec.rb +28 -0
  23. data/spec/spec_helper.rb +95 -63
  24. metadata +37 -292
  25. data/.bundle/config +0 -4
  26. data/.devcontainer/Dockerfile +0 -19
  27. data/.devcontainer/devcontainer.json +0 -37
  28. data/.env.example +0 -2
  29. data/.gemrelease +0 -2
  30. data/.github/PULL_REQUEST_TEMPLATE.md +0 -33
  31. data/.github/dependabot.yml +0 -10
  32. data/.github/stale.yml +0 -20
  33. data/.gitignore +0 -18
  34. data/.rspec +0 -3
  35. data/.rubocop.yml +0 -9
  36. data/CODE_OF_CONDUCT.md +0 -3
  37. data/DEPLOYMENT.md +0 -61
  38. data/DEVELOPMENT.md +0 -35
  39. data/EXAMPLES.md +0 -195
  40. data/Guardfile +0 -39
  41. data/LICENSE +0 -21
  42. data/Makefile +0 -5
  43. data/RUBYGEM.md +0 -9
  44. data/codecov.yml +0 -22
  45. data/lib/minty/algorithm.rb +0 -7
  46. data/lib/minty/api/authentication_endpoints.rb +0 -30
  47. data/lib/minty/api/v2.rb +0 -8
  48. data/lib/minty/client.rb +0 -7
  49. data/lib/minty/exception.rb +0 -50
  50. data/lib/minty/mixins/api_token_struct.rb +0 -4
  51. data/lib/minty/mixins/headers.rb +0 -19
  52. data/lib/minty/mixins/httpproxy.rb +0 -125
  53. data/lib/minty/mixins/initializer.rb +0 -38
  54. data/lib/minty/mixins/validation.rb +0 -113
  55. data/lib/minty/mixins.rb +0 -23
  56. data/lib/minty_client.rb +0 -4
  57. data/spec/integration/lib/minty/api/api_authentication_spec.rb +0 -122
  58. data/spec/integration/lib/minty/minty_client_spec.rb +0 -92
  59. data/spec/lib/minty/client_spec.rb +0 -223
  60. data/spec/lib/minty/mixins/httpproxy_spec.rb +0 -658
  61. data/spec/lib/minty/mixins/initializer_spec.rb +0 -121
  62. data/spec/lib/minty/mixins/token_management_spec.rb +0 -129
  63. data/spec/lib/minty/mixins/validation_spec.rb +0 -559
  64. data/spec/support/credentials.rb +0 -14
  65. data/spec/support/dummy_class.rb +0 -20
  66. data/spec/support/dummy_class_for_proxy.rb +0 -6
  67. data/spec/support/dummy_class_for_restclient.rb +0 -4
  68. data/spec/support/dummy_class_for_tokens.rb +0 -18
  69. data/spec/support/import_users.json +0 -13
  70. data/spec/support/stub_response.rb +0 -3
metadata CHANGED
@@ -1,333 +1,88 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minty
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Minty
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-11 00:00:00.000000000 Z
11
+ date: 2022-11-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rest-client
14
+ name: typhoeus
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2.1'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: '2.1'
27
- - !ruby/object:Gem::Dependency
28
- name: jwt
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '2.5'
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '2.5'
41
- - !ruby/object:Gem::Dependency
42
- name: zache
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: '0.12'
48
- type: :runtime
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '0.12'
55
- - !ruby/object:Gem::Dependency
56
- name: addressable
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - "~>"
60
- - !ruby/object:Gem::Version
61
- version: '2.8'
62
- type: :runtime
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - "~>"
67
- - !ruby/object:Gem::Version
68
- version: '2.8'
69
- - !ruby/object:Gem::Dependency
70
- name: retryable
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - "~>"
19
+ version: '1.0'
20
+ - - ">="
74
21
  - !ruby/object:Gem::Version
75
- version: '3.0'
22
+ version: 1.0.1
76
23
  type: :runtime
77
24
  prerelease: false
78
25
  version_requirements: !ruby/object:Gem::Requirement
79
26
  requirements:
80
27
  - - "~>"
81
28
  - !ruby/object:Gem::Version
82
- version: '3.0'
83
- - !ruby/object:Gem::Dependency
84
- name: bundler
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
29
+ version: '1.0'
87
30
  - - ">="
88
31
  - !ruby/object:Gem::Version
89
- version: '0'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- version: '0'
97
- - !ruby/object:Gem::Dependency
98
- name: rake
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - "~>"
102
- - !ruby/object:Gem::Version
103
- version: '13.0'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - "~>"
109
- - !ruby/object:Gem::Version
110
- version: '13.0'
111
- - !ruby/object:Gem::Dependency
112
- name: fuubar
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - "~>"
116
- - !ruby/object:Gem::Version
117
- version: '2.0'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - "~>"
123
- - !ruby/object:Gem::Version
124
- version: '2.0'
125
- - !ruby/object:Gem::Dependency
126
- name: guard-rspec
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - "~>"
130
- - !ruby/object:Gem::Version
131
- version: '4.5'
132
- type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - "~>"
137
- - !ruby/object:Gem::Version
138
- version: '4.5'
139
- - !ruby/object:Gem::Dependency
140
- name: dotenv-rails
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - "~>"
144
- - !ruby/object:Gem::Version
145
- version: '2.0'
146
- type: :development
147
- prerelease: false
148
- version_requirements: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - "~>"
151
- - !ruby/object:Gem::Version
152
- version: '2.0'
153
- - !ruby/object:Gem::Dependency
154
- name: pry
155
- requirement: !ruby/object:Gem::Requirement
156
- requirements:
157
- - - "~>"
158
- - !ruby/object:Gem::Version
159
- version: '0.10'
160
- type: :development
161
- prerelease: false
162
- version_requirements: !ruby/object:Gem::Requirement
163
- requirements:
164
- - - "~>"
165
- - !ruby/object:Gem::Version
166
- version: '0.10'
167
- - !ruby/object:Gem::Dependency
168
- name: pry-nav
169
- requirement: !ruby/object:Gem::Requirement
170
- requirements:
171
- - - "~>"
172
- - !ruby/object:Gem::Version
173
- version: '0.2'
174
- type: :development
175
- prerelease: false
176
- version_requirements: !ruby/object:Gem::Requirement
177
- requirements:
178
- - - "~>"
179
- - !ruby/object:Gem::Version
180
- version: '0.2'
32
+ version: 1.0.1
181
33
  - !ruby/object:Gem::Dependency
182
34
  name: rspec
183
35
  requirement: !ruby/object:Gem::Requirement
184
36
  requirements:
185
37
  - - "~>"
186
38
  - !ruby/object:Gem::Version
187
- version: '3.11'
188
- type: :development
189
- prerelease: false
190
- version_requirements: !ruby/object:Gem::Requirement
191
- requirements:
192
- - - "~>"
193
- - !ruby/object:Gem::Version
194
- version: '3.11'
195
- - !ruby/object:Gem::Dependency
196
- name: rack-test
197
- requirement: !ruby/object:Gem::Requirement
198
- requirements:
199
- - - "~>"
200
- - !ruby/object:Gem::Version
201
- version: '0.6'
202
- type: :development
203
- prerelease: false
204
- version_requirements: !ruby/object:Gem::Requirement
205
- requirements:
206
- - - "~>"
207
- - !ruby/object:Gem::Version
208
- version: '0.6'
209
- - !ruby/object:Gem::Dependency
210
- name: rack
211
- requirement: !ruby/object:Gem::Requirement
212
- requirements:
213
- - - "~>"
214
- - !ruby/object:Gem::Version
215
- version: '2.1'
216
- type: :development
217
- prerelease: false
218
- version_requirements: !ruby/object:Gem::Requirement
219
- requirements:
220
- - - "~>"
221
- - !ruby/object:Gem::Version
222
- version: '2.1'
223
- - !ruby/object:Gem::Dependency
224
- name: simplecov
225
- requirement: !ruby/object:Gem::Requirement
226
- requirements:
227
- - - "~>"
228
- - !ruby/object:Gem::Version
229
- version: '0.9'
230
- type: :development
231
- prerelease: false
232
- version_requirements: !ruby/object:Gem::Requirement
233
- requirements:
234
- - - "~>"
235
- - !ruby/object:Gem::Version
236
- version: '0.9'
237
- - !ruby/object:Gem::Dependency
238
- name: faker
239
- requirement: !ruby/object:Gem::Requirement
240
- requirements:
241
- - - "~>"
39
+ version: '3.6'
40
+ - - ">="
242
41
  - !ruby/object:Gem::Version
243
- version: '2.0'
42
+ version: 3.6.0
244
43
  type: :development
245
44
  prerelease: false
246
45
  version_requirements: !ruby/object:Gem::Requirement
247
46
  requirements:
248
47
  - - "~>"
249
48
  - !ruby/object:Gem::Version
250
- version: '2.0'
251
- - !ruby/object:Gem::Dependency
252
- name: gem-release
253
- requirement: !ruby/object:Gem::Requirement
254
- requirements:
255
- - - "~>"
256
- - !ruby/object:Gem::Version
257
- version: '0.7'
258
- type: :development
259
- prerelease: false
260
- version_requirements: !ruby/object:Gem::Requirement
261
- requirements:
262
- - - "~>"
49
+ version: '3.6'
50
+ - - ">="
263
51
  - !ruby/object:Gem::Version
264
- version: '0.7'
265
- description: Ruby toolkit for Minty API https://minty.page
52
+ version: 3.6.0
53
+ description: Minty API
266
54
  email:
267
- - support@minty.page
55
+ - ''
268
56
  executables: []
269
57
  extensions: []
270
58
  extra_rdoc_files: []
271
59
  files:
272
- - ".bundle/config"
273
- - ".devcontainer/Dockerfile"
274
- - ".devcontainer/devcontainer.json"
275
- - ".env.example"
276
- - ".gemrelease"
277
- - ".github/PULL_REQUEST_TEMPLATE.md"
278
- - ".github/dependabot.yml"
279
- - ".github/stale.yml"
280
- - ".gitignore"
281
- - ".rspec"
282
- - ".rubocop.yml"
283
- - CODE_OF_CONDUCT.md
284
- - DEPLOYMENT.md
285
- - DEVELOPMENT.md
286
60
  - Dockerfile
287
- - EXAMPLES.md
288
61
  - Gemfile
289
62
  - Gemfile.lock
290
- - Guardfile
291
- - LICENSE
292
- - Makefile
293
63
  - README.md
294
- - RUBYGEM.md
295
64
  - Rakefile
296
- - codecov.yml
65
+ - docs/DefaultApi.md
66
+ - docs/RedirectUrl.md
67
+ - git_push.sh
297
68
  - lib/minty.rb
298
- - lib/minty/algorithm.rb
299
- - lib/minty/api/authentication_endpoints.rb
300
- - lib/minty/api/v2.rb
301
- - lib/minty/client.rb
302
- - lib/minty/exception.rb
303
- - lib/minty/mixins.rb
304
- - lib/minty/mixins/api_token_struct.rb
305
- - lib/minty/mixins/headers.rb
306
- - lib/minty/mixins/httpproxy.rb
307
- - lib/minty/mixins/initializer.rb
308
- - lib/minty/mixins/validation.rb
69
+ - lib/minty/api/default_api.rb
70
+ - lib/minty/api_client.rb
71
+ - lib/minty/api_error.rb
72
+ - lib/minty/configuration.rb
73
+ - lib/minty/models/redirect_url.rb
309
74
  - lib/minty/version.rb
310
- - lib/minty_client.rb
311
75
  - minty.gemspec
76
+ - pkg/minty-1.1.0.gem
312
77
  - publish_rubygem.sh
313
- - spec/integration/lib/minty/api/api_authentication_spec.rb
314
- - spec/integration/lib/minty/minty_client_spec.rb
315
- - spec/lib/minty/client_spec.rb
316
- - spec/lib/minty/mixins/httpproxy_spec.rb
317
- - spec/lib/minty/mixins/initializer_spec.rb
318
- - spec/lib/minty/mixins/token_management_spec.rb
319
- - spec/lib/minty/mixins/validation_spec.rb
78
+ - spec/api/default_api_spec.rb
79
+ - spec/api_client_spec.rb
80
+ - spec/configuration_spec.rb
81
+ - spec/models/redirect_url_spec.rb
320
82
  - spec/spec_helper.rb
321
- - spec/support/credentials.rb
322
- - spec/support/dummy_class.rb
323
- - spec/support/dummy_class_for_proxy.rb
324
- - spec/support/dummy_class_for_restclient.rb
325
- - spec/support/dummy_class_for_tokens.rb
326
- - spec/support/import_users.json
327
- - spec/support/stub_response.rb
328
- homepage: https://github.com/mintypage/ruby
83
+ homepage: https://www.minty.page
329
84
  licenses:
330
- - MIT
85
+ - Unlicense
331
86
  metadata: {}
332
87
  post_install_message:
333
88
  rdoc_options: []
@@ -337,7 +92,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
337
92
  requirements:
338
93
  - - ">="
339
94
  - !ruby/object:Gem::Version
340
- version: '0'
95
+ version: '2.4'
341
96
  required_rubygems_version: !ruby/object:Gem::Requirement
342
97
  requirements:
343
98
  - - ">="
@@ -347,20 +102,10 @@ requirements: []
347
102
  rubygems_version: 3.1.6
348
103
  signing_key:
349
104
  specification_version: 4
350
- summary: Minty API Client
105
+ summary: Minty API Ruby Gem
351
106
  test_files:
352
- - spec/integration/lib/minty/api/api_authentication_spec.rb
353
- - spec/integration/lib/minty/minty_client_spec.rb
354
- - spec/lib/minty/client_spec.rb
355
- - spec/lib/minty/mixins/httpproxy_spec.rb
356
- - spec/lib/minty/mixins/initializer_spec.rb
357
- - spec/lib/minty/mixins/token_management_spec.rb
358
- - spec/lib/minty/mixins/validation_spec.rb
107
+ - spec/api/default_api_spec.rb
108
+ - spec/api_client_spec.rb
109
+ - spec/configuration_spec.rb
110
+ - spec/models/redirect_url_spec.rb
359
111
  - spec/spec_helper.rb
360
- - spec/support/credentials.rb
361
- - spec/support/dummy_class.rb
362
- - spec/support/dummy_class_for_proxy.rb
363
- - spec/support/dummy_class_for_restclient.rb
364
- - spec/support/dummy_class_for_tokens.rb
365
- - spec/support/import_users.json
366
- - spec/support/stub_response.rb
data/.bundle/config DELETED
@@ -1,4 +0,0 @@
1
- ---
2
- BUNDLE_JOBS: "3"
3
- BUNDLE_BIN: "bin"
4
- BUNDLE_RETRY: "3"
@@ -1,19 +0,0 @@
1
- # See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.245.2/containers/ruby/.devcontainer/base.Dockerfile
2
-
3
- # [Choice] Ruby version (use -bullseye variants on local arm64/Apple Silicon): 3, 3.1, 3.0, 2, 2.7, 3-bullseye, 3.1-bullseye, 3.0-bullseye, 2-bullseye, 2.7-bullseye, 3-buster, 3.1-buster, 3.0-buster, 2-buster, 2.7-buster
4
- ARG VARIANT="3.1-bullseye"
5
- FROM mcr.microsoft.com/vscode/devcontainers/ruby:0-${VARIANT}
6
-
7
- # [Choice] Node.js version: none, lts/*, 16, 14, 12, 10
8
- ARG NODE_VERSION="none"
9
- RUN if [ "${NODE_VERSION}" != "none" ]; then su vscode -c "umask 0002 && . /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi
10
-
11
- # [Optional] Uncomment this section to install additional OS packages.
12
- # RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
13
- # && apt-get -y install --no-install-recommends <your-package-list-here>
14
-
15
- # [Optional] Uncomment this line to install additional gems.
16
- # RUN gem install <your-gem-names-here>
17
-
18
- # [Optional] Uncomment this line to install global node packages.
19
- # RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g <your-package-here>" 2>&1
@@ -1,37 +0,0 @@
1
- // For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
2
- // https://github.com/microsoft/vscode-dev-containers/tree/v0.245.2/containers/ruby
3
- {
4
- "name": "Ruby",
5
- "build": {
6
- "dockerfile": "Dockerfile",
7
- "args": {
8
- // Update 'VARIANT' to pick a Ruby version: 3, 3.1, 3.0, 2, 2.7
9
- // Append -bullseye or -buster to pin to an OS version.
10
- // Use -bullseye variants on local on arm64/Apple Silicon.
11
- "VARIANT": "3.1",
12
- // Options
13
- "NODE_VERSION": "lts/*"
14
- }
15
- },
16
-
17
- // Configure tool-specific properties.
18
- "customizations": {
19
- // Configure properties specific to VS Code.
20
- "vscode": {
21
- // Add the IDs of extensions you want installed when the container is created.
22
- "extensions": [
23
- "rebornix.Ruby"
24
- ]
25
- }
26
- },
27
-
28
- // Use 'forwardPorts' to make a list of ports inside the container available locally.
29
- // "forwardPorts": [],
30
-
31
- // Use 'postCreateCommand' to run commands after the container is created.
32
- // "postCreateCommand": "ruby --version",
33
-
34
- // Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
35
- "remoteUser": "vscode"
36
-
37
- }
data/.env.example DELETED
@@ -1,2 +0,0 @@
1
- DOMAIN=
2
- CLIENT_ID=
data/.gemrelease DELETED
@@ -1,2 +0,0 @@
1
- bump:
2
- tag: true
@@ -1,33 +0,0 @@
1
- ### Changes
2
-
3
- Please describe both what is changing and why this is important. Include:
4
-
5
- - Endpoints added, deleted, deprecated, or changed
6
- - Classes and methods added, deleted, deprecated, or changed
7
- - Screenshots of new or changed UI, if applicable
8
- - A summary of usage if this is a new feature or change to a public API (this should also be added to relevant documentation once released)
9
-
10
- ### References
11
-
12
- Please include relevant links supporting this change such as a:
13
-
14
- - support ticket
15
- - community post
16
- - StackOverflow post
17
- - support forum thread
18
-
19
- Please note any links that are not publicly accessible.
20
-
21
- ### Testing
22
-
23
- Please describe how this can be tested by reviewers. Be specific about anything not tested and reasons why. If this library has unit and/or integration testing, tests should be added for new functionality and existing tests should complete without errors.
24
-
25
- * [ ] This change adds unit test coverage
26
- * [ ] This change adds integration test coverage
27
- * [ ] This change has been tested on the latest version of Ruby
28
-
29
- ### Checklist
30
-
31
- * [ ] All existing and new tests complete without errors
32
- * [ ] Rubocop passes on all added/modified files
33
- * [ ] All active GitHub checks have passed
@@ -1,10 +0,0 @@
1
- version: 2
2
- updates:
3
-
4
- - package-ecosystem: "bundler"
5
- directory: "/"
6
- schedule:
7
- interval: "daily"
8
- ignore:
9
- - dependency-name: "*"
10
- update-types: ["version-update:semver-major"]
data/.github/stale.yml DELETED
@@ -1,20 +0,0 @@
1
- # Configuration for probot-stale - https://github.com/probot/stale
2
-
3
- # Number of days of inactivity before an Issue or Pull Request becomes stale
4
- daysUntilStale: 90
5
-
6
- # Number of days of inactivity before an Issue or Pull Request with the stale label is closed.
7
- daysUntilClose: 7
8
-
9
- # Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable
10
- exemptLabels: []
11
-
12
- # Set to true to ignore issues with an assignee (defaults to false)
13
- exemptAssignees: true
14
-
15
- # Label to use when marking as stale
16
- staleLabel: closed:stale
17
-
18
- # Comment to post when marking as stale. Set to `false` to disable
19
- markComment: >
20
- This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you have not received a response for our team (apologies for the delay) and this is still a blocker, please reply with additional information or just a ping. Thank you for your contribution! 🙇‍♂️
data/.gitignore DELETED
@@ -1,18 +0,0 @@
1
- bin/
2
- !examples/ruby-on-rails-api/bin/
3
- vendor/
4
- doc/
5
- .DS_Store
6
- .ruby-version
7
- coverage
8
- *.gem
9
- .ruby-gemset
10
- *.swp
11
- *.swo
12
- spec/minty.yml
13
- .env
14
- /.yardoc/checksums
15
- /.yardoc/complete
16
- /.yardoc/object_types
17
- /.yardoc/objects/root.dat
18
- /.yardoc/proxy_types
data/.rspec DELETED
@@ -1,3 +0,0 @@
1
- --color
2
- --format Fuubar
3
- --color
data/.rubocop.yml DELETED
@@ -1,9 +0,0 @@
1
- require:
2
- - rubocop-rails
3
- Rails:
4
- Enabled: true
5
- AllCops:
6
- Exclude:
7
- - bin/**/*
8
- - vendor/**/*
9
- - minty.gemspec
data/CODE_OF_CONDUCT.md DELETED
@@ -1,3 +0,0 @@
1
- # Code of Conduct
2
-
3
- Please see [Minty's code of conduct guidelines](https://github.com/minty/open-source-template/blob/master/CODE-OF-CONDUCT.md) for information on contributing to this repo.
data/DEPLOYMENT.md DELETED
@@ -1,61 +0,0 @@
1
- # Releasing the gem
2
-
3
- ## Credentials set up
4
-
5
- Make sure you have access in https://rubygems.org/gems/minty/ and that your Ruby Gems tokens are set in `~/.gem/credentials`.
6
-
7
- In order to generate the required changelog entry, define an environment variable `GITHUB_READ_TOKEN` with a Github API token that has READ access to `repo:public_repo`. You can generate a Github API Token [here](https://github.com/settings/tokens/new?description=GitHub%20Changelog%20Generator%20token).
8
-
9
- Create a new Github Milestone with the version name prefixed with `v`. i.e. `v4.10.2`. Assign every Issue and Pull Request to be included on this release to that Milestone, and tag them with the `CH:xxxxxx` labels, depending on the type of change fixed or introduced there.
10
-
11
- Finally, follow the next steps:
12
-
13
- ```bash
14
- # Install gems for exec commands
15
- bundle install
16
-
17
- # Run all tests
18
- bundle exec rake test
19
-
20
- # Create a release branch
21
- git checkout master
22
- git pull
23
- git checkout -b release-X.X.X
24
- git push --set-upstream origin release-X.X.X
25
-
26
- # Update the version number
27
- # This will create a commit with the new version
28
- bundle exec gem bump --version X.X.X
29
-
30
- # Make sure the Gemfile.lock is up-to-date
31
- bundle update
32
- git commit -am "Update gems"
33
-
34
- # Generate the changelog
35
- github_changelog_generator -t $GITHUB_READ_TOKEN
36
- # ... or similar.
37
- # Review the changelog
38
- # Remove "unreleased" section
39
- # Make sure the tags are ordered
40
-
41
- # Commit, push, and create a PR for this release
42
- git commit -am "Update CHANGELOG.md"
43
- git push
44
-
45
- # Add related milestone
46
- # Create PR on GitHub and assign for review
47
- # Merge/rebase and delete branch once approved
48
-
49
- # Create and add a tag
50
- git checkout master
51
- git pull
52
- bundle exec gem tag
53
- git push origin vX.X.X
54
- # Create a new release from this tag on GitHub using markdown from the changelog
55
-
56
- # Make sure you are an author for this gem here https://rubygems.org/gems/minty/
57
- # Rubygems token can be updated in ~/.gem/credentials
58
- bundle exec gem release
59
- ```
60
-
61
- The steps above were tested with Ruby `v2.5.7`.
data/DEVELOPMENT.md DELETED
@@ -1,35 +0,0 @@
1
- # Development
2
-
3
- In order to set up the local environment you'd have to have Ruby installed and a few global gems used to run and record the unit tests. A working Ruby version can be taken from the [CI script](/.circleci/config.yml). At the moment of this writting we're using Ruby `2.5.7`.
4
-
5
- > It is expected that every Pull Request introducing a fix, change or feature contains enough test coverage to assert the new behavior.
6
-
7
- ## Running the tests
8
-
9
- Install the gems required for this project.
10
-
11
- ```bash
12
- bundle install
13
- ```
14
-
15
- Finally, run the tests.
16
-
17
- ```bash
18
- bundle exec rake test
19
- ```
20
-
21
- ### Running only unit tests
22
-
23
- You can run only the unit tests and ignore the integration tests by running the following:
24
-
25
- ```bash
26
- bundle exec rake spec
27
- ```
28
-
29
- ### Running only integration tests
30
-
31
- You can run only the unit tests and ignore the integration tests by running the following:
32
-
33
- ```bash
34
- bundle exec rake integration
35
- ```