souls 1.10.4 → 1.10.5

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: fa6220fd948d6e29a5a3bce93ee00a152dde8067a73f7e9159495fbb16fd5bcd
4
- data.tar.gz: 122f1c303883c441d911de3fa0cbe067cf7b703d1afa1e54dcdd90f9708531f5
3
+ metadata.gz: 616d59bdb706c95e5de0bcec5be98e1cc38056792cfa4dac6300682098349b00
4
+ data.tar.gz: d7b99caf0541cf9ab2c18e3156919f45868e22441c39f46010f4133bfa8aa508
5
5
  SHA512:
6
- metadata.gz: 5b12467ee5c2c662e0ea007d73d4518b940f70721ff4da637bb4dcef19ca182f2d71b0e6da38f578567c50e549c5b433fff1967d788d222653a07ae3b0a28a72
7
- data.tar.gz: 88e8cd539c7e1192354e4d272d6822bdc65bd2a3da558c4984d254c08f8fc2c600f001911855d7586abe66c6246a99e94006047f166d7dd0095edd2854e36868
6
+ metadata.gz: 3fd43cb4be583133cfe917ff72fb6e0c8f0c9beb813abecf3dd4bdc8ee8ad9a6b0c5eb2022fc6f232edea19f48f43877594f619739092c16f4a947cfd1b56daa
7
+ data.tar.gz: 6ec51693fb7737dbebc445a2ab954a925ad152b910183313c1795e57127d5f08febfc47bb7d7cd5f84a8c37c914d8589b81aa6a0e16885bc5add73bad12d0932
@@ -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
@@ -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|
data/lib/souls/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Souls
2
- VERSION = "1.10.4".freeze
2
+ VERSION = "1.10.5".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 1.10.4
1
+ 1.10.5
@@ -1 +1 @@
1
- 1.10.4
1
+ 1.10.5
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.4
4
+ version: 1.10.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - POPPIN-FUMI