souls 1.13.8 → 1.14.0

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: 72b7296bab23e98fd9b93903438de51f974d3c6b5e259ac33507482709a2d42f
4
- data.tar.gz: 3bc159dcedd469188c6dae391e33e66457967f028459ee409d98bacb29213ac9
3
+ metadata.gz: 4e0a0c2f62583042427032c3802a5891673d34133516fff6612a23e57f0ac856
4
+ data.tar.gz: cc603ee54459e86da37bc87a3f3ee19c3cf36c6190ee00fb3977aec9ab9a828a
5
5
  SHA512:
6
- metadata.gz: cdf23e5b33d20ddb69e9f8c53df6500477114f098a76d7815378f0a4c5ed7c9f8154a6fdface501449eb3af8d9d2af1510250af20717ab912cb89feb0839cfc8
7
- data.tar.gz: 3a501236dc84b6b7156603a9e4b65a0c7afdc13048c4b1d42b8f27dcfe266198bc801e9ec1cbe58ced9f90b2842bb1d0b233879b4b7e9a30b9aa5361f47203b2
6
+ metadata.gz: 23a902c39fcb35b1c9e11c23c44db2af53807e56537b256cb4d12672403d9e9fc3eab0985c6c5b37ffbd6b77de8a0792be1c4ec8fdaeecb00ef15df775716cb2
7
+ data.tar.gz: c11dad7563e808fffc9f3532a962746d7f94c3a120d248d712d965c96e19baa8df46b33191aeabda271b6e1d3d0d86758f607875104f1533361c0c79b1dbbe81
@@ -4,6 +4,7 @@ module Template
4
4
  require "functions_framework"
5
5
  require "sinatra/base"
6
6
  require "dotenv/load"
7
+ require "souls"
7
8
 
8
9
  class App < Sinatra::Base
9
10
  get "/souls-functions-get/:name" do
@@ -6,6 +6,7 @@ module Template
6
6
  gem "dotenv", "2.7.6"
7
7
  gem "functions_framework", "~> 0.7"
8
8
  gem "sinatra", "2.1.0"
9
+ gem "souls", "#{Souls::VERSION}"
9
10
 
10
11
  GEMFILE
11
12
  end
@@ -2,8 +2,8 @@ module Souls
2
2
  class Functions < Thor
3
3
  desc "deploy", "Deploy Cloud Functions"
4
4
  def deploy
5
+ require(Souls.get_mother_path.to_s + "/config/souls")
5
6
  project_id = Souls.configuration.project_id
6
- Souls::Gcloud.new.config_set
7
7
  Dir.chdir(Souls.get_functions_path.to_s) do
8
8
  system(
9
9
  "
@@ -1,11 +1,17 @@
1
1
  module Souls
2
2
  module Utils
3
3
  def get_mother_path
4
- Dir.pwd.split(Souls.configuration.app)[0] + Souls.configuration.app
4
+ file_array = Dir.pwd.split("/")
5
+ mother_dir_num = file_array.rindex("apps")
6
+ file_array.each_slice(mother_dir_num).to_a[0].join("/")
7
+ end
8
+
9
+ def get_functions_path
10
+ get_mother_path + "/apps/functions"
5
11
  end
6
12
 
7
13
  def get_api_path
8
- Dir.pwd.split(Souls.configuration.app)[0] + Souls.configuration.app + "/apps/api"
14
+ get_mother_path + "/apps/api"
9
15
  end
10
16
 
11
17
  def type_check(type)
data/lib/souls/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Souls
2
- VERSION = "1.13.8".freeze
2
+ VERSION = "1.14.0".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 1.13.8
1
+ 1.14.0
@@ -1 +1 @@
1
- 1.13.8
1
+ 1.14.0
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.13.8
4
+ version: 1.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - POPPIN-FUMI