souls 0.25.20 → 0.26.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 66e0b6654b29ea6a361da6bece2be252de22550bb07c844ad7790fcd548a2ff5
4
- data.tar.gz: e29b9acf01284142e562e8889743fd696fcf56600aed6c116c7bdb9aa4f3e7d2
3
+ metadata.gz: aacb11d1e46b687da11266cf9e3f83f6a07aec2127d275704b7ef22454d6fdde
4
+ data.tar.gz: d973b6e0665e48d70029ce6dab44c1b793228665c0bf020be002695f11b1c4f8
5
5
  SHA512:
6
- metadata.gz: cfd541e08f629d71834914a18ee30c87bf1b25464897e4f6d8b82130d5fcedfbcab9b9ac972f693ee8f0c355b168b097289e82d3bd16bfd79606e529a6532b71
7
- data.tar.gz: abd69b5e9843eb059268d584830ba7892a583566791f4f77537473df3c5c156cf1c5c345ed625e9f639f1c6c24978f0094be6eb03b301ec7c855c24fd2d2142c
6
+ metadata.gz: 1f9735ce8e99f50628c4bfff3e5682aede06f155131963285f8cd33faba461f3b1c9a0f45b98551d37d585107ad81954d59816636881c42d3f04ed83a7204bc2
7
+ data.tar.gz: 4bd3cedb4d4a82d47ceb15a1f41640d12993277ac98885680c205772648b7e910e658a5d49affea21f8a44ce0e39669cf41f5be54301991a5669ddf184b4ebd5
data/exe/souls CHANGED
@@ -106,7 +106,7 @@ begin
106
106
  when "g", "generate"
107
107
  args = ARGV
108
108
  status = Paint["Generating Files...", :yellow]
109
- done = Paint["Generated SOULs CRUD Files☻", :yellow]
109
+ done = Paint["You're All Set ☻", :yellow]
110
110
  Whirly.start(spinner: "clock", interval: 420, stop: "🎉") do
111
111
  Whirly.status = status
112
112
  Souls::Generate.return_method(args)
data/lib/souls/init.rb CHANGED
@@ -29,6 +29,15 @@ module Souls
29
29
  puts(e)
30
30
  end
31
31
 
32
+ def self.download_github_actions(app_name: "souls-app")
33
+ file_name = "github.tgz"
34
+ url = "https://storage.googleapis.com/souls-bucket/github_actions/github.tgz"
35
+ system("curl -OL #{url}")
36
+ FileUtils.mkdir("github")
37
+ system("tar -zxvf ./#{file_name} -C #{file_name}/#{app_name}")
38
+ FileUtils.rm(file_name)
39
+ end
40
+
32
41
  def self.mother_config_init(app_name: "souls-app")
33
42
  config_dir = "./#{app_name}/config"
34
43
  FileUtils.mkdir_p(config_dir) unless Dir.exist?(config_dir)
@@ -69,6 +78,7 @@ module Souls
69
78
  service_name = (strains[choice_num.to_i - 1]).to_s
70
79
  Souls::Init.download_souls(app_name: app_name, service_name: service_name)
71
80
  Souls::Init.mother_config_init(app_name: app_name)
81
+ Souls::Init.download_github_actions(app_name: app_name)
72
82
  Souls::Init.initial_config_init(app_name: app_name, service_name: service_name)
73
83
  else
74
84
  puts(Paint["Coming Soon...", :blue])
@@ -107,7 +117,7 @@ module Souls
107
117
  puts(line)
108
118
  endroll = <<~TEXT
109
119
  Easy to Run
110
- $ cd #{app_name}/app/#{service_name}
120
+ $ cd #{app_name}/apps/#{service_name}
111
121
  $ bundle
112
122
  $ souls s
113
123
  Go To : http://localhost:4000
@@ -120,12 +130,13 @@ module Souls
120
130
  end
121
131
 
122
132
  def self.download_worker
133
+ current_dir_name = FileUtils.pwd.to_s.match(%r{/([^/]+)/?$})[1]
123
134
  version = Souls.get_latest_version_txt(service_name: "worker").join(".")
124
135
  file_name = "worker-v#{version}.tgz"
125
136
  url = "https://storage.googleapis.com/souls-bucket/boilerplates/workers/#{file_name}"
126
137
  system("curl -OL #{url}")
127
138
  system("mkdir -p ./apps/worker")
128
- system("tar -zxvf ./#{file_name} -C ./apps/worker")
139
+ system("tar -zxvf ./#{file_name} -C ./apps/")
129
140
  FileUtils.rm(file_name)
130
141
  line = Paint["====================================", :yellow]
131
142
  puts("\n")
data/lib/souls/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Souls
2
- VERSION = "0.25.20".freeze
2
+ VERSION = "0.26.2".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 0.4.23
1
+ 0.5.2
@@ -1 +1 @@
1
- 0.4.23
1
+ 0.5.2
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.25.20
4
+ version: 0.26.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - POPPIN-FUMI