graph_attack 2.3.0 → 2.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +39 -0
- data/.rubocop.yml +4 -3
- data/.ruby-version +1 -1
- data/CHANGELOG.md +6 -0
- data/bin/rspec +29 -0
- data/graph_attack.gemspec +1 -1
- data/lib/graph_attack/version.rb +1 -1
- metadata +8 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bba106f336288a7576af88787f681758899e77b5a35297fa66b855d58bff3678
|
4
|
+
data.tar.gz: c67dd2128bb5779c694de180c8518fc67c91cdd1e048448c420d00c910a2cc97
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73f2a6a48f8196c0c46a71aefb5d28c89a1a3aa3a024d9e65913388771dfd4cadcadcddcdce79d3022e82607cacd60f0f0533086cff2b69bd53bc212e2a26779
|
7
|
+
data.tar.gz: 170bec4bf21761a476598de2166dbbfcb11cad9b403cc556a3e4d43f9411b0e2b694385f54ce3d9ac022c270d6c517b6b3ce0d7248c3ccb9c307e3986f1dfbf1
|
@@ -0,0 +1,39 @@
|
|
1
|
+
name: Test
|
2
|
+
|
3
|
+
on: [push, pull_request]
|
4
|
+
|
5
|
+
jobs:
|
6
|
+
test:
|
7
|
+
name: on ruby ${{matrix.ruby}}
|
8
|
+
runs-on: ubuntu-latest
|
9
|
+
|
10
|
+
strategy:
|
11
|
+
fail-fast: false
|
12
|
+
matrix:
|
13
|
+
ruby: ['2.7', '3.0', '3.1', '3.2', head]
|
14
|
+
|
15
|
+
services:
|
16
|
+
redis:
|
17
|
+
image: redis
|
18
|
+
options: >-
|
19
|
+
--health-cmd "redis-cli ping"
|
20
|
+
--health-interval 10s
|
21
|
+
--health-timeout 5s
|
22
|
+
--health-retries 5
|
23
|
+
ports:
|
24
|
+
- 6379:6379
|
25
|
+
|
26
|
+
steps:
|
27
|
+
- name: Checkout repository
|
28
|
+
uses: actions/checkout@v3
|
29
|
+
|
30
|
+
- name: Set up Ruby
|
31
|
+
uses: ruby/setup-ruby@v1
|
32
|
+
with:
|
33
|
+
ruby-version: ${{matrix.ruby}}
|
34
|
+
|
35
|
+
- name: Install dependencies
|
36
|
+
run: bundle install --jobs 4 --retry 3
|
37
|
+
|
38
|
+
- name: RSpec
|
39
|
+
run: bin/rspec
|
data/.rubocop.yml
CHANGED
@@ -6,6 +6,10 @@ AllCops:
|
|
6
6
|
TargetRubyVersion: 2.7
|
7
7
|
DisplayCopNames: true
|
8
8
|
NewCops: enable
|
9
|
+
Exclude:
|
10
|
+
- bin/rake
|
11
|
+
- bin/rspec
|
12
|
+
- bin/rubocop
|
9
13
|
|
10
14
|
# Do not sort gems in Gemfile, since we are grouping them by functionality.
|
11
15
|
Bundler/OrderedGems:
|
@@ -37,9 +41,6 @@ Metrics/MethodLength:
|
|
37
41
|
# Limit line length.
|
38
42
|
Layout/LineLength:
|
39
43
|
Max: 80
|
40
|
-
Exclude:
|
41
|
-
- bin/rake
|
42
|
-
- bin/rubocop
|
43
44
|
|
44
45
|
# Allow ASCII comments (e.g "…").
|
45
46
|
Style/AsciiComments:
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
3.1.3
|
data/CHANGELOG.md
CHANGED
data/bin/rspec
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
#
|
5
|
+
# This file was generated by Bundler.
|
6
|
+
#
|
7
|
+
# The application 'rspec' is installed as part of a gem, and
|
8
|
+
# this file is here to facilitate running it.
|
9
|
+
#
|
10
|
+
|
11
|
+
require "pathname"
|
12
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
13
|
+
Pathname.new(__FILE__).realpath)
|
14
|
+
|
15
|
+
bundle_binstub = File.expand_path("../bundle", __FILE__)
|
16
|
+
|
17
|
+
if File.file?(bundle_binstub)
|
18
|
+
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
|
19
|
+
load(bundle_binstub)
|
20
|
+
else
|
21
|
+
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
22
|
+
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
require "rubygems"
|
27
|
+
require "bundler/setup"
|
28
|
+
|
29
|
+
load Gem.bin_path("rspec-core", "rspec")
|
data/graph_attack.gemspec
CHANGED
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
24
24
|
spec.require_paths = ['lib']
|
25
25
|
|
26
|
-
spec.required_ruby_version =
|
26
|
+
spec.required_ruby_version = '>= 2.5.7'
|
27
27
|
|
28
28
|
# This gem is an analyser for the GraphQL ruby gem.
|
29
29
|
spec.add_dependency 'graphql', '>= 1.7.9'
|
data/lib/graph_attack/version.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: graph_attack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fanny Cheung
|
8
8
|
- Sunny Ripert
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2023-
|
12
|
+
date: 2023-03-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: graphql
|
@@ -147,6 +147,7 @@ extra_rdoc_files: []
|
|
147
147
|
files:
|
148
148
|
- ".circleci/config.yml"
|
149
149
|
- ".github/dependabot.yml"
|
150
|
+
- ".github/workflows/test.yml"
|
150
151
|
- ".gitignore"
|
151
152
|
- ".rspec"
|
152
153
|
- ".rubocop.yml"
|
@@ -160,6 +161,7 @@ files:
|
|
160
161
|
- Rakefile
|
161
162
|
- bin/console
|
162
163
|
- bin/rake
|
164
|
+
- bin/rspec
|
163
165
|
- bin/rubocop
|
164
166
|
- bin/setup
|
165
167
|
- graph_attack.gemspec
|
@@ -173,7 +175,7 @@ homepage: https://github.com/sunny/graph_attack
|
|
173
175
|
licenses: []
|
174
176
|
metadata:
|
175
177
|
rubygems_mfa_required: 'true'
|
176
|
-
post_install_message:
|
178
|
+
post_install_message:
|
177
179
|
rdoc_options: []
|
178
180
|
require_paths:
|
179
181
|
- lib
|
@@ -182,17 +184,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
182
184
|
- - ">="
|
183
185
|
- !ruby/object:Gem::Version
|
184
186
|
version: 2.5.7
|
185
|
-
- - "<"
|
186
|
-
- !ruby/object:Gem::Version
|
187
|
-
version: '3.2'
|
188
187
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
189
188
|
requirements:
|
190
189
|
- - ">="
|
191
190
|
- !ruby/object:Gem::Version
|
192
191
|
version: '0'
|
193
192
|
requirements: []
|
194
|
-
rubygems_version: 3.
|
195
|
-
signing_key:
|
193
|
+
rubygems_version: 3.3.26
|
194
|
+
signing_key:
|
196
195
|
specification_version: 4
|
197
196
|
summary: GraphQL analyser for blocking & throttling
|
198
197
|
test_files: []
|