faastruby 0.4.17 → 0.4.18

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: 2a70f92187c1a882aeee76b3276421e4c2ad36117c9b1646b4b121f3d73470d5
4
- data.tar.gz: e99d5a22bf986eaab1ab352b2f9acf95f7d8f4d9baafc95b032e0c4ec16bb822
3
+ metadata.gz: 45aba1191c45d93ec188ef15d6c7ee7b029d17aa22c04a83037998b8bf9120f1
4
+ data.tar.gz: 37c5af350995b96d8d299980865ad06688a70b74acafa24a591ca2b50711d8e2
5
5
  SHA512:
6
- metadata.gz: 8e4a585eb2319de1c4c6e6fb799525be3798a1fe8e5821b4d0135d9cf13482e6a1f654bcdb43d6c7ba4a41a316ea37cb8a632f2c0f68981c92e27e2bd77002bc
7
- data.tar.gz: 6b04e9cfead0cfe0f88df3623c1ef5a6ef8e974dbc7a7f236858d39e69bd89c2a543ede5a44a99d3501dc0bffb767a8ff2f5145b5fd82c6102c9f3611921507f
6
+ metadata.gz: 9c933a8f74157af31f8295034c7b81c081eb9bec68ad7295bb1365095a7b24c1f49fad9c8963c4a50fbdc53779b4baab8924cde5d9f4576cd3eefa645aa9184f
7
+ data.tar.gz: 4fd99240f8ab2065f5cdeeaa22ec886d5a3d9513a16ee81d5df3c9f4e92ea8a1355af9be9407e34ba50753ea4ffbf79a2d9b41886c1123366737a9f3e3c80c94
@@ -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
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- faastruby (0.4.17)
4
+ faastruby (0.4.18)
5
5
  colorize (~> 0.8)
6
6
  faastruby-rpc (~> 0.2.1)
7
7
  oj (~> 3.6)
@@ -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.1']
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
@@ -1,3 +1,3 @@
1
1
  module FaaStRuby
2
- VERSION = '0.4.17'
2
+ VERSION = '0.4.18'
3
3
  end
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.17
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-04 00:00:00.000000000 Z
11
+ date: 2019-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client