faastruby 0.4.9 → 0.4.10

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: a1643e934126a8b362f512fef2ab59834562fc01cc1d8751f9ee7606d1586503
4
- data.tar.gz: f363ba8b0befa0a807fd16f29c28893a7c5302457628511d77d9675c2683ce13
3
+ metadata.gz: 102f45efaac0660cbc635d8e0c7f016b956faadd76469b7269061e4f671b9ccc
4
+ data.tar.gz: 515f44f1483b17fa84470e515a5d4006f9c8470c935b2cbd7967f33f4ce4855a
5
5
  SHA512:
6
- metadata.gz: adce689b5896a361aed94ea73438d1cf7090afc3638f438fa9744cf9a8cceb34cf5a5c089506c24c47f433c22be0ed35cabb3c3266301fff731dc1a2415ba475
7
- data.tar.gz: fc39dcf79dc53e71e788233b978f756aab26907562c0fb07cc912496c4b1821a151c2f2f3ba5db65476046f3bc31e284e17fb2a70d3bd304cc8a8c4c1293da89
6
+ metadata.gz: f0bda92002e8c4fbd7255a46288d045db8c0909530c258ed9ba4e58372d4505f32a8d3494251f2199ef7d1a112a679eba7d59b967a5222555973c3efc2cd2c30
7
+ data.tar.gz: bd2c81c020663dfc1e4b5b5ed490ed8b81fdfd97bbd55a0669036a3a93c728b8fdf6ef592c1598f0b7b4c512f93c6ba003b5a97052c555ebda1a82e02f718a7d
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.10 - Jan 14 2019
4
+ - Fix command `faastruby server`
5
+
3
6
  ## 0.4.9 - Jan 13 2019
4
7
  - Changes in `faastruby server`
5
8
  - Cleaned up code
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- faastruby (0.4.8)
4
+ faastruby (0.4.9)
5
5
  colorize (~> 0.8)
6
6
  faastruby-rpc (~> 0.2.1)
7
7
  oj (~> 3.6)
data/README.md CHANGED
@@ -8,28 +8,22 @@ CLI tool for managing workspaces and functions hosted at [FaaStRuby](https://faa
8
8
  ## What is FaaStRuby?
9
9
  FaaStRuby is a serverless platform built for Ruby developers.
10
10
 
11
- * [Tutorial](https://faastruby.io/tutorial.html)
11
+ * [Tutorial](https://faastruby.io/getting-started)
12
12
 
13
13
  ## Try it
14
14
 
15
15
  1. Install the gem:
16
16
 
17
17
  ```
18
- $ gem install faastruby
18
+ ~$ gem install faastruby
19
19
  ```
20
20
 
21
- 2. Create a workspace to deploy your functions. The workspace name must be unique (like a username).
21
+ 2. Create a function and deploy it to a workspace:
22
22
 
23
23
  ```
24
- $ faastruby create-workspace awesome-prod
25
- ```
26
-
27
- 3. Create a function and deploy it to your workspace:
28
-
29
- ```
30
- $ faastruby new my-first-function
31
- $ cd my-first-function
32
- $ faastruby deploy-to awesome-prod
24
+ ~$ faastruby new hello-world
25
+ ~$ cd hello-world
26
+ ~/hello-world$ faastruby deploy-to awesome-prod
33
27
  ◐ Running tests... Passed!
34
28
  ...
35
29
 
@@ -38,20 +32,14 @@ Finished in 0.00563 seconds (files took 0.15076 seconds to load)
38
32
 
39
33
  ◐ Building package... Done!
40
34
  ◐ Deploying to workspace 'awesome-prod'... Done!
35
+ Endpoint: https://api.tor1.faastruby.io/awesome-prod/hello-world
41
36
  ```
42
37
 
43
- 4. Run it:
44
-
45
- ```
46
- $ faastruby run awesome-prod --json '{"name":"Ruby"}'
47
- Hello, Ruby!
48
- ```
49
-
50
- You can also generate a CURL command:
38
+ 3. Run it:
51
39
 
52
40
  ```
53
- $ faastruby run awesome-prod --json '{"name":"Ruby"}' --header 'My-Header: value' --query 'foo=bar' --query 'baz=fox' --curl
54
- curl -X POST -H 'Content-Type: application/json' -H 'My-Header: value' -d '{"name":"Ruby"}' 'https://api.faastruby.io/awesome-prod/my-first-function?foo=bar&baz=fox'
41
+ ~/hello-world$ curl https://api.tor1.faastruby.io/awesome-prod/hello-world
42
+ Hello, World!
55
43
  ```
56
44
 
57
45
  Build lots of functions and share them with fellow Ruby devs!
@@ -19,6 +19,7 @@ when '-b', '-o'
19
19
  end
20
20
  set :server, %w[puma]
21
21
  set :show_exceptions, true
22
+ set :run, true
22
23
 
23
24
  register Sinatra::MultiRoute
24
25
  route :get, :post, :put, :patch, :delete, '/:workspace_name/:function_name' do
@@ -71,4 +72,3 @@ end
71
72
  def self.run?
72
73
  true
73
74
  end
74
-
@@ -1,3 +1,3 @@
1
1
  module FaaStRuby
2
- VERSION = '0.4.9'
2
+ VERSION = '0.4.10'
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.9
4
+ version: 0.4.10
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-01-13 00:00:00.000000000 Z
11
+ date: 2019-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client