souls 0.22.8 → 0.23.2

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.
Files changed (137) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +1 -1
  4. data/exe/souls +60 -48
  5. data/lib/souls.rb +5 -1
  6. data/lib/souls/generate/connection.rb +1 -1
  7. data/lib/souls/generate/edge.rb +1 -1
  8. data/lib/souls/generate/model.rb +1 -1
  9. data/lib/souls/generate/mutation.rb +1 -1
  10. data/lib/souls/generate/policy.rb +1 -1
  11. data/lib/souls/generate/query.rb +2 -2
  12. data/lib/souls/generate/resolver.rb +1 -1
  13. data/lib/souls/generate/rspec_factory.rb +1 -1
  14. data/lib/souls/generate/rspec_model.rb +1 -1
  15. data/lib/souls/generate/rspec_mutation.rb +1 -1
  16. data/lib/souls/generate/rspec_policy.rb +1 -1
  17. data/lib/souls/generate/rspec_query.rb +1 -1
  18. data/lib/souls/generate/rspec_resolver.rb +1 -1
  19. data/lib/souls/generate/type.rb +1 -1
  20. data/lib/souls/init.rb +1 -1
  21. data/lib/souls/version.rb +1 -1
  22. data/souls.gemspec +1 -1
  23. metadata +3 -117
  24. data/hoy/.env.sample +0 -7
  25. data/hoy/.gitignore +0 -32
  26. data/hoy/.irbrc +0 -1
  27. data/hoy/.rspec +0 -3
  28. data/hoy/.rubocop.yml +0 -132
  29. data/hoy/.ruby-version +0 -1
  30. data/hoy/CODE_OF_CONDUCT.md +0 -74
  31. data/hoy/Dockerfile +0 -16
  32. data/hoy/Dockerfile.dev +0 -17
  33. data/hoy/Gemfile +0 -50
  34. data/hoy/Gemfile.lock +0 -407
  35. data/hoy/LICENSE.txt +0 -67
  36. data/hoy/Procfile +0 -2
  37. data/hoy/Procfile.dev +0 -2
  38. data/hoy/README.md +0 -61
  39. data/hoy/Rakefile +0 -5
  40. data/hoy/app.rb +0 -116
  41. data/hoy/app/graphql/mutations/.keep +0 -0
  42. data/hoy/app/graphql/mutations/base/article/create_article.rb +0 -30
  43. data/hoy/app/graphql/mutations/base/article/delete_article.rb +0 -17
  44. data/hoy/app/graphql/mutations/base/article/destroy_delete_article.rb +0 -17
  45. data/hoy/app/graphql/mutations/base/article/update_article.rb +0 -30
  46. data/hoy/app/graphql/mutations/base/article_category/create_article_category.rb +0 -21
  47. data/hoy/app/graphql/mutations/base/article_category/delete_article_category.rb +0 -17
  48. data/hoy/app/graphql/mutations/base/article_category/destroy_delete_article_category.rb +0 -17
  49. data/hoy/app/graphql/mutations/base/article_category/update_article_category.rb +0 -21
  50. data/hoy/app/graphql/mutations/base/user/create_user.rb +0 -31
  51. data/hoy/app/graphql/mutations/base/user/delete_user.rb +0 -17
  52. data/hoy/app/graphql/mutations/base/user/destroy_delete_user.rb +0 -17
  53. data/hoy/app/graphql/mutations/base/user/update_user.rb +0 -31
  54. data/hoy/app/graphql/mutations/base_mutation.rb +0 -33
  55. data/hoy/app/graphql/mutations/user_manager/add_user_role.rb +0 -22
  56. data/hoy/app/graphql/mutations/user_manager/remove_user_role.rb +0 -22
  57. data/hoy/app/graphql/mutations/user_manager/sign_in_user.rb +0 -45
  58. data/hoy/app/graphql/queries/article.rb +0 -13
  59. data/hoy/app/graphql/queries/article_categories.rb +0 -11
  60. data/hoy/app/graphql/queries/article_category.rb +0 -13
  61. data/hoy/app/graphql/queries/articles.rb +0 -11
  62. data/hoy/app/graphql/queries/base_query.rb +0 -9
  63. data/hoy/app/graphql/queries/me.rb +0 -11
  64. data/hoy/app/graphql/queries/user.rb +0 -13
  65. data/hoy/app/graphql/queries/users.rb +0 -11
  66. data/hoy/app/graphql/resolvers/article_category_search.rb +0 -41
  67. data/hoy/app/graphql/resolvers/article_search.rb +0 -57
  68. data/hoy/app/graphql/resolvers/base.rb +0 -17
  69. data/hoy/app/graphql/resolvers/user_search.rb +0 -63
  70. data/hoy/app/graphql/souls_api_schema.rb +0 -43
  71. data/hoy/app/graphql/types/.keep +0 -0
  72. data/hoy/app/graphql/types/article_category_type.rb +0 -12
  73. data/hoy/app/graphql/types/article_type.rb +0 -30
  74. data/hoy/app/graphql/types/base/base_argument.rb +0 -4
  75. data/hoy/app/graphql/types/base/base_enum.rb +0 -4
  76. data/hoy/app/graphql/types/base/base_field.rb +0 -5
  77. data/hoy/app/graphql/types/base/base_input_object.rb +0 -5
  78. data/hoy/app/graphql/types/base/base_interface.rb +0 -7
  79. data/hoy/app/graphql/types/base/base_object.rb +0 -6
  80. data/hoy/app/graphql/types/base/base_scalar.rb +0 -4
  81. data/hoy/app/graphql/types/base/base_union.rb +0 -4
  82. data/hoy/app/graphql/types/base/mutation_type.rb +0 -16
  83. data/hoy/app/graphql/types/base/query_type.rb +0 -18
  84. data/hoy/app/graphql/types/connections/article_category_connection.rb +0 -3
  85. data/hoy/app/graphql/types/connections/article_connection.rb +0 -3
  86. data/hoy/app/graphql/types/connections/base_connection.rb +0 -14
  87. data/hoy/app/graphql/types/connections/user_connection.rb +0 -3
  88. data/hoy/app/graphql/types/edges/article_category_edge.rb +0 -5
  89. data/hoy/app/graphql/types/edges/article_edge.rb +0 -5
  90. data/hoy/app/graphql/types/edges/base_edge.rb +0 -4
  91. data/hoy/app/graphql/types/edges/user_edge.rb +0 -5
  92. data/hoy/app/graphql/types/user_type.rb +0 -22
  93. data/hoy/app/models/article.rb +0 -4
  94. data/hoy/app/models/article_category.rb +0 -3
  95. data/hoy/app/models/user.rb +0 -19
  96. data/hoy/app/policies/application_policy.rb +0 -40
  97. data/hoy/app/policies/article_category_policy.rb +0 -31
  98. data/hoy/app/policies/article_policy.rb +0 -31
  99. data/hoy/app/policies/user_policy.rb +0 -35
  100. data/hoy/app/utils/association_loader.rb +0 -50
  101. data/hoy/app/utils/firebase_id_token.rb +0 -4
  102. data/hoy/app/utils/json_web_token.rb +0 -13
  103. data/hoy/app/utils/record_loader.rb +0 -10
  104. data/hoy/app/utils/souls_helper.rb +0 -96
  105. data/hoy/cloudbuild.yml +0 -32
  106. data/hoy/config.ru +0 -17
  107. data/hoy/config/database.yml +0 -33
  108. data/hoy/config/souls.rb +0 -4
  109. data/hoy/constants/areas.rb +0 -71
  110. data/hoy/constants/column_name_ja.rb +0 -27
  111. data/hoy/db/migrate/20200006095538_create_users.rb +0 -30
  112. data/hoy/db/migrate/20200712180236_create_article_categories.rb +0 -12
  113. data/hoy/db/migrate/20200714215521_create_articles.rb +0 -22
  114. data/hoy/db/schema.rb +0 -78
  115. data/hoy/db/seeds.rb +0 -44
  116. data/hoy/github/workflows/delivery.yml +0 -81
  117. data/hoy/log/.keep +0 -0
  118. data/hoy/spec/factories/article_categories.rb +0 -9
  119. data/hoy/spec/factories/articles.rb +0 -17
  120. data/hoy/spec/factories/users.rb +0 -23
  121. data/hoy/spec/models/article_category_spec.rb +0 -7
  122. data/hoy/spec/models/article_spec.rb +0 -7
  123. data/hoy/spec/models/user_spec.rb +0 -7
  124. data/hoy/spec/mutations/base/article_category_spec.rb +0 -46
  125. data/hoy/spec/mutations/base/article_spec.rb +0 -70
  126. data/hoy/spec/mutations/base/user_spec.rb +0 -76
  127. data/hoy/spec/policies/article_category_policy_spec.rb +0 -25
  128. data/hoy/spec/policies/article_policy_spec.rb +0 -25
  129. data/hoy/spec/policies/user_policy_spec.rb +0 -5
  130. data/hoy/spec/queries/article_category_spec.rb +0 -39
  131. data/hoy/spec/queries/article_spec.rb +0 -53
  132. data/hoy/spec/queries/user_spec.rb +0 -59
  133. data/hoy/spec/resolvers/article_category_search_spec.rb +0 -54
  134. data/hoy/spec/resolvers/article_search_spec.rb +0 -68
  135. data/hoy/spec/resolvers/user_search_spec.rb +0 -74
  136. data/hoy/spec/spec_helper.rb +0 -110
  137. data/hoy/tmp/.keep +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f6517df7f62ab9f2d60547d4c969966866f2259df1d6d9e8c60894607706a126
