graphiti 1.0.alpha.26 → 1.0.beta.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generators/graphiti/resource_generator.rb +2 -0
- data/lib/graphiti/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ca2321a8344025294b75fc03fdb42ee20481aed
|
4
|
+
data.tar.gz: 67f0452ff98f84d8e6af5c7226dd82c293a596f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61813ec5f5dfe12cf5c02f78db7ee3cdbef5e2ede47eb030ef0621b1f1bd0a17df890b4d5f8498e6be6653d67449e756945bc9eff747127b5fce1a3c26a69144
|
7
|
+
data.tar.gz: 40085d3ec88d517a8c0ed4623acfd0336aa6e44e5bba2a0f619d510d8778a0caf0f1afec1e9349f4f5798f3621a4bca88f5f2c3bf0762a12548087432b89af22
|
@@ -52,6 +52,7 @@ module Graphiti
|
|
52
52
|
def generate_application_resource
|
53
53
|
to = File.join('app/resources', class_path, "application_resource.rb")
|
54
54
|
template('application_resource.rb.erb', to)
|
55
|
+
require "#{::Rails.root}/#{to}"
|
55
56
|
end
|
56
57
|
|
57
58
|
def application_resource_defined?
|
@@ -82,6 +83,7 @@ module Graphiti
|
|
82
83
|
def generate_resource
|
83
84
|
to = File.join('app/resources', class_path, "#{file_name}_resource.rb")
|
84
85
|
template('resource.rb.erb', to)
|
86
|
+
require "#{::Rails.root}/#{to}"
|
85
87
|
end
|
86
88
|
|
87
89
|
def model_klass
|
data/lib/graphiti/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: graphiti
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.beta.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lee Richmond
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-09-
|
11
|
+
date: 2018-09-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jsonapi-serializable
|