Skip to content

Commit 001d413

Browse files
committed
Merge branch '1.9-dev' into urlsafe_base64
2 parents 73e28fd + 5098895 commit 001d413

File tree

113 files changed

+1737
-699
lines changed

Some content is hidden

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

113 files changed

+1737
-699
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ tmp/*
1919
__*.db
2020
node_modules/
2121
OperationStoreClient.js
22+
spec/integration/tmp

.rubocop.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ AllCops:
77
- 'gemfiles/**/*'
88
- 'tmp/**/*'
99
- 'vendor/**/*'
10+
- 'spec/integration/tmp/**/*'
1011

1112
# def ...
1213
# end

.travis.yml

Lines changed: 34 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,29 @@
11
---
22
language: ruby
3+
34
sudo: false
5+
46
cache:
57
- bundler
68
- yarn
9+
710
node_js: "7"
811

912
env:
1013
global:
1114
- CODECLIMATE_REPO_TOKEN=f5b27b2e25d3f4e199bb2566fb4fd4507144a004c71d4aa33a32c2df5f940333
15+
1216
before_install:
1317
- gem update --system --no-doc
1418
- gem install bundler
1519

1620
rvm:
17-
- 2.2.8 # Lowest version officially supported by the gem is 2.2
18-
- 2.4.3
19-
20-
services:
21-
- postgresql
22-
- mongodb
23-
24-
before_script:
25-
- psql -c 'create database graphql_ruby_test;' -U postgres
26-
27-
gemfile:
28-
- gemfiles/rails_3.2.gemfile
29-
- gemfiles/rails_4.1.gemfile
30-
- gemfiles/rails_4.2.gemfile
31-
- gemfiles/rails_5.0.gemfile
32-
- gemfiles/rails_5.1.gemfile
33-
- gemfiles/rails_5.2.gemfile
34-
- gemfiles/mongoid_5.gemfile
35-
- gemfiles/mongoid_6.gemfile
36-
- gemfiles/mongoid_7.gemfile
37-
21+
- 2.2.8
3822

3923
matrix:
4024
include:
4125
- env:
42-
- SYSTEM_TESTS=yes
4326
- DISPLAY=':99.0'
44-
gemfile: gemfiles/rails_5.1.gemfile
4527
rvm: 2.4.3
4628
addons:
4729
apt:
@@ -55,29 +37,39 @@ matrix:
5537
- unzip chromedriver_linux64.zip && chmod +x chromedriver && sudo mv chromedriver /usr/local/bin
5638
before_script:
5739
- sh -e /etc/init.d/xvfb start
58-
- env: DATABASE=POSTGRESQL
59-
gemfile: gemfiles/rails_5.1.gemfile
60-
rvm: 2.4.3
61-
- env: WITHOUT_RAILS=yes
62-
gemfile: gemfiles/without_rails.gemfile
63-
rvm: 2.4.3
64-
65-
exclude:
66-
- rvm: 2.4.3
40+
gemfile: spec/dummy/Gemfile
41+
script:
42+
- cd spec/dummy && bundle exec rails test:system
43+
- rvm: 2.2.8
44+
gemfile: Gemfile
45+
- rvm: 2.2.8
6746
gemfile: gemfiles/rails_3.2.gemfile
68-
- rvm: 2.4.3
47+
- rvm: 2.2.8
6948
gemfile: gemfiles/rails_4.1.gemfile
70-
- rvm: 2.4.3
71-
gemfile: gemfiles/rails_4.2.gemfile
7249
- rvm: 2.2.8
50+
gemfile: gemfiles/rails_4.2.gemfile
51+
- rvm: 2.4.3
7352
gemfile: gemfiles/rails_5.0.gemfile
74-
- rvm: 2.2.8
53+
- rvm: 2.4.3
7554
gemfile: gemfiles/rails_5.1.gemfile
76-
- rvm: 2.2.8
55+
- rvm: 2.4.3
7756
gemfile: gemfiles/rails_5.2.gemfile
78-
- rvm: 2.2.8
79-
gemfile: gemfiles/mongoid_5.gemfile
80-
- rvm: 2.2.8
81-
gemfile: gemfiles/mongoid_6.gemfile
82-
- rvm: 2.2.8
57+
- rvm: 2.4.3
8358
gemfile: gemfiles/mongoid_7.gemfile
59+
services:
60+
- mongodb
61+
- rvm: 2.4.3
62+
gemfile: gemfiles/mongoid_6.gemfile
63+
services:
64+
- mongodb
65+
- rvm: 2.4.3
66+
gemfile: gemfiles/mongoid_5.gemfile
67+
services:
68+
- mongodb
69+
- env: DATABASE=POSTGRESQL
70+
rvm: 2.4.3
71+
gemfile: gemfiles/rails_5.2_postgresql.gemfile
72+
services:
73+
- postgresql
74+
before_script:
75+
- psql -c 'create database graphql_ruby_test;' -U postgres

