faastruby 0.4.17 → 0.4.18
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 +4 -4
- data/CHANGELOG.md +6 -0
- data/Gemfile.lock +1 -1
- data/lib/faastruby/cli.rb +1 -1
- data/lib/faastruby/cli/commands/function/build.rb +5 -0
- data/lib/faastruby/cli/commands/function/deploy_to.rb +5 -0
- data/lib/faastruby/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 45aba1191c45d93ec188ef15d6c7ee7b029d17aa22c04a83037998b8bf9120f1
|
|
4
|
+
data.tar.gz: 37c5af350995b96d8d299980865ad06688a70b74acafa24a591ca2b50711d8e2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9c933a8f74157af31f8295034c7b81c081eb9bec68ad7295bb1365095a7b24c1f49fad9c8963c4a50fbdc53779b4baab8924cde5d9f4576cd3eefa645aa9184f
|
|
7
|
+
data.tar.gz: 4fd99240f8ab2065f5cdeeaa22ec886d5a3d9513a16ee81d5df3c9f4e92ea8a1355af9be9407e34ba50753ea4ffbf79a2d9b41886c1123366737a9f3e3c80c94
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.4.19 - Unreleased
|
|
4
|
+
- New key on faastruby.yml - `before_build` allows you to specify commands to run locally before building and uploading the function package.
|
|
5
|
+
|
|
6
|
+
## 0.4.18 - Feb 6 2019
|
|
7
|
+
- Bumps runtime crystal:0.27.1 to crystal:0.27.2
|
|
8
|
+
|
|
3
9
|
## 0.4.17 - Feb 4 2019
|
|
4
10
|
- Fix bug when cloning git repos with --template git:...
|
|
5
11
|
|
data/Gemfile.lock
CHANGED
data/lib/faastruby/cli.rb
CHANGED
|
@@ -11,7 +11,7 @@ require 'erb'
|
|
|
11
11
|
module FaaStRuby
|
|
12
12
|
FAASTRUBY_YAML = 'faastruby.yml'
|
|
13
13
|
SPINNER_FORMAT = :spin_2
|
|
14
|
-
SUPPORTED_RUNTIMES = ['ruby:2.5.3', 'ruby:2.6.0', 'ruby:2.6.1', 'crystal:0.27.0', 'crystal:0.27.
|
|
14
|
+
SUPPORTED_RUNTIMES = ['ruby:2.5.3', 'ruby:2.6.0', 'ruby:2.6.1', 'crystal:0.27.0', 'crystal:0.27.2']
|
|
15
15
|
class CLI
|
|
16
16
|
def self.error(message, color: :red)
|
|
17
17
|
message.each {|m| STDERR.puts m.colorize(color)} if message.is_a?(Array)
|
|
@@ -52,6 +52,11 @@ module FaaStRuby
|
|
|
52
52
|
private
|
|
53
53
|
|
|
54
54
|
def build(source, output_file)
|
|
55
|
+
spinner = spin("Running 'before_deploy' tasks...")
|
|
56
|
+
@yaml_config['before_deploy']&.each do |command|
|
|
57
|
+
puts `#{command}`
|
|
58
|
+
end
|
|
59
|
+
spinner.stop(' Done!')
|
|
55
60
|
self.class.build(source, output_file)
|
|
56
61
|
end
|
|
57
62
|
|
|
@@ -100,6 +100,11 @@ module FaaStRuby
|
|
|
100
100
|
def build_package
|
|
101
101
|
source = '.'
|
|
102
102
|
output_file = "#{@function_name}.zip"
|
|
103
|
+
spinner = spin("Running 'before_deploy' tasks...")
|
|
104
|
+
@yaml_config['before_deploy']&.each do |command|
|
|
105
|
+
puts `#{command}`
|
|
106
|
+
end
|
|
107
|
+
spinner.stop(' Done!')
|
|
103
108
|
FaaStRuby::Command::Function::Build.build(source, output_file, true)
|
|
104
109
|
output_file
|
|
105
110
|
end
|
data/lib/faastruby/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: faastruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.18
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Paulo Arruda
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-02-
|
|
11
|
+
date: 2019-02-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rest-client
|