skype_bot 0.0.1 → 0.0.2

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
  SHA1:
3
- metadata.gz: 4d2a45e74703578a6920b8b3757ca6e714032744
4
- data.tar.gz: 21075dafd0c9ba5496b3b03e05392d7d7043635b
3
+ metadata.gz: a03d772b5abd91c6c8d895f55d583fb08873314a
4
+ data.tar.gz: bb50576e96b07f8fbe53adb6cb591817edd6bf2e
5
5
  SHA512:
6
- metadata.gz: 6a08546f4696ab76210fb3d95d5f6dcf289009ae4e26128a977242f93c51ce113354e2ae9709279e1d56806b3877c1096b4ac7e48a059bc036d2524cdc694742
7
- data.tar.gz: 36675722c455ec4c7aed57d5564e6818bf6cfea5e6eee4c8e91529ee8a2b89e737e3e551f8326b4e44f52e5024054fd7fd63da195d59dd3070ba6f7801ef40ae
6
+ metadata.gz: 0a298a2b7b6b01cefa30270e585d021b9f15861126d13ad6fc60f5d9c69ffb54fde5a45d533e1c3a6598bf116b0a3a58c058e8375d52c34fea6b7646687cb71f
7
+ data.tar.gz: 8f5d756b0a6f7a0abca476dff820e01a269dc077ba21dd305968c323b0e5c82c59caf1e15be274c3e8afb330aa2f9c2c7cccb7e60aee8722901ada67c015ad27
@@ -3,6 +3,7 @@ require 'typhoeus'
3
3
  require 'skype_bot/activity'
4
4
  require 'skype_bot/auth'
5
5
  require 'skype_bot/config'
6
+ require 'skype_bot/parser'
6
7
  require 'skype_bot/version'
7
8
 
8
9
  module SkypeBot
@@ -3,18 +3,19 @@ module SkypeBot
3
3
  attr_accessor :payload
4
4
 
5
5
  def initialize(data)
6
- @payload = payload['_json']
6
+ @payload = data['_json']
7
7
  end
8
8
 
9
9
  def execute
10
10
  payload.map do |event|
11
11
  {
12
+ action: event['action'],
12
13
  type: event['activity'].underscore,
13
14
  from: event['from'],
14
15
  display_name: event['fromDisplayName'],
15
16
  to: event['to'],
16
17
  time: Time.parse(event['time']),
17
- content: event['content'] }
18
+ content: event['content']
18
19
  }
19
20
  end
20
21
  end
@@ -1,3 +1,3 @@
1
1
  module SkypeBot
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: skype_bot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - MQuy