graphql 1.9.3 → 1.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/lib/graphql.rb +1 -0
- data/lib/graphql/analysis/ast/field_usage.rb +1 -1
- data/lib/graphql/analysis/ast/max_query_complexity.rb +1 -1
- data/lib/graphql/analysis/ast/query_complexity.rb +3 -2
- data/lib/graphql/execution/execute.rb +10 -6
- data/lib/graphql/execution/interpreter/runtime.rb +23 -12
- data/lib/graphql/execution/lookahead.rb +0 -4
- data/lib/graphql/integer_encoding_error.rb +9 -1
- data/lib/graphql/language/visitor.rb +6 -0
- data/lib/graphql/load_application_object_failed_error.rb +22 -0
- data/lib/graphql/query.rb +6 -1
- data/lib/graphql/query/arguments.rb +1 -1
- data/lib/graphql/query/variables.rb +14 -8
- data/lib/graphql/rake_task/validate.rb +1 -1
- data/lib/graphql/schema/field_extension.rb +2 -2
- data/lib/graphql/schema/input_object.rb +15 -6
- data/lib/graphql/schema/member/has_arguments.rb +80 -0
- data/lib/graphql/schema/member/instrumentation.rb +6 -0
- data/lib/graphql/schema/resolver.rb +8 -92
- data/lib/graphql/static_validation/base_visitor.rb +8 -0
- data/lib/graphql/subscriptions/action_cable_subscriptions.rb +1 -1
- data/lib/graphql/tracing.rb +2 -2
- data/lib/graphql/tracing/data_dog_tracing.rb +19 -0
- data/lib/graphql/tracing/platform_tracing.rb +2 -1
- data/lib/graphql/types.rb +1 -0
- data/lib/graphql/types/big_int.rb +19 -0
- data/lib/graphql/types/int.rb +1 -0
- data/lib/graphql/version.rb +1 -1
- data/spec/graphql/authorization_spec.rb +26 -0
- data/spec/graphql/language/visitor_spec.rb +19 -0
- data/spec/graphql/schema/argument_spec.rb +26 -1
- data/spec/graphql/schema/field_extension_spec.rb +24 -2
- data/spec/graphql/schema/input_object_spec.rb +119 -10
- data/spec/graphql/schema/introspection_system_spec.rb +9 -0
- data/spec/graphql/schema/resolver_spec.rb +2 -2
- data/spec/graphql/static_validation/rules/argument_literals_are_compatible_spec.rb +2 -2
- data/spec/graphql/static_validation/rules/arguments_are_defined_spec.rb +1 -1
- data/spec/graphql/static_validation/rules/required_input_object_attributes_are_present_spec.rb +16 -2
- data/spec/graphql/subscriptions_spec.rb +38 -0
- data/spec/graphql/tracing/new_relic_tracing_spec.rb +21 -0
- data/spec/graphql/types/big_int_spec.rb +24 -0
- data/spec/support/jazz.rb +11 -0
- metadata +13 -51
- data/spec/dummy/Gemfile.lock +0 -157
- data/spec/dummy/log/test.log +0 -199
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/4w/4wzXRZrAkwKdgYaSE0pid5eB-fer8vSfSku_NPg4rMA.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/7I/7IHVBiJT06QSpgLpLoJIxboQ0B-D_tMTxsvoezBTV3Q.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/8w/8wY_SKagj8wHuwGNAAf6JnQ8joMbC6cEYpHrTAI8Urc.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/AK/AKzz1u6bGb4auXcrObA_g5LL-oV0ejNGa448AgAi_WQ.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ET/ETW4uxvaYpruL8y6_ZptUH82ZowMaHIqvg5WexBFdEM.cache +0 -3
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/F1/F1TWpjjyA56k9Z90n5B3xRn7DUdGjX73QCkYC6k07JQ.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/F8/F8MUNRzORGFgr329fNM0xLaoWCXdv3BIalT7dsvLfjs.cache +0 -2
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/KB/KB07ZaKNC5uXJ7TjLi-WqnY6g7dq8wWp_8N3HNjBNxg.cache +0 -2
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Ms/MsKSimH_UCB-H1tLvDABDHuvGciuoW6kVqQWDrXU5FQ.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Mt/Mtci-Kim50aPOmeClD4AIicKn1d1WJ0n454IjSd94sk.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/QH/QHt3Tc1Y6M66Oo_pDuMyWrQNs4Pp3SMeZR5K1wJj2Ts.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/XU/XU4k1OXnfMils5SrirorPvDSyDSqiOWLZNtmAH1HH8k.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ZI/ZIof7mZxWWCnraIFOCuV6a8QRWzKJXJnx2Xd7C0ZyX0.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/cG/cGc_puuPS5pZKgUcy1Y_i1L6jl5UtsiIrMH59rTzR6c.cache +0 -3
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/df/dfro_B6bx3KP1Go-7jEOqqZ2j4hVRseXIc3es9PKQno.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/jO/jO1DfbqnG0mTULsjJJANc3fefrG2zt7DIMmcptMT628.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/pE/pE7gO6pQ-z187Swb4hT554wmqsq-cNzgPWLrCz-LQQQ.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/r9/r9iU1l58a6rxkZSW5RSC52_tD-_UQuHxoMVnkfJ7Mhs.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/xi/xitPPFfPIyDMpaznV0sBBcw8eSCV8PJcLLWin78sCgE.cache +0 -0
- data/spec/dummy/tmp/screenshots/failures_test_it_handles_subscriptions.png +0 -0
- data/spec/integration/tmp/app/graphql/types/family_type.rb +0 -9
data/spec/support/jazz.rb
CHANGED
|
@@ -292,6 +292,7 @@ module Jazz
|
|
|
292
292
|
end
|
|
293
293
|
|
|
294
294
|
class InspectableInput < GraphQL::Schema::InputObject
|
|
295
|
+
argument :ensemble_id, ID, required: false, loads: Ensemble
|
|
295
296
|
argument :string_value, String, required: true, description: "Test description kwarg"
|
|
296
297
|
argument :nested_input, InspectableInput, required: false
|
|
297
298
|
argument :legacy_input, LegacyInputType, required: false
|
|
@@ -407,6 +408,8 @@ module Jazz
|
|
|
407
408
|
input.key?(:string_value).to_s,
|
|
408
409
|
# ~~Access by legacy key~~ # not anymore
|
|
409
410
|
input[:string_value],
|
|
411
|
+
input.ensemble,
|
|
412
|
+
input.key?(:ensemble).to_s,
|
|
410
413
|
]
|
|
411
414
|
end
|
|
412
415
|
|
|
@@ -682,6 +685,14 @@ module Jazz
|
|
|
682
685
|
|
|
683
686
|
module Introspection
|
|
684
687
|
class TypeType < GraphQL::Introspection::TypeType
|
|
688
|
+
def self.authorized?(_obj, ctx)
|
|
689
|
+
if ctx[:cant_introspect]
|
|
690
|
+
raise GraphQL::ExecutionError, "You're not allowed to introspect here"
|
|
691
|
+
else
|
|
692
|
+
super
|
|
693
|
+
end
|
|
694
|
+
end
|
|
695
|
+
|
|
685
696
|
def name
|
|
686
697
|
n = object.graphql_name
|
|
687
698
|
n && n.upcase
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: graphql
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.9.
|
|
4
|
+
version: 1.9.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Robert Mosolgo
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-
|
|
11
|
+
date: 2019-04-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: benchmark-ips
|
|
@@ -476,6 +476,7 @@ files:
|
|
|
476
476
|
- lib/graphql/language/visitor.rb
|
|
477
477
|
- lib/graphql/list_type.rb
|
|
478
478
|
- lib/graphql/literal_validation_error.rb
|
|
479
|
+
- lib/graphql/load_application_object_failed_error.rb
|
|
479
480
|
- lib/graphql/name_validator.rb
|
|
480
481
|
- lib/graphql/non_null_type.rb
|
|
481
482
|
- lib/graphql/object_type.rb
|
|
@@ -672,6 +673,7 @@ files:
|
|
|
672
673
|
- lib/graphql/tracing/skylight_tracing.rb
|
|
673
674
|
- lib/graphql/type_kinds.rb
|
|
674
675
|
- lib/graphql/types.rb
|
|
676
|
+
- lib/graphql/types/big_int.rb
|
|
675
677
|
- lib/graphql/types/boolean.rb
|
|
676
678
|
- lib/graphql/types/float.rb
|
|
677
679
|
- lib/graphql/types/id.rb
|
|
@@ -697,7 +699,6 @@ files:
|
|
|
697
699
|
- lib/graphql/version.rb
|
|
698
700
|
- readme.md
|
|
699
701
|
- spec/dummy/Gemfile
|
|
700
|
-
- spec/dummy/Gemfile.lock
|
|
701
702
|
- spec/dummy/README.md
|
|
702
703
|
- spec/dummy/Rakefile
|
|
703
704
|
- spec/dummy/app/assets/config/manifest.js
|
|
@@ -736,7 +737,6 @@ files:
|
|
|
736
737
|
- spec/dummy/config/puma.rb
|
|
737
738
|
- spec/dummy/config/routes.rb
|
|
738
739
|
- spec/dummy/config/secrets.yml
|
|
739
|
-
- spec/dummy/log/test.log
|
|
740
740
|
- spec/dummy/package.json
|
|
741
741
|
- spec/dummy/public/404.html
|
|
742
742
|
- spec/dummy/public/422.html
|
|
@@ -748,26 +748,6 @@ files:
|
|
|
748
748
|
- spec/dummy/test/application_system_test_case.rb
|
|
749
749
|
- spec/dummy/test/system/action_cable_subscription_test.rb
|
|
750
750
|
- spec/dummy/test/test_helper.rb
|
|
751
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/4w/4wzXRZrAkwKdgYaSE0pid5eB-fer8vSfSku_NPg4rMA.cache
|
|
752
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/7I/7IHVBiJT06QSpgLpLoJIxboQ0B-D_tMTxsvoezBTV3Q.cache
|
|
753
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/8w/8wY_SKagj8wHuwGNAAf6JnQ8joMbC6cEYpHrTAI8Urc.cache
|
|
754
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/AK/AKzz1u6bGb4auXcrObA_g5LL-oV0ejNGa448AgAi_WQ.cache
|
|
755
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/ET/ETW4uxvaYpruL8y6_ZptUH82ZowMaHIqvg5WexBFdEM.cache
|
|
756
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/F1/F1TWpjjyA56k9Z90n5B3xRn7DUdGjX73QCkYC6k07JQ.cache
|
|
757
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/F8/F8MUNRzORGFgr329fNM0xLaoWCXdv3BIalT7dsvLfjs.cache
|
|
758
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/KB/KB07ZaKNC5uXJ7TjLi-WqnY6g7dq8wWp_8N3HNjBNxg.cache
|
|
759
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Ms/MsKSimH_UCB-H1tLvDABDHuvGciuoW6kVqQWDrXU5FQ.cache
|
|
760
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Mt/Mtci-Kim50aPOmeClD4AIicKn1d1WJ0n454IjSd94sk.cache
|
|
761
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/QH/QHt3Tc1Y6M66Oo_pDuMyWrQNs4Pp3SMeZR5K1wJj2Ts.cache
|
|
762
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/XU/XU4k1OXnfMils5SrirorPvDSyDSqiOWLZNtmAH1HH8k.cache
|
|
763
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/ZI/ZIof7mZxWWCnraIFOCuV6a8QRWzKJXJnx2Xd7C0ZyX0.cache
|
|
764
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/cG/cGc_puuPS5pZKgUcy1Y_i1L6jl5UtsiIrMH59rTzR6c.cache
|
|
765
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/df/dfro_B6bx3KP1Go-7jEOqqZ2j4hVRseXIc3es9PKQno.cache
|
|
766
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/jO/jO1DfbqnG0mTULsjJJANc3fefrG2zt7DIMmcptMT628.cache
|
|
767
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/pE/pE7gO6pQ-z187Swb4hT554wmqsq-cNzgPWLrCz-LQQQ.cache
|
|
768
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/r9/r9iU1l58a6rxkZSW5RSC52_tD-_UQuHxoMVnkfJ7Mhs.cache
|
|
769
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/xi/xitPPFfPIyDMpaznV0sBBcw8eSCV8PJcLLWin78sCgE.cache
|
|
770
|
-
- spec/dummy/tmp/screenshots/failures_test_it_handles_subscriptions.png
|
|
771
751
|
- spec/fixtures/upgrader/account.original.rb
|
|
772
752
|
- spec/fixtures/upgrader/account.transformed.rb
|
|
773
753
|
- spec/fixtures/upgrader/blame_range.original.rb
|
|
@@ -936,6 +916,7 @@ files:
|
|
|
936
916
|
- spec/graphql/tracing/scout_tracing_spec.rb
|
|
937
917
|
- spec/graphql/tracing/skylight_tracing_spec.rb
|
|
938
918
|
- spec/graphql/tracing_spec.rb
|
|
919
|
+
- spec/graphql/types/big_int_spec.rb
|
|
939
920
|
- spec/graphql/types/iso_8601_date_time_spec.rb
|
|
940
921
|
- spec/graphql/union_type_spec.rb
|
|
941
922
|
- spec/graphql/upgrader/member_spec.rb
|
|
@@ -970,7 +951,6 @@ files:
|
|
|
970
951
|
- spec/integration/rails/graphql/schema_spec.rb
|
|
971
952
|
- spec/integration/rails/graphql/tracing/active_support_notifications_tracing_spec.rb
|
|
972
953
|
- spec/integration/rails/spec_helper.rb
|
|
973
|
-
- spec/integration/tmp/app/graphql/types/family_type.rb
|
|
974
954
|
- spec/spec_helper.rb
|
|
975
955
|
- spec/support/dummy/data.rb
|
|
976
956
|
- spec/support/dummy/schema.rb
|
|
@@ -990,7 +970,12 @@ files:
|
|
|
990
970
|
homepage: https://github.com/rmosolgo/graphql-ruby
|
|
991
971
|
licenses:
|
|
992
972
|
- MIT
|
|
993
|
-
metadata:
|
|
973
|
+
metadata:
|
|
974
|
+
homepage_uri: https://graphql-ruby.org
|
|
975
|
+
changelog_uri: https://github.com/rmosolgo/graphql-ruby/blob/master/CHANGELOG.md
|
|
976
|
+
source_code_uri: https://github.com/rmosolgo/graphql-ruby
|
|
977
|
+
bug_tracker_uri: https://github.com/rmosolgo/graphql-ruby/issues
|
|
978
|
+
mailing_list_uri: https://tinyletter.com/graphql-ruby
|
|
994
979
|
post_install_message:
|
|
995
980
|
rdoc_options: []
|
|
996
981
|
require_paths:
|
|
@@ -1006,8 +991,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
1006
991
|
- !ruby/object:Gem::Version
|
|
1007
992
|
version: '0'
|
|
1008
993
|
requirements: []
|
|
1009
|
-
|
|
1010
|
-
rubygems_version: 2.6.13
|
|
994
|
+
rubygems_version: 3.0.2
|
|
1011
995
|
signing_key:
|
|
1012
996
|
specification_version: 4
|
|
1013
997
|
summary: A GraphQL language and runtime for Ruby
|
|
@@ -1063,33 +1047,10 @@ test_files:
|
|
|
1063
1047
|
- spec/dummy/public/robots.txt
|
|
1064
1048
|
- spec/dummy/package.json
|
|
1065
1049
|
- spec/dummy/Gemfile
|
|
1066
|
-
- spec/dummy/log/test.log
|
|
1067
|
-
- spec/dummy/Gemfile.lock
|
|
1068
|
-
- spec/dummy/tmp/screenshots/failures_test_it_handles_subscriptions.png
|
|
1069
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/pE/pE7gO6pQ-z187Swb4hT554wmqsq-cNzgPWLrCz-LQQQ.cache
|
|
1070
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Ms/MsKSimH_UCB-H1tLvDABDHuvGciuoW6kVqQWDrXU5FQ.cache
|
|
1071
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Mt/Mtci-Kim50aPOmeClD4AIicKn1d1WJ0n454IjSd94sk.cache
|
|
1072
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/KB/KB07ZaKNC5uXJ7TjLi-WqnY6g7dq8wWp_8N3HNjBNxg.cache
|
|
1073
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/df/dfro_B6bx3KP1Go-7jEOqqZ2j4hVRseXIc3es9PKQno.cache
|
|
1074
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/AK/AKzz1u6bGb4auXcrObA_g5LL-oV0ejNGa448AgAi_WQ.cache
|
|
1075
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/cG/cGc_puuPS5pZKgUcy1Y_i1L6jl5UtsiIrMH59rTzR6c.cache
|
|
1076
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/jO/jO1DfbqnG0mTULsjJJANc3fefrG2zt7DIMmcptMT628.cache
|
|
1077
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/xi/xitPPFfPIyDMpaznV0sBBcw8eSCV8PJcLLWin78sCgE.cache
|
|
1078
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/r9/r9iU1l58a6rxkZSW5RSC52_tD-_UQuHxoMVnkfJ7Mhs.cache
|
|
1079
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/XU/XU4k1OXnfMils5SrirorPvDSyDSqiOWLZNtmAH1HH8k.cache
|
|
1080
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/QH/QHt3Tc1Y6M66Oo_pDuMyWrQNs4Pp3SMeZR5K1wJj2Ts.cache
|
|
1081
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/4w/4wzXRZrAkwKdgYaSE0pid5eB-fer8vSfSku_NPg4rMA.cache
|
|
1082
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/ZI/ZIof7mZxWWCnraIFOCuV6a8QRWzKJXJnx2Xd7C0ZyX0.cache
|
|
1083
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/ET/ETW4uxvaYpruL8y6_ZptUH82ZowMaHIqvg5WexBFdEM.cache
|
|
1084
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/F1/F1TWpjjyA56k9Z90n5B3xRn7DUdGjX73QCkYC6k07JQ.cache
|
|
1085
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/F8/F8MUNRzORGFgr329fNM0xLaoWCXdv3BIalT7dsvLfjs.cache
|
|
1086
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/7I/7IHVBiJT06QSpgLpLoJIxboQ0B-D_tMTxsvoezBTV3Q.cache
|
|
1087
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/8w/8wY_SKagj8wHuwGNAAf6JnQ8joMbC6cEYpHrTAI8Urc.cache
|
|
1088
1050
|
- spec/integration/mongoid/spec_helper.rb
|
|
1089
1051
|
- spec/integration/mongoid/star_trek/schema.rb
|
|
1090
1052
|
- spec/integration/mongoid/star_trek/data.rb
|
|
1091
1053
|
- spec/integration/mongoid/graphql/relay/mongo_relation_connection_spec.rb
|
|
1092
|
-
- spec/integration/tmp/app/graphql/types/family_type.rb
|
|
1093
1054
|
- spec/integration/rails/spec_helper.rb
|
|
1094
1055
|
- spec/integration/rails/data.rb
|
|
1095
1056
|
- spec/integration/rails/graphql/tracing/active_support_notifications_tracing_spec.rb
|
|
@@ -1145,6 +1106,7 @@ test_files:
|
|
|
1145
1106
|
- spec/graphql/rake_task_spec.rb
|
|
1146
1107
|
- spec/graphql/int_type_spec.rb
|
|
1147
1108
|
- spec/graphql/types/iso_8601_date_time_spec.rb
|
|
1109
|
+
- spec/graphql/types/big_int_spec.rb
|
|
1148
1110
|
- spec/graphql/field_spec.rb
|
|
1149
1111
|
- spec/graphql/analysis/max_query_depth_spec.rb
|
|
1150
1112
|
- spec/graphql/analysis/max_query_complexity_spec.rb
|
data/spec/dummy/Gemfile.lock
DELETED
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
PATH
|
|
2
|
-
remote: /Users/rmosolgo/code/graphql-ruby
|
|
3
|
-
specs:
|
|
4
|
-
graphql (1.9.0.pre2)
|
|
5
|
-
|
|
6
|
-
GEM
|
|
7
|
-
remote: https://rubygems.org/
|
|
8
|
-
specs:
|
|
9
|
-
actioncable (5.2.1)
|
|
10
|
-
actionpack (= 5.2.1)
|
|
11
|
-
nio4r (~> 2.0)
|
|
12
|
-
websocket-driver (>= 0.6.1)
|
|
13
|
-
actionmailer (5.2.1)
|
|
14
|
-
actionpack (= 5.2.1)
|
|
15
|
-
actionview (= 5.2.1)
|
|
16
|
-
activejob (= 5.2.1)
|
|
17
|
-
mail (~> 2.5, >= 2.5.4)
|
|
18
|
-
rails-dom-testing (~> 2.0)
|
|
19
|
-
actionpack (5.2.1)
|
|
20
|
-
actionview (= 5.2.1)
|
|
21
|
-
activesupport (= 5.2.1)
|
|
22
|
-
rack (~> 2.0)
|
|
23
|
-
rack-test (>= 0.6.3)
|
|
24
|
-
rails-dom-testing (~> 2.0)
|
|
25
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
|
26
|
-
actionview (5.2.1)
|
|
27
|
-
activesupport (= 5.2.1)
|
|
28
|
-
builder (~> 3.1)
|
|
29
|
-
erubi (~> 1.4)
|
|
30
|
-
rails-dom-testing (~> 2.0)
|
|
31
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
|
32
|
-
activejob (5.2.1)
|
|
33
|
-
activesupport (= 5.2.1)
|
|
34
|
-
globalid (>= 0.3.6)
|
|
35
|
-
activemodel (5.2.1)
|
|
36
|
-
activesupport (= 5.2.1)
|
|
37
|
-
activerecord (5.2.1)
|
|
38
|
-
activemodel (= 5.2.1)
|
|
39
|
-
activesupport (= 5.2.1)
|
|
40
|
-
arel (>= 9.0)
|
|
41
|
-
activestorage (5.2.1)
|
|
42
|
-
actionpack (= 5.2.1)
|
|
43
|
-
activerecord (= 5.2.1)
|
|
44
|
-
marcel (~> 0.3.1)
|
|
45
|
-
activesupport (5.2.1)
|
|
46
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
47
|
-
i18n (>= 0.7, < 2)
|
|
48
|
-
minitest (~> 5.1)
|
|
49
|
-
tzinfo (~> 1.1)
|
|
50
|
-
addressable (2.5.2)
|
|
51
|
-
public_suffix (>= 2.0.2, < 4.0)
|
|
52
|
-
arel (9.0.0)
|
|
53
|
-
builder (3.2.3)
|
|
54
|
-
capybara (3.7.2)
|
|
55
|
-
addressable
|
|
56
|
-
mini_mime (>= 0.1.3)
|
|
57
|
-
nokogiri (~> 1.8)
|
|
58
|
-
rack (>= 1.6.0)
|
|
59
|
-
rack-test (>= 0.6.3)
|
|
60
|
-
xpath (~> 3.1)
|
|
61
|
-
childprocess (0.9.0)
|
|
62
|
-
ffi (~> 1.0, >= 1.0.11)
|
|
63
|
-
concurrent-ruby (1.0.5)
|
|
64
|
-
crass (1.0.4)
|
|
65
|
-
erubi (1.7.1)
|
|
66
|
-
ffi (1.9.25)
|
|
67
|
-
globalid (0.4.1)
|
|
68
|
-
activesupport (>= 4.2.0)
|
|
69
|
-
i18n (1.1.0)
|
|
70
|
-
concurrent-ruby (~> 1.0)
|
|
71
|
-
listen (3.1.5)
|
|
72
|
-
rb-fsevent (~> 0.9, >= 0.9.4)
|
|
73
|
-
rb-inotify (~> 0.9, >= 0.9.7)
|
|
74
|
-
ruby_dep (~> 1.2)
|
|
75
|
-
loofah (2.2.2)
|
|
76
|
-
crass (~> 1.0.2)
|
|
77
|
-
nokogiri (>= 1.5.9)
|
|
78
|
-
mail (2.7.0)
|
|
79
|
-
mini_mime (>= 0.1.1)
|
|
80
|
-
marcel (0.3.3)
|
|
81
|
-
mimemagic (~> 0.3.2)
|
|
82
|
-
method_source (0.9.0)
|
|
83
|
-
mimemagic (0.3.2)
|
|
84
|
-
mini_mime (1.0.1)
|
|
85
|
-
mini_portile2 (2.3.0)
|
|
86
|
-
minitest (5.11.3)
|
|
87
|
-
nio4r (2.3.1)
|
|
88
|
-
nokogiri (1.8.4)
|
|
89
|
-
mini_portile2 (~> 2.3.0)
|
|
90
|
-
public_suffix (3.0.3)
|
|
91
|
-
puma (3.12.0)
|
|
92
|
-
rack (2.0.5)
|
|
93
|
-
rack-test (1.1.0)
|
|
94
|
-
rack (>= 1.0, < 3)
|
|
95
|
-
rails (5.2.1)
|
|
96
|
-
actioncable (= 5.2.1)
|
|
97
|
-
actionmailer (= 5.2.1)
|
|
98
|
-
actionpack (= 5.2.1)
|
|
99
|
-
actionview (= 5.2.1)
|
|
100
|
-
activejob (= 5.2.1)
|
|
101
|
-
activemodel (= 5.2.1)
|
|
102
|
-
activerecord (= 5.2.1)
|
|
103
|
-
activestorage (= 5.2.1)
|
|
104
|
-
activesupport (= 5.2.1)
|
|
105
|
-
bundler (>= 1.3.0)
|
|
106
|
-
railties (= 5.2.1)
|
|
107
|
-
sprockets-rails (>= 2.0.0)
|
|
108
|
-
rails-dom-testing (2.0.3)
|
|
109
|
-
activesupport (>= 4.2.0)
|
|
110
|
-
nokogiri (>= 1.6)
|
|
111
|
-
rails-html-sanitizer (1.0.4)
|
|
112
|
-
loofah (~> 2.2, >= 2.2.2)
|
|
113
|
-
railties (5.2.1)
|
|
114
|
-
actionpack (= 5.2.1)
|
|
115
|
-
activesupport (= 5.2.1)
|
|
116
|
-
method_source
|
|
117
|
-
rake (>= 0.8.7)
|
|
118
|
-
thor (>= 0.19.0, < 2.0)
|
|
119
|
-
rake (12.3.1)
|
|
120
|
-
rb-fsevent (0.10.3)
|
|
121
|
-
rb-inotify (0.9.10)
|
|
122
|
-
ffi (>= 0.5.0, < 2)
|
|
123
|
-
ruby_dep (1.5.0)
|
|
124
|
-
rubyzip (1.2.2)
|
|
125
|
-
selenium-webdriver (3.14.0)
|
|
126
|
-
childprocess (~> 0.5)
|
|
127
|
-
rubyzip (~> 1.2)
|
|
128
|
-
sprockets (3.7.2)
|
|
129
|
-
concurrent-ruby (~> 1.0)
|
|
130
|
-
rack (> 1, < 3)
|
|
131
|
-
sprockets-rails (3.2.1)
|
|
132
|
-
actionpack (>= 4.0)
|
|
133
|
-
activesupport (>= 4.0)
|
|
134
|
-
sprockets (>= 3.0.0)
|
|
135
|
-
thor (0.20.0)
|
|
136
|
-
thread_safe (0.3.6)
|
|
137
|
-
tzinfo (1.2.5)
|
|
138
|
-
thread_safe (~> 0.1)
|
|
139
|
-
websocket-driver (0.7.0)
|
|
140
|
-
websocket-extensions (>= 0.1.0)
|
|
141
|
-
websocket-extensions (0.1.3)
|
|
142
|
-
xpath (3.1.0)
|
|
143
|
-
nokogiri (~> 1.8)
|
|
144
|
-
|
|
145
|
-
PLATFORMS
|
|
146
|
-
ruby
|
|
147
|
-
|
|
148
|
-
DEPENDENCIES
|
|
149
|
-
capybara
|
|
150
|
-
graphql!
|
|
151
|
-
listen
|
|
152
|
-
puma
|
|
153
|
-
rails (~> 5.2.1)
|
|
154
|
-
selenium-webdriver
|
|
155
|
-
|
|
156
|
-
BUNDLED WITH
|
|
157
|
-
2.0.1
|
data/spec/dummy/log/test.log
DELETED
|
@@ -1,199 +0,0 @@
|
|
|
1
|
-
-----------------------------------------------------------
|
|
2
|
-
ActionCableSubscriptionsTest: test_it_handles_subscriptions
|
|
3
|
-
-----------------------------------------------------------
|
|
4
|
-
Started GET "/" for 127.0.0.1 at 2018-09-29 14:31:04 -0400
|
|
5
|
-
Processing by PagesController#show as HTML
|
|
6
|
-
Rendering pages/show.html within layouts/application
|
|
7
|
-
Rendered pages/show.html within layouts/application (1.3ms)
|
|
8
|
-
Completed 200 OK in 211ms (Views: 208.8ms)
|
|
9
|
-
Started GET "/assets/application-03569c14ba2ebaf689cf2b8eecd6aba17af7402d872a3eca6c4ec8fac4eb31e9.js" for 127.0.0.1 at 2018-09-29 14:31:05 -0400
|
|
10
|
-
Started GET "/cable" for 127.0.0.1 at 2018-09-29 14:31:05 -0400
|
|
11
|
-
Started GET "/cable/" [WebSocket] for 127.0.0.1 at 2018-09-29 14:31:05 -0400
|
|
12
|
-
Successfully upgraded to WebSocket (REQUEST_METHOD: GET, HTTP_CONNECTION: Upgrade, HTTP_UPGRADE: websocket)
|
|
13
|
-
GraphqlChannel is transmitting the subscription confirmation
|
|
14
|
-
GraphqlChannel is transmitting the subscription confirmation
|
|
15
|
-
GraphqlChannel#execute({"query"=>"subscription($id: ID!) { payload(id: $id) { value } }", "variables"=>{"id"=>"updates-1"}})
|
|
16
|
-
GraphqlChannel#execute({"query"=>"subscription($id: ID!) { payload(id: $id) { value } }", "variables"=>{"id"=>"updates-2"}})
|
|
17
|
-
Could not execute command from ({"command"=>"message", "identifier"=>"{\"channel\":\"GraphqlChannel\",\"id\":\"1662699726a\"}", "data"=>"{\"query\":\"subscription($id: ID!) { payload(id: $id) { value } }\",\"variables\":{\"id\":\"updates-1\"},\"action\":\"execute\"}"}) [ArgumentError - wrong number of arguments (given 1, expected 0)]: /Users/rmosolgo/code/graphql-ruby/spec/dummy/app/channels/graphql_channel.rb:19:in `payload' | /Users/rmosolgo/code/graphql-ruby/lib/graphql/schema/field.rb:524:in `public_send' | /Users/rmosolgo/code/graphql-ruby/lib/graphql/schema/field.rb:524:in `block in public_send_field' | /Users/rmosolgo/code/graphql-ruby/lib/graphql/schema/field.rb:536:in `with_extensions' | /Users/rmosolgo/code/graphql-ruby/lib/graphql/schema/field.rb:515:in `public_send_field'
|
|
18
|
-
Could not execute command from ({"command"=>"message", "identifier"=>"{\"channel\":\"GraphqlChannel\",\"id\":\"166269a4ccc\"}", "data"=>"{\"query\":\"subscription($id: ID!) { payload(id: $id) { value } }\",\"variables\":{\"id\":\"updates-2\"},\"action\":\"execute\"}"}) [ArgumentError - wrong number of arguments (given 1, expected 0)]: /Users/rmosolgo/code/graphql-ruby/spec/dummy/app/channels/graphql_channel.rb:19:in `payload' | /Users/rmosolgo/code/graphql-ruby/lib/graphql/schema/field.rb:524:in `public_send' | /Users/rmosolgo/code/graphql-ruby/lib/graphql/schema/field.rb:524:in `block in public_send_field' | /Users/rmosolgo/code/graphql-ruby/lib/graphql/schema/field.rb:536:in `with_extensions' | /Users/rmosolgo/code/graphql-ruby/lib/graphql/schema/field.rb:515:in `public_send_field'
|
|
19
|
-
GraphqlChannel#make_trigger({"id"=>"updates-1", "value"=>1})
|
|
20
|
-
[ActionCable] Broadcasting to graphql-event::payload:id:updates-1: "{\"__gid__\":\"Z2lkOi8vZHVtbXkvR3JhcGhxbENoYW5uZWw6OkV4YW1wbGVQYXlsb2FkLzE\"}"
|
|
21
|
-
GraphqlChannel#make_trigger({"id"=>"updates-1", "value"=>2})
|
|
22
|
-
[ActionCable] Broadcasting to graphql-event::payload:id:updates-1: "{\"__gid__\":\"Z2lkOi8vZHVtbXkvR3JhcGhxbENoYW5uZWw6OkV4YW1wbGVQYXlsb2FkLzI\"}"
|
|
23
|
-
GraphqlChannel#make_trigger({"id"=>"updates-1", "value"=>3})
|
|
24
|
-
[ActionCable] Broadcasting to graphql-event::payload:id:updates-1: "{\"__gid__\":\"Z2lkOi8vZHVtbXkvR3JhcGhxbENoYW5uZWw6OkV4YW1wbGVQYXlsb2FkLzM\"}"
|
|
25
|
-
Finished "/cable/" [WebSocket] for 127.0.0.1 at 2018-09-29 14:31:08 -0400
|
|
26
|
-
-----------------------------------------------------------
|
|
27
|
-
ActionCableSubscriptionsTest: test_it_handles_subscriptions
|
|
28
|
-
-----------------------------------------------------------
|
|
29
|
-
Started GET "/" for 127.0.0.1 at 2018-09-29 14:31:34 -0400
|
|
30
|
-
Processing by PagesController#show as HTML
|
|
31
|
-
Rendering pages/show.html within layouts/application
|
|
32
|
-
Rendered pages/show.html within layouts/application (1.2ms)
|
|
33
|
-
Completed 200 OK in 209ms (Views: 206.7ms)
|
|
34
|
-
Started GET "/assets/application-03569c14ba2ebaf689cf2b8eecd6aba17af7402d872a3eca6c4ec8fac4eb31e9.js" for 127.0.0.1 at 2018-09-29 14:31:34 -0400
|
|
35
|
-
Started GET "/cable" for 127.0.0.1 at 2018-09-29 14:31:34 -0400
|
|
36
|
-
Started GET "/cable/" [WebSocket] for 127.0.0.1 at 2018-09-29 14:31:34 -0400
|
|
37
|
-
Successfully upgraded to WebSocket (REQUEST_METHOD: GET, HTTP_CONNECTION: Upgrade, HTTP_UPGRADE: websocket)
|
|
38
|
-
GraphqlChannel is transmitting the subscription confirmation
|
|
39
|
-
GraphqlChannel is transmitting the subscription confirmation
|
|
40
|
-
GraphqlChannel#execute({"query"=>"subscription($id: ID!) { payload(id: $id) { value } }", "variables"=>{"id"=>"updates-1"}})
|
|
41
|
-
GraphqlChannel transmitting {:result=>{"data"=>nil}, :more=>true}
|
|
42
|
-
GraphqlChannel#execute({"query"=>"subscription($id: ID!) { payload(id: $id) { value } }", "variables"=>{"id"=>"updates-2"}})
|
|
43
|
-
GraphqlChannel transmitting {:result=>{"data"=>nil}, :more=>true}
|
|
44
|
-
GraphqlChannel is streaming from graphql-subscription:d39b7767-bfcf-487f-9985-a99e0074a99c
|
|
45
|
-
GraphqlChannel is streaming from graphql-subscription:95a2d0a0-e2a1-47d2-b9c4-a305e9532f41
|
|
46
|
-
GraphqlChannel is streaming from graphql-event::payload:id:updates-1
|
|
47
|
-
GraphqlChannel is streaming from graphql-event::payload:id:updates-2
|
|
48
|
-
GraphqlChannel#make_trigger({"id"=>"updates-1", "value"=>1})
|
|
49
|
-
[ActionCable] Broadcasting to graphql-event::payload:id:updates-1: "{\"__gid__\":\"Z2lkOi8vZHVtbXkvR3JhcGhxbENoYW5uZWw6OkV4YW1wbGVQYXlsb2FkLzE\"}"
|
|
50
|
-
[ActionCable] Broadcasting to graphql-subscription:d39b7767-bfcf-487f-9985-a99e0074a99c: {:result=>{"data"=>{"payload"=>{"value"=>1}}}, :more=>true}
|
|
51
|
-
GraphqlChannel transmitting {"result"=>{"data"=>{"payload"=>{"value"=>1}}}, "more"=>true} (via streamed from graphql-subscription:d39b7767-bfcf-487f-9985-a99e0074a99c)
|
|
52
|
-
GraphqlChannel#make_trigger({"id"=>"updates-1", "value"=>2})
|
|
53
|
-
[ActionCable] Broadcasting to graphql-event::payload:id:updates-1: "{\"__gid__\":\"Z2lkOi8vZHVtbXkvR3JhcGhxbENoYW5uZWw6OkV4YW1wbGVQYXlsb2FkLzI\"}"
|
|
54
|
-
[ActionCable] Broadcasting to graphql-subscription:d39b7767-bfcf-487f-9985-a99e0074a99c: {:result=>{"data"=>{"payload"=>{"value"=>2}}}, :more=>true}
|
|
55
|
-
GraphqlChannel transmitting {"result"=>{"data"=>{"payload"=>{"value"=>2}}}, "more"=>true} (via streamed from graphql-subscription:d39b7767-bfcf-487f-9985-a99e0074a99c)
|
|
56
|
-
GraphqlChannel#make_trigger({"id"=>"updates-1", "value"=>3})
|
|
57
|
-
[ActionCable] Broadcasting to graphql-event::payload:id:updates-1: "{\"__gid__\":\"Z2lkOi8vZHVtbXkvR3JhcGhxbENoYW5uZWw6OkV4YW1wbGVQYXlsb2FkLzM\"}"
|
|
58
|
-
[ActionCable] Broadcasting to graphql-subscription:d39b7767-bfcf-487f-9985-a99e0074a99c: {:result=>{"data"=>{"payload"=>{"value"=>3}}}, :more=>true}
|
|
59
|
-
GraphqlChannel transmitting {"result"=>{"data"=>{"payload"=>{"value"=>3}}}, "more"=>true} (via streamed from graphql-subscription:d39b7767-bfcf-487f-9985-a99e0074a99c)
|
|
60
|
-
GraphqlChannel#make_trigger({"id"=>"updates-2", "value"=>1})
|
|
61
|
-
[ActionCable] Broadcasting to graphql-event::payload:id:updates-2: "{\"__gid__\":\"Z2lkOi8vZHVtbXkvR3JhcGhxbENoYW5uZWw6OkV4YW1wbGVQYXlsb2FkLzE\"}"
|
|
62
|
-
[ActionCable] Broadcasting to graphql-subscription:95a2d0a0-e2a1-47d2-b9c4-a305e9532f41: {:result=>{"data"=>{"payload"=>{"value"=>1}}}, :more=>true}
|
|
63
|
-
GraphqlChannel transmitting {"result"=>{"data"=>{"payload"=>{"value"=>1}}}, "more"=>true} (via streamed from graphql-subscription:95a2d0a0-e2a1-47d2-b9c4-a305e9532f41)
|
|
64
|
-
GraphqlChannel#make_trigger({"id"=>"updates-2", "value"=>2})
|
|
65
|
-
[ActionCable] Broadcasting to graphql-event::payload:id:updates-2: "{\"__gid__\":\"Z2lkOi8vZHVtbXkvR3JhcGhxbENoYW5uZWw6OkV4YW1wbGVQYXlsb2FkLzI\"}"
|
|
66
|
-
[ActionCable] Broadcasting to graphql-subscription:95a2d0a0-e2a1-47d2-b9c4-a305e9532f41: {:result=>{"data"=>{"payload"=>{"value"=>2}}}, :more=>true}
|
|
67
|
-
GraphqlChannel transmitting {"result"=>{"data"=>{"payload"=>{"value"=>2}}}, "more"=>true} (via streamed from graphql-subscription:95a2d0a0-e2a1-47d2-b9c4-a305e9532f41)
|
|
68
|
-
Unsubscribing from channel: {"channel":"GraphqlChannel","id":"166269a8bd0"}
|
|
69
|
-
GraphqlChannel stopped streaming from graphql-subscription:d39b7767-bfcf-487f-9985-a99e0074a99c
|
|
70
|
-
GraphqlChannel stopped streaming from graphql-event::payload:id:updates-1
|
|
71
|
-
Could not execute command from ({"command"=>"message", "identifier"=>"{\"channel\":\"GraphqlChannel\",\"id\":\"166269a8bd0\"}", "data"=>"{\"id\":\"updates-1\",\"value\":4,\"action\":\"make_trigger\"}"}) [RuntimeError - Unable to find subscription with identifier: {"channel":"GraphqlChannel","id":"166269a8bd0"}]: /Users/rmosolgo/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/actioncable-5.2.1/lib/action_cable/connection/subscriptions.rb:78:in `find' | /Users/rmosolgo/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/actioncable-5.2.1/lib/action_cable/connection/subscriptions.rb:55:in `perform_action' | /Users/rmosolgo/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/actioncable-5.2.1/lib/action_cable/connection/subscriptions.rb:19:in `execute_command' | /Users/rmosolgo/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/actioncable-5.2.1/lib/action_cable/connection/base.rb:87:in `dispatch_websocket_message' | /Users/rmosolgo/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/actioncable-5.2.1/lib/action_cable/server/worker.rb:60:in `block in invoke'
|
|
72
|
-
GraphqlChannel#make_trigger({"id"=>"updates-2", "value"=>3})
|
|
73
|
-
[ActionCable] Broadcasting to graphql-event::payload:id:updates-2: "{\"__gid__\":\"Z2lkOi8vZHVtbXkvR3JhcGhxbENoYW5uZWw6OkV4YW1wbGVQYXlsb2FkLzM\"}"
|
|
74
|
-
[ActionCable] Broadcasting to graphql-subscription:95a2d0a0-e2a1-47d2-b9c4-a305e9532f41: {:result=>{"data"=>{"payload"=>{"value"=>3}}}, :more=>true}
|
|
75
|
-
GraphqlChannel transmitting {"result"=>{"data"=>{"payload"=>{"value"=>3}}}, "more"=>true} (via streamed from graphql-subscription:95a2d0a0-e2a1-47d2-b9c4-a305e9532f41)
|
|
76
|
-
GraphqlChannel#make_trigger({"id"=>"updates-2", "value"=>4})
|
|
77
|
-
[ActionCable] Broadcasting to graphql-event::payload:id:updates-2: "4x"
|
|
78
|
-
[ActionCable] Broadcasting to graphql-subscription:95a2d0a0-e2a1-47d2-b9c4-a305e9532f41: {:result=>{"data"=>{"payload"=>{"value"=>400}}}, :more=>true}
|
|
79
|
-
GraphqlChannel transmitting {"result"=>{"data"=>{"payload"=>{"value"=>400}}}, "more"=>true} (via streamed from graphql-subscription:95a2d0a0-e2a1-47d2-b9c4-a305e9532f41)
|
|
80
|
-
Finished "/cable/" [WebSocket] for 127.0.0.1 at 2018-09-29 14:31:36 -0400
|
|
81
|
-
GraphqlChannel stopped streaming from graphql-subscription:95a2d0a0-e2a1-47d2-b9c4-a305e9532f41
|
|
82
|
-
GraphqlChannel stopped streaming from graphql-event::payload:id:updates-2
|
|
83
|
-
-----------------------------------------------------------
|
|
84
|
-
ActionCableSubscriptionsTest: test_it_handles_subscriptions
|
|
85
|
-
-----------------------------------------------------------
|
|
86
|
-
Started GET "/" for 127.0.0.1 at 2018-09-29 14:31:58 -0400
|
|
87
|
-
Processing by PagesController#show as HTML
|
|
88
|
-
Rendering pages/show.html within layouts/application
|
|
89
|
-
Rendered pages/show.html within layouts/application (1.2ms)
|
|
90
|
-
Completed 200 OK in 244ms (Views: 241.4ms)
|
|
91
|
-
Started GET "/assets/application-03569c14ba2ebaf689cf2b8eecd6aba17af7402d872a3eca6c4ec8fac4eb31e9.js" for 127.0.0.1 at 2018-09-29 14:31:58 -0400
|
|
92
|
-
Started GET "/cable" for 127.0.0.1 at 2018-09-29 14:31:58 -0400
|
|
93
|
-
Started GET "/cable/" [WebSocket] for 127.0.0.1 at 2018-09-29 14:31:58 -0400
|
|
94
|
-
Successfully upgraded to WebSocket (REQUEST_METHOD: GET, HTTP_CONNECTION: Upgrade, HTTP_UPGRADE: websocket)
|
|
95
|
-
GraphqlChannel is transmitting the subscription confirmation
|
|
96
|
-
GraphqlChannel is transmitting the subscription confirmation
|
|
97
|
-
GraphqlChannel#execute({"query"=>"subscription($id: ID!) { payload(id: $id) { value } }", "variables"=>{"id"=>"updates-1"}})
|
|
98
|
-
GraphqlChannel transmitting {:result=>{"data"=>{}}, :more=>true}
|
|
99
|
-
GraphqlChannel#execute({"query"=>"subscription($id: ID!) { payload(id: $id) { value } }", "variables"=>{"id"=>"updates-2"}})
|
|
100
|
-
GraphqlChannel transmitting {:result=>{"data"=>{}}, :more=>true}
|
|
101
|
-
GraphqlChannel is streaming from graphql-subscription:2b19317b-9279-4b20-95fc-adee4a81161b
|
|
102
|
-
GraphqlChannel is streaming from graphql-event::payload:id:updates-1
|
|
103
|
-
GraphqlChannel is streaming from graphql-subscription:5f944467-ccfa-4765-9b4a-3bccb29b0b6b
|
|
104
|
-
GraphqlChannel is streaming from graphql-event::payload:id:updates-2
|
|
105
|
-
GraphqlChannel#make_trigger({"id"=>"updates-1", "value"=>1})
|
|
106
|
-
[ActionCable] Broadcasting to graphql-event::payload:id:updates-1: "{\"__gid__\":\"Z2lkOi8vZHVtbXkvR3JhcGhxbENoYW5uZWw6OkV4YW1wbGVQYXlsb2FkLzE\"}"
|
|
107
|
-
[ActionCable] Broadcasting to graphql-subscription:2b19317b-9279-4b20-95fc-adee4a81161b: {:result=>{"data"=>{"payload"=>{"value"=>1}}}, :more=>true}
|
|
108
|
-
GraphqlChannel transmitting {"result"=>{"data"=>{"payload"=>{"value"=>1}}}, "more"=>true} (via streamed from graphql-subscription:2b19317b-9279-4b20-95fc-adee4a81161b)
|
|
109
|
-
GraphqlChannel#make_trigger({"id"=>"updates-1", "value"=>2})
|
|
110
|
-
[ActionCable] Broadcasting to graphql-event::payload:id:updates-1: "{\"__gid__\":\"Z2lkOi8vZHVtbXkvR3JhcGhxbENoYW5uZWw6OkV4YW1wbGVQYXlsb2FkLzI\"}"
|
|
111
|
-
[ActionCable] Broadcasting to graphql-subscription:2b19317b-9279-4b20-95fc-adee4a81161b: {:result=>{"data"=>{"payload"=>{"value"=>2}}}, :more=>true}
|
|
112
|
-
GraphqlChannel transmitting {"result"=>{"data"=>{"payload"=>{"value"=>2}}}, "more"=>true} (via streamed from graphql-subscription:2b19317b-9279-4b20-95fc-adee4a81161b)
|
|
113
|
-
GraphqlChannel#make_trigger({"id"=>"updates-1", "value"=>3})
|
|
114
|
-
[ActionCable] Broadcasting to graphql-event::payload:id:updates-1: "{\"__gid__\":\"Z2lkOi8vZHVtbXkvR3JhcGhxbENoYW5uZWw6OkV4YW1wbGVQYXlsb2FkLzM\"}"
|
|
115
|
-
[ActionCable] Broadcasting to graphql-subscription:2b19317b-9279-4b20-95fc-adee4a81161b: {:result=>{"data"=>{"payload"=>{"value"=>3}}}, :more=>true}
|
|
116
|
-
GraphqlChannel transmitting {"result"=>{"data"=>{"payload"=>{"value"=>3}}}, "more"=>true} (via streamed from graphql-subscription:2b19317b-9279-4b20-95fc-adee4a81161b)
|
|
117
|
-
GraphqlChannel#make_trigger({"id"=>"updates-2", "value"=>1})
|
|
118
|
-
[ActionCable] Broadcasting to graphql-event::payload:id:updates-2: "{\"__gid__\":\"Z2lkOi8vZHVtbXkvR3JhcGhxbENoYW5uZWw6OkV4YW1wbGVQYXlsb2FkLzE\"}"
|
|
119
|
-
[ActionCable] Broadcasting to graphql-subscription:5f944467-ccfa-4765-9b4a-3bccb29b0b6b: {:result=>{"data"=>{"payload"=>{"value"=>1}}}, :more=>true}
|
|
120
|
-
GraphqlChannel transmitting {"result"=>{"data"=>{"payload"=>{"value"=>1}}}, "more"=>true} (via streamed from graphql-subscription:5f944467-ccfa-4765-9b4a-3bccb29b0b6b)
|
|
121
|
-
GraphqlChannel#make_trigger({"id"=>"updates-2", "value"=>2})
|
|
122
|
-
[ActionCable] Broadcasting to graphql-event::payload:id:updates-2: "{\"__gid__\":\"Z2lkOi8vZHVtbXkvR3JhcGhxbENoYW5uZWw6OkV4YW1wbGVQYXlsb2FkLzI\"}"
|
|
123
|
-
[ActionCable] Broadcasting to graphql-subscription:5f944467-ccfa-4765-9b4a-3bccb29b0b6b: {:result=>{"data"=>{"payload"=>{"value"=>2}}}, :more=>true}
|
|
124
|
-
GraphqlChannel transmitting {"result"=>{"data"=>{"payload"=>{"value"=>2}}}, "more"=>true} (via streamed from graphql-subscription:5f944467-ccfa-4765-9b4a-3bccb29b0b6b)
|
|
125
|
-
Unsubscribing from channel: {"channel":"GraphqlChannel","id":"166269a7cac"}
|
|
126
|
-
GraphqlChannel stopped streaming from graphql-subscription:2b19317b-9279-4b20-95fc-adee4a81161b
|
|
127
|
-
GraphqlChannel stopped streaming from graphql-event::payload:id:updates-1
|
|
128
|
-
Could not execute command from ({"command"=>"message", "identifier"=>"{\"channel\":\"GraphqlChannel\",\"id\":\"166269a7cac\"}", "data"=>"{\"id\":\"updates-1\",\"value\":4,\"action\":\"make_trigger\"}"}) [RuntimeError - Unable to find subscription with identifier: {"channel":"GraphqlChannel","id":"166269a7cac"}]: /Users/rmosolgo/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/actioncable-5.2.1/lib/action_cable/connection/subscriptions.rb:78:in `find' | /Users/rmosolgo/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/actioncable-5.2.1/lib/action_cable/connection/subscriptions.rb:55:in `perform_action' | /Users/rmosolgo/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/actioncable-5.2.1/lib/action_cable/connection/subscriptions.rb:19:in `execute_command' | /Users/rmosolgo/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/actioncable-5.2.1/lib/action_cable/connection/base.rb:87:in `dispatch_websocket_message' | /Users/rmosolgo/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/actioncable-5.2.1/lib/action_cable/server/worker.rb:60:in `block in invoke'
|
|
129
|
-
GraphqlChannel#make_trigger({"id"=>"updates-2", "value"=>3})
|
|
130
|
-
[ActionCable] Broadcasting to graphql-event::payload:id:updates-2: "{\"__gid__\":\"Z2lkOi8vZHVtbXkvR3JhcGhxbENoYW5uZWw6OkV4YW1wbGVQYXlsb2FkLzM\"}"
|
|
131
|
-
[ActionCable] Broadcasting to graphql-subscription:5f944467-ccfa-4765-9b4a-3bccb29b0b6b: {:result=>{"data"=>{"payload"=>{"value"=>3}}}, :more=>true}
|
|
132
|
-
GraphqlChannel transmitting {"result"=>{"data"=>{"payload"=>{"value"=>3}}}, "more"=>true} (via streamed from graphql-subscription:5f944467-ccfa-4765-9b4a-3bccb29b0b6b)
|
|
133
|
-
GraphqlChannel#make_trigger({"id"=>"updates-2", "value"=>4})
|
|
134
|
-
[ActionCable] Broadcasting to graphql-event::payload:id:updates-2: "4x"
|
|
135
|
-
[ActionCable] Broadcasting to graphql-subscription:5f944467-ccfa-4765-9b4a-3bccb29b0b6b: {:result=>{"data"=>{"payload"=>{"value"=>400}}}, :more=>true}
|
|
136
|
-
GraphqlChannel transmitting {"result"=>{"data"=>{"payload"=>{"value"=>400}}}, "more"=>true} (via streamed from graphql-subscription:5f944467-ccfa-4765-9b4a-3bccb29b0b6b)
|
|
137
|
-
Finished "/cable/" [WebSocket] for 127.0.0.1 at 2018-09-29 14:32:00 -0400
|
|
138
|
-
GraphqlChannel stopped streaming from graphql-subscription:5f944467-ccfa-4765-9b4a-3bccb29b0b6b
|
|
139
|
-
GraphqlChannel stopped streaming from graphql-event::payload:id:updates-2
|
|
140
|
-
-----------------------------------------------------------
|
|
141
|
-
ActionCableSubscriptionsTest: test_it_handles_subscriptions
|
|
142
|
-
-----------------------------------------------------------
|
|
143
|
-
Started GET "/" for 127.0.0.1 at 2018-10-05 11:46:22 -0400
|
|
144
|
-
Processing by PagesController#show as HTML
|
|
145
|
-
Rendering pages/show.html within layouts/application
|
|
146
|
-
Rendered pages/show.html within layouts/application (1.7ms)
|
|
147
|
-
Completed 200 OK in 254ms (Views: 251.5ms)
|
|
148
|
-
Started GET "/assets/application-03569c14ba2ebaf689cf2b8eecd6aba17af7402d872a3eca6c4ec8fac4eb31e9.js" for 127.0.0.1 at 2018-10-05 11:46:22 -0400
|
|
149
|
-
Started GET "/cable" for 127.0.0.1 at 2018-10-05 11:46:22 -0400
|
|
150
|
-
Started GET "/cable/" [WebSocket] for 127.0.0.1 at 2018-10-05 11:46:22 -0400
|
|
151
|
-
Successfully upgraded to WebSocket (REQUEST_METHOD: GET, HTTP_CONNECTION: Upgrade, HTTP_UPGRADE: websocket)
|
|
152
|
-
GraphqlChannel is transmitting the subscription confirmation
|
|
153
|
-
GraphqlChannel is transmitting the subscription confirmation
|
|
154
|
-
GraphqlChannel#execute({"query"=>"subscription($id: ID!) { payload(id: $id) { value } }", "variables"=>{"id"=>"updates-2"}})
|
|
155
|
-
GraphqlChannel#execute({"query"=>"subscription($id: ID!) { payload(id: $id) { value } }", "variables"=>{"id"=>"updates-1"}})
|
|
156
|
-
GraphqlChannel transmitting {:result=>{"data"=>nil}, :more=>true}
|
|
157
|
-
GraphqlChannel transmitting {:result=>{"data"=>nil}, :more=>true}
|
|
158
|
-
GraphqlChannel is streaming from graphql-subscription:6da90bd0-cd94-41db-bf3e-760e37b2873f
|
|
159
|
-
GraphqlChannel is streaming from graphql-subscription:c781954b-7b9a-4742-9f9c-69b869d85fad
|
|
160
|
-
GraphqlChannel is streaming from graphql-event::payload:id:updates-2
|
|
161
|
-
GraphqlChannel is streaming from graphql-event::payload:id:updates-1
|
|
162
|
-
GraphqlChannel#make_trigger({"id"=>"updates-1", "value"=>1})
|
|
163
|
-
[ActionCable] Broadcasting to graphql-event::payload:id:updates-1: "{\"__gid__\":\"Z2lkOi8vZHVtbXkvR3JhcGhxbENoYW5uZWw6OkV4YW1wbGVQYXlsb2FkLzE\"}"
|
|
164
|
-
[ActionCable] Broadcasting to graphql-subscription:6da90bd0-cd94-41db-bf3e-760e37b2873f: {:result=>{"data"=>{"payload"=>{"value"=>1}}}, :more=>true}
|
|
165
|
-
GraphqlChannel transmitting {"result"=>{"data"=>{"payload"=>{"value"=>1}}}, "more"=>true} (via streamed from graphql-subscription:6da90bd0-cd94-41db-bf3e-760e37b2873f)
|
|
166
|
-
GraphqlChannel#make_trigger({"id"=>"updates-1", "value"=>2})
|
|
167
|
-
[ActionCable] Broadcasting to graphql-event::payload:id:updates-1: "{\"__gid__\":\"Z2lkOi8vZHVtbXkvR3JhcGhxbENoYW5uZWw6OkV4YW1wbGVQYXlsb2FkLzI\"}"
|
|
168
|
-
[ActionCable] Broadcasting to graphql-subscription:6da90bd0-cd94-41db-bf3e-760e37b2873f: {:result=>{"data"=>{"payload"=>{"value"=>2}}}, :more=>true}
|
|
169
|
-
GraphqlChannel transmitting {"result"=>{"data"=>{"payload"=>{"value"=>2}}}, "more"=>true} (via streamed from graphql-subscription:6da90bd0-cd94-41db-bf3e-760e37b2873f)
|
|
170
|
-
GraphqlChannel#make_trigger({"id"=>"updates-1", "value"=>3})
|
|
171
|
-
[ActionCable] Broadcasting to graphql-event::payload:id:updates-1: "{\"__gid__\":\"Z2lkOi8vZHVtbXkvR3JhcGhxbENoYW5uZWw6OkV4YW1wbGVQYXlsb2FkLzM\"}"
|
|
172
|
-
[ActionCable] Broadcasting to graphql-subscription:6da90bd0-cd94-41db-bf3e-760e37b2873f: {:result=>{"data"=>{"payload"=>{"value"=>3}}}, :more=>true}
|
|
173
|
-
GraphqlChannel transmitting {"result"=>{"data"=>{"payload"=>{"value"=>3}}}, "more"=>true} (via streamed from graphql-subscription:6da90bd0-cd94-41db-bf3e-760e37b2873f)
|
|
174
|
-
GraphqlChannel#make_trigger({"id"=>"updates-2", "value"=>1})
|
|
175
|
-
[ActionCable] Broadcasting to graphql-event::payload:id:updates-2: "{\"__gid__\":\"Z2lkOi8vZHVtbXkvR3JhcGhxbENoYW5uZWw6OkV4YW1wbGVQYXlsb2FkLzE\"}"
|
|
176
|
-
[ActionCable] Broadcasting to graphql-subscription:c781954b-7b9a-4742-9f9c-69b869d85fad: {:result=>{"data"=>{"payload"=>{"value"=>1}}}, :more=>true}
|
|
177
|
-
GraphqlChannel transmitting {"result"=>{"data"=>{"payload"=>{"value"=>1}}}, "more"=>true} (via streamed from graphql-subscription:c781954b-7b9a-4742-9f9c-69b869d85fad)
|
|
178
|
-
GraphqlChannel#make_trigger({"id"=>"updates-2", "value"=>2})
|
|
179
|
-
[ActionCable] Broadcasting to graphql-event::payload:id:updates-2: "{\"__gid__\":\"Z2lkOi8vZHVtbXkvR3JhcGhxbENoYW5uZWw6OkV4YW1wbGVQYXlsb2FkLzI\"}"
|
|
180
|
-
[ActionCable] Broadcasting to graphql-subscription:c781954b-7b9a-4742-9f9c-69b869d85fad: {:result=>{"data"=>{"payload"=>{"value"=>2}}}, :more=>true}
|
|
181
|
-
GraphqlChannel transmitting {"result"=>{"data"=>{"payload"=>{"value"=>2}}}, "more"=>true} (via streamed from graphql-subscription:c781954b-7b9a-4742-9f9c-69b869d85fad)
|
|
182
|
-
Unsubscribing from channel: {"channel":"GraphqlChannel","id":"16644e966c2"}
|
|
183
|
-
GraphqlChannel stopped streaming from graphql-subscription:6da90bd0-cd94-41db-bf3e-760e37b2873f
|
|
184
|
-
GraphqlChannel stopped streaming from graphql-event::payload:id:updates-1
|
|
185
|
-
Could not execute command from ({"command"=>"message", "identifier"=>"{\"channel\":\"GraphqlChannel\",\"id\":\"16644e966c2\"}", "data"=>"{\"id\":\"updates-1\",\"value\":4,\"action\":\"make_trigger\"}"}) [RuntimeError - Unable to find subscription with identifier: {"channel":"GraphqlChannel","id":"16644e966c2"}]: /Users/rmosolgo/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/actioncable-5.2.1/lib/action_cable/connection/subscriptions.rb:78:in `find' | /Users/rmosolgo/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/actioncable-5.2.1/lib/action_cable/connection/subscriptions.rb:55:in `perform_action' | /Users/rmosolgo/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/actioncable-5.2.1/lib/action_cable/connection/subscriptions.rb:19:in `execute_command' | /Users/rmosolgo/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/actioncable-5.2.1/lib/action_cable/connection/base.rb:87:in `dispatch_websocket_message' | /Users/rmosolgo/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/actioncable-5.2.1/lib/action_cable/server/worker.rb:60:in `block in invoke'
|
|
186
|
-
GraphqlChannel#make_trigger({"id"=>"updates-2", "value"=>3})
|
|
187
|
-
[ActionCable] Broadcasting to graphql-event::payload:id:updates-2: "{\"__gid__\":\"Z2lkOi8vZHVtbXkvR3JhcGhxbENoYW5uZWw6OkV4YW1wbGVQYXlsb2FkLzM\"}"
|
|
188
|
-
[ActionCable] Broadcasting to graphql-subscription:c781954b-7b9a-4742-9f9c-69b869d85fad: {:result=>{"data"=>{"payload"=>{"value"=>3}}}, :more=>true}
|
|
189
|
-
GraphqlChannel transmitting {"result"=>{"data"=>{"payload"=>{"value"=>3}}}, "more"=>true} (via streamed from graphql-subscription:c781954b-7b9a-4742-9f9c-69b869d85fad)
|
|
190
|
-
GraphqlChannel#make_trigger({"id"=>"updates-2", "value"=>4})
|
|
191
|
-
[ActionCable] Broadcasting to graphql-event::payload:id:updates-2: "4x"
|
|
192
|
-
[ActionCable] Broadcasting to graphql-subscription:c781954b-7b9a-4742-9f9c-69b869d85fad: {:result=>{"data"=>{"payload"=>{"value"=>400}}}, :more=>true}
|
|
193
|
-
GraphqlChannel transmitting {"result"=>{"data"=>{"payload"=>{"value"=>400}}}, "more"=>true} (via streamed from graphql-subscription:c781954b-7b9a-4742-9f9c-69b869d85fad)
|
|
194
|
-
Finished "/cable/" [WebSocket] for 127.0.0.1 at 2018-10-05 11:46:25 -0400
|
|
195
|
-
GraphqlChannel stopped streaming from graphql-subscription:c781954b-7b9a-4742-9f9c-69b869d85fad
|
|
196
|
-
GraphqlChannel stopped streaming from graphql-event::payload:id:updates-2
|
|
197
|
-
-----------------------------------------------------------
|
|
198
|
-
ActionCableSubscriptionsTest: test_it_handles_subscriptions
|
|
199
|
-
-----------------------------------------------------------
|