Appraisals

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,66 @@
11
# frozen_string_literal: true
22
appraise 'rails_3.2' do
3-
gem 'rails', '3.2.22.5'
3+
gem 'rails', '3.2.22.5', require: 'rails/all'
44
gem 'activerecord', '~> 3.2.21'
55
gem 'actionpack', '~> 3.2.21'
66
gem 'test-unit'
7+
gem 'sqlite3', platform: :ruby
8+
gem 'activerecord-jdbcsqlite3-adapter', platform: :jruby
9+
gem 'sequel'
710
end
811

912
appraise 'rails_4.1' do
10-
gem 'rails', '~> 4.1'
13+
gem 'rails', '~> 4.1', require: 'rails/all'
1114
gem 'activerecord', '~> 4.1.10'
1215
gem 'actionpack', '~> 4.1.10'
1316
gem 'test-unit'
17+
gem 'sqlite3', platform: :ruby
18+
gem 'activerecord-jdbcsqlite3-adapter', platform: :jruby
19+
gem 'sequel'
1420
end
1521

1622
appraise 'rails_4.2' do
17-
gem 'rails', '~> 4.2'
23+
gem 'rails', '~> 4.2', require: 'rails/all'
1824
gem 'activerecord', '~> 4.2.4'
1925
gem 'actionpack', '~> 4.2.4'
2026
gem 'concurrent-ruby', '1.0.0'
27+
gem 'sqlite3', platform: :ruby
28+
gem 'activerecord-jdbcsqlite3-adapter', platform: :jruby
29+
gem 'sequel'
2130
end
2231

2332
appraise 'rails_5.0' do
24-
gem 'rails', '~> 5.0'
33+
gem 'rails', '~> 5.0', require: 'rails/all'
2534
gem 'activerecord', '~> 5.0.0'
2635
gem 'actionpack', '~> 5.0.0'
36+
gem 'sqlite3', platform: :ruby
37+
gem 'activerecord-jdbcsqlite3-adapter', platform: :jruby
38+
gem 'sequel'
2739
end
2840

2941
appraise 'rails_5.1' do
30-
gem 'rails', '~> 5.1.0'
42+
gem 'rails', '~> 5.1.0', require: 'rails/all'
3143
# Required for testing action cable
3244
gem 'puma'
3345
# Required for system tests
3446
gem 'capybara', '~> 2.13'
3547
gem 'selenium-webdriver'
48+
gem 'sqlite3', platform: :ruby
49+
gem 'activerecord-jdbcsqlite3-adapter', platform: :jruby
50+
gem 'sequel'
3651
end
3752

3853
appraise 'rails_5.2' do
39-
gem 'rails', '~> 5.2.0'
54+
gem 'rails', '~> 5.2.0', require: 'rails/all'
55+
gem 'sqlite3', platform: :ruby
56+
gem 'activerecord-jdbcsqlite3-adapter', platform: :jruby
57+
gem 'sequel'
4058
end
4159

42-
appraise 'without_rails' do
43-
gem 'globalid'
60+
appraise 'rails_5.2_postgresql' do
61+
gem 'rails', '~> 5.2.0', require: 'rails/all'
62+
gem 'pg', platform: :ruby
63+
gem 'sequel'
4464
end
4565

4666
appraise 'mongoid_7' do

CHANGELOG-pro.md

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

99
### Bug Fix
1010

11+
## 1.7.12 (29 Aug 2018)
12+
13+
### New Features
14+
15+
- Add `GraphQL::Pro::CanCanIntegration` which leverages GraphQL-Ruby's built-in auth
16+
17+
## 1.7.11 (21 Aug 2018)
18+
19+
### Bug Fix
20+
21+
- `PunditIntegration`: Don't try to authorize loaded objects when they're `nil`
22+
23+
## 1.7.10 (10 Aug 2018)
24+
25+
### New Features
26+
27+
- Update `PunditIntegration` for arguments, unions, interfaces and mutations
28+
1129
## 1.7.9 (9 Aug 2018)
1230

1331
### New Features

CHANGELOG.md

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

99
### Bug fixes
1010

