faastruby 0.3.6 → 0.3.7
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 +8 -0
- data/Gemfile.lock +2 -2
- data/lib/faastruby/cli.rb +1 -0
- data/lib/faastruby/cli/commands/function/new.rb +2 -2
- data/lib/faastruby/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e9c4ebfe0705c085953b285f9da898433417c2cd719a6646d1953142d22d52be
|
4
|
+
data.tar.gz: 64bcfd70098d3a91bc752a6be8745083344703266b999f6755c89393aaf82355
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef06c3ccfee9ab9020b40ae0c795e1303215ef0e41e36ea1a88c39c2d7ee79e7c97925f8d551a8b96117a72c752e47960f9f5e6d4811dd02fe012cdb072eb764
|
7
|
+
data.tar.gz: 1ca711328493bfb729be489ce5daa6a86850066a1d749cac74ab6a74a2a2f440874f89a3fcfd87c75afa6a9640880d4071046c3a9f459a4cecd6e3491192aaa4
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 0.3.7 - Dec 29 2018
|
4
|
+
- Error when unsupported runtimes are passed to `new`
|
5
|
+
|
6
|
+
## 0.3.6 - Dec 29 2018
|
7
|
+
- Add support for different runtimes with `--runtime` to `new` command. Example: `faastruby new hello-world --runtime ruby:2.6.0`
|
8
|
+
- Add runtime `ruby:2.6.0`
|
9
|
+
- Add runtime `crystal:0.27.0`
|
10
|
+
|
3
11
|
## 0.3.5 - Dec 27 2018
|
4
12
|
- Clean up credentials file when listing or saving it to remove nulls.
|
5
13
|
- Raise error when trying to save null credentials to file.
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
faastruby (0.3.
|
4
|
+
faastruby (0.3.6)
|
5
5
|
colorize (~> 0.8)
|
6
6
|
faastruby-rpc (~> 0.1.3)
|
7
7
|
oj (~> 3.6)
|
@@ -38,7 +38,7 @@ GEM
|
|
38
38
|
mustermann (1.0.3)
|
39
39
|
necromancer (0.4.0)
|
40
40
|
netrc (0.11.0)
|
41
|
-
oj (3.7.
|
41
|
+
oj (3.7.5)
|
42
42
|
pastel (0.7.2)
|
43
43
|
equatable (~> 0.5.0)
|
44
44
|
tty-color (~> 0.4.0)
|
data/lib/faastruby/cli.rb
CHANGED
@@ -9,6 +9,7 @@ require 'faastruby/cli/package'
|
|
9
9
|
module FaaStRuby
|
10
10
|
FAASTRUBY_YAML = 'faastruby.yml'
|
11
11
|
SPINNER_FORMAT = :spin_2
|
12
|
+
SUPPORTED_RUNTIMES = ['ruby:2.5.3', 'ruby:2.6.0', 'crystal:0.27.0']
|
12
13
|
class CLI
|
13
14
|
def self.error(message, color: :red)
|
14
15
|
message.each {|m| STDERR.puts m.colorize(color)} if message.is_a?(Array)
|
@@ -29,8 +29,7 @@ module FaaStRuby
|
|
29
29
|
|
30
30
|
--blank # Create a blank function
|
31
31
|
--force # Continue if directory already exists and overwrite files
|
32
|
-
--runtime # Choose the runtime. Options are:
|
33
|
-
# ruby:2.5.3 (default) and ruby:2.6.0
|
32
|
+
--runtime # Choose the runtime. Options are: #{SUPPORTED_RUNTIMES.join(', ')}
|
34
33
|
EOS
|
35
34
|
end
|
36
35
|
|
@@ -49,6 +48,7 @@ EOS
|
|
49
48
|
@options['runtime'] = @args.shift
|
50
49
|
@options['runtime_name'], @options['runtime_version'] = @options['runtime'].split(':')
|
51
50
|
@options['template_path'] = "templates/#{@options['runtime_name']}"
|
51
|
+
FaaStRuby::CLI.error(["Unsupported runtime: #{@options['runtime']}".red, "Supported values are #{SUPPORTED_RUNTIMES.join(", ")}"], color: nil) unless SUPPORTED_RUNTIMES.include?(@options['runtime'])
|
52
52
|
when '-f', '--force'
|
53
53
|
@options['force'] = true
|
54
54
|
when '--blank'
|
data/lib/faastruby/version.rb
CHANGED