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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8af2cbcd7af17b150c39bac5ca03d7ca8641442bc7b14cdad5f1f27c56372eb4
4
- data.tar.gz: 8d5b24b65839d5a006e394e1c8923b18664a3b4f577acbbccff9dfd20afa080d
3
+ metadata.gz: f8b89f177d02c073eedb6222ef8caf94defdbde92c973490bb497175ab9ab9c3
4
+ data.tar.gz: 4075e692e0ecb7e3416fc2b64c630e6f203b392e39cb1ade162092056d07422a
5
5
  SHA512:
6
- metadata.gz: 805b643515818f9c3639f31d7db0d52974f19026bb82d54830cd69f44183ac44f95ace20d0bb7778b755faa6b128825257e180b58cc4445dfac622f9776b1258
7
- data.tar.gz: 170c72bed0fe4499cd81614c8a879550fe6ac0baee0f3dbe8fcc815a6b6b65dab4bf2224f5485fbc1a6283ce02a0aba3ebe6c97d87cb83bb13fb9967e83a3019
6
+ metadata.gz: e032c47e83be49a405a772d6d4db361ce260fb172995067d245d039f413efb4a88479f9492cd63f94d45fb9acd6d24cccff5e0bc36bbadf2b3e663798c6b2f3d
7
+ data.tar.gz: 1d9b2f0c1e049f07d3e8c3882a8d27e10be2a292e5462c1080f771d2c3a99f8bc990773fbc95b9bbcf9d1edd953ea689ce3ddd7a5bbc10ca7b7dd676f6d2b3f1
data/.DS_Store CHANGED
Binary file
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- graphql_scaffold_fan (0.0.3)
4
+ graphql_scaffold_fan (0.1.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # DemoGem
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]/demo_gem.
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
- lib = File.expand_path("../lib", __FILE__)
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 Generators
3
- module Graphqlscaffold
2
+ module GraphqlScaffold
3
+ module Generators
4
4
  class MutationGenerator < Rails::Generators::NamedBase
5
5
  source_root File.expand_path('../templates', __dir__)
6
6
 
@@ -1,6 +1,6 @@
1
1
  require 'rails/generators/base'
2
- module Generators
3
- module Graphqlscaffold
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.concat('/base_object.rb')
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GraphqlScaffoldFan
4
- VERSION = "0.0.3"
4
+ VERSION = "0.1.2"
5
5
  end
@@ -2,9 +2,7 @@
2
2
 
3
3
  require_relative "graphql_scaffold_fan/version"
4
4
 
5
- module GraphqlScaffoldFan
6
-
7
-
5
+ module GraphqlScaffold
8
6
  class Error < StandardError; end
9
7
  # Your code goes here...
10
8
  end
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.0.3
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/graphqlscaffold/mutation_generator.rb
30
- - lib/generators/graphqlscaffold/type_generator.rb
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