souls 0.22.6 → 0.22.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/exe/souls +21 -5
- data/hoy/.env.sample +7 -0
- data/hoy/.gitignore +32 -0
- data/hoy/.irbrc +1 -0
- data/hoy/.rspec +3 -0
- data/hoy/.rubocop.yml +132 -0
- data/hoy/.ruby-version +1 -0
- data/hoy/CODE_OF_CONDUCT.md +74 -0
- data/hoy/Dockerfile +16 -0
- data/hoy/Dockerfile.dev +17 -0
- data/hoy/Gemfile +50 -0
- data/hoy/Gemfile.lock +407 -0
- data/hoy/LICENSE.txt +67 -0
- data/hoy/Procfile +2 -0
- data/hoy/Procfile.dev +2 -0
- data/hoy/README.md +61 -0
- data/hoy/Rakefile +5 -0
- data/hoy/app.rb +116 -0
- data/hoy/app/graphql/mutations/.keep +0 -0
- data/hoy/app/graphql/mutations/base/article/create_article.rb +30 -0
- data/hoy/app/graphql/mutations/base/article/delete_article.rb +17 -0
- data/hoy/app/graphql/mutations/base/article/destroy_delete_article.rb +17 -0
- data/hoy/app/graphql/mutations/base/article/update_article.rb +30 -0
- data/hoy/app/graphql/mutations/base/article_category/create_article_category.rb +21 -0
- data/hoy/app/graphql/mutations/base/article_category/delete_article_category.rb +17 -0
- data/hoy/app/graphql/mutations/base/article_category/destroy_delete_article_category.rb +17 -0
- data/hoy/app/graphql/mutations/base/article_category/update_article_category.rb +21 -0
- data/hoy/app/graphql/mutations/base/user/create_user.rb +31 -0
- data/hoy/app/graphql/mutations/base/user/delete_user.rb +17 -0
- data/hoy/app/graphql/mutations/base/user/destroy_delete_user.rb +17 -0
- data/hoy/app/graphql/mutations/base/user/update_user.rb +31 -0
- data/hoy/app/graphql/mutations/base_mutation.rb +33 -0
- data/hoy/app/graphql/mutations/user_manager/add_user_role.rb +22 -0
- data/hoy/app/graphql/mutations/user_manager/remove_user_role.rb +22 -0
- data/hoy/app/graphql/mutations/user_manager/sign_in_user.rb +45 -0
- data/hoy/app/graphql/queries/article.rb +13 -0
- data/hoy/app/graphql/queries/article_categories.rb +11 -0
- data/hoy/app/graphql/queries/article_category.rb +13 -0
- data/hoy/app/graphql/queries/articles.rb +11 -0
- data/hoy/app/graphql/queries/base_query.rb +9 -0
- data/hoy/app/graphql/queries/me.rb +11 -0
- data/hoy/app/graphql/queries/user.rb +13 -0
- data/hoy/app/graphql/queries/users.rb +11 -0
- data/hoy/app/graphql/resolvers/article_category_search.rb +41 -0
- data/hoy/app/graphql/resolvers/article_search.rb +57 -0
- data/hoy/app/graphql/resolvers/base.rb +17 -0
- data/hoy/app/graphql/resolvers/user_search.rb +63 -0
- data/hoy/app/graphql/souls_api_schema.rb +43 -0
- data/hoy/app/graphql/types/.keep +0 -0
- data/hoy/app/graphql/types/article_category_type.rb +12 -0
- data/hoy/app/graphql/types/article_type.rb +30 -0
- data/hoy/app/graphql/types/base/base_argument.rb +4 -0
- data/hoy/app/graphql/types/base/base_enum.rb +4 -0
- data/hoy/app/graphql/types/base/base_field.rb +5 -0
- data/hoy/app/graphql/types/base/base_input_object.rb +5 -0
- data/hoy/app/graphql/types/base/base_interface.rb +7 -0
- data/hoy/app/graphql/types/base/base_object.rb +6 -0
- data/hoy/app/graphql/types/base/base_scalar.rb +4 -0
- data/hoy/app/graphql/types/base/base_union.rb +4 -0
- data/hoy/app/graphql/types/base/mutation_type.rb +16 -0
- data/hoy/app/graphql/types/base/query_type.rb +18 -0
- data/hoy/app/graphql/types/connections/article_category_connection.rb +3 -0
- data/hoy/app/graphql/types/connections/article_connection.rb +3 -0
- data/hoy/app/graphql/types/connections/base_connection.rb +14 -0
- data/hoy/app/graphql/types/connections/user_connection.rb +3 -0
- data/hoy/app/graphql/types/edges/article_category_edge.rb +5 -0
- data/hoy/app/graphql/types/edges/article_edge.rb +5 -0
- data/hoy/app/graphql/types/edges/base_edge.rb +4 -0
- data/hoy/app/graphql/types/edges/user_edge.rb +5 -0
- data/hoy/app/graphql/types/user_type.rb +22 -0
- data/hoy/app/models/article.rb +4 -0
- data/hoy/app/models/article_category.rb +3 -0
- data/hoy/app/models/user.rb +19 -0
- data/hoy/app/policies/application_policy.rb +40 -0
- data/hoy/app/policies/article_category_policy.rb +31 -0
- data/hoy/app/policies/article_policy.rb +31 -0
- data/hoy/app/policies/user_policy.rb +35 -0
- data/hoy/app/utils/association_loader.rb +50 -0
- data/hoy/app/utils/firebase_id_token.rb +4 -0
- data/hoy/app/utils/json_web_token.rb +13 -0
- data/hoy/app/utils/record_loader.rb +10 -0
- data/hoy/app/utils/souls_helper.rb +96 -0
- data/hoy/cloudbuild.yml +32 -0
- data/hoy/config.ru +17 -0
- data/hoy/config/database.yml +33 -0
- data/hoy/config/souls.rb +4 -0
- data/hoy/constants/areas.rb +71 -0
- data/hoy/constants/column_name_ja.rb +27 -0
- data/hoy/db/migrate/20200006095538_create_users.rb +30 -0
- data/hoy/db/migrate/20200712180236_create_article_categories.rb +12 -0
- data/hoy/db/migrate/20200714215521_create_articles.rb +22 -0
- data/hoy/db/schema.rb +78 -0
- data/hoy/db/seeds.rb +44 -0
- data/hoy/github/workflows/delivery.yml +81 -0
- data/hoy/log/.keep +0 -0
- data/hoy/spec/factories/article_categories.rb +9 -0
- data/hoy/spec/factories/articles.rb +17 -0
- data/hoy/spec/factories/users.rb +23 -0
- data/hoy/spec/models/article_category_spec.rb +7 -0
- data/hoy/spec/models/article_spec.rb +7 -0
- data/hoy/spec/models/user_spec.rb +7 -0
- data/hoy/spec/mutations/base/article_category_spec.rb +46 -0
- data/hoy/spec/mutations/base/article_spec.rb +70 -0
- data/hoy/spec/mutations/base/user_spec.rb +76 -0
- data/hoy/spec/policies/article_category_policy_spec.rb +25 -0
- data/hoy/spec/policies/article_policy_spec.rb +25 -0
- data/hoy/spec/policies/user_policy_spec.rb +5 -0
- data/hoy/spec/queries/article_category_spec.rb +39 -0
- data/hoy/spec/queries/article_spec.rb +53 -0
- data/hoy/spec/queries/user_spec.rb +59 -0
- data/hoy/spec/resolvers/article_category_search_spec.rb +54 -0
- data/hoy/spec/resolvers/article_search_spec.rb +68 -0
- data/hoy/spec/resolvers/user_search_spec.rb +74 -0
- data/hoy/spec/spec_helper.rb +110 -0
- data/hoy/tmp/.keep +0 -0
- data/lib/souls/init.rb +16 -9
- data/lib/souls/version.rb +1 -1
- metadata +115 -1
data/hoy/tmp/.keep
ADDED
File without changes
|
data/lib/souls/init.rb
CHANGED
@@ -29,8 +29,11 @@ module Souls
|
|
29
29
|
system "tar -zxvf ./#{version}.tar.gz"
|
30
30
|
system "mkdir #{app_name}"
|
31
31
|
folder = version.delete "v"
|
32
|
-
|
33
|
-
|
32
|
+
`cp -r #{repository_name}-#{folder}/. #{app_name}/`
|
33
|
+
`rm -rf #{version}.tar.gz && rm -rf #{repository_name}-#{folder}`
|
34
|
+
line = Paint["====================================", :yellow]
|
35
|
+
puts "\n"
|
36
|
+
puts line
|
34
37
|
txt = <<~TEXT
|
35
38
|
_____ ____ __ ____#{' '}
|
36
39
|
/ ___// __ \\/ / / / / _____
|
@@ -38,13 +41,17 @@ module Souls
|
|
38
41
|
___/ / /_/ / /_/ / /___(__ )#{' '}
|
39
42
|
/____/\\____/\\____/_____/____/#{' '}
|
40
43
|
TEXT
|
41
|
-
|
42
|
-
puts
|
43
|
-
puts
|
44
|
-
|
45
|
-
puts
|
46
|
-
|
47
|
-
puts
|
44
|
+
message = Paint[txt, :blue]
|
45
|
+
puts message
|
46
|
+
puts line
|
47
|
+
welcome = Paint["Welcome to SOULs!", :white]
|
48
|
+
puts welcome
|
49
|
+
souls_ver = Paint["SOULs Version: #{Souls::VERSION}", :white]
|
50
|
+
puts souls_ver
|
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]
|
53
|
+
puts cd
|
54
|
+
puts line
|
48
55
|
end
|
49
56
|
end
|
50
57
|
end
|
data/lib/souls/version.rb
CHANGED
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.
|
4
|
+
version: 0.22.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- POPPIN-FUMI
|
@@ -43,6 +43,120 @@ files:
|
|
43
43
|
- config/souls.rb
|
44
44
|
- db/schema.rb
|
45
45
|
- exe/souls
|
46
|
+
- hoy/.env.sample
|
47
|
+
- hoy/.gitignore
|
48
|
+
- hoy/.irbrc
|
49
|
+
- hoy/.rspec
|
50
|
+
- hoy/.rubocop.yml
|
51
|
+
- hoy/.ruby-version
|
52
|
+
- hoy/CODE_OF_CONDUCT.md
|
53
|
+
- hoy/Dockerfile
|
54
|
+
- hoy/Dockerfile.dev
|
55
|
+
- hoy/Gemfile
|
56
|
+
- hoy/Gemfile.lock
|
57
|
+
- hoy/LICENSE.txt
|
58
|
+
- hoy/Procfile
|
59
|
+
- hoy/Procfile.dev
|
60
|
+
- hoy/README.md
|
61
|
+
- hoy/Rakefile
|
62
|
+
- hoy/app.rb
|
63
|
+
- hoy/app/graphql/mutations/.keep
|
64
|
+
- hoy/app/graphql/mutations/base/article/create_article.rb
|
65
|
+
- hoy/app/graphql/mutations/base/article/delete_article.rb
|
66
|
+
- hoy/app/graphql/mutations/base/article/destroy_delete_article.rb
|
67
|
+
- hoy/app/graphql/mutations/base/article/update_article.rb
|
68
|
+
- hoy/app/graphql/mutations/base/article_category/create_article_category.rb
|
69
|
+
- hoy/app/graphql/mutations/base/article_category/delete_article_category.rb
|
70
|
+
- hoy/app/graphql/mutations/base/article_category/destroy_delete_article_category.rb
|
71
|
+
- hoy/app/graphql/mutations/base/article_category/update_article_category.rb
|
72
|
+
- hoy/app/graphql/mutations/base/user/create_user.rb
|
73
|
+
- hoy/app/graphql/mutations/base/user/delete_user.rb
|
74
|
+
- hoy/app/graphql/mutations/base/user/destroy_delete_user.rb
|
75
|
+
- hoy/app/graphql/mutations/base/user/update_user.rb
|
76
|
+
- hoy/app/graphql/mutations/base_mutation.rb
|
77
|
+
- hoy/app/graphql/mutations/user_manager/add_user_role.rb
|
78
|
+
- hoy/app/graphql/mutations/user_manager/remove_user_role.rb
|
79
|
+
- hoy/app/graphql/mutations/user_manager/sign_in_user.rb
|
80
|
+
- hoy/app/graphql/queries/article.rb
|
81
|
+
- hoy/app/graphql/queries/article_categories.rb
|
82
|
+
- hoy/app/graphql/queries/article_category.rb
|
83
|
+
- hoy/app/graphql/queries/articles.rb
|
84
|
+
- hoy/app/graphql/queries/base_query.rb
|
85
|
+
- hoy/app/graphql/queries/me.rb
|
86
|
+
- hoy/app/graphql/queries/user.rb
|
87
|
+
- hoy/app/graphql/queries/users.rb
|
88
|
+
- hoy/app/graphql/resolvers/article_category_search.rb
|
89
|
+
- hoy/app/graphql/resolvers/article_search.rb
|
90
|
+
- hoy/app/graphql/resolvers/base.rb
|
91
|
+
- hoy/app/graphql/resolvers/user_search.rb
|
92
|
+
- hoy/app/graphql/souls_api_schema.rb
|
93
|
+
- hoy/app/graphql/types/.keep
|
94
|
+
- hoy/app/graphql/types/article_category_type.rb
|
95
|
+
- hoy/app/graphql/types/article_type.rb
|
96
|
+
- hoy/app/graphql/types/base/base_argument.rb
|
97
|
+
- hoy/app/graphql/types/base/base_enum.rb
|
98
|
+
- hoy/app/graphql/types/base/base_field.rb
|
99
|
+
- hoy/app/graphql/types/base/base_input_object.rb
|
100
|
+
- hoy/app/graphql/types/base/base_interface.rb
|
101
|
+
- hoy/app/graphql/types/base/base_object.rb
|
102
|
+
- hoy/app/graphql/types/base/base_scalar.rb
|
103
|
+
- hoy/app/graphql/types/base/base_union.rb
|
104
|
+
- hoy/app/graphql/types/base/mutation_type.rb
|
105
|
+
- hoy/app/graphql/types/base/query_type.rb
|
106
|
+
- hoy/app/graphql/types/connections/article_category_connection.rb
|
107
|
+
- hoy/app/graphql/types/connections/article_connection.rb
|
108
|
+
- hoy/app/graphql/types/connections/base_connection.rb
|
109
|
+
- hoy/app/graphql/types/connections/user_connection.rb
|
110
|
+
- hoy/app/graphql/types/edges/article_category_edge.rb
|
111
|
+
- hoy/app/graphql/types/edges/article_edge.rb
|
112
|
+
- hoy/app/graphql/types/edges/base_edge.rb
|
113
|
+
- hoy/app/graphql/types/edges/user_edge.rb
|
114
|
+
- hoy/app/graphql/types/user_type.rb
|
115
|
+
- hoy/app/models/article.rb
|
116
|
+
- hoy/app/models/article_category.rb
|
117
|
+
- hoy/app/models/user.rb
|
118
|
+
- hoy/app/policies/application_policy.rb
|
119
|
+
- hoy/app/policies/article_category_policy.rb
|
120
|
+
- hoy/app/policies/article_policy.rb
|
121
|
+
- hoy/app/policies/user_policy.rb
|
122
|
+
- hoy/app/utils/association_loader.rb
|
123
|
+
- hoy/app/utils/firebase_id_token.rb
|
124
|
+
- hoy/app/utils/json_web_token.rb
|
125
|
+
- hoy/app/utils/record_loader.rb
|
126
|
+
- hoy/app/utils/souls_helper.rb
|
127
|
+
- hoy/cloudbuild.yml
|
128
|
+
- hoy/config.ru
|
129
|
+
- hoy/config/database.yml
|
130
|
+
- hoy/config/souls.rb
|
131
|
+
- hoy/constants/areas.rb
|
132
|
+
- hoy/constants/column_name_ja.rb
|
133
|
+
- hoy/db/migrate/20200006095538_create_users.rb
|
134
|
+
- hoy/db/migrate/20200712180236_create_article_categories.rb
|
135
|
+
- hoy/db/migrate/20200714215521_create_articles.rb
|
136
|
+
- hoy/db/schema.rb
|
137
|
+
- hoy/db/seeds.rb
|
138
|
+
- hoy/github/workflows/delivery.yml
|
139
|
+
- hoy/log/.keep
|
140
|
+
- hoy/spec/factories/article_categories.rb
|
141
|
+
- hoy/spec/factories/articles.rb
|
142
|
+
- hoy/spec/factories/users.rb
|
143
|
+
- hoy/spec/models/article_category_spec.rb
|
144
|
+
- hoy/spec/models/article_spec.rb
|
145
|
+
- hoy/spec/models/user_spec.rb
|
146
|
+
- hoy/spec/mutations/base/article_category_spec.rb
|
147
|
+
- hoy/spec/mutations/base/article_spec.rb
|
148
|
+
- hoy/spec/mutations/base/user_spec.rb
|
149
|
+
- hoy/spec/policies/article_category_policy_spec.rb
|
150
|
+
- hoy/spec/policies/article_policy_spec.rb
|
151
|
+
- hoy/spec/policies/user_policy_spec.rb
|
152
|
+
- hoy/spec/queries/article_category_spec.rb
|
153
|
+
- hoy/spec/queries/article_spec.rb
|
154
|
+
- hoy/spec/queries/user_spec.rb
|
155
|
+
- hoy/spec/resolvers/article_category_search_spec.rb
|
156
|
+
- hoy/spec/resolvers/article_search_spec.rb
|
157
|
+
- hoy/spec/resolvers/user_search_spec.rb
|
158
|
+
- hoy/spec/spec_helper.rb
|
159
|
+
- hoy/tmp/.keep
|
46
160
|
- lib/souls.rb
|
47
161
|
- lib/souls/gcloud.rb
|
48
162
|
- lib/souls/gcloud/compute.rb
|