Skip to content

Commit abfc290

Browse files
committed
Merge branch 'master' into bypass-warden
2 parents 004a067 + 551ef0e commit abfc290

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+845
-390
lines changed

CHANGELOG-enterprise.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88

99
### Bug Fix
1010

11+
# 1.3.0 (29 May 2023)
12+
13+
### New Features
14+
15+
- Changesets: Add `added_in: ...` and `removed_in: ...` for inline definition changes
16+
1117
# 1.2.0 (10 February 2023)
1218

1319
### New Features

CHANGELOG-pro.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@
88

99
### Bug Fix
1010

11+
# 1.24.6 (24 May 2023)
12+
13+
- Defer: Add `incremental: true` for new proposed wire format, add example for working with GraphQL-Batch #4477
14+
15+
# 1.24.5 (24 May 2023)
16+
17+
- Stable relation connection: Quote table names and column names in selects and orders #4485
18+
1119
# 1.24.4 (18 April 2023)
1220

1321
### Bug Fix

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,26 @@
1010

1111
### Bug fixes
1212

13+
# 2.0.22 (17 May 2023)
14+
15+
### New features
16+
17+
- Warden: manually instantiating doesn't require a `filter` instance #4462
18+
19+
### Bug fixes
20+
21+
- Enum: fix procs for enum values #4474
22+
- Lexer: force UTF-8 encoding #4467
23+
- Trace: inherit superclass `trace_options` #4470
24+
- Dataloader: properly run mutations in sequence #4461
25+
- NotificationsTrace: Add `execute_multiplex.graphql` event #4460
26+
- Fix `Context#dig` when called with one key #4458
27+
- Performance: Use a plain hash for selection sets at runtime #4453
28+
- Performance: Memoize current trace #4450, #4452
29+
- Performance: Pass is_non_null to runtime check #4449
30+
- Performance: Use `compare_by_identity` on some runtime caches
31+
- Properly support nested queries (fix `Thread.current` clash) #4445
32+
1333
# 2.0.21 (11 April 2023)
1434

1535
### Deprecations

benchmark/run.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,13 @@ def self.profile
132132
def self.profile_large_introspection
133133
schema = SILLY_LARGE_SCHEMA
134134
Benchmark.ips do |x|
135+
x.config(time: 10)
135136
x.report("Run large introspection") {
136137
schema.to_json
137138
}
138139
end
139140

140-
result = StackProf.run(mode: :wall, interval: 10) do
141+
result = StackProf.run(mode: :wall) do
141142
schema.to_json
142143
end
143144
StackProf::Report.new(result).print_text
@@ -204,6 +205,7 @@ def self.profile_large_result
204205
schema = ProfileLargeResult::Schema
205206
document = ProfileLargeResult::ALL_FIELDS
206207
Benchmark.ips do |x|
208+
x.config(time: 10)
207209
x.report("Querying for #{ProfileLargeResult::DATA.size} objects") {
208210
schema.execute(document: document)
209211
}

gemfiles/rails_4.2.gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ gem "ruby-prof", platform: :ruby
77
gem "pry"
88
gem "pry-stack_explorer", platform: :ruby
99
gem "rails", "~> 4.2", require: "rails/all"
10+
gem 'loofah', '~>2.19.1' # Trying to fix Nokogiri incompatibility
1011
gem "activerecord", "~> 4.2.4"
1112
gem "actionpack", "~> 4.2.4"
1213
gem "concurrent-ruby", "~> 1.0"

graphql-c_parser/CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# GraphQL::CParser
22

3+
4+
## 1.0.2
5+
6+
- Remove `.y` and `.rl` files to avoid triggering build tasks during install
7+
8+
## 1.0.1
9+
10+
- Fix gem files (to include `ext`)
11+
312
## 1.0.0
413

514
- Release GraphQL::CParser

graphql-c_parser/Rakefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# frozen_string_literal: true
2+
require "bundler/gem_helper"
3+
4+
# use a custom tag to avoid conflicting with GraphQL-Ruby tags in the same git repo
5+
class CustomGemHelper < Bundler::GemHelper
6+
def version_tag
7+
"graphql-c_parser-v#{version}"
8+
end
9+
end
10+
CustomGemHelper.install_tasks

graphql-c_parser/graphql-c_parser.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
2121
"mailing_list_uri" => "https://tinyletter.com/graphql-ruby",
2222
}
2323

24-
s.files = Dir["{lib}/**/*"]
24+
s.files = Dir["{lib,ext}/**/*.{rb,h,c}"]
2525
s.extensions << "ext/graphql_c_parser_ext/extconf.rb"
2626
s.add_dependency "graphql"
2727
end

graphql-c_parser/lib/graphql/c_parser/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
module GraphQL
44
module CParser
5-
VERSION = "1.0.0"
5+
VERSION = "1.0.2"
66
end
77
end

guides/authorization/pundit_integration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -411,11 +411,11 @@ Here's an example of how the custom hooks can be installed:
411411
```ruby
412412
module CustomPolicyLookup
413413
# Lookup policies in the `SystemAdmin::` namespace for system_admin users
414+
# @return [Class]
414415
def pundit_policy_class_for(object, context)
415416
current_user = context[:current_user]
416417
if current_user.system_admin?
417-
policy_class = SystemAdmin.const_get("#{object.class.name}Policy")
418-
policy_class.new(current_user, object)
418+
SystemAdmin.const_get("#{object.class.name}Policy")
419419
else
420420
super
421421
end

0 commit comments

Comments
 (0)