souls 0.24.3 → 0.24.4

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: ba7f71524ac605ce72fcb622c1c00d0ff27efaf802ffe77fb1f480fa1473b324
4
- data.tar.gz: 9b9e076744f383c65617cd3b70298257d3ed2e3193dd90747c488e9248c695f9
3
+ metadata.gz: 949cc1a83a8fd104832c205db7f8eab135bc3298523751538a7d767769b7ac27
4
+ data.tar.gz: 2fa4257d0231d0363989a9ec85028276e68e33752c3a57067b1e5f5895dcdb24
5
5
  SHA512:
6
- metadata.gz: 59a4c236a08e4cb86522396ee2c39a4db6084975013350925baee58ae24f4cbf0d4487c828684ba69f163c9cec9452bf2c12da928cc7fc2ccc493332020e08e0
7
- data.tar.gz: 9ddf0ba770f7a8c18d6a677a2039cbd9306179b8876f33b54fbe3d496c5366abfa93374d314b34c37aec53712d7e78133dd9a36317097071b8a85a2aa6aa06ed
6
+ metadata.gz: ef3ab7e883db0805b78b41e5f51dfb2666617e99a07b490b84c36622c216efd81ac0346dbb9dd226db06704ca24828dc2cdb40c699516add438c318512736ce9
7
+ data.tar.gz: 0ec076686c79072c96978a55430d00a59cca6c1978077e8a48dd3108dc074fc2770f4a8a9c42d4b490308380fa5ab7d4cc6c2e410ab34f376fefcd35a87e468b
data/lib/souls/init.rb CHANGED
@@ -9,6 +9,21 @@ module Souls
9
9
  data[0]["tag_name"]
10
10
  end
11
11
 
12
+ def self.initial_config_init(app_name: "souls", strain: "api")
13
+ FileUtils.touch("./#{app_name}/config/souls.rb")
14
+ file_path = "./#{app_name}/config/souls.rb"
15
+ File.open(file_path, "w") do |f|
16
+ f.write(<<~TEXT)
17
+ Souls.configure do |config|
18
+ config.app = "#{app_name}"
19
+ config.strain = "#{strain}"
20
+ end
21
+ TEXT
22
+ end
23
+ rescue StandardError => e
24
+ puts(e)
25
+ end
26
+
12
27
  def self.download_souls(app_name: "souls", repository_name: "souls_api ")
13
28
  version = get_version(repository_name: repository_name)
14
29
  system("curl -OL https://github.com/elsoul/#{repository_name}/archive/#{version}.tar.gz")
data/lib/souls/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Souls
2
- VERSION = "0.24.3".freeze
2
+ VERSION = "0.24.4".freeze
3
3
  public_constant :VERSION
4
4
  end
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.24.3
4
+ version: 0.24.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - POPPIN-FUMI