nulogy_graphql_api 2.0.1 → 2.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8fa87f26711192c72842aba3ec6ef4c203942ac391dc10d902ee1a432ec65995
4
- data.tar.gz: c3b512a44ea6a080324952c52e53eb67b2fd908aee43e94b8180c1c662f6b099
3
+ metadata.gz: 87a444a6843fc021b24f8a907c41fa597b493dd42f577986d4ec7359f8de2e1b
4
+ data.tar.gz: f093c1228a2f6eb8a87d7726455a1cf6004ca6681ba559bed9bd9bae9f9dd5d8
5
5
  SHA512:
6
- metadata.gz: c2049d82bdd5c69d2217b04619c100bb716928ae4081a2cea6e670ef5c51a5be9b8bb8bb8b6515c1b383c19eea4604fce712a6a4bd3e53d0391ed4d5c1dcaf25
7
- data.tar.gz: 569f30a2ed13dd7bfbe981502662a4ef5f9a74302ad1ae839726163ddfbeeb80a483580d64923020733628ccdce9cdcd84227ba18b2dec136a2a586a9955bf00
6
+ metadata.gz: e4459a62aa3520a6219330b01c8c0c57cb6a0b3826a054ed73697da42d23a29b1baa7b005ef69d16163f285843f74f475b8f33b9433d214fb42cba332ce0e6b9
7
+ data.tar.gz: 90fcb3a947cbe3c094126f70f98a21fff6e79616e532b98500b3c38142127d5079d9a45e47b8d0ec2da919598f8b487cd117448e891521f74b120e925d9f9c85
data/.gitignore CHANGED
@@ -15,3 +15,4 @@
15
15
 
16
16
  # Appraisals
17
17
  *.gemfile.lock
18
+ /gemfiles/.bundle
data/.rubocop.yml CHANGED
@@ -1,10 +1,14 @@
1
- require: rubocop-rspec
1
+ require:
2
+ - rubocop-performance
3
+ - rubocop-rake
4
+ - rubocop-rspec
2
5
 
3
6
  inherit_from:
4
7
  - .rubocop.directories.yml
5
8
 
6
9
  AllCops:
7
- TargetRubyVersion: 2.6
10
+ NewCops: enable
11
+ TargetRubyVersion: 2.7
8
12
 
9
13
  Gemspec/DateAssignment:
10
14
  Enabled: true
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.7.3
1
+ 2.7.4
data/Appraisals CHANGED
@@ -5,3 +5,8 @@ end
5
5
  appraise "rails-6-1" do
6
6
  gem "rails", "6.1.4"
7
7
  end
8
+
9
+ appraise "rails-7" do
10
+ gem "rails", "7.0.4"
11
+ gem "sprockets-rails", "3.4.2"
12
+ end
data/CHANGELOG.md CHANGED
@@ -4,6 +4,16 @@
4
4
 
5
5
  _none_
6
6
 
7
+ ## 2.1.1 (2022-09-21)
8
+
9
+ **Changes**
10
+ * Support Rails 7
11
+
12
+ ## 2.1.0 (2022-02-10)
13
+
14
+ **Changes**
15
+ * Support graphql 2.0.x
16
+
7
17
  ## 2.0.1 (2022-01-04)
8
18
 
9
19
  **Changes**
data/Gemfile CHANGED
@@ -2,6 +2,3 @@ source "https://rubygems.org"
2
2
 
3
3
  # Specify your gem's dependencies in nulogy_graphql_api.gemspec
4
4
  gemspec
