souls 1.14.0 → 1.14.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4e0a0c2f62583042427032c3802a5891673d34133516fff6612a23e57f0ac856
4
- data.tar.gz: cc603ee54459e86da37bc87a3f3ee19c3cf36c6190ee00fb3977aec9ab9a828a
3
+ metadata.gz: 86e9a0ba6f61532e0ceb30f68cbf47445b84e53c034366f287cb514be8c50bcb
4
+ data.tar.gz: 01a9ad3ff6c9d73633041cd4f4befc197adf1bfefb55208cfb6793a27010ef9a
5
5
  SHA512:
6
- metadata.gz: 23a902c39fcb35b1c9e11c23c44db2af53807e56537b256cb4d12672403d9e9fc3eab0985c6c5b37ffbd6b77de8a0792be1c4ec8fdaeecb00ef15df775716cb2
7
- data.tar.gz: c11dad7563e808fffc9f3532a962746d7f94c3a120d248d712d965c96e19baa8df46b33191aeabda271b6e1d3d0d86758f607875104f1533361c0c79b1dbbe81
6
+ metadata.gz: 5474dc7a392e012288a6db34b0f1a960a0c2452649a1b9146f8515aea9352fa4c67d30fb447fc388bbcb83260d665c2301edf23a608d214643ec970f37af5d12
7
+ data.tar.gz: 49804c5f3b4b2ce9cf35290e948c8b3663c13a9f0b0b0791d5af1ae73b9966bf6d4675a015521327993bb2770acb35361b3815d74bdff929db7c9f8e20ba6cf7
data/exe/souls CHANGED
@@ -3,7 +3,14 @@ require "souls"
3
3
  require "thor"
4
4
  begin
5
5
  souls_command = ARGV[0]
6
- require("./config/souls") unless ["new", "docker", "-v", "help", "", nil].include?(souls_command)
6
+ require(Souls.get_mother_path.to_s + "/config/souls") unless [
7
+ "new",
8
+ "docker",
9
+ "-v",
10
+ "help",
11
+ "",
12
+ nil
13
+ ].include?(souls_command)
7
14
  rescue StandardError
8
15
  raise(StandardError, "No config! Please make `./config/souls.rb` File!")
9
16
  end
@@ -3,7 +3,7 @@ module Souls
3
3
  def get_mother_path
4
4
  file_array = Dir.pwd.split("/")
5
5
  mother_dir_num = file_array.rindex("apps")
6
- file_array.each_slice(mother_dir_num).to_a[0].join("/")
6
+ mother_dir_num ? file_array.slice(mother_dir_num).join("/") : file_array.join("/")
7
7
  end
8
8
 
9
9
  def get_functions_path
data/lib/souls/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Souls
2
- VERSION = "1.14.0".freeze
2
+ VERSION = "1.14.1".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 1.14.0
1
+ 1.14.1
@@ -1 +1 @@
1
- 1.14.0
1
+ 1.14.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: 1.14.0
4
+ version: 1.14.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - POPPIN-FUMI