faastruby 0.4.0 → 0.4.1

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: 178ae19dfe92b53e2999fdc813c917d3857a1788913392399d0277f9be856ba6
4
- data.tar.gz: 9cc19b7f28601b7ff0a9172bfd52959b41c7636b35bf7c42664c254d5c3d3aa7
3
+ metadata.gz: 8244bab88a55713b6fc3120d3a6918eec1624bba59587f0ccc0bd6121d6420ed
4
+ data.tar.gz: c3a91bf9d948abe7f74cb3b97ad8851162395ca5798adcd80df2a5e1e8bcedea
5
5
  SHA512:
6
- metadata.gz: 1efa109f73c944632dce9a603a4dabed5d4b988962adc473c93d9d23ee9a29b51f7de06a9cf791b46ca5530c55217176ce4d34d5e5a67ef9482338a436e66442
7
- data.tar.gz: 4cd3bd725b0062e436fa76a4746aff4d23f43eb59f279f58ad2e3546eba4f51ac8b175e0f3ac63f332d02874aeb3b6b89984de75e785569cb4895f5143eca962
6
+ metadata.gz: c926551e21f64042f6c566755596ea8e53831e58b7ae97b5a07f0d5e47bd73aadfed85b71b135fa0552afca9b7c3c039aa48020e3efbe01fe80f96d56f578ec3
7
+ data.tar.gz: f5de476b2f82b8f16ab32d512d68b399c7a76a8436812cb9dddbe519ca0674eba12ab038c5e040052ed6e4a1b4669414392f8ba5701a429452d3e0ab7aad52bc
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.1 - Dec 30 2018
4
+ - Updated ruby templates
5
+
3
6
  ## 0.4.0 - Dec 29 2018
4
7
  - Faster hello-world Ruby template.
5
8
  - Ruby 2.6.0 and Crystal (beta) 0.27.0 released.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- faastruby (0.3.8)
4
+ faastruby (0.4.0)
5
5
  colorize (~> 0.8)
6
6
  faastruby-rpc (~> 0.1.3)
7
7
  oj (~> 3.6)
@@ -1,3 +1,3 @@
1
1
  module FaaStRuby
2
- VERSION = '0.4.0'
2
+ VERSION = '0.4.1'
3
3
  end
@@ -10,7 +10,7 @@ describe "handler(event)" do
10
10
  }
11
11
  event = Event.from_json(event_hash.to_json)
12
12
 
13
- it "should return Hash, String or Array" do
13
+ it "should return String" do
14
14
  body = handler(event).body
15
15
  body.class.should eq(String)
16
16
  end
@@ -2,10 +2,10 @@ require 'spec_helper'
2
2
  require 'handler'
3
3
 
4
4
  describe 'handler(event)' do
5
- let(:event) {SpecHelper::Event.new}
5
+ # let(:event) {SpecHelper::Event.new(body: 'Hello', context: 'secret_data', headers: {'MyHeader' => true}, query_params: {'foo' => 'bar'})}
6
6
 
7
- it 'should return Hash, String or Array' do
8
- body = handler(event).call.body
9
- expect([String, Hash, Array, ].include? body.class).to be true
7
+ xit 'write some tests here' do
8
+ # function_return = handler(event).call
9
+ expect(true).to eq(false)
10
10
  end
11
11
  end
@@ -4,9 +4,9 @@ require 'handler'
4
4
  describe 'handler(event)' do
5
5
  let(:event) {SpecHelper::Event.new}
6
6
 
7
- it 'should return Hash, String or Array' do
7
+ it 'should return a String' do
8
8
  body = handler(event).call.body
9
- expect([String, Hash, Array].include? body.class).to be true
9
+ expect(body).to be_a(String)
10
10
  end
11
11
  it 'should reply Hello, World!' do
12
12
  body = handler(event).call.body
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.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paulo Arruda
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-12-30 00:00:00.000000000 Z
11
+ date: 2018-12-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client