5
-
6
- gem "rake", "~> 13.0"
7
- gem "rspec", "~> 3.9"
data/README.md CHANGED
@@ -9,7 +9,7 @@ Help Nulogy applications be compliant with the [Standard on Error-handling in Gr
9
9
  Add this line to your application's Gemfile:
10
10
 
11
11
  ```ruby
12
- gem "nulogy_graphql_api", "2.0.1"
12
+ gem "nulogy_graphql_api", "2.1.0"
13
13
  ```
14
14
 
15
15
  And then execute:
@@ -275,6 +275,8 @@ expect(response).to have_graphql_error("Error message")
275
275
 
276
276
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake` to run rubocop and tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
277
277
 
278
+ To test against all supported versions of rails run `bundle exec appraisal install` and then run `bundle exec appraisal rake`.
279
+
278
280
  To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
279
281
 
280
282
  ## Contributing
@@ -2,8 +2,6 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "rake", "~> 13.0"
6
- gem "rspec", "~> 3.9"
7
5
  gem "rails", "6.0.3.7"
8
6
 
9
7
  gemspec path: "../"
@@ -2,8 +2,6 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "rake", "~> 13.0"
6
- gem "rspec", "~> 3.9"
7
5
  gem "rails", "6.1.4"
8
6
 
9
7
  gemspec path: "../"
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "7.0.4"
6
+ gem "sprockets-rails", "3.4.2"
7
+
8
+ gemspec path: "../"
@@ -25,7 +25,7 @@ module NulogyGraphqlApi
25
25
 
26
26
  puts "\n\nDo you want to update the schema anyway? [Y/n]"
27
27
 
28
- $stdin.gets.chomp.downcase != "n"
28
+ $stdin.gets.chomp.casecmp("n").zero?
29
29
  end
30
30
  end
31
31
  end
@@ -1,3 +1,3 @@
1
1
  module NulogyGraphqlApi
2
- VERSION = "2.0.1"
2
+ VERSION = "2.1.1"
3
3
  end
@@ -28,15 +28,18 @@ Gem::Specification.new do |spec|
28
28
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
29
29
  spec.require_paths = ["lib"]
30
30
 
31
- spec.add_dependency "graphql", "~> 1.13"
31
+ spec.add_dependency "graphql", "~> 2.0"
32
32
  spec.add_dependency "graphql-schema_comparator", "~> 1.0"
33
- spec.add_dependency "rails", ">= 5.2.4", "< 7.0"
33
+ spec.add_dependency "rails", ">= 6.0", "< 8.0"
34
34
  spec.add_dependency "rainbow", "~> 3.0"
35
35
 
36
36
  spec.add_development_dependency "appraisal", "~> 2.4"
37
- spec.add_development_dependency "rspec-rails", "~> 5.0"
38
- spec.add_development_dependency "rubocop", "~> 1.18"
39
- spec.add_development_dependency "rubocop-performance", "~> 1.11"
40
- spec.add_development_dependency "rubocop-rspec", "~> 2.4"
37
+ spec.add_development_dependency "rake", "~> 13.0"
38
+ spec.add_development_dependency "rspec", "~> 3.9"
39
+ spec.add_development_dependency "rspec-rails", "~> 5.1"
40
+ spec.add_development_dependency "rubocop", "~> 1.25"
41
+ spec.add_development_dependency "rubocop-performance", "~> 1.13"
42
+ spec.add_development_dependency "rubocop-rake", "~> 0.6"
43
+ spec.add_development_dependency "rubocop-rspec", "~> 2.8"
41
44
  spec.add_development_dependency "sqlite3", "~> 1.4"
42
45
  end
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.0.1
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Silva
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-01-04 00:00:00.000000000 Z
11
+ date: 2022-09-22 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: '1.13'
19
+ version: '2.0'
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: '1.13'
26
+ version: '2.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: graphql-schema_comparator
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -44,20 +44,20 @@ dependencies:
44
44
  requirements:
45
45
  - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: 5.2.4
47
+ version: '6.0'
48
48
  - - "<"
49
49
  - !ruby/object:Gem::Version
50
- version: '7.0'
50
+ version: '8.0'
51
51
  type: :runtime
52
52
  prerelease: false
53
53
  version_requirements: !ruby/object:Gem::Requirement
54
54
  requirements:
55
55
  - - ">="
56
56
  - !ruby/object:Gem::Version
57
- version: 5.2.4
57
+ version: '6.0'
58
58
  - - "<"
59
59
  - !ruby/object:Gem::Version
60
- version: '7.0'
60
+ version: '8.0'
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: rainbow
63
63
  requirement: !ruby/object:Gem::Requirement
@@ -86,62 +86,104 @@ dependencies:
86
86
  - - "~>"
87
87
  - !ruby/object:Gem::Version
88
88
  version: '2.4'
89
+ - !ruby/object:Gem::Dependency
90
+ name: rake
91
+ requirement: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - "~>"
94
+ - !ruby/object:Gem::Version
95
+ version: '13.0'
96
+ type: :development
97
+ prerelease: false
98
+ version_requirements: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - "~>"
101
+ - !ruby/object:Gem::Version
102
+ version: '13.0'
103
+ - !ruby/object:Gem::Dependency
104
+ name: rspec
105
+ requirement: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - "~>"
108
+ - !ruby/object:Gem::Version
109
+ version: '3.9'
110
+ type: :development
111
+ prerelease: false
112
+ version_requirements: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - "~>"
115
+ - !ruby/object:Gem::Version
116
+ version: '3.9'
89
117
  - !ruby/object:Gem::Dependency
90
118
  name: rspec-rails
91
119
  requirement: !ruby/object:Gem::Requirement
92
120
  requirements:
93
121
  - - "~>"
94
122
  - !ruby/object:Gem::Version
95
- version: '5.0'
123
+ version: '5.1'
96
124
  type: :development
97
125
  prerelease: false
98
126
  version_requirements: !ruby/object:Gem::Requirement
99
127
  requirements:
100
128
  - - "~>"
101
129
  - !ruby/object:Gem::Version
102
- version: '5.0'
130
+ version: '5.1'
103
131
  - !ruby/object:Gem::Dependency
104
132
  name: rubocop
105
133
  requirement: !ruby/object:Gem::Requirement
106
134
  requirements:
107
135
  - - "~>"
108
136
  - !ruby/object:Gem::Version
109
- version: '1.18'
137
+ version: '1.25'
110
138
  type: :development
111
139
  prerelease: false
112
140
  version_requirements: !ruby/object:Gem::Requirement
113
141
  requirements:
114
142
  - - "~>"
115
143
  - !ruby/object:Gem::Version
116
- version: '1.18'
144
+ version: '1.25'
117
145
  - !ruby/object:Gem::Dependency
118
146
  name: rubocop-performance
119
147
  requirement: !ruby/object:Gem::Requirement
120
148
  requirements:
121
149
  - - "~>"
122
150
  - !ruby/object:Gem::Version
123
- version: '1.11'
151
+ version: '1.13'
124
152
  type: :development
125
153
  prerelease: false
126
154
  version_requirements: !ruby/object:Gem::Requirement
127
155
  requirements:
128
156
  - - "~>"
129
157
  - !ruby/object:Gem::Version
130
- version: '1.11'
158
+ version: '1.13'
159
+ - !ruby/object:Gem::Dependency
160
+ name: rubocop-rake
161
+ requirement: !ruby/object:Gem::Requirement
162
+ requirements:
163
+ - - "~>"
164
+ - !ruby/object:Gem::Version
165
+ version: '0.6'
166
+ type: :development
167
+ prerelease: false
168
+ version_requirements: !ruby/object:Gem::Requirement
169
+ requirements:
170
+ - - "~>"
171
+ - !ruby/object:Gem::Version
172
+ version: '0.6'
131
173
  - !ruby/object:Gem::Dependency
132
174
  name: rubocop-rspec
133
175
  requirement: !ruby/object:Gem::Requirement
134
176
  requirements:
135
177
  - - "~>"
136
178
  - !ruby/object:Gem::Version
137
- version: '2.4'
179
+ version: '2.8'
138
180
  type: :development
139
181
  prerelease: false
140
182
  version_requirements: !ruby/object:Gem::Requirement
141
183
  requirements:
142
184
  - - "~>"
143
185
  - !ruby/object:Gem::Version
144
- version: '2.4'
186
+ version: '2.8'
145
187
  - !ruby/object:Gem::Dependency
146
188
  name: sqlite3
147
189
  requirement: !ruby/object:Gem::Requirement
@@ -180,6 +222,7 @@ files:
180
222
  - bin/setup
181
223
  - gemfiles/rails_6.gemfile
182
224
  - gemfiles/rails_6_1.gemfile
225
+ - gemfiles/rails_7.gemfile
183
226
  - lib/nulogy_graphql_api.rb
184
227
  - lib/nulogy_graphql_api/error_handling.rb
185
228
  - lib/nulogy_graphql_api/graphql_error.rb
@@ -221,7 +264,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
221
264
  - !ruby/object:Gem::Version
222
265
  version: '0'
223
266
  requirements: []
224
- rubygems_version: 3.1.6
267
+ rubygems_version: 3.3.7
225
268
  signing_key:
226
269
  specification_version: 4
227
270
  summary: Standard tooling for building GraphQL apis