souls 0.56.4 → 0.58.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e8375336866a4c6367ebfabd3230872f7eb82a5d20da41f6165a28952d214d01
4
- data.tar.gz: e20a0b07c5d7127acac26abab668a415776c59f3973857332a7b7447eef7259b
3
+ metadata.gz: 0df3e97f09a33df717c37504932a277cc12db4f5ae7afb7f2aac641d102667bf
4
+ data.tar.gz: 6475f26cd6de63284c674a2f7260fda05d2519d7dabc6480da19d4614bb2b710
5
5
  SHA512:
6
- metadata.gz: 3f5f786c164a2ec2d5205109e40e2225aebd2530ef429cdc422bd125f17204ddb5034671a511a657a2505e7f0b8ef263d9c5e4226a14f3f9158cf16610ad4306
7
- data.tar.gz: 737fb2a3e627d7189443d6e17236f03484fa2c9bd7105b7de33f75d2300f3fa5cfbe6da6c0e647f073e7a2f14f15d390aef13d65d2e8d822e28bf6a2854a8ef0
6
+ metadata.gz: c814aae89079dbca22d511821b8d0dbbfcb5dd6330ad925f790afed826d4e3a97f944b982264293e3e8ba5c06913523e9ce3959f3297a99453a0056a88a8a8b8
7
+ data.tar.gz: 1e69761fd775545dc58cc8bb5170fba3b3364572bd0fdfb1d8c0c62474b052b4f31ae034174b799d6cbe41fce4197d9c7240679b54719963d0ce3e01dbd2663e
@@ -13,6 +13,7 @@ module Souls
13
13
  mother_config_init(app_name: app_name)
14
14
  download_github_actions(app_name: app_name)
15
15
  initial_config_init(app_name: app_name, service_name: service_name)
16
+ system("cd #{app_name} && souls add_submodule")
16
17
  souls_api_credit(app_name: app_name, service_name: service_name)
17
18
  end
18
19
 
@@ -113,6 +114,34 @@ module Souls
113
114
  puts(e)
114
115
  end
115
116
 
117
+ def get_latest_gem(app_name)
118
+ file_path = "./#{app_name}/Gemfile"
119
+ File.open(file_path, "w") do |f|
120
+ f.write(<<~TEXT)
121
+ source "https://rubygems.org"
122
+
123
+ gem "activesupport", "6.1.4.1"
124
+ gem "foreman", "0.87.2"
125
+ gem "google-cloud-pubsub", "2.8.1"
126
+ gem "paint", "2.2.1"
127
+ gem "parser", "3.0.2.0"
128
+ gem "pg", "1.2.3"
129
+ gem "rake", "13.0.6"
130
+ gem "rspec", "3.10.0"
131
+ gem "rubocop", "1.21.0"
132
+ gem "sinatra-activerecord", "2.0.23"
133
+ gem "solargraph", "0.43.2"
134
+ gem "souls", "#{Souls::VERSION}"
135
+ gem "steep", "0.46.0"
136
+ gem "thor", "1.1.0"
137
+ gem "tty-prompt", "0.23.1"
138
+ gem "whirly", "0.3.0"
139
+ TEXT
140
+ end
141
+ rescue StandardError => e
142
+ puts(e)
143
+ end
144
+
116
145
  def download_souls(app_name: "souls", service_name: "api")
117
146
  version = Souls.get_latest_version_txt(service_name: service_name).join(".")
118
147
  file_name = "#{service_name}-v#{version}.tgz"
@@ -128,10 +157,14 @@ module Souls
128
157
  system("tar -zxvf ./#{sig_name} -C #{app_name}")
129
158
 
130
159
  system("cd #{app_name} && curl -OL https://storage.googleapis.com/souls-bucket/boilerplates/.rubocop.yml")
131
- system("cd #{app_name} && curl -OL https://storage.googleapis.com/souls-bucket/boilerplates/Gemfile")
160
+ get_latest_gem(app_name)
132
161
  system("cd #{app_name} && curl -OL https://storage.googleapis.com/souls-bucket/boilerplates/Procfile.dev")
133
162
  system("cd #{app_name} && curl -OL https://storage.googleapis.com/souls-bucket/boilerplates/Procfile")
134
163
  system("cd #{app_name} && curl -OL https://storage.googleapis.com/souls-bucket/boilerplates/Steepfile")
164
+ system("cd #{app_name} && git init")
165
+ system("cd #{app_name} && curl -OL https://storage.googleapis.com/souls-bucket/boilerplates/gitignore")
166
+ system("cd #{app_name} && mv gitignore .gitignore")
167
+ system("cd #{app_name} && bundle")
135
168
  FileUtils.rm(sig_name)
136
169
  end
137
170
 
@@ -160,9 +193,9 @@ module Souls
160
193
  puts(line)
161
194
  endroll = <<~TEXT
162
195
  Easy to Run
163
- $ cd #{app_name}/apps/#{service_name}
164
- $ bundle
165
- $ souls s
196
+ $ cd #{app_name}
197
+ $ souls check
198
+ $ cd apps/api && souls s
166
199
  Go To : http://localhost:4000
167
200
 
168
201
  Doc: https://souls.elsoul.nl
data/lib/souls/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Souls
2
- VERSION = "0.56.4".freeze
2
+ VERSION = "0.58.1".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 0.35.4
1
+ 0.37.1
@@ -1 +1 @@
1
- 0.35.4
1
+ 0.37.1
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.56.4
4
+ version: 0.58.1
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-09-24 00:00:00.000000000 Z
13
+ date: 2021-09-25 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport