souls 0.71.7 → 1.0.3
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 +4 -4
- data/README.md +1 -1
- data/lib/souls/cli/create/index.rb +1 -1
- data/lib/souls/cli/db/index.rb +4 -4
- data/lib/souls/utils/index.rb +1 -1
- data/lib/souls/version.rb +1 -1
- data/lib/souls/versions/.souls_api_version +1 -1
- data/lib/souls/versions/.souls_worker_version +1 -1
- metadata +2 -2
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/README.md
CHANGED
@@ -12,7 +12,7 @@
|
|
12
12
|
<a aria-label="Downloads Number" href="https://rubygems.org/gems/souls">
|
13
13
|
<img alt="" src="https://badgen.net/rubygems/dt/souls">
|
14
14
|
</a>
|
15
|
-
<a aria-label="License" href="https://github.com/elsoul/souls/blob/master/LICENSE">
|
15
|
+
<a aria-label="License" href="https://github.com/elsoul/souls/blob/master/LICENSE.txt">
|
16
16
|
<img alt="" src="https://badgen.net/badge/license/Apache/blue">
|
17
17
|
</a>
|
18
18
|
</p>
|
@@ -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")
|
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
|
data/lib/souls/utils/index.rb
CHANGED
@@ -119,7 +119,7 @@ module Souls
|
|
119
119
|
else
|
120
120
|
get_columns_num(class_name: class_name)
|
121
121
|
end
|
122
|
-
relation_params = cols.select { |
|
122
|
+
relation_params = cols.select { |n| n[:column_name].match?(/_id$/) }
|
123
123
|
user_check =
|
124
124
|
relation_params.map do |param|
|
125
125
|
param[:column_name] == "user_id"
|
data/lib/souls/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
1.0.3
|
@@ -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: 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
|