4
- data.tar.gz: f7688cebc8f9776cfd414bc251d13687e5a48619486a880ffb9322c6e6ee1ab1
3
+ metadata.gz: 8a95347d836077163916d5bb88b61ebd2742bcc382a0f3841ac2a6d046ef7f2e
4
+ data.tar.gz: fd3b16eccd74ff58c20006149f11d1a7bcbc902634a71f150725a1a157e24575
5
5
  SHA512:
6
- metadata.gz: b9c12b8d22cbcba8c2b830e4745f7d63d3d24a9e74fcf1e8520152c2dc9b5769bfaee2140a867d63a4e9ea5645920f2bd7536f133389371b89edc005a41d9989
7
- data.tar.gz: 1115378bab9c486a6a0a31510bec9231a7f72ee49afe00cc63bd0dcc62b1ec3c20015ee38a3ce41f9dcc6891e036e307ce235aa6cff8ab9429aecc464ff62b3f
6
+ metadata.gz: 7e8a9024fad728ca3e9cb661a11307ad05e8c68461688800fc9df5994e4eb1559f8e054885f74be32574ea19ec2c382b30edb54569175ebe3220913eb0f30a9d
7
+ data.tar.gz: fa216f11fc4fd8d0cd85c408ec930d2c579e48cc98708462c23a81e654f583c346bc4e1a904a20313dde2e1e4be0f7be7adde0eaa12c5d69040f0d4a27fde7f8
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- souls (0.22.7)
4
+ souls (0.23.1)
5
5
  paint (= 2.2.1)
