graphql-active_record 0.1.4 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/graphql-active-record.gemspec +2 -2
- data/graphql-active_record-0.1.1.gem +0 -0
- data/graphql-active_record-0.1.2.gem +0 -0
- data/graphql-active_record-0.1.3.gem +0 -0
- data/graphql-active_record-0.1.4.gem +0 -0
- data/lib/graphql/{active_record.rb → active_record_extension.rb} +2 -2
- data/lib/graphql/active_record_extension/version.rb +5 -0
- metadata +7 -3
- data/lib/graphql/active_record/version.rb +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ddd18445547cbfe82e3526ffbcac6bb8e609ff8a
|
4
|
+
data.tar.gz: 2bace41aa51e44c9c8d3725123f6324557b9aa41
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2060751108d72871b669d620a5169069f40581777df3a5c5314dd16329f7b99d8ac229741d3f896f5bbb9cc2528d38f4f05cf542613ffd6f0a816b11f303fac
|
7
|
+
data.tar.gz: b6adb77476fbf746558d22e5629730507568a0dce4fc9f3253de624e3027c12f9f52d6765baa17902a979936082a2c476046b01760fa649b60469d602324a3e0
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
lib = File.expand_path('../lib', __FILE__)
|
3
3
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require 'graphql/
|
4
|
+
require 'graphql/active_record_extension/version'
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "graphql-active_record"
|
8
|
-
spec.version = Graphql::
|
8
|
+
spec.version = Graphql::ActiveRecordExtension::VERSION
|
9
9
|
spec.authors = ["Brett Jurgens"]
|
10
10
|
spec.email = ["brett@brettjurgens.com"]
|
11
11
|
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,13 +1,13 @@
|
|
1
1
|
require 'active_record'
|
2
2
|
require 'graphql'
|
3
3
|
|
4
|
-
require "graphql/
|
4
|
+
require "graphql/active_record_extension/version"
|
5
5
|
|
6
6
|
##
|
7
7
|
# This class allows GraphQL to translate ActiveRecord objects into
|
8
8
|
# GraphQL objects easily and does an auto-include to make it
|
9
9
|
# somewhat more efficient (hopefully)
|
10
|
-
class GraphQL::
|
10
|
+
class GraphQL::ActiveRecordExtension < ::GraphQL::Field
|
11
11
|
def initialize(model:, type:, use_uuid: false)
|
12
12
|
@model = model
|
13
13
|
@use_uuid = use_uuid
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: graphql-active_record
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brett Jurgens
|
@@ -96,8 +96,12 @@ files:
|
|
96
96
|
- bin/console
|
97
97
|
- bin/setup
|
98
98
|
- graphql-active-record.gemspec
|
99
|
-
-
|
100
|
-
-
|
99
|
+
- graphql-active_record-0.1.1.gem
|
100
|
+
- graphql-active_record-0.1.2.gem
|
101
|
+
- graphql-active_record-0.1.3.gem
|
102
|
+
- graphql-active_record-0.1.4.gem
|
103
|
+
- lib/graphql/active_record_extension.rb
|
104
|
+
- lib/graphql/active_record_extension/version.rb
|
101
105
|
homepage: http://github.com/brettjurgens/graphql-active-record
|
102
106
|
licenses:
|
103
107
|
- MIT
|