graphql-groups 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 335a39d1b463c58fea371465f9f5bc97034b6e698b4345acb106e107be5339a5
4
+ data.tar.gz: 8a605ac9caf825e1a45c1dd385a7de295d98876b8147ddeed63d0eaad6c56ef4
5
+ SHA512:
6
+ metadata.gz: 884ec7cb95a187e714920bfd214cbde487fb1aa1787fad8595f16a2294df68ba705074630ebfc54169bb99e4e8a09f0dc30e9e6d68530413d5fa45af6a6dd718
7
+ data.tar.gz: 719ea4cbd49fff5274b2e90cd4f3b7e041d50a8026139b32092d97f39b448b63d30a94208ad76e6ce17a258ca4de64641fb5fc5cff4677fe021a18f12b15da47
@@ -0,0 +1,28 @@
1
+ name: Build
2
+
3
+ on:
4
+ push:
5
+ branches: [ master ]
6
+ pull_request:
7
+ branches: [ master ]
8
+
9
+ jobs:
10
+ test:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - uses: actions/checkout@v2
14
+ - name: Set up Ruby
15
+ uses: ruby/setup-ruby@v1
16
+ with:
17
+ ruby-version: 2.6.5
18
+ - name: Install dependencies
19
+ run: bundle install
20
+ - name: Run tests
21
+ run: bundle exec rspec
22
+ - name: Report coverage
23
+ uses: paambaati/codeclimate-action@v2.6.0
24
+ env:
25
+ CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
26
+ with:
27
+ # Coverage is already generated in test step, need to run anything again
28
+ coverageCommand: echo '' > /dev/null
data/.gitignore ADDED
@@ -0,0 +1,166 @@
1
+ # Created by https://www.toptal.com/developers/gitignore/api/ruby,rubymine+all,vim
2
+ # Edit at https://www.toptal.com/developers/gitignore?templates=ruby,rubymine+all,vim
3
+
4
+ ### Ruby ###
5
+ *.gem
6
+ *.rbc
7
+ /.config
8
+ /coverage/
9
+ /InstalledFiles
10
+ /pkg/
11
+ /spec/reports/
12
+ /spec/examples.txt
13
+ /test/tmp/
14
+ /test/version_tmp/
15
+ /tmp/
16
+
17
+ # Used by dotenv library to load environment variables.
18
+ # .env
19
+
20
+ # Ignore Byebug command history file.
21
+ .byebug_history
22
+
23
+ ## Specific to RubyMotion:
24
+ .dat*
25
+ .repl_history
26
+ build/
27
+ *.bridgesupport
28
+ build-iPhoneOS/
29
+ build-iPhoneSimulator/
30
+
31
+ ## Specific to RubyMotion (use of CocoaPods):
32
+ #
33
+ # We recommend against adding the Pods directory to your .gitignore. However
34
+ # you should judge for yourself, the pros and cons are mentioned at:
35
+ # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
36
+ # vendor/Pods/
37
+
38
+ ## Documentation cache and generated files:
39
+ /.yardoc/
40
+ /_yardoc/
41
+ /doc/
42
+ /rdoc/
43
+
44
+ ## Environment normalization:
45
+ /.bundle/
46
+ /vendor/bundle
47
+ /lib/bundler/man/
48
+
49
+ # for a library or gem, you might want to ignore these files since the code is
50
+ # intended to run in multiple environments; otherwise, check them in:
51
+ # Gemfile.lock
52
+ # .ruby-version
53
+ # .ruby-gemset
54
+
55
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
56
+ .rvmrc
57
+
58
+ ### RubyMine+all ###
59
+ # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
60
+ # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
61
+
62
+ # User-specific stuff
63
+ .idea/**/workspace.xml
64
+ .idea/**/tasks.xml
65
+ .idea/**/usage.statistics.xml
66
+ .idea/**/dictionaries
67
+ .idea/**/shelf
68
+
69
+ # Generated files
70
+ .idea/**/contentModel.xml
71
+
72
+ # Sensitive or high-churn files
73
+ .idea/**/dataSources/
74
+ .idea/**/dataSources.ids
75
+ .idea/**/dataSources.local.xml
76
+ .idea/**/sqlDataSources.xml
77
+ .idea/**/dynamic.xml
78
+ .idea/**/uiDesigner.xml
79
+ .idea/**/dbnavigator.xml
80
+
81
+ # Gradle
82
+ .idea/**/gradle.xml
83
+ .idea/**/libraries
84
+
85
+ # Gradle and Maven with auto-import
86
+ # When using Gradle or Maven with auto-import, you should exclude module files,
87
+ # since they will be recreated, and may cause churn. Uncomment if using
88
+ # auto-import.
89
+ # .idea/modules.xml
90
+ # .idea/*.iml
91
+ # .idea/modules
92
+
93
+ # CMake
94
+ cmake-build-*/
95
+
96
+ # Mongo Explorer plugin
97
+ .idea/**/mongoSettings.xml
98
+
99
+ # File-based project format
100
+ *.iws
101
+
102
+ # IntelliJ
103
+ out/
104
+
105
+ # mpeltonen/sbt-idea plugin
106
+ .idea_modules/
107
+
108
+ # JIRA plugin
109
+ atlassian-ide-plugin.xml
110
+
111
+ # Cursive Clojure plugin
112
+ .idea/replstate.xml
113
+
114
+ # Crashlytics plugin (for Android Studio and IntelliJ)
115
+ com_crashlytics_export_strings.xml
116
+ crashlytics.properties
117
+ crashlytics-build.properties
118
+ fabric.properties
119
+
120
+ # Editor-based Rest Client
121
+ .idea/httpRequests
122
+
123
+ # Android studio 3.1+ serialized cache file
124
+ .idea/caches/build_file_checksums.ser
125
+
126
+ ### RubyMine+all Patch ###
127
+ # Ignores the whole .idea folder and all .iml files
128
+ # See https://github.com/joeblau/gitignore.io/issues/186 and https://github.com/joeblau/gitignore.io/issues/360
129
+
130
+ .idea/
131
+
132
+ # Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-249601023
133
+
134
+ *.iml
135
+ modules.xml
136
+ .idea/misc.xml
137
+ *.ipr
138
+
139
+ # Sonarlint plugin
140
+ .idea/sonarlint
141
+
142
+ ### Vim ###
143
+ # Swap
144
+ [._]*.s[a-v][a-z]
145
+ [._]*.sw[a-p]
146
+ [._]s[a-rt-v][a-z]
147
+ [._]ss[a-gi-z]
148
+ [._]sw[a-p]
149
+
150
+ # Session
151
+ Session.vim
152
+
153
+ # Temporary
154
+ .netrwhist
155
+ *~
156
+ # Auto-generated tag files
157
+ tags
158
+ # Persistent undo
159
+ [._]*.un~
160
+
161
+ # End of https://www.toptal.com/developers/gitignore/api/ruby,rubymine+all,vim
162
+
163
+ .tool-versions
164
+ .rspec_status
165
+ test.db
166
+ coverage
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,21 @@
1
+ require: rubocop-rspec
2
+
3
+ Layout/LineLength:
4
+ Max: 120
5
+
6
+ Metrics/BlockLength:
7
+ ExcludedMethods: ['describe', 'context']
8
+
9
+ Layout/MultilineMethodCallIndentation:
10
+ EnforcedStyle: indented
11
+
12
+ Style/BlockDelimiters:
13
+ Exclude:
14
+ - spec/**/*
15
+
16
+ RSpec/ExampleLength:
17
+ Exclude:
18
+ - spec/**/*
19
+
20
+ RSpec/MultipleExpectations:
21
+ Max: 2
data/.travis.yml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ sudo: false
3
+ language: ruby
4
+ cache: bundler
5
+ rvm:
6
+ - 2.6.3
7
+ before_install: gem install bundler -v 2.0.2
data/CHANGELOG.md ADDED
File without changes
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at hans.schnedlitz@gmail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "https://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in graphql-groups.gemspec
4
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,120 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ graphql-groups (0.1.1)
5
+ graphql (~> 1, > 1.9)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ activemodel (5.2.3)
11
+ activesupport (= 5.2.3)
12
+ activerecord (5.2.3)
13
+ activemodel (= 5.2.3)
14
+ activesupport (= 5.2.3)
15
+ arel (>= 9.0)
16
+ activesupport (5.2.3)
17
+ concurrent-ruby (~> 1.0, >= 1.0.2)
18
+ i18n (>= 0.7, < 2)
19
+ minitest (~> 5.1)
20
+ tzinfo (~> 1.1)
21
+ addressable (2.7.0)
22
+ public_suffix (>= 2.0.2, < 5.0)
23
+ arel (9.0.0)
24
+ ast (2.4.1)
25
+ concurrent-ruby (1.1.6)
26
+ database_cleaner (1.8.5)
27
+ database_cleaner-active_record (1.8.0)
28
+ activerecord
29
+ database_cleaner (~> 1.8.0)
30
+ diff-lcs (1.3)
31
+ docile (1.3.2)
32
+ domain_name (0.5.20190701)
33
+ unf (>= 0.0.5, < 1.0.0)
34
+ gqli (1.0.0)
35
+ hashie (~> 3.0)
36
+ http (> 0.8, < 3.0)
37
+ multi_json (~> 1)
38
+ graphql (1.10.10)
39
+ hashie (3.6.0)
40
+ http (2.2.2)
41
+ addressable (~> 2.3)
42
+ http-cookie (~> 1.0)
43
+ http-form_data (~> 1.0.1)
44
+ http_parser.rb (~> 0.6.0)
45
+ http-cookie (1.0.3)
46
+ domain_name (~> 0.5)
47
+ http-form_data (1.0.3)
48
+ http_parser.rb (0.6.0)
49
+ i18n (1.8.2)
50
+ concurrent-ruby (~> 1.0)
51
+ json (2.3.0)
52
+ minitest (5.14.0)
53
+ multi_json (1.14.1)
54
+ parallel (1.19.2)
55
+ parser (2.7.1.4)
56
+ ast (~> 2.4.1)
57
+ public_suffix (4.0.5)
58
+ rainbow (3.0.0)
59
+ rake (13.0.1)
60
+ regexp_parser (1.7.1)
61
+ rexml (3.2.4)
62
+ rspec (3.9.0)
63
+ rspec-core (~> 3.9.0)
64
+ rspec-expectations (~> 3.9.0)
65
+ rspec-mocks (~> 3.9.0)
66
+ rspec-core (3.9.2)
67
+ rspec-support (~> 3.9.3)
68
+ rspec-expectations (3.9.2)
69
+ diff-lcs (>= 1.2.0, < 2.0)
70
+ rspec-support (~> 3.9.0)
71
+ rspec-mocks (3.9.1)
72
+ diff-lcs (>= 1.2.0, < 2.0)
73
+ rspec-support (~> 3.9.0)
74
+ rspec-support (3.9.3)
75
+ rubocop (0.88.0)
76
+ parallel (~> 1.10)
77
+ parser (>= 2.7.1.1)
78
+ rainbow (>= 2.2.2, < 4.0)
79
+ regexp_parser (>= 1.7)
80
+ rexml
81
+ rubocop-ast (>= 0.1.0, < 1.0)
82
+ ruby-progressbar (~> 1.7)
83
+ unicode-display_width (>= 1.4.0, < 2.0)
84
+ rubocop-ast (0.1.0)
85
+ parser (>= 2.7.0.1)
86
+ rubocop-rspec (1.42.0)
87
+ rubocop (>= 0.87.0)
88
+ ruby-progressbar (1.10.1)
89
+ simplecov (0.16.1)
90
+ docile (~> 1.1)
91
+ json (>= 1.8, < 3)
92
+ simplecov-html (~> 0.10.0)
93
+ simplecov-html (0.10.2)
94
+ sqlite3 (1.4.2)
95
+ thread_safe (0.3.6)
96
+ tzinfo (1.2.7)
97
+ thread_safe (~> 0.1)
98
+ unf (0.1.4)
99
+ unf_ext
100
+ unf_ext (0.0.7.7)
101
+ unicode-display_width (1.7.0)
102
+
103
+ PLATFORMS
104
+ ruby
105
+
106
+ DEPENDENCIES
107
+ activerecord (~> 5.0)
108
+ bundler (~> 2.0)
109
+ database_cleaner-active_record
110
+ gqli
111
+ graphql-groups!
112
+ rake (~> 13.0)
113
+ rspec (~> 3.0)
114
+ rubocop (~> 0.88)
115
+ rubocop-rspec (~> 1.42)
116
+ simplecov
117
+ sqlite3 (~> 1.4.2)
118
+
119
+ BUNDLED WITH
120
+ 2.1.4