graphql_scaffold_fan 0.0.3 → 0.1.2
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 +4 -4
- data/.DS_Store +0 -0
- data/Gemfile.lock +1 -1
- data/README.md +2 -2
- data/bin/console +0 -0
- data/bin/setup +0 -0
- data/graphql_scaffold_fan.gemspec +2 -4
- data/lib/generators/{graphqlscaffold → graphql_scaffold}/mutation_generator.rb +2 -2
- data/lib/generators/{graphqlscaffold → graphql_scaffold}/type_generator.rb +3 -3
- data/lib/graphql_scaffold_fan/version.rb +1 -1
- data/lib/graphql_scaffold_fan.rb +1 -3
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f8b89f177d02c073eedb6222ef8caf94defdbde92c973490bb497175ab9ab9c3
|
|
4
|
+
data.tar.gz: 4075e692e0ecb7e3416fc2b64c630e6f203b392e39cb1ade162092056d07422a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e032c47e83be49a405a772d6d4db361ce260fb172995067d245d039f413efb4a88479f9492cd63f94d45fb9acd6d24cccff5e0bc36bbadf2b3e663798c6b2f3d
|
|
7
|
+
data.tar.gz: 1d9b2f0c1e049f07d3e8c3882a8d27e10be2a292e5462c1080f771d2c3a99f8bc990773fbc95b9bbcf9d1edd953ea689ce3ddd7a5bbc10ca7b7dd676f6d2b3f1
|
data/.DS_Store
CHANGED
|
Binary file
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# GraphqlScaffoldFan
|
|
2
2
|
|
|
3
3
|
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/graphql_scaffold_fan`. To experiment with that code, run `bin/console` for an interactive prompt.
|
|
4
4
|
|
|
@@ -32,4 +32,4 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
|
32
32
|
|
|
33
33
|
## Contributing
|
|
34
34
|
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/
|
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/graphql_scaffold_fan.
|
data/bin/console
CHANGED
|
File without changes
|
data/bin/setup
CHANGED
|
File without changes
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
5
|
-
require "graphql_scaffold_fan/version"
|
|
3
|
+
require_relative "lib/graphql_scaffold_fan/version"
|
|
6
4
|
|
|
7
5
|
Gem::Specification.new do |spec|
|
|
8
6
|
spec.name = "graphql_scaffold_fan"
|
|
@@ -28,4 +26,4 @@ Gem::Specification.new do |spec|
|
|
|
28
26
|
|
|
29
27
|
# For more information and examples about making a new gem, checkout our
|
|
30
28
|
# guide at: https://bundler.io/guides/creating_gem.html
|
|
31
|
-
end
|
|
29
|
+
end
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
require 'rails/generators/base'
|
|
2
|
-
module
|
|
3
|
-
module
|
|
2
|
+
module GraphqlScaffold
|
|
3
|
+
module Generators
|
|
4
4
|
class TypeGenerator < Rails::Generators::NamedBase
|
|
5
5
|
source_root File.expand_path('../templates', __dir__)
|
|
6
6
|
|
|
@@ -58,7 +58,7 @@ module Generators
|
|
|
58
58
|
def create_base_object_file
|
|
59
59
|
base_object_dir_path = 'app/graphql/types'
|
|
60
60
|
generator_dir_path = base_object_dir_path
|
|
61
|
-
generator_path = generator_dir_path
|
|
61
|
+
generator_path = generator_dir_path + '/base_object.rb'
|
|
62
62
|
|
|
63
63
|
FileUtils.mkdir_p(base_object_dir_path) unless File.exist?(base_object_dir_path)
|
|
64
64
|
FileUtils.mkdir_p(generator_dir_path) unless File.exist?(generator_dir_path)
|
data/lib/graphql_scaffold_fan.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: graphql_scaffold_fan
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Fan Zhang
|
|
@@ -26,8 +26,8 @@ files:
|
|
|
26
26
|
- bin/console
|
|
27
27
|
- bin/setup
|
|
28
28
|
- graphql_scaffold_fan.gemspec
|
|
29
|
-
- lib/generators/
|
|
30
|
-
- lib/generators/
|
|
29
|
+
- lib/generators/graphql_scaffold/mutation_generator.rb
|
|
30
|
+
- lib/generators/graphql_scaffold/type_generator.rb
|
|
31
31
|
- lib/generators/templates/admin_filter.haml
|
|
32
32
|
- lib/generators/templates/base_object.haml
|
|
33
33
|
- lib/generators/templates/mutation_create.haml
|