graphql_rails 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/graphql_rails/router/route.rb +4 -3
- data/lib/graphql_rails/router/schema_builder.rb +1 -1
- data/lib/graphql_rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cab765aab19541db1305cc192a5654bb804e16ddfd9d32f7bbb6ea79e6b679c4
|
4
|
+
data.tar.gz: f76c484cc5205b4e3a16cefe7d5a8a4fbac9f87eec54895316df35fc33e076a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac72dfbe00f7586cff4f194c7e6efb4d78e3dc25ba10e31dae92ea482b35a70ccfdf6eb87e8f57b147c88914cbda1dc39d31bba7313074f76d0f3f587e955d9b
|
7
|
+
data.tar.gz: 2008679abf3acc2874c1564db1ebf022892e23189240a7ca9602beab323748620661c19d39bd41ca8441104c01101409ff5cd196be62ff25fcfcc1c7bf835f4a
|
data/Gemfile.lock
CHANGED
@@ -8,9 +8,10 @@ module GraphqlRails
|
|
8
8
|
class Route
|
9
9
|
attr_reader :name, :module_name, :on, :relative_path
|
10
10
|
|
11
|
-
def initialize(name, to
|
11
|
+
def initialize(name, to: '', on:, **options)
|
12
12
|
@name = name.to_s.camelize(:lower)
|
13
13
|
@module_name = options[:module].to_s
|
14
|
+
@function = options[:function]
|
14
15
|
@relative_path = to
|
15
16
|
@on = on.to_sym
|
16
17
|
end
|
@@ -28,8 +29,8 @@ module GraphqlRails
|
|
28
29
|
on == :member
|
29
30
|
end
|
30
31
|
|
31
|
-
def
|
32
|
-
|
32
|
+
def function
|
33
|
+
@function ||= Controller::ControllerFunction.from_route(self)
|
33
34
|
end
|
34
35
|
end
|
35
36
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: graphql_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Povilas Jurčys
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-05-
|
11
|
+
date: 2018-05-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: graphql
|