Skip to content

Commit 11a111e

Browse files
committed
Initialize
An initial setup with three sources for working with rails: 1. GraphQL::Sources::ActiveRecordObject 2. GraphQL::Sources::ActiveRecordCollection 3. GraphQL::Sources::ActiveRecordCount
0 parents  commit 11a111e

36 files changed

+880
-0
lines changed

.circleci/config.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
version: 2.1
2+
orbs:
3+
ruby: circleci/[email protected]
4+
5+
executors:
6+
default:
7+
docker:
8+
- image: cimg/ruby:3.1.2
9+
- image: cimg/postgres:14.2
10+
environment:
11+
POSTGRES_USER: circleci
12+
POSTGRES_DB: dummy_test
13+
POSTGRES_HOST_AUTH_METHOD: trust
14+
environment:
15+
RAILS_ENV: test
16+
RACK_ENV: test
17+
PGHOST: localhost
18+
19+
jobs:
20+
rspec:
21+
executor: default
22+
steps:
23+
- checkout
24+
- ruby/install-deps
25+
- run: dockerize -wait tcp://localhost:5432 -timeout 2m
26+
- run: cd spec/dummy && rake db:schema:load
27+
- ruby/rspec-test
28+
rubocop:
29+
executor: default
30+
steps:
31+
- checkout
32+
- ruby/install-deps
33+
- ruby/rubocop-check
34+
35+
workflows:
36+
version: 2.1
37+
build:
38+
jobs:
39+
- rspec
40+
- rubocop

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/coverage/
2+
/doc/
3+
/pkg/
4+
/spec/dummy/log
5+
/spec/dummy/tmp
6+
/spec/reports/
7+
/tmp/

.rspec

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
--format documentation
2+
--color
3+
--require spec_helper

.rubocop.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
require:
2+
- rubocop-rake
3+
- rubocop-rails
4+
- rubocop-rspec
5+
6+
AllCops:
7+
NewCops: enable
8+
TargetRubyVersion: 2.6
9+
10+
RSpec/FilePath:
11+
CustomTransform:
12+
GraphQL: graphql
13+
14+
Gemspec/RequireMFA:
15+
Enabled: false

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
## [Unreleased]
2+
3+
## [0.1.0] - 2022-07-04
4+
5+
- Initial release

Gemfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# frozen_string_literal: true
2+
3+
source 'https://rubygems.org'
4+
5+
gemspec
6+
7+
gem 'debug'

Gemfile.lock

