souls 0.71.4 → 1.0.0

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: 3da971c3f76a283d4a81f8a4319cc7f64c5cdd9d9c5c2bdc0e859deae66c9c73
4
- data.tar.gz: 196039d967ba3094a7313efd78d48150d4d8151a873475262c019b6eadc0749c
3
+ metadata.gz: 802c671c18062437af5878d02916f480ff2492c09bf92abfe23e9e96aa96acac
4
+ data.tar.gz: b234b857bf8e99649404103e3d5880459524dd9b32213982f4e146bfaee98c0e
5
5
  SHA512:
6
- metadata.gz: 94f7f3a5768042f6ea3e66bf2dcf48ee24b9f1289fbe757bc8d4c81f18d01a6bf3f9c9f4a783617dc33d8e8593a994c397fe7b7b6c54dcd7d73c87c13718ea2e
7
- data.tar.gz: 5e475d71483c8276b593e91c353bce495304672e9566887cf826b6a85e4f0f7f8aae17a5ac4256cebfc7b423987da2238c1a0584abdcdbb7f05433edf6e5adb7
6
+ metadata.gz: 39a59330870e6db812c0c6313bb8e3c32d130aac558dbd05de08e9437ac788b97b22b4f75c2e33e591b17f5106f8d0e95522c882e390d482fd3826a4334491c6
7
+ data.tar.gz: 3597458e06f3cf5e31574eebfb4f27516e897765dc7420ef888997b7820852f02d921dcc45eb3f560fe9bf5e982632aaf7598e89eef5372fd1628a886af64c1b
@@ -39,7 +39,7 @@ module Souls
39
39
  f.each_line do |line|
40
40
  case line.strip.to_s
41
41
  when "end"
42
- ["app", "db", "constants", "app.rb"].each do |path|
42
+ ["app", "db/seeds.rb", "constants", "app.rb"].each do |path|
43
43
  new_line.write(" check \"apps/#{worker_name}/#{path}\"\n")
44
44
  end
45
45
  new_line.write("end\n")
@@ -8,7 +8,7 @@ module Souls
8
8
  new_cols = Souls.get_columns_num(class_name: singularized_class_name)
9
9
  end
10
10
  dir_name = "./sig/api/app/graphql/mutations/base/#{singularized_class_name}"
11
- new_file_path = "tmp/create_mutation.rbs"
11
+ new_file_path = "config/create_mutation.rbs"
12
12
  file_path = "#{dir_name}/create_#{singularized_class_name}.rbs"
13
13
  argument = false
14
14
  resolve = false
@@ -68,9 +68,12 @@ module Souls
68
68
  desc "update_mutation [CLASS_NAME]", "Update GraphQL Type from schema.rb"
69
69
  def update_mutation_rbs(class_name)
70
70
  singularized_class_name = class_name.singularize.underscore
71
- new_cols = Souls.get_columns_num(class_name: singularized_class_name)
71
+ new_cols = ""
72
+ Dir.chdir(Souls.get_api_path.to_s) do
73
+ new_cols = Souls.get_columns_num(class_name: singularized_class_name)
74
+ end
72
75
  dir_name = "./sig/api/app/graphql/mutations/base/#{singularized_class_name}"
73
- new_file_path = "tmp/update_mutation.rbs"
76
+ new_file_path = "config/update_mutation.rbs"
74
77
  file_path = "#{dir_name}/update_#{singularized_class_name}.rbs"
75
78
  argument = false
76
79
  resolve = false
@@ -3,9 +3,12 @@ module Souls
3
3
  desc "type_rbs [CLASS_NAME]", "Update GraphQL Type from schema.rb"
4
4
  def type_rbs(class_name)
5
5
  singularized_class_name = class_name.singularize.underscore
6
- new_cols = Souls.get_columns_num(class_name: singularized_class_name)
6
+ new_cols = ""
7
+ Dir.chdir(Souls.get_api_path.to_s) do
8
+ new_cols = Souls.get_columns_num(class_name: singularized_class_name)
9
+ end
7
10
  dir_name = "./sig/api/app/graphql/types"
8
- new_file_path = "tmp/create_type.rbs"
11
+ new_file_path = "config/create_type.rbs"
9
12
  file_path = "#{dir_name}/#{singularized_class_name}_type.rbs"
10
13
  argument = false
11
14
  File.open(file_path) do |f|
@@ -16,7 +19,7 @@ module Souls
16
19
  if line.include?(" def self.edge_type:")
17
20
  new_line.write(line)
18
21
  argument = false
19
- elsif line.include?("def self.argument:") && !argument
22
+ elsif line.include?("def self.field:") && !argument
20
23
  new_cols.each_with_index do |col, i|
21
24
  type = Souls.get_type(col[:type])
22
25
  type = "[#{type}]" if col[:array]
data/lib/souls/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Souls
2
- VERSION = "0.71.4".freeze
2
+ VERSION = "1.0.0".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 0.50.4
1
+ 1.0.0
@@ -1 +1 @@
1
- 0.50.4
1
+ 1.0.0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: souls
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.71.4
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - POPPIN-FUMI