11+
## 1.8.8 (27 Aug 2018)
12+
13+
### Bug fixes
14+
15+
- When using `RelayClassicMutation`, `client_mutation_id` will no longer be passed to `authorized?` method #1771
16+
- Fix issue in schema upgrader script which would cause `.to_non_null_type` calls in type definition to be ignored #1783
17+
- Ensure enum values respond to `graphql_name` #1792
18+
- Fix infinite resolution bug that could occur when an exception not inheriting from `StandardError` is thrown #1804
19+
20+
### New features
21+
22+
- Add `#path` method to schema members #1766
23+
- Add `as:` argument to allow overriding the name of the argument when using `loads:` #1773
24+
- Add support for list of IDs when using `loads:` in an argument definition #1797
25+
1126
## 1.8.7 (9 Aug 2018)
1227

1328
### Breaking changes

Gemfile

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,9 @@
11
# frozen_string_literal: true
22
source "https://rubygems.org"
3+
34
gemspec
45

5-
gem 'rails'
66
gem 'bootsnap' # required by the Rails apps generated in tests
77
gem 'ruby-prof', platform: :ruby
8-
gem 'sqlite3', platform: :ruby
9-
gem 'pg', "< 1.0", platform: :ruby
10-
gem 'mongoid'
118
gem 'pry'
129
gem 'pry-stack_explorer', platform: :ruby
13-
gem 'activerecord-jdbcsqlite3-adapter', platform: :jruby
14-
15-
group :jekyll_plugins do
16-
gem "jekyll-algolia"
17-
gem "jekyll-redirect-from"
18-
end

Rakefile

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,27 @@ require "rake/testtask"
66
require_relative "guides/_tasks/site"
77
require_relative "lib/graphql/rake_task/validate"
88

9+
Bundler.require
10+
911
Rake::TestTask.new do |t|
1012
t.libs << "spec" << "lib"
1113

12-
if ENV["WITHOUT_RAILS"] == "yes"
13-
t.test_files = Dir['spec/**/*_spec.rb'].reject do |f|
14-
f.end_with?('_generator_spec.rb') ||
15-
f.end_with?('input_object_type_spec.rb') ||
16-
f.end_with?('variables_spec.rb') ||
17-
f.end_with?('relation_connection_spec.rb') ||
18-
f.end_with?('node_spec.rb') ||
19-
f.end_with?('connection_instrumentation_spec.rb') ||
20-
f.end_with?('graphql/schema_spec.rb') ||
21-
f.end_with?('graphql/tracing/active_support_notifications_tracing_spec.rb') ||
22-
f.start_with?('spec/graphql/relay/')
14+
exclude_integrations = []
15+
['Mongoid', 'Rails'].each do |integration|
16+
begin
17+
Object.const_get(integration)
18+
rescue NameError
19+
exclude_integrations << integration.downcase
20+
end
21+
end
22+
23+
t.test_files = Dir['spec/**/*_spec.rb'].reject do |f|
24+
next unless f.start_with?("spec/integration/")
25+
excluded = exclude_integrations.any? do |integration|
26+
f.start_with?("spec/integration/#{integration}/")
2327
end
24-
else
25-
t.pattern = "spec/**/*_spec.rb"
28+
puts "+ #{f}" unless excluded
29+
excluded
2630
end
2731

2832
t.warning = false
@@ -94,7 +98,8 @@ namespace :test do
9498
desc "Run system tests for ActionCable subscriptions"
9599
task :system do
96100
success = Dir.chdir("spec/dummy") do
97-
system("bin/rails test:system")
101+
system("bundle install")
102+
system("bundle exec bin/rails test:system")
98103
end
99104
success || abort
100105
end

gemfiles/mongoid_5.gemfile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,10 @@
22

33
source "https://rubygems.org"
44

5-
gem "rails"
65
gem "bootsnap"
76
gem "ruby-prof", platform: :ruby
8-
gem "sqlite3", platform: :ruby
9-
gem "pg", "< 1.0", platform: :ruby
10-
gem "mongoid", "~> 5.4.0"
117
gem "pry"
128
gem "pry-stack_explorer", platform: :ruby
13-
gem "activerecord-jdbcsqlite3-adapter", platform: :jruby
9+
gem "mongoid", "~> 5.4.0"
1410

1511
gemspec path: "../"

gemfiles/mongoid_6.gemfile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,10 @@
22

33
source "https://rubygems.org"
44

5-
gem "rails"
65
gem "bootsnap"
76
gem "ruby-prof", platform: :ruby
8-
gem "sqlite3", platform: :ruby
9-
gem "pg", "< 1.0", platform: :ruby
10-
gem "mongoid", "~> 6.4.1"
117
gem "pry"
128
gem "pry-stack_explorer", platform: :ruby
13-
gem "activerecord-jdbcsqlite3-adapter", platform: :jruby
9+
gem "mongoid", "~> 6.4.1"
1410

1511
gemspec path: "../"

0 commit comments

Comments
 (0)