Lines changed: 233 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,233 @@
1+
PATH
2+
remote: .
3+
specs:
4+
graphql-sources (0.1.0)
5+
graphql
6+
rails
7+
8+
GEM
9+
remote: https://rubygems.org/
10+
specs:
11+
actioncable (7.0.3)
12+
actionpack (= 7.0.3)
13+
activesupport (= 7.0.3)
14+
nio4r (~> 2.0)
15+
websocket-driver (>= 0.6.1)
16+
actionmailbox (7.0.3)
17+
actionpack (= 7.0.3)
18+
activejob (= 7.0.3)
19+
activerecord (= 7.0.3)
20+
activestorage (= 7.0.3)
21+
activesupport (= 7.0.3)
22+
mail (>= 2.7.1)
23+
net-imap
24+
net-pop
25+
net-smtp
26+
actionmailer (7.0.3)
27+
actionpack (= 7.0.3)
28+
actionview (= 7.0.3)
29+
activejob (= 7.0.3)
30+
activesupport (= 7.0.3)
31+
mail (~> 2.5, >= 2.5.4)
32+
net-imap
33+
net-pop
34+
net-smtp
35+
rails-dom-testing (~> 2.0)
36+
actionpack (7.0.3)
37+
actionview (= 7.0.3)
38+
activesupport (= 7.0.3)
39+
rack (~> 2.0, >= 2.2.0)
40+
rack-test (>= 0.6.3)
41+
rails-dom-testing (~> 2.0)
42+
rails-html-sanitizer (~> 1.0, >= 1.2.0)
43+
actiontext (7.0.3)
44+
actionpack (= 7.0.3)
45+
activerecord (= 7.0.3)
46+
activestorage (= 7.0.3)
47+
activesupport (= 7.0.3)
48+
globalid (>= 0.6.0)
49+
nokogiri (>= 1.8.5)
50+
actionview (7.0.3)
51+
activesupport (= 7.0.3)
52+
builder (~> 3.1)
53+
erubi (~> 1.4)
54+
rails-dom-testing (~> 2.0)
55+
rails-html-sanitizer (~> 1.1, >= 1.2.0)
56+
activejob (7.0.3)
57+
activesupport (= 7.0.3)
58+
globalid (>= 0.3.6)
59+
activemodel (7.0.3)
60+
activesupport (= 7.0.3)
61+
activerecord (7.0.3)
62+
activemodel (= 7.0.3)
63+
activesupport (= 7.0.3)
64+
activestorage (7.0.3)
65+
actionpack (= 7.0.3)
66+
activejob (= 7.0.3)
67+
activerecord (= 7.0.3)
68+
activesupport (= 7.0.3)
69+
marcel (~> 1.0)
70+
mini_mime (>= 1.1.0)
71+
activesupport (7.0.3)
72+
concurrent-ruby (~> 1.0, >= 1.0.2)
73+
i18n (>= 1.6, < 2)
74+
minitest (>= 5.1)
75+
tzinfo (~> 2.0)
76+
ast (2.4.2)
77+
builder (3.2.4)
78+
concurrent-ruby (1.1.10)
79+
crass (1.0.6)
80+
debug (1.5.0)
81+
irb (>= 1.3.6)
82+
reline (>= 0.2.7)
83+
diff-lcs (1.5.0)
84+
digest (3.1.0)
85+
erubi (1.10.0)
86+
factory_bot (6.2.1)
87+
activesupport (>= 5.0.0)
88+
globalid (1.0.0)
89+
activesupport (>= 5.0)
90+
graphql (2.0.11)
91+
i18n (1.10.0)
92+
concurrent-ruby (~> 1.0)
93+
io-console (0.5.11)
94+
irb (1.4.1)
95+
reline (>= 0.3.0)
96+
json (2.6.2)
97+
loofah (2.18.0)
98+
crass (~> 1.0.2)
99+
nokogiri (>= 1.5.9)
100+
mail (2.7.1)
101+
mini_mime (>= 0.1.1)
102+
marcel (1.0.2)
103+
method_source (1.0.0)
104+
mini_mime (1.1.2)
105+
minitest (5.16.2)
106+
net-imap (0.2.3)
107+
digest
108+
net-protocol
109+
strscan
110+
net-pop (0.1.1)
111+
digest
112+
net-protocol
113+
timeout
114+
net-protocol (0.1.3)
115+
timeout
116+
net-smtp (0.3.1)
117+
digest
118+
net-protocol
119+
timeout
120+
nio4r (2.5.8)
121+
nokogiri (1.13.6-x86_64-darwin)
122+
racc (~> 1.4)
123+
nokogiri (1.13.6-x86_64-linux)
124+
racc (~> 1.4)
125+
parallel (1.22.1)
126+
parser (3.1.2.0)
127+
ast (~> 2.4.1)
128+
pg (1.4.1)
129+
racc (1.6.0)
130+
rack (2.2.4)
131+
rack-test (2.0.2)
132+
rack (>= 1.3)
133+
rails (7.0.3)
134+
actioncable (= 7.0.3)
135+
actionmailbox (= 7.0.3)
136+
actionmailer (= 7.0.3)
137+
actionpack (= 7.0.3)
138+
actiontext (= 7.0.3)
139+
actionview (= 7.0.3)
140+
activejob (= 7.0.3)
141+
activemodel (= 7.0.3)
142+
activerecord (= 7.0.3)
143+
activestorage (= 7.0.3)
144+
activesupport (= 7.0.3)
145+
bundler (>= 1.15.0)
146+
railties (= 7.0.3)
147+
rails-dom-testing (2.0.3)
148+
activesupport (>= 4.2.0)
149+
nokogiri (>= 1.6)
150+
rails-html-sanitizer (1.4.3)
151+
loofah (~> 2.3)
152+
railties (7.0.3)
153+
actionpack (= 7.0.3)
154+
activesupport (= 7.0.3)
155+
method_source
156+
rake (>= 12.2)
157+
thor (~> 1.0)
158+
zeitwerk (~> 2.5)
159+
rainbow (3.1.1)
160+
rake (13.0.6)
161+
regexp_parser (2.5.0)
162+
reline (0.3.1)
163+
io-console (~> 0.5)
164+
rexml (3.2.5)
165+
rspec-core (3.11.0)
166+
rspec-support (~> 3.11.0)
167+
rspec-expectations (3.11.0)
168+
diff-lcs (>= 1.2.0, < 2.0)
169+
rspec-support (~> 3.11.0)
170+
rspec-mocks (3.11.1)
171+
diff-lcs (>= 1.2.0, < 2.0)
172+
rspec-support (~> 3.11.0)
173+
rspec-rails (5.1.2)
174+
actionpack (>= 5.2)
175+
activesupport (>= 5.2)
176+
railties (>= 5.2)
177+
rspec-core (~> 3.10)
178+
rspec-expectations (~> 3.10)
179+
rspec-mocks (~> 3.10)
180+
rspec-support (~> 3.10)
181+
rspec-support (3.11.0)
182+
rspec_junit_formatter (0.5.1)
183+
rspec-core (>= 2, < 4, != 2.12.0)
184+
rubocop (1.31.1)
185+
json (~> 2.3)
186+
parallel (~> 1.10)
187+
parser (>= 3.1.0.0)
188+
rainbow (>= 2.2.2, < 4.0)
189+
regexp_parser (>= 1.8, < 3.0)
190+
rexml (>= 3.2.5, < 4.0)
191+
rubocop-ast (>= 1.18.0, < 2.0)
192+
ruby-progressbar (~> 1.7)
193+
unicode-display_width (>= 1.4.0, < 3.0)
194+
rubocop-ast (1.18.0)
195+
parser (>= 3.1.1.0)
196+
rubocop-rails (2.15.1)
197+
activesupport (>= 4.2.0)
198+
rack (>= 1.1)
199+
rubocop (>= 1.7.0, < 2.0)
200+
rubocop-rake (0.6.0)
201+
rubocop (~> 1.0)
202+
rubocop-rspec (2.12.1)
203+
rubocop (~> 1.31)
204+
ruby-progressbar (1.11.0)
205+
strscan (3.0.3)
206+
thor (1.2.1)
207+
timeout (0.3.0)
208+
tzinfo (2.0.4)
209+
concurrent-ruby (~> 1.0)
210+
unicode-display_width (2.2.0)
211+
websocket-driver (0.7.5)
212+
websocket-extensions (>= 0.1.0)
213+
websocket-extensions (0.1.5)
214+
zeitwerk (2.6.0)
215+
216+
PLATFORMS
217+
x86_64-darwin-21
218+
x86_64-linux
219+
220+
DEPENDENCIES
221+
debug
222+
factory_bot
223+
graphql-sources!
224+
pg
225+
rspec-rails
226+
rspec_junit_formatter
227+
rubocop
228+
rubocop-rails
229+
rubocop-rake
230+
rubocop-rspec
231+
232+
BUNDLED WITH
233+
2.3.13

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2022 Kevin Sylvestre
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

0 commit comments

Comments
 (0)