nulogy_graphql_api 2.1.2 → 2.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/gem-push.yml +32 -0
- data/.github/workflows/integrate.yml +56 -0
- data/.rubocop.yml +4 -1
- data/CHANGELOG.md +8 -1
- data/README.md +2 -1
- data/lib/nulogy_graphql_api/version.rb +1 -1
- data/nulogy_graphql_api.gemspec +5 -4
- metadata +15 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f899476d44c2e336ac2684b30445c89af46e2d2aad292943d590c76c5cd04ec4
|
4
|
+
data.tar.gz: 65853b83fa441b71646d87b383d9455b794edd72c43afbdd935510042cb5f209
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f3c38ab529a9171d0c091d5f724827095eb6336270046707c3d5826e567b0b7ea2873833980b7f70744f5cc5963090b87da38163a1b3128f232b39894a21866
|
7
|
+
data.tar.gz: 232c275825e112651ea52efbdac0a4a0aafe1cfb309aeaa288b4da4577022bb801314f1d8667b7eae2a7bc96b850465cd2de2db19650ebea08277d6e23ee0045
|
@@ -0,0 +1,32 @@
|
|
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: |
|
28
|
+
gem_push=false bundle exec rake release
|
29
|
+
gem build *.gemspec
|
30
|
+
gem push *.gem
|
31
|
+
env:
|
32
|
+
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
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
|
|
@@ -305,3 +305,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
|
|
305
305
|
## Code of Conduct
|
306
306
|
|
307
307
|
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).
|
308
|
+
|
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")
|
@@ -33,9 +34,9 @@ Gem::Specification.new do |spec|
|
|
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.1.
|
4
|
+
version: 2.1.3
|
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: 2023-
|
11
|
+
date: 2023-12-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: graphql
|
@@ -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: []
|