souls 0.22.7 → 0.23.1
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/Gemfile.lock +3 -1
- data/README.md +1 -1
- data/exe/souls +60 -48
- data/lib/souls.rb +5 -1
- data/lib/souls/generate/connection.rb +1 -1
- data/lib/souls/generate/edge.rb +1 -1
- data/lib/souls/generate/model.rb +1 -1
- data/lib/souls/generate/mutation.rb +1 -1
- data/lib/souls/generate/policy.rb +1 -1
- data/lib/souls/generate/query.rb +2 -2
- data/lib/souls/generate/resolver.rb +1 -1
- data/lib/souls/generate/rspec_factory.rb +1 -1
- data/lib/souls/generate/rspec_model.rb +1 -1
- data/lib/souls/generate/rspec_mutation.rb +1 -1
- data/lib/souls/generate/rspec_policy.rb +1 -1
- data/lib/souls/generate/rspec_query.rb +1 -1
- data/lib/souls/generate/rspec_resolver.rb +1 -1
- data/lib/souls/generate/type.rb +1 -1
- data/lib/souls/init.rb +1 -1
- data/lib/souls/version.rb +1 -1
- data/souls.gemspec +3 -1
- metadata +32 -118
- data/hoy/.env.sample +0 -7
- data/hoy/.gitignore +0 -32
- data/hoy/.irbrc +0 -1
- data/hoy/.rspec +0 -3
- data/hoy/.rubocop.yml +0 -132
- data/hoy/.ruby-version +0 -1
- data/hoy/CODE_OF_CONDUCT.md +0 -74
- data/hoy/Dockerfile +0 -16
- data/hoy/Dockerfile.dev +0 -17
- data/hoy/Gemfile +0 -50
- data/hoy/Gemfile.lock +0 -407
- data/hoy/LICENSE.txt +0 -67
- data/hoy/Procfile +0 -2
- data/hoy/Procfile.dev +0 -2
- data/hoy/README.md +0 -61
- data/hoy/Rakefile +0 -5
- data/hoy/app.rb +0 -116
- data/hoy/app/graphql/mutations/.keep +0 -0
- data/hoy/app/graphql/mutations/base/article/create_article.rb +0 -30
- data/hoy/app/graphql/mutations/base/article/delete_article.rb +0 -17
- data/hoy/app/graphql/mutations/base/article/destroy_delete_article.rb +0 -17
- data/hoy/app/graphql/mutations/base/article/update_article.rb +0 -30
- data/hoy/app/graphql/mutations/base/article_category/create_article_category.rb +0 -21
- data/hoy/app/graphql/mutations/base/article_category/delete_article_category.rb +0 -17
- data/hoy/app/graphql/mutations/base/article_category/destroy_delete_article_category.rb +0 -17
- data/hoy/app/graphql/mutations/base/article_category/update_article_category.rb +0 -21
- data/hoy/app/graphql/mutations/base/user/create_user.rb +0 -31
- data/hoy/app/graphql/mutations/base/user/delete_user.rb +0 -17
- data/hoy/app/graphql/mutations/base/user/destroy_delete_user.rb +0 -17
- data/hoy/app/graphql/mutations/base/user/update_user.rb +0 -31
- data/hoy/app/graphql/mutations/base_mutation.rb +0 -33
- data/hoy/app/graphql/mutations/user_manager/add_user_role.rb +0 -22
- data/hoy/app/graphql/mutations/user_manager/remove_user_role.rb +0 -22
- data/hoy/app/graphql/mutations/user_manager/sign_in_user.rb +0 -45
- data/hoy/app/graphql/queries/article.rb +0 -13
- data/hoy/app/graphql/queries/article_categories.rb +0 -11
- data/hoy/app/graphql/queries/article_category.rb +0 -13
- data/hoy/app/graphql/queries/articles.rb +0 -11
- data/hoy/app/graphql/queries/base_query.rb +0 -9
- data/hoy/app/graphql/queries/me.rb +0 -11
- data/hoy/app/graphql/queries/user.rb +0 -13
- data/hoy/app/graphql/queries/users.rb +0 -11
- data/hoy/app/graphql/resolvers/article_category_search.rb +0 -41
- data/hoy/app/graphql/resolvers/article_search.rb +0 -57
- data/hoy/app/graphql/resolvers/base.rb +0 -17
- data/hoy/app/graphql/resolvers/user_search.rb +0 -63
- data/hoy/app/graphql/souls_api_schema.rb +0 -43
- data/hoy/app/graphql/types/.keep +0 -0
- data/hoy/app/graphql/types/article_category_type.rb +0 -12
- data/hoy/app/graphql/types/article_type.rb +0 -30
- data/hoy/app/graphql/types/base/base_argument.rb +0 -4
- data/hoy/app/graphql/types/base/base_enum.rb +0 -4
- data/hoy/app/graphql/types/base/base_field.rb +0 -5
- data/hoy/app/graphql/types/base/base_input_object.rb +0 -5
- data/hoy/app/graphql/types/base/base_interface.rb +0 -7
- data/hoy/app/graphql/types/base/base_object.rb +0 -6
- data/hoy/app/graphql/types/base/base_scalar.rb +0 -4
- data/hoy/app/graphql/types/base/base_union.rb +0 -4
- data/hoy/app/graphql/types/base/mutation_type.rb +0 -16
- data/hoy/app/graphql/types/base/query_type.rb +0 -18
- data/hoy/app/graphql/types/connections/article_category_connection.rb +0 -3
- data/hoy/app/graphql/types/connections/article_connection.rb +0 -3
- data/hoy/app/graphql/types/connections/base_connection.rb +0 -14
- data/hoy/app/graphql/types/connections/user_connection.rb +0 -3
- data/hoy/app/graphql/types/edges/article_category_edge.rb +0 -5
- data/hoy/app/graphql/types/edges/article_edge.rb +0 -5
- data/hoy/app/graphql/types/edges/base_edge.rb +0 -4
- data/hoy/app/graphql/types/edges/user_edge.rb +0 -5
- data/hoy/app/graphql/types/user_type.rb +0 -22
- data/hoy/app/models/article.rb +0 -4
- data/hoy/app/models/article_category.rb +0 -3
- data/hoy/app/models/user.rb +0 -19
- data/hoy/app/policies/application_policy.rb +0 -40
- data/hoy/app/policies/article_category_policy.rb +0 -31
- data/hoy/app/policies/article_policy.rb +0 -31
- data/hoy/app/policies/user_policy.rb +0 -35
- data/hoy/app/utils/association_loader.rb +0 -50
- data/hoy/app/utils/firebase_id_token.rb +0 -4
- data/hoy/app/utils/json_web_token.rb +0 -13
- data/hoy/app/utils/record_loader.rb +0 -10
- data/hoy/app/utils/souls_helper.rb +0 -96
- data/hoy/cloudbuild.yml +0 -32
- data/hoy/config.ru +0 -17
- data/hoy/config/database.yml +0 -33
- data/hoy/config/souls.rb +0 -4
- data/hoy/constants/areas.rb +0 -71
- data/hoy/constants/column_name_ja.rb +0 -27
- data/hoy/db/migrate/20200006095538_create_users.rb +0 -30
- data/hoy/db/migrate/20200712180236_create_article_categories.rb +0 -12
- data/hoy/db/migrate/20200714215521_create_articles.rb +0 -22
- data/hoy/db/schema.rb +0 -78
- data/hoy/db/seeds.rb +0 -44
- data/hoy/github/workflows/delivery.yml +0 -81
- data/hoy/log/.keep +0 -0
- data/hoy/spec/factories/article_categories.rb +0 -9
- data/hoy/spec/factories/articles.rb +0 -17
- data/hoy/spec/factories/users.rb +0 -23
- data/hoy/spec/models/article_category_spec.rb +0 -7
- data/hoy/spec/models/article_spec.rb +0 -7
- data/hoy/spec/models/user_spec.rb +0 -7
- data/hoy/spec/mutations/base/article_category_spec.rb +0 -46
- data/hoy/spec/mutations/base/article_spec.rb +0 -70
- data/hoy/spec/mutations/base/user_spec.rb +0 -76
- data/hoy/spec/policies/article_category_policy_spec.rb +0 -25
- data/hoy/spec/policies/article_policy_spec.rb +0 -25
- data/hoy/spec/policies/user_policy_spec.rb +0 -5
- data/hoy/spec/queries/article_category_spec.rb +0 -39
- data/hoy/spec/queries/article_spec.rb +0 -53
- data/hoy/spec/queries/user_spec.rb +0 -59
- data/hoy/spec/resolvers/article_category_search_spec.rb +0 -54
- data/hoy/spec/resolvers/article_search_spec.rb +0 -68
- data/hoy/spec/resolvers/user_search_spec.rb +0 -74
- data/hoy/spec/spec_helper.rb +0 -110
- data/hoy/tmp/.keep +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b7ede2f9f0e65eff670fa361f97f071801652603cebb06feba2647596a9b8c59
|
4
|
+
data.tar.gz: 04dbe65c847e1c2012e95eb2b2052205a24c815e75c7dee911bfa5141d22eb47
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7e15233b1799f795a1dbda4ac192665acb20453ac5a9a00eb3a1cbb76bb41bc071e5ff0b87415e069c5e4941713ea30a3fd3dad9bb74ec65694b1465c78efdf
|
7
|
+
data.tar.gz: 76bb5d7d973f9a2235cabe5e16bc27ba65bdc4b972129e3f3c295cd97c4e5deb18db44b80dfba45e09cf275feeec91c3a800857ca632e44d342e3db7875637f4
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
data/exe/souls
CHANGED
@@ -1,16 +1,19 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
require "souls"
|
3
3
|
begin
|
4
|
-
require "./config/souls" unless ARGV[0] == "new" || ARGV[0] == "i" || ARGV[0] == "-v"
|
4
|
+
require "./config/souls" unless ARGV[0] == "new" || ARGV[0] == "i" || ARGV[0] == "-v" || ARGV[0] == "deploy"
|
5
5
|
rescue
|
6
6
|
puts "Make sure you are at SOULs APP directory!"
|
7
7
|
end
|
8
8
|
begin
|
9
|
-
|
9
|
+
souls_command = ARGV[0]
|
10
|
+
case souls_command
|
10
11
|
when "new"
|
11
12
|
STRAINS = ["api", "worker", "console", "admin", "media"]
|
12
|
-
|
13
|
-
|
13
|
+
app_name = ARGV[1]
|
14
|
+
if app_name.nil?
|
15
|
+
puts Paint["you need to specify your app name", :red]
|
16
|
+
puts Paint["`souls new app_name`", :yellow]
|
14
17
|
exit
|
15
18
|
end
|
16
19
|
first_message = Paint % [
|
@@ -28,16 +31,15 @@ begin
|
|
28
31
|
strain = STDIN.gets.chomp.to_i
|
29
32
|
case strain
|
30
33
|
when 1, 2
|
31
|
-
Souls::Init.download_souls app_name:
|
32
|
-
Souls::Init.initial_config_init app_name:
|
34
|
+
Souls::Init.download_souls app_name: app_name, repository_name: "souls_#{STRAINS[strain.to_i - 1]}"
|
35
|
+
Souls::Init.initial_config_init app_name: app_name, strain: STRAINS[strain.to_i - 1]
|
33
36
|
else
|
34
|
-
puts "Coming Soon..."
|
37
|
+
puts Paint["Coming Soon...", :blue]
|
35
38
|
end
|
36
|
-
|
37
39
|
when "s", "server"
|
38
40
|
strain = Souls.configuration.strain
|
39
41
|
case strain
|
40
|
-
when "media", "admin"
|
42
|
+
when "media", "admin", "console"
|
41
43
|
system "yarn dev"
|
42
44
|
when "worker"
|
43
45
|
system "bundle exec puma -p 3000 -e development"
|
@@ -50,7 +52,8 @@ begin
|
|
50
52
|
when "media", "admin"
|
51
53
|
system "yarn dev"
|
52
54
|
else
|
53
|
-
|
55
|
+
rack_env = ARGV[1]
|
56
|
+
case rack_env
|
54
57
|
when "RACK_ENV=production"
|
55
58
|
system "RACK_ENV=production bundle exec irb"
|
56
59
|
else
|
@@ -58,20 +61,23 @@ begin
|
|
58
61
|
end
|
59
62
|
end
|
60
63
|
when "i", "infra"
|
61
|
-
|
64
|
+
send_method = ARGV[1]
|
65
|
+
Souls.send send_method
|
62
66
|
when "gcloud"
|
63
|
-
|
67
|
+
send_method = ARGV[1]
|
68
|
+
Souls::Gcloud.send send_method
|
64
69
|
when "-v", "--version"
|
65
|
-
puts Souls::VERSION
|
70
|
+
puts Paint[Souls::VERSION, :white]
|
66
71
|
when "gem:update", "gemfile:update"
|
67
72
|
status = Paint["Checking for updates...", :yellow]
|
68
|
-
Whirly.start spinner: "clock",
|
73
|
+
Whirly.start spinner: "clock", interval: 1000, stop: "🎉" do
|
69
74
|
Whirly.status = status
|
70
75
|
Souls.update_gemfile
|
71
76
|
Whirly.status = "Done!"
|
72
77
|
end
|
73
78
|
when "add"
|
74
|
-
|
79
|
+
graphql_class = ARGV[1]
|
80
|
+
case graphql_class
|
75
81
|
when "mutation"
|
76
82
|
Souls::Init.add_mutation class_name: "user", file_name: "hoi"
|
77
83
|
when "type"
|
@@ -83,82 +89,89 @@ begin
|
|
83
89
|
when "rspec_mutation"
|
84
90
|
Souls::Init.add_rspec_mutation class_name: "user", file_name: "hoi"
|
85
91
|
else
|
86
|
-
puts "
|
92
|
+
puts Paint["Wrong Argument!", :red]
|
87
93
|
end
|
88
94
|
when "g", "generate"
|
89
|
-
|
95
|
+
graphql_class = ARGV[1]
|
96
|
+
class_name = ARGV[2]
|
97
|
+
case graphql_class
|
90
98
|
when "test_dir"
|
91
99
|
Souls::Generate.test_dir
|
92
100
|
when "model"
|
93
|
-
Souls::Generate.model class_name:
|
101
|
+
Souls::Generate.model class_name: class_name
|
94
102
|
when "mutation"
|
95
|
-
Souls::Generate.mutation class_name:
|
103
|
+
Souls::Generate.mutation class_name: class_name
|
96
104
|
when "query"
|
97
|
-
Souls::Generate.query class_name:
|
105
|
+
Souls::Generate.query class_name: class_name
|
98
106
|
when "type"
|
99
|
-
Souls::Generate.type class_name:
|
107
|
+
Souls::Generate.type class_name: class_name
|
100
108
|
when "edge"
|
101
|
-
Souls::Generate.edge class_name:
|
109
|
+
Souls::Generate.edge class_name: class_name
|
102
110
|
when "connection"
|
103
|
-
Souls::Generate.connection class_name:
|
111
|
+
Souls::Generate.connection class_name: class_name
|
104
112
|
when "resolver"
|
105
|
-
Souls::Generate.resolver class_name:
|
113
|
+
Souls::Generate.resolver class_name: class_name
|
106
114
|
when "policy"
|
107
|
-
Souls::Generate.policy class_name:
|
115
|
+
Souls::Generate.policy class_name: class_name
|
108
116
|
when "rspec_factory"
|
109
|
-
Souls::Generate.rspec_factory class_name:
|
117
|
+
Souls::Generate.rspec_factory class_name: class_name
|
110
118
|
when "rspec_model"
|
111
|
-
Souls::Generate.rspec_model class_name:
|
119
|
+
Souls::Generate.rspec_model class_name: class_name
|
112
120
|
when "rspec_mutation"
|
113
|
-
Souls::Generate.rspec_mutation class_name:
|
121
|
+
Souls::Generate.rspec_mutation class_name: class_name
|
114
122
|
when "rspec_query"
|
115
|
-
Souls::Generate.rspec_query class_name:
|
123
|
+
Souls::Generate.rspec_query class_name: class_name
|
116
124
|
when "rspec_resolver"
|
117
|
-
Souls::Generate.rspec_resolver class_name:
|
125
|
+
Souls::Generate.rspec_resolver class_name: class_name
|
118
126
|
when "rspec_policy"
|
119
|
-
Souls::Generate.rspec_policy class_name:
|
127
|
+
Souls::Generate.rspec_policy class_name: class_name
|
120
128
|
when "node_type"
|
121
|
-
Souls::Generate.node_type class_name:
|
129
|
+
Souls::Generate.node_type class_name: class_name
|
122
130
|
when "job"
|
123
|
-
Souls::Generate.job class_name:
|
131
|
+
Souls::Generate.job class_name: class_name
|
124
132
|
when "migrate"
|
125
|
-
Souls::Generate.single_migrate class_name:
|
133
|
+
Souls::Generate.single_migrate class_name: class_name
|
126
134
|
when "migrate_all"
|
127
135
|
Souls::Generate.migrate_all
|
128
136
|
when "migration"
|
129
|
-
|
130
|
-
system "rake db:create_migration NAME=create_#{
|
137
|
+
pluralized_class_name = class_name.underscore.pluralize
|
138
|
+
system "rake db:create_migration NAME=create_#{pluralized_class_name}"
|
131
139
|
when "update"
|
132
|
-
Souls::Generate.update_delete class_name:
|
133
|
-
Souls::Generate.single_migrate class_name:
|
140
|
+
Souls::Generate.update_delete class_name: class_name
|
141
|
+
Souls::Generate.single_migrate class_name: class_name
|
134
142
|
else
|
135
143
|
"SOULs!"
|
136
144
|
end
|
137
145
|
when "d"
|
138
|
-
|
146
|
+
class_name = ARGV[1]
|
147
|
+
Souls::Generate.delete_all class_name: class_name
|
139
148
|
when "db:create"
|
140
|
-
|
149
|
+
rack_env = ARGV[1]
|
150
|
+
case rack_env
|
141
151
|
when "RACK_ENV=production"
|
142
152
|
system "rake db:create RACK_ENV=production"
|
143
153
|
else
|
144
154
|
system "rake db:create && rake db:create RACK_ENV=test"
|
145
155
|
end
|
146
156
|
when "db:migrate"
|
147
|
-
|
157
|
+
rack_env = ARGV[1]
|
158
|
+
case rack_env
|
148
159
|
when "RACK_ENV=production"
|
149
160
|
system "rake db:migrate RACK_ENV=production"
|
150
161
|
else
|
151
162
|
system "rake db:migrate && rake db:migrate RACK_ENV=test"
|
152
163
|
end
|
153
164
|
when "db:seed"
|
154
|
-
|
165
|
+
rack_env = ARGV[1]
|
166
|
+
case rack_env
|
155
167
|
when "RACK_ENV=production"
|
156
168
|
system "rake db:seed RACK_ENV=production"
|
157
169
|
else
|
158
170
|
system "rake db:seed"
|
159
171
|
end
|
160
172
|
when "db:migrate:reset"
|
161
|
-
|
173
|
+
rack_env = ARGV[1]
|
174
|
+
case rack_env
|
162
175
|
when "RACK_ENV=production"
|
163
176
|
system "rake db:migrate:reset RACK_ENV=production DISABLE_DATABASE_ENVIRONMENT_CHECK=1"
|
164
177
|
else
|
@@ -183,12 +196,11 @@ begin
|
|
183
196
|
system "docker build . -t souls -f Dockerfile.dev"
|
184
197
|
system "docker run --rm --env-file .env -p 3000:3000 souls:latest"
|
185
198
|
when "deploy"
|
186
|
-
|
199
|
+
project_id = Souls.configuration.project_id
|
200
|
+
system "gcloud builds submit --config=cloudbuild.yml --project #{project_id}"
|
187
201
|
else
|
188
|
-
puts "Welcome to SOULs!"
|
202
|
+
puts Paint["Welcome to SOULs!", :green]
|
189
203
|
end
|
190
204
|
rescue StandardError => error
|
191
|
-
puts error
|
192
|
-
puts "Thank you!!"
|
193
|
-
puts "SOULs"
|
205
|
+
puts Paint[error, :red]
|
194
206
|
end
|
data/lib/souls.rb
CHANGED
@@ -96,7 +96,11 @@ module Souls
|
|
96
96
|
updated_gems << (gem[0]).to_s
|
97
97
|
updated_gem_versions << data["version"]
|
98
98
|
system "gem update #{gem[0]}"
|
99
|
-
console_log <<
|
99
|
+
console_log << if gem[0] == "souls"
|
100
|
+
"#{gem[0]} v#{gem[1]} → v#{data["version"]}\n\nSOULs Doc: https://souls.elsoul.nl"
|
101
|
+
else
|
102
|
+
"#{gem[0]} v#{gem[1]} → v#{data["version"]}"
|
103
|
+
end
|
100
104
|
end
|
101
105
|
end
|
102
106
|
{
|
data/lib/souls/generate/edge.rb
CHANGED
data/lib/souls/generate/model.rb
CHANGED
@@ -270,7 +270,7 @@ module Souls
|
|
270
270
|
update_mutation(class_name: singularized_class_name)
|
271
271
|
delete_mutation(class_name: singularized_class_name)
|
272
272
|
destroy_delete_mutation(class_name: singularized_class_name)
|
273
|
-
puts "Created file! :
|
273
|
+
puts Paint % ["Created file! : %{white_text}", :green, { white_text: [file_path.to_s, :white] }]
|
274
274
|
file_path
|
275
275
|
rescue StandardError => e
|
276
276
|
raise StandardError, e
|
data/lib/souls/generate/query.rb
CHANGED
@@ -20,7 +20,7 @@ module Souls
|
|
20
20
|
end
|
21
21
|
EOS
|
22
22
|
end
|
23
|
-
puts "Created file! :
|
23
|
+
puts Paint % ["Created file! : %{white_text}", :green, { white_text: [file_path.to_s, :white] }]
|
24
24
|
file_path
|
25
25
|
rescue StandardError => e
|
26
26
|
raise StandardError, e
|
@@ -45,7 +45,7 @@ module Souls
|
|
45
45
|
end
|
46
46
|
end
|
47
47
|
EOS
|
48
|
-
puts "Created file! :
|
48
|
+
puts Paint % ["Created file! : %{white_text}", :green, { white_text: [file_path.to_s, :white] }]
|
49
49
|
file_path
|
50
50
|
rescue StandardError => e
|
51
51
|
raise StandardError, e
|
@@ -145,7 +145,7 @@ module Souls
|
|
145
145
|
resolver_after_params class_name: singularized_class_name
|
146
146
|
resolver_before_end class_name: singularized_class_name
|
147
147
|
resolver_end class_name: singularized_class_name
|
148
|
-
puts "Created file! :
|
148
|
+
puts Paint % ["Created file! : %{white_text}", :green, { white_text: [file_path.to_s, :white] }]
|
149
149
|
file_path
|
150
150
|
rescue StandardError => e
|
151
151
|
raise StandardError, e
|
@@ -58,7 +58,7 @@ module Souls
|
|
58
58
|
rspec_factory_head class_name: singularized_class_name
|
59
59
|
rspec_factory_params class_name: singularized_class_name
|
60
60
|
rspec_factory_end class_name: singularized_class_name
|
61
|
-
puts "Created file! :
|
61
|
+
puts Paint % ["Created file! : %{white_text}", :green, { white_text: [file_path.to_s, :white] }]
|
62
62
|
file_path
|
63
63
|
rescue StandardError => e
|
64
64
|
raise StandardError, e
|
@@ -243,7 +243,7 @@ module Souls
|
|
243
243
|
rspec_mutation_params class_name: singularized_class_name
|
244
244
|
rspec_mutation_params_response class_name: singularized_class_name
|
245
245
|
rspec_mutation_end class_name: singularized_class_name
|
246
|
-
puts "Created file! :
|
246
|
+
puts Paint % ["Created file! : %{white_text}", :green, { white_text: [file_path.to_s, :white] }]
|
247
247
|
file_path
|
248
248
|
rescue StandardError => e
|
249
249
|
raise StandardError, e
|
@@ -164,7 +164,7 @@ break
|
|
164
164
|
rspec_query_after_head class_name: singularized_class_name
|
165
165
|
rspec_query_params class_name: singularized_class_name
|
166
166
|
rspec_query_end class_name: singularized_class_name
|
167
|
-
puts "Created file! :
|
167
|
+
puts Paint % ["Created file! : %{white_text}", :green, { white_text: [file_path.to_s, :white] }]
|
168
168
|
file_path
|
169
169
|
rescue StandardError => e
|
170
170
|
raise StandardError, e
|
@@ -183,7 +183,7 @@ module Souls
|
|
183
183
|
rspec_resolver_after_head class_name: singularized_class_name
|
184
184
|
rspec_resolver_params class_name: singularized_class_name
|
185
185
|
rspec_resolver_end class_name: singularized_class_name
|
186
|
-
puts "Created file! :
|
186
|
+
puts Paint % ["Created file! : %{white_text}", :green, { white_text: [file_path.to_s, :white] }]
|
187
187
|
file_path
|
188
188
|
rescue StandardError => e
|
189
189
|
raise StandardError, e
|
data/lib/souls/generate/type.rb
CHANGED
@@ -60,7 +60,7 @@ module Souls
|
|
60
60
|
create_type_head class_name: singularized_class_name
|
61
61
|
create_type_params class_name: singularized_class_name
|
62
62
|
create_type_end class_name: singularized_class_name
|
63
|
-
puts "Created file! :
|
63
|
+
puts Paint % ["Created file! : %{white_text}", :green, { white_text: [file_path.to_s, :white] }]
|
64
64
|
file_path
|
65
65
|
rescue StandardError => e
|
66
66
|
raise StandardError, e
|
data/lib/souls/init.rb
CHANGED
@@ -49,7 +49,7 @@ module Souls
|
|
49
49
|
souls_ver = Paint["SOULs Version: #{Souls::VERSION}", :white]
|
50
50
|
puts souls_ver
|
51
51
|
puts line
|
52
|
-
cd = Paint["Easy to Run\n$ cd #{app_name}\n$ bundle\n$ souls s\nGo To : http://localhost:3000\n\nDoc: https://souls
|
52
|
+
cd = Paint["Easy to Run\n$ cd #{app_name}\n$ bundle\n$ souls s\nGo To : http://localhost:3000\n\nDoc: https://souls.elsoul.nl", :white]
|
53
53
|
puts cd
|
54
54
|
puts line
|
55
55
|
end
|
data/lib/souls/version.rb
CHANGED
data/souls.gemspec
CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
|
|
8
8
|
|
9
9
|
spec.summary = "SOULs is a Serverless Application Framework. SOULs has four strains, API, Worker, Console, Media, and can be used in combination according to the purpose. SOULs Backend GraphQL Ruby & Frontend Relay are Scalable and Easy to deploy to Google Cloud and Amazon Web Services"
|
10
10
|
spec.description = "SOULs is a Serverless Application Framework. SOULs has four strains, API, Worker, Console, Media, and can be used in combination according to the purpose. SOULs Backend GraphQL Ruby & Frontend Relay are Scalable and Easy to deploy to Google Cloud and Amazon Web Services"
|
11
|
-
spec.homepage = "https://
|
11
|
+
spec.homepage = "https://souls.elsoul.nl"
|
12
12
|
spec.license = "Apache-2.0"
|
13
13
|
spec.required_ruby_version = Gem::Requirement.new(">= 3.0.0")
|
14
14
|
|
@@ -24,4 +24,6 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.bindir = "exe"
|
25
25
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
26
26
|
spec.require_paths = ["lib"]
|
27
|
+
spec.add_runtime_dependency "paint", "2.2.1"
|
28
|
+
spec.add_runtime_dependency "whirly", "0.3.0"
|
27
29
|
end
|