6
6
  whirly (= 0.3.0)
7
7
 
data/README.md CHANGED
@@ -75,7 +75,7 @@ And Create Your APP
75
75
 
76
76
  ## SOULs Document
77
77
 
78
- - [SOULs Document](https://souls-doc.el-soul.com/)
78
+ - [SOULs Document](https://souls.elsoul.nl/)
79
79
 
80
80
 
81
81
 
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
- case ARGV[0]
9
+ souls_command = ARGV[0]
10
+ case souls_command
10
11
  when "new"
11
12
  STRAINS = ["api", "worker", "console", "admin", "media"]
12
- if ARGV[1].nil?
13
- puts "you need to specify your app name \n `souls new app_name`"
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: ARGV[1], repository_name: "souls_#{STRAINS[strain.to_i - 1]}"
32
- Souls::Init.initial_config_init app_name: ARGV[1], strain: STRAINS[strain.to_i - 1]
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
- case ARGV[1]
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
- Souls.send ARGV[1]
64
+ send_method = ARGV[1]
65
+ Souls.send send_method
62
66
  when "gcloud"
63
- Souls::Gcloud.send ARGV[1]
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", color: :false, interval: 1000, stop: "🎉" do
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
- case ARGV[1]
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 "HOI!"
92
+ puts Paint["Wrong Argument!", :red]
87
93
  end
88
94
  when "g", "generate"
89
- case ARGV[1]
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: ARGV[2]
101
+ Souls::Generate.model class_name: class_name
94
102
  when "mutation"
95
- Souls::Generate.mutation class_name: ARGV[2]
103
+ Souls::Generate.mutation class_name: class_name
96
104
  when "query"
97
- Souls::Generate.query class_name: ARGV[2]
105
+ Souls::Generate.query class_name: class_name
98
106
  when "type"
99
- Souls::Generate.type class_name: ARGV[2]
107
+ Souls::Generate.type class_name: class_name
100
108
  when "edge"
101
- Souls::Generate.edge class_name: ARGV[2]
109
+ Souls::Generate.edge class_name: class_name
102
110
  when "connection"
103
- Souls::Generate.connection class_name: ARGV[2]
111
+ Souls::Generate.connection class_name: class_name
104
112
  when "resolver"
105
- Souls::Generate.resolver class_name: ARGV[2]
113
+ Souls::Generate.resolver class_name: class_name
106
114
  when "policy"
107
- Souls::Generate.policy class_name: ARGV[2]
115
+ Souls::Generate.policy class_name: class_name
108
116
  when "rspec_factory"
109
- Souls::Generate.rspec_factory class_name: ARGV[2]
117
+ Souls::Generate.rspec_factory class_name: class_name
110
118
  when "rspec_model"
111
- Souls::Generate.rspec_model class_name: ARGV[2]
119
+ Souls::Generate.rspec_model class_name: class_name
112
120
  when "rspec_mutation"
113
- Souls::Generate.rspec_mutation class_name: ARGV[2]
121
+ Souls::Generate.rspec_mutation class_name: class_name
114
122
  when "rspec_query"
115
- Souls::Generate.rspec_query class_name: ARGV[2]
123
+ Souls::Generate.rspec_query class_name: class_name
116
124
  when "rspec_resolver"
117
- Souls::Generate.rspec_resolver class_name: ARGV[2]
125
+ Souls::Generate.rspec_resolver class_name: class_name
118
126
  when "rspec_policy"
119
- Souls::Generate.rspec_policy class_name: ARGV[2]
127
+ Souls::Generate.rspec_policy class_name: class_name
120
128
  when "node_type"
121
- Souls::Generate.node_type class_name: ARGV[2]
129
+ Souls::Generate.node_type class_name: class_name
122
130
  when "job"
123
- Souls::Generate.job class_name: ARGV[2]
131
+ Souls::Generate.job class_name: class_name
124
132
  when "migrate"
125
- Souls::Generate.single_migrate class_name: ARGV[2]
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
- class_name = ARGV[2].underscore.pluralize
130
- system "rake db:create_migration NAME=create_#{class_name}"
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: ARGV[2]
133
- Souls::Generate.single_migrate class_name: ARGV[2]
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
- Souls::Generate.delete_all class_name: ARGV[1]
146
+ class_name = ARGV[1]
147
+ Souls::Generate.delete_all class_name: class_name
139
148
  when "db:create"
140
- case ARGV[1]
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
- case ARGV[1]
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
- case ARGV[1]
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
- case ARGV[1]
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
- system "gcloud builds submit --config=cloudbuild.yml --project #{ARGV[1]}"
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.backtrace
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 << "#{gem[0]} v#{gem[1]} → v#{data["version"]}"
99
+ console_log << if gem[0].to_s == "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
  {
@@ -11,7 +11,7 @@ module Souls
11
11
  end
12
12
  EOS
13
13
  end
14
- puts "Created file! : #{file_path}"
14
+ puts Paint % ["Created file! : %{white_text}", :green, { white_text: [file_path.to_s, :white] }]
15
15
  file_path
16
16
  rescue StandardError => e
17
17
  raise StandardError, e
@@ -11,7 +11,7 @@ module Souls
11
11
  end
12
12
  EOS
13
13
  end
14
- puts "Created file! : #{file_path}"
14
+ puts Paint % ["Created file! : %{white_text}", :green, { white_text: [file_path.to_s, :white] }]
15
15
  file_path
16
16
  rescue StandardError => e
17
17
  raise StandardError, e
@@ -13,7 +13,7 @@ module Souls
13
13
  end
14
14
  EOS
15
15
  end
16
- puts "Created file! : #{file_path}"
16
+ puts Paint % ["Created file! : %{white_text}", :green, { white_text: [file_path.to_s, :white] }]
17
17
  file_path
18
18
  rescue StandardError => e
19
19
  raise StandardError, e
@@ -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! : #{file_path}"
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
@@ -42,7 +42,7 @@ module Souls
42
42
  end
43
43
  EOS
44
44
  end
45
- puts "Created file! : #{file_path}"
45
+ puts Paint % ["Created file! : %{white_text}", :green, { white_text: [file_path.to_s, :white] }]
46
46
  file_path
47
47
  rescue StandardError => e
48
48
  raise StandardError, e
@@ -20,7 +20,7 @@ module Souls
20
20
  end
21
21
  EOS
22
22
  end
23
- puts "Created file! : #{file_path}"
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! : #{file_path}"
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! : #{file_path}"
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! : #{file_path}"
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
@@ -16,7 +16,7 @@ module Souls
16
16
  end
17
17
  EOS
18
18
  end
19
- puts "Created file! : #{file_path}"
19
+ puts Paint % ["Created file! : %{white_text}", :green, { white_text: [file_path.to_s, :white] }]
20
20
  file_path
21
21
  rescue StandardError => e
22
22
  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! : #{file_path}"
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
@@ -36,7 +36,7 @@ module Souls
36
36
  end
37
37
  EOS
38
38
  end
39
- puts "Created file! : #{file_path}"
39
+ puts Paint % ["Created file! : %{white_text}", :green, { white_text: [file_path.to_s, :white] }]
40
40
  file_path
41
41
  rescue StandardError => e
42
42
  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! : #{file_path}"
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! : #{file_path}"
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
@@ -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! : #{file_path}"
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-doc.el-soul.com", :white]
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
@@ -1,3 +1,3 @@
1
1
  module Souls
2
- VERSION = "0.22.8"
2
+ VERSION = "0.23.2"
3
3
  end
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://souls-doc.el-soul.com"
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
 
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.22.8
4
+ version: 0.23.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - POPPIN-FUMI
@@ -71,120 +71,6 @@ files:
71
71
  - config/souls.rb
72
72
  - db/schema.rb
73
73
  - exe/souls
74
- - hoy/.env.sample
75
- - hoy/.gitignore
76
- - hoy/.irbrc
77
- - hoy/.rspec
78
- - hoy/.rubocop.yml
79
- - hoy/.ruby-version
80
- - hoy/CODE_OF_CONDUCT.md
81
- - hoy/Dockerfile
82
- - hoy/Dockerfile.dev
83
- - hoy/Gemfile
84
- - hoy/Gemfile.lock
85
- - hoy/LICENSE.txt
86
- - hoy/Procfile
87
- - hoy/Procfile.dev
88
- - hoy/README.md
89
- - hoy/Rakefile
90
- - hoy/app.rb
91
- - hoy/app/graphql/mutations/.keep
92
- - hoy/app/graphql/mutations/base/article/create_article.rb
93
- - hoy/app/graphql/mutations/base/article/delete_article.rb
94
- - hoy/app/graphql/mutations/base/article/destroy_delete_article.rb
95
- - hoy/app/graphql/mutations/base/article/update_article.rb
96
- - hoy/app/graphql/mutations/base/article_category/create_article_category.rb
97
- - hoy/app/graphql/mutations/base/article_category/delete_article_category.rb
98
- - hoy/app/graphql/mutations/base/article_category/destroy_delete_article_category.rb
99
- - hoy/app/graphql/mutations/base/article_category/update_article_category.rb
100
- - hoy/app/graphql/mutations/base/user/create_user.rb
101
- - hoy/app/graphql/mutations/base/user/delete_user.rb
102
- - hoy/app/graphql/mutations/base/user/destroy_delete_user.rb
103
- - hoy/app/graphql/mutations/base/user/update_user.rb
104
- - hoy/app/graphql/mutations/base_mutation.rb
105
- - hoy/app/graphql/mutations/user_manager/add_user_role.rb
106
- - hoy/app/graphql/mutations/user_manager/remove_user_role.rb
107
- - hoy/app/graphql/mutations/user_manager/sign_in_user.rb
108
- - hoy/app/graphql/queries/article.rb
109
- - hoy/app/graphql/queries/article_categories.rb
110
- - hoy/app/graphql/queries/article_category.rb
111
- - hoy/app/graphql/queries/articles.rb
112
- - hoy/app/graphql/queries/base_query.rb
113
- - hoy/app/graphql/queries/me.rb
114
- - hoy/app/graphql/queries/user.rb
115
- - hoy/app/graphql/queries/users.rb
116
- - hoy/app/graphql/resolvers/article_category_search.rb
117
- - hoy/app/graphql/resolvers/article_search.rb
118
- - hoy/app/graphql/resolvers/base.rb
119
- - hoy/app/graphql/resolvers/user_search.rb
120
- - hoy/app/graphql/souls_api_schema.rb
121
- - hoy/app/graphql/types/.keep
122
- - hoy/app/graphql/types/article_category_type.rb
123
- - hoy/app/graphql/types/article_type.rb
124
- - hoy/app/graphql/types/base/base_argument.rb
125
- - hoy/app/graphql/types/base/base_enum.rb
126
- - hoy/app/graphql/types/base/base_field.rb
127
- - hoy/app/graphql/types/base/base_input_object.rb
128
- - hoy/app/graphql/types/base/base_interface.rb
129
- - hoy/app/graphql/types/base/base_object.rb
130
- - hoy/app/graphql/types/base/base_scalar.rb
131
- - hoy/app/graphql/types/base/base_union.rb
132
- - hoy/app/graphql/types/base/mutation_type.rb
133
- - hoy/app/graphql/types/base/query_type.rb
134
- - hoy/app/graphql/types/connections/article_category_connection.rb
135
- - hoy/app/graphql/types/connections/article_connection.rb
136
- - hoy/app/graphql/types/connections/base_connection.rb
137
- - hoy/app/graphql/types/connections/user_connection.rb
138
- - hoy/app/graphql/types/edges/article_category_edge.rb
139
- - hoy/app/graphql/types/edges/article_edge.rb
140
- - hoy/app/graphql/types/edges/base_edge.rb
141
- - hoy/app/graphql/types/edges/user_edge.rb
142
- - hoy/app/graphql/types/user_type.rb
143
- - hoy/app/models/article.rb
144
- - hoy/app/models/article_category.rb
145
- - hoy/app/models/user.rb
146
- - hoy/app/policies/application_policy.rb
147
- - hoy/app/policies/article_category_policy.rb
148
- - hoy/app/policies/article_policy.rb
149
- - hoy/app/policies/user_policy.rb
150
- - hoy/app/utils/association_loader.rb
151
- - hoy/app/utils/firebase_id_token.rb
152
- - hoy/app/utils/json_web_token.rb
153
- - hoy/app/utils/record_loader.rb
154
- - hoy/app/utils/souls_helper.rb
155
- - hoy/cloudbuild.yml
156
- - hoy/config.ru
157
- - hoy/config/database.yml
158
- - hoy/config/souls.rb
159
- - hoy/constants/areas.rb
160
- - hoy/constants/column_name_ja.rb
161
- - hoy/db/migrate/20200006095538_create_users.rb
162
- - hoy/db/migrate/20200712180236_create_article_categories.rb
163
- - hoy/db/migrate/20200714215521_create_articles.rb
164
- - hoy/db/schema.rb
165
- - hoy/db/seeds.rb
166
- - hoy/github/workflows/delivery.yml
167
- - hoy/log/.keep
168
- - hoy/spec/factories/article_categories.rb
169
- - hoy/spec/factories/articles.rb
170
- - hoy/spec/factories/users.rb
171
- - hoy/spec/models/article_category_spec.rb
172
- - hoy/spec/models/article_spec.rb
173
- - hoy/spec/models/user_spec.rb
174
- - hoy/spec/mutations/base/article_category_spec.rb
175
- - hoy/spec/mutations/base/article_spec.rb
176
- - hoy/spec/mutations/base/user_spec.rb
177
- - hoy/spec/policies/article_category_policy_spec.rb
178
- - hoy/spec/policies/article_policy_spec.rb
179
- - hoy/spec/policies/user_policy_spec.rb
180
- - hoy/spec/queries/article_category_spec.rb
181
- - hoy/spec/queries/article_spec.rb
182
- - hoy/spec/queries/user_spec.rb
183
- - hoy/spec/resolvers/article_category_search_spec.rb
184
- - hoy/spec/resolvers/article_search_spec.rb
185
- - hoy/spec/resolvers/user_search_spec.rb
186
- - hoy/spec/spec_helper.rb
187
- - hoy/tmp/.keep
188
74
  - lib/souls.rb
189
75
  - lib/souls/gcloud.rb
190
76
  - lib/souls/gcloud/compute.rb
@@ -209,11 +95,11 @@ files:
209
95
  - lib/souls/version.rb
210
96
  - rbs/init.rbs
211
97
  - souls.gemspec
212
- homepage: https://souls-doc.el-soul.com
98
+ homepage: https://souls.elsoul.nl
213
99
  licenses:
214
100
  - Apache-2.0
215
101
  metadata:
216
- homepage_uri: https://souls-doc.el-soul.com
102
+ homepage_uri: https://souls.elsoul.nl
217
103
  source_code_uri: https://github.com/elsoul/souls
218
104
  changelog_uri: https://github.com/elsoul/souls
219
105
  post_install_message: