fdk 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -9
  3. data/lib/fdk/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 889ac354ba75007c3c66504348de355f1e9df299
4
- data.tar.gz: 57a526258372f03fb5277e6f0b8614879a729d5a
3
+ metadata.gz: 0a04c6a05decf6440ece064c24827dd505eebb86
4
+ data.tar.gz: 2cbbdc2ba37f8c25e2dc067bd42090c4f4409a15
5
5
  SHA512:
6
- metadata.gz: 0e34f13c1f3296853605b3331d9154904dce1dbfc3c7c12fe8256246a9e7715d7b340cbb8ba1877a0c714544f03a3ddc0cc7998f109589760604d16610b4f59c
7
- data.tar.gz: 37a51d0e2fc38dd1aa6974f445bd4aa85f8165827f52084d27930ab24a83bedb694e4e691e45382c0e5f0296897cea462fa4e80501db6f300db51c4d6a8191d3
6
+ metadata.gz: 936660907b2484d6b9f1082c80d078f156da12e14f014c4252f1d9ddb66f2196480ca1d6d17d051d51e181e9e6f25825a99394f33286222b14c48a66e966cfaa
7
+ data.tar.gz: e5d8d24886cf711db36422ea9e434fe430bd288320baf5177c4dbe41aa65042aa9da35801294e29277c2a473ab217da937a1141a51e61a8cde8c11358ae8a832
data/README.md CHANGED
@@ -31,21 +31,19 @@ Then simply pass that function to the FDK:
31
31
  FDK.call(myfunc)
32
32
  ```
33
33
 
34
- ## Example
34
+ ## Full Example
35
35
 
36
36
  ```ruby
37
37
  require 'fdk'
38
38
 
39
- def myfunc(context, input)
40
- return {message: "Hello World!"}
39
+ def myhandler(context, input)
40
+ STDERR.puts "request_url: " + context.protocol['request_url']
41
+ STDERR.puts "call_id: " + context.call_id
42
+ STDERR.puts "input: " + input.to_s
43
+ return {message: "Hello " + input['name'].to_s + "!"}
41
44
  end
42
45
 
43
- FDK.handle(:myfunc)
44
-
45
- def call(context, input)
46
- # Do some work here
47
- return "Hello " + input + "!"
48
- end
46
+ FDK.handle(:myhandler)
49
47
  ```
50
48
 
51
49
  ## Running the example that is in the root directory of this repo
@@ -1,5 +1,5 @@
1
1
  module FDK
2
2
 
3
- VERSION = "0.0.5"
3
+ VERSION = "0.0.6"
4
4
 
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Travis Reeder