souls 1.10.3 → 1.10.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 14e521ddee7dd8bfe1c3f2a52d9e81131f687d617bba1ae774a2d04dd8dd7043
4
- data.tar.gz: aa0bcf7a53ca8eb1e8ed50b64c64ad9b1643f735c800b81ea3b090591ce16365
3
+ metadata.gz: fa3fe61c44cb919c4731ecb35fd9e2fc422f86c2efc13312d9ae203a974b0e26
4
+ data.tar.gz: 226e7c128cc9e98c2b7e7eea175fa2cdf254f19259c3da9b100114b6e5a1c151
5
5
  SHA512:
6
- metadata.gz: '0249a764c37f6e4eb0acab137078b8ad1f22e9e8072b3d15b18522d0b86378a13d8ed71bbc26d652ff645695af6f20087f71db52b4fd9469b429df99bc4e1999'
7
- data.tar.gz: 2a8c0509d45cd2063392a67f5775d9c80db71a792f03854005cede0b2e681331d43dcb7d85bd2a3b8a00987385dcbd083ac8281bf19ed5b71fb8ed54a7d7f3c9
6
+ metadata.gz: 304d803a63448d7ecd6e0206af364ee0493deade19a8af37e35b67884c0f7f186a00be6b89788fef792fe2333b05592c4bb9a66649387044a5c386018929fb76
7
+ data.tar.gz: fda8c84bb73bd2d58899db5a045e510a0d94775fee5acdea174528808d6b170a62aab4d17c8c27eb740158ef5d30c9906cca7bdffab60b28d141fa9fc155b14c
data/CODE_OF_CONDUCT.md CHANGED
@@ -61,7 +61,7 @@ representative at an online or offline event.
61
61
 
62
62
  Instances of abusive, harassing, or otherwise unacceptable behavior may be
63
63
  reported to the community leaders responsible for enforcement at
64
- [INSERT CONTACT METHOD].
64
+ conduct@elsoul.nl.
65
65
  All complaints will be reviewed and investigated promptly and fairly.
66
66
 
67
67
  All community leaders are obligated to respect the privacy and security of the
data/README.md CHANGED
@@ -115,13 +115,6 @@ Or install it yourself as:
115
115
  And Create Your APP
116
116
 
117
117
  $ souls new app_name
118
- $ cd apps/api/app_name
119
- $ souls s
120
-
121
- Check your GraphQL PlayGround
122
-
123
- [localhost:4000/playground](localhost:4000/playground)
124
-
125
118
 
126
119
 
127
120
  ## Development
@@ -6,10 +6,9 @@ module Souls
6
6
  singularized_class_name = class_name.underscore.singularize
7
7
  file_dir = "./app/graphql/mutations/managers/#{singularized_class_name}_manager"
8
8
  file_path = "#{file_dir}/#{options[:mutation]}.rb"
9
- puts(file_path)
10
9
 
11
10
  FileUtils.rm_f(file_path)
12
- puts(Paint % ["Created file! : %{white_text}", :green, { white_text: [file_path.to_s, :white] }])
11
+ puts(Paint % ["Deleted file! : %{white_text}", :yellow, { white_text: [file_path.to_s, :white] }])
13
12
  Souls::Delete.new.invoke(:manager_rbs, [singularized_class_name], { mutation: options[:mutation] })
14
13
  Souls::Delete.new.invoke(:rspec_manager, [singularized_class_name], { mutation: options[:mutation] })
15
14
  file_path
@@ -7,8 +7,6 @@ module Souls
7
7
  FileUtils.rm_f(file_path)
8
8
  puts(Paint % ["Deleted file! : %{white_text}", :yellow, { white_text: [file_path.to_s, :white] }])
9
9
  file_path
10
- rescue StandardError => e
11
- raise(StandardError, e)
12
10
  end
13
11
  end
14
12
  end
@@ -95,12 +95,12 @@ module Souls
95
95
  project_id = Souls.configuration.project_id
96
96
  system(
97
97
  "
98
- gcloud services vpc-peerings connect \
99
- --service=servicenetworking.googleapis.com \
100
- --ranges=#{app_name}-ip-range \
101
- --network=#{app_name} \
102
- --project=#{project_id}
103
- "
98
+ gcloud services vpc-peerings connect \
99
+ --service=servicenetworking.googleapis.com \
100
+ --ranges=#{app_name}-ip-range \
101
+ --network=#{app_name} \
102
+ --project=#{project_id}
103
+ "
104
104
  )
105
105
  end
106
106
 
@@ -50,7 +50,7 @@ module Souls
50
50
  File.open(file_path, "w") do |f|
51
51
  f.write(<<~TEXT)
52
52
  module Types
53
- class #{class_name.camelize}Type < BaseObject
53
+ class #{class_name.camelize}Type < Souls::Types::BaseObject
54
54
  field :response, String, null: true
55
55
  end
56
56
  end
@@ -3,6 +3,7 @@ module Souls
3
3
  desc "manager [MANAGER_NAME]", "Generate GraphQL Mutation Template"
4
4
  method_option :mutation, aliases: "--mutation", required: true, desc: "Mutation File Name"
5
5
  def manager(class_name)
6
+ singularized_class_name = class_name.underscore.singularize
6
7
  create_manager(class_name, options[:mutation])
7
8
  Souls::Generate.new.invoke(:manager_rbs, [singularized_class_name], { mutation: options[:mutation] })
8
9
  Souls::Generate.new.invoke(:rspec_manager, [singularized_class_name], { mutation: options[:mutation] })
@@ -4,9 +4,9 @@ module Souls
4
4
  method_option :mutation, aliases: "--mutation", required: true, desc: "Mutation File Name"
5
5
  def rspec_manager(class_name)
6
6
  singularized_class_name = class_name.underscore.singularize
7
- file_dir = "./spec/managers/"
7
+ file_dir = "./spec/managers/#{singularized_class_name}_manager"
8
8
  FileUtils.mkdir_p(file_dir) unless Dir.exist?(file_dir)
9
- file_path = "./spec/mutations/managers/#{singularized_class_name}/#{options[:mutation]}_spec.rb"
9
+ file_path = "#{file_dir}/#{options[:mutation]}_spec.rb"
10
10
  return "RspecManager already exist! #{file_path}" if File.exist?(file_path)
11
11
 
12
12
  File.open(file_path, "w") do |f|
@@ -22,7 +22,7 @@ module Souls
22
22
  File.open(file_path, "w") do |f|
23
23
  f.write(<<~TEXT)
24
24
  module Types
25
- class #{class_name.camelize}Type < BaseObject
25
+ class #{class_name.camelize}Type < Souls::Types::BaseObject
26
26
  implements GraphQL::Types::Relay::Node
27
27
 
28
28
  TEXT
data/lib/souls/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Souls
2
- VERSION = "1.10.3".freeze
2
+ VERSION = "1.10.7".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 1.10.3
1
+ 1.10.7
@@ -1 +1 @@
1
- 1.10.3
1
+ 1.10.7
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: 1.10.3
4
+ version: 1.10.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - POPPIN-FUMI
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2021-12-07 00:00:00.000000000 Z
13
+ date: 2021-12-09 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport