souls 1.0.2 → 1.0.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a7d87eb7e9546fca5f0218c4b1d29e8cf59a54d508f86bc4ea0abb38fdb9fa19
|
4
|
+
data.tar.gz: 8f5deed85db24bb17525a5982030b0ea7d1f0651d351defa91412a94928ed6ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2adb57e00daa7f8545e1a17464ad3b87c4fb7ca715ed5a13696bb53933d8bcbb22e3b7d28462b4cbd4119689960dc9da6f74b6eb6bb661664493e2ad95a5d1ab
|
7
|
+
data.tar.gz: a430ba855bd3dbc2c084d6026b0cad2649ed9e16a5691b5b8f6fef8b3c871b34eaae3702590376657fdb2f8a6ae3c4ab2d66ff1aee29df1326f75a05e4b17fe5
|
data/lib/souls/cli/db/index.rb
CHANGED
@@ -65,6 +65,10 @@ module Souls
|
|
65
65
|
def create_migration(class_name)
|
66
66
|
pluralized_class_name = class_name.underscore.pluralize
|
67
67
|
singularized_class_name = class_name.underscore.singularize
|
68
|
+
Souls::DB.new.invoke(:model, [singularized_class_name], {})
|
69
|
+
Souls::DB.new.invoke(:rspec_model, [singularized_class_name], {})
|
70
|
+
Souls::DB.new.invoke(:model_rbs, [singularized_class_name], {})
|
71
|
+
puts(Paint["Created file! : ", :green])
|
68
72
|
system("rake db:create_migration NAME=create_#{pluralized_class_name}")
|
69
73
|
file_path = Dir["db/migrate/*create_#{pluralized_class_name}.rb"].first
|
70
74
|
File.open(file_path, "w") do |f|
|
@@ -80,10 +84,6 @@ module Souls
|
|
80
84
|
end
|
81
85
|
TEXT
|
82
86
|
end
|
83
|
-
Souls::DB.new.invoke(:create_migration_rbs, [pluralized_class_name], {})
|
84
|
-
Souls::DB.new.invoke(:model, [singularized_class_name], {})
|
85
|
-
Souls::DB.new.invoke(:rspec_model, [singularized_class_name], {})
|
86
|
-
Souls::DB.new.invoke(:model_rbs, [singularized_class_name], {})
|
87
87
|
rescue Thor::Error => e
|
88
88
|
raise(Thor::Error, e)
|
89
89
|
end
|
@@ -8,9 +8,7 @@ module Souls
|
|
8
8
|
system("foreman start -f Procfile.dev")
|
9
9
|
end
|
10
10
|
else
|
11
|
-
current_dir = FileUtils.pwd.split("/").last
|
12
11
|
system("foreman start -f Procfile.dev")
|
13
|
-
puts("GraphQL Playground is running on\n\nhttp://localhost:4000/playground") if current_dir == "api"
|
14
12
|
end
|
15
13
|
end
|
16
14
|
end
|
data/lib/souls/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.3
|
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.3
|
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.0.
|
4
|
+
version: 1.0.3
|
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-10-
|
13
|
+
date: 2021-10-13 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|