nulogy_graphql_api 2.1.2 → 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/.github/workflows/gem-push.yml +29 -0
- data/.github/workflows/integrate.yml +56 -0
- data/.rubocop.yml +4 -1
- data/CHANGELOG.md +14 -1
- data/README.md +41 -2
- data/lib/nulogy_graphql_api/version.rb +1 -1
- data/nulogy_graphql_api.gemspec +6 -5
- metadata +17 -14
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e3ef0420e5eced452c468681a47db0bf23f28066a1a8db5b71f264a82a752db3
|
|
4
|
+
data.tar.gz: 2f6e5aacd8a918f3e5c23502180999e049e434171b20dff3c01187ef14dfa870
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: eb98d61ac93b589baf8c914c4e8b6cf9021d8a71b69b97474b44566da92b9a9b33a98df877801f9d847658900e63864185d13f69b0eb7454bf59613c83dc6081
|
|
7
|
+
data.tar.gz: 22827e08ec2ea12acc34048d5bd892b7d95bcdf2a277b93b9a625e87ed9e56a70dab2bb6ca4e5875ad124a951c33088bd8605aac505bfdcff9d7be93e010764b
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
on: workflow_dispatch
|
|
4
|
+
|
|
5
|
+
jobs:
|
|
6
|
+
release:
|
|
7
|
+
name: Release
|
|
8
|
+
runs-on: ubuntu-latest
|
|
9
|
+
steps:
|
|
10
|
+
- name: Clone Repository
|
|
11
|
+
uses: actions/checkout@v4
|
|
12
|
+
with:
|
|
13
|
+
fetch-depth: 0
|
|
14
|
+
|
|
15
|
+
- uses: ruby/setup-ruby@master
|
|
16
|
+
|
|
17
|
+
- name: Install gems
|
|
18
|
+
run: bundle install
|
|
19
|
+
|
|
20
|
+
- name: Setup git config
|
|
21
|
+
run: |
|
|
22
|
+
# Setup the username and email to enable git tag creation
|
|
23
|
+
git config user.name "GitHub Actions Bot"
|
|
24
|
+
git config user.email "<>"
|
|
25
|
+
|
|
26
|
+
- name: Create release
|
|
27
|
+
run: bundle exec rake release
|
|
28
|
+
env:
|
|
29
|
+
GEM_HOST_API_KEY: ${{secrets.RUBYGEMS_API_KEY}}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
name: Integrate
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
issue_comment:
|
|
5
|
+
types: [ created ]
|
|
6
|
+
|
|
7
|
+
env:
|
|
8
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
9
|
+
PR_URL: ${{ github.event.issue.pull_request.url }}
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
integrate:
|
|
13
|
+
name: Integrate
|
|
14
|
+
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/integrate')
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
steps:
|
|
17
|
+
- name: Clone Repository
|
|
18
|
+
uses: actions/checkout@v4
|
|
19
|
+
with:
|
|
20
|
+
fetch-depth: 0
|
|
21
|
+
|
|
22
|
+
- name: Checkout Pull Request
|
|
23
|
+
run: |
|
|
24
|
+
PR_NUM=${PR_URL##*/}
|
|
25
|
+
gh pr checkout $PR_NUM
|
|
26
|
+
|
|
27
|
+
- uses: ruby/setup-ruby@master
|
|
28
|
+
|
|
29
|
+
- name: Install gems
|
|
30
|
+
run: bundle install
|
|
31
|
+
|
|
32
|
+
- name: Install dependencies
|
|
33
|
+
run: bundle exec appraisal install
|
|
34
|
+
|
|
35
|
+
- name: Run Rubocop
|
|
36
|
+
run: bundle exec appraisal rake rubocop
|
|
37
|
+
|
|
38
|
+
- name: Run Specs
|
|
39
|
+
run: bundle exec appraisal rake spec
|
|
40
|
+
|
|
41
|
+
- name: Merge PR
|
|
42
|
+
run: |
|
|
43
|
+
PR_NUM=${PR_URL##*/}
|
|
44
|
+
gh pr merge $PR_NUM --merge --delete-branch
|
|
45
|
+
|
|
46
|
+
- name: Add reaction to PR comment
|
|
47
|
+
if: always()
|
|
48
|
+
env:
|
|
49
|
+
REACTION: ${{ job.status == 'success' && 'THUMBS_UP' || 'THUMBS_DOWN' }}
|
|
50
|
+
run: |
|
|
51
|
+
gh api graphql --paginate -f query='
|
|
52
|
+
mutation {
|
|
53
|
+
addReaction(input: { clientMutationId: "integrate.yml", content: ${{env.REACTION}}, subjectId: "${{github.event.comment.node_id}}" }) {
|
|
54
|
+
clientMutationId
|
|
55
|
+
}
|
|
56
|
+
}'
|
data/.rubocop.yml
CHANGED
|
@@ -10,7 +10,7 @@ AllCops:
|
|
|
10
10
|
NewCops: enable
|
|
11
11
|
TargetRubyVersion: 2.7
|
|
12
12
|
|
|
13
|
-
Gemspec/
|
|
13
|
+
Gemspec/DeprecatedAttributeAssignment:
|
|
14
14
|
Enabled: true
|
|
15
15
|
|
|
16
16
|
Layout/EmptyLinesAroundAttributeAccessor:
|
|
@@ -135,6 +135,9 @@ RSpec/MessageSpies:
|
|
|
135
135
|
RSpec/NotToNot:
|
|
136
136
|
EnforcedStyle: to_not
|
|
137
137
|
|
|
138
|
+
RSpec/Rails/InferredSpecType:
|
|
139
|
+
Enabled: false
|
|
140
|
+
|
|
138
141
|
Style/AccessorGrouping:
|
|
139
142
|
Enabled: true
|
|
140
143
|
|
data/CHANGELOG.md
CHANGED
|
@@ -4,7 +4,20 @@
|
|
|
4
4
|
|
|
5
5
|
_none_
|
|
6
6
|
|
|
7
|
-
## 2.
|
|
7
|
+
## 2.2.0 (2024-01-15)
|
|
8
|
+
|
|
9
|
+
**Changes**
|
|
10
|
+
* Pin graphql to major version 2. Permit minor version upgrades of graphql
|
|
11
|
+
without forcing the project to release a new version.
|
|
12
|
+
|
|
13
|
+
## 2.1.3 (2023-12-06)
|
|
14
|
+
|
|
15
|
+
**Changes**
|
|
16
|
+
* Support appraisal 2.5.x
|
|
17
|
+
* Support rake 13.1.x
|
|
18
|
+
* Support rspec 3.12.x
|
|
19
|
+
|
|
20
|
+
## 2.1.2 (2023-11-24)
|
|
8
21
|
|
|
9
22
|
**Changes**
|
|
10
23
|
* Support graphql 2.1.x
|
data/README.md
CHANGED
|
@@ -273,7 +273,7 @@ expect(response).to have_graphql_error("Error message")
|
|
|
273
273
|
|
|
274
274
|
## Development
|
|
275
275
|
|
|
276
|
-
After checking out the repo, run `bin/setup` to install dependencies.
|
|
276
|
+
After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
|
277
277
|
|
|
278
278
|
To test against all supported versions of rails run `bundle exec appraisal install` and then run `bundle exec appraisal rake`.
|
|
279
279
|
|
|
@@ -289,7 +289,7 @@ The Directly Responsible Individual (DRI) for this project is Daniel Silva.
|
|
|
289
289
|
|
|
290
290
|
When you are happy with your changes:
|
|
291
291
|
|
|
292
|
-
1. Add description of changes to the top of the [CHANGELOG](./CHANGELOG.md) file, under the
|
|
292
|
+
1. Add description of changes to the top of the [CHANGELOG](./CHANGELOG.md) file, under the `master (unreleased)` section subdivided into the following categories:
|
|
293
293
|
- New Features
|
|
294
294
|
- Bug Fixes
|
|
295
295
|
- Changes
|
|
@@ -298,6 +298,44 @@ When you are happy with your changes:
|
|
|
298
298
|
1. Create a Pull Request.
|
|
299
299
|
1. Notify #nulogy-graphql-api Slack channel to get the DRI review and merge your changes.
|
|
300
300
|
|
|
301
|
+
### Merging Pull Requests
|
|
302
|
+
|
|
303
|
+
Add a comment to the PR with the command `/integrate`. This will trigger the [Integrate](https://github.com/nulogy/nulogy_graphql_api/actions) GitHub action that runs checks (Rubocop, RSpec) and merges the code into the base branch.
|
|
304
|
+
|
|
305
|
+
### Releasing a new version
|
|
306
|
+
|
|
307
|
+
1. Take a look at the changes listed under `master (unreleased)` at the top of the [CHANGELOG](./CHANGELOG.md) in order to define the new version according to the rules of [Semantic Versioning](https://semver.org/).
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
2. Change the `version.rb` file.
|
|
311
|
+
|
|
312
|
+
```ruby
|
|
313
|
+
module NulogyGraphqlApi
|
|
314
|
+
VERSION = "2.1.3"
|
|
315
|
+
end
|
|
316
|
+
```
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
3. Add a title to the list of changes with the new version following the format: `X.Y.Z (YYYY-MM-DD)`. Keep the `master (unreleased)` title and add _none_ underneath it. This is how the top of the changelog should look like:
|
|
320
|
+
|
|
321
|
+
```text
|
|
322
|
+
## master (unreleased)
|
|
323
|
+
|
|
324
|
+
_none_
|
|
325
|
+
|
|
326
|
+
## 2.1.3 (2023-12-06)
|
|
327
|
+
|
|
328
|
+
**Changes**
|
|
329
|
+
* Support appraisal 2.5.x
|
|
330
|
+
* Support rake 13.1.x
|
|
331
|
+
* Support rspec 3.12.x
|
|
332
|
+
```
|
|
333
|
+
|
|
334
|
+
4. Commit these changes. Suggested commit message: `Release new version`.
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
5. Go to the [Release](https://github.com/nulogy/nulogy_graphql_api/actions/workflows/gem-push.yml) GitHub action and run a new workflow. The new version will be pushed to [rubygems](https://rubygems.org/gems/nulogy_graphql_api).
|
|
338
|
+
|
|
301
339
|
## License
|
|
302
340
|
|
|
303
341
|
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
|
@@ -305,3 +343,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
|
|
|
305
343
|
## Code of Conduct
|
|
306
344
|
|
|
307
345
|
Everyone interacting in the NulogyGraphqlApi project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/nulogy/nulogy_graphql_api/blob/master/CODE_OF_CONDUCT.md).
|
|
346
|
+
|
data/nulogy_graphql_api.gemspec
CHANGED
|
@@ -14,7 +14,8 @@ Gem::Specification.new do |spec|
|
|
|
14
14
|
"homepage_uri" => "https://github.com/nulogy/nulogy_graphql_api",
|
|
15
15
|
"changelog_uri" => "https://github.com/nulogy/nulogy_graphql_api/blob/master/CHANGELOG.md",
|
|
16
16
|
"source_code_uri" => "https://github.com/nulogy/nulogy_graphql_api",
|
|
17
|
-
"bug_tracker_uri" => "https://github.com/nulogy/nulogy_graphql_api/issues"
|
|
17
|
+
"bug_tracker_uri" => "https://github.com/nulogy/nulogy_graphql_api/issues",
|
|
18
|
+
"rubygems_mfa_required" => "true"
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
spec.required_ruby_version = Gem::Requirement.new(">= 2.6.0")
|
|
@@ -28,14 +29,14 @@ Gem::Specification.new do |spec|
|
|
|
28
29
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
29
30
|
spec.require_paths = ["lib"]
|
|
30
31
|
|
|
31
|
-
spec.add_dependency "graphql", "~> 2
|
|
32
|
+
spec.add_dependency "graphql", "~> 2"
|
|
32
33
|
spec.add_dependency "graphql-schema_comparator", "~> 1.2"
|
|
33
34
|
spec.add_dependency "rails", ">= 6.0", "< 8.0"
|
|
34
35
|
spec.add_dependency "rainbow", "~> 3.0"
|
|
35
36
|
|
|
36
|
-
spec.add_development_dependency "appraisal", "~> 2.
|
|
37
|
-
spec.add_development_dependency "rake", "~> 13.
|
|
38
|
-
spec.add_development_dependency "rspec", "~> 3.
|
|
37
|
+
spec.add_development_dependency "appraisal", "~> 2.5"
|
|
38
|
+
spec.add_development_dependency "rake", "~> 13.1"
|
|
39
|
+
spec.add_development_dependency "rspec", "~> 3.12"
|
|
39
40
|
spec.add_development_dependency "rspec-rails", "~> 5.1"
|
|
40
41
|
spec.add_development_dependency "rubocop", "~> 1.25"
|
|
41
42
|
spec.add_development_dependency "rubocop-performance", "~> 1.13"
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: nulogy_graphql_api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Daniel Silva
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2024-01-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: graphql
|
|
@@ -16,14 +16,14 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '2
|
|
19
|
+
version: '2'
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: '2
|
|
26
|
+
version: '2'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: graphql-schema_comparator
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -78,42 +78,42 @@ dependencies:
|
|
|
78
78
|
requirements:
|
|
79
79
|
- - "~>"
|
|
80
80
|
- !ruby/object:Gem::Version
|
|
81
|
-
version: '2.
|
|
81
|
+
version: '2.5'
|
|
82
82
|
type: :development
|
|
83
83
|
prerelease: false
|
|
84
84
|
version_requirements: !ruby/object:Gem::Requirement
|
|
85
85
|
requirements:
|
|
86
86
|
- - "~>"
|
|
87
87
|
- !ruby/object:Gem::Version
|
|
88
|
-
version: '2.
|
|
88
|
+
version: '2.5'
|
|
89
89
|
- !ruby/object:Gem::Dependency
|
|
90
90
|
name: rake
|
|
91
91
|
requirement: !ruby/object:Gem::Requirement
|
|
92
92
|
requirements:
|
|
93
93
|
- - "~>"
|
|
94
94
|
- !ruby/object:Gem::Version
|
|
95
|
-
version: '13.
|
|
95
|
+
version: '13.1'
|
|
96
96
|
type: :development
|
|
97
97
|
prerelease: false
|
|
98
98
|
version_requirements: !ruby/object:Gem::Requirement
|
|
99
99
|
requirements:
|
|
100
100
|
- - "~>"
|
|
101
101
|
- !ruby/object:Gem::Version
|
|
102
|
-
version: '13.
|
|
102
|
+
version: '13.1'
|
|
103
103
|
- !ruby/object:Gem::Dependency
|
|
104
104
|
name: rspec
|
|
105
105
|
requirement: !ruby/object:Gem::Requirement
|
|
106
106
|
requirements:
|
|
107
107
|
- - "~>"
|
|
108
108
|
- !ruby/object:Gem::Version
|
|
109
|
-
version: '3.
|
|
109
|
+
version: '3.12'
|
|
110
110
|
type: :development
|
|
111
111
|
prerelease: false
|
|
112
112
|
version_requirements: !ruby/object:Gem::Requirement
|
|
113
113
|
requirements:
|
|
114
114
|
- - "~>"
|
|
115
115
|
- !ruby/object:Gem::Version
|
|
116
|
-
version: '3.
|
|
116
|
+
version: '3.12'
|
|
117
117
|
- !ruby/object:Gem::Dependency
|
|
118
118
|
name: rspec-rails
|
|
119
119
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -198,13 +198,15 @@ dependencies:
|
|
|
198
198
|
- - "~>"
|
|
199
199
|
- !ruby/object:Gem::Version
|
|
200
200
|
version: '1.4'
|
|
201
|
-
description:
|
|
201
|
+
description:
|
|
202
202
|
email:
|
|
203
203
|
- danielsi@nulogy.com
|
|
204
204
|
executables: []
|
|
205
205
|
extensions: []
|
|
206
206
|
extra_rdoc_files: []
|
|
207
207
|
files:
|
|
208
|
+
- ".github/workflows/gem-push.yml"
|
|
209
|
+
- ".github/workflows/integrate.yml"
|
|
208
210
|
- ".gitignore"
|
|
209
211
|
- ".rspec"
|
|
210
212
|
- ".rubocop"
|
|
@@ -249,7 +251,8 @@ metadata:
|
|
|
249
251
|
changelog_uri: https://github.com/nulogy/nulogy_graphql_api/blob/master/CHANGELOG.md
|
|
250
252
|
source_code_uri: https://github.com/nulogy/nulogy_graphql_api
|
|
251
253
|
bug_tracker_uri: https://github.com/nulogy/nulogy_graphql_api/issues
|
|
252
|
-
|
|
254
|
+
rubygems_mfa_required: 'true'
|
|
255
|
+
post_install_message:
|
|
253
256
|
rdoc_options: []
|
|
254
257
|
require_paths:
|
|
255
258
|
- lib
|
|
@@ -265,7 +268,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
265
268
|
version: '0'
|
|
266
269
|
requirements: []
|
|
267
270
|
rubygems_version: 3.1.6
|
|
268
|
-
signing_key:
|
|
271
|
+
signing_key:
|
|
269
272
|
specification_version: 4
|
|
270
273
|
summary: Standard tooling for building GraphQL apis
|
|
271
274
|
test_files: []
|