mypeople 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -0
- data/lib/mypeople/bot.rb +1 -1
- data/lib/mypeople/client.rb +3 -2
- data/lib/mypeople/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62ce89799db200facc64bf5b461d1a974d33511c
|
4
|
+
data.tar.gz: 67d7dea16b97d3f2d6e6babd0294da04fd59b96d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 08d5dec9a5951f6a8f6275873596b443a0a67bc83312cb5774da121d016d793a4b9c73674d01899b839cbba65105ff4b7514a5d092603c643b63cf2aab481c63
|
7
|
+
data.tar.gz: 1a12796f41818c1bb59f837c8bbfd5218ba811959cda8a02bc0a9b992122b01be56baaf024cccae4723d60d487c6311a16356fe44d902e8b4f16df7c28dd765e
|
data/README.md
CHANGED
data/lib/mypeople/bot.rb
CHANGED
data/lib/mypeople/client.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
require 'net/http'
|
2
2
|
require 'forwardable'
|
3
3
|
require 'openssl'
|
4
|
+
require 'json'
|
4
5
|
|
5
6
|
module Mypeople
|
6
7
|
class Configuration
|
@@ -78,14 +79,14 @@ module Mypeople
|
|
78
79
|
data = URI.encode_www_form(data)
|
79
80
|
resp, body = http.send_request("GET", "#{path}?#{data}")
|
80
81
|
|
81
|
-
resp.body
|
82
|
+
JSON.parse(resp.body)
|
82
83
|
end
|
83
84
|
|
84
85
|
def post(http, path, data)
|
85
86
|
data = URI.encode_www_form(data)
|
86
87
|
resp, body = http.send_request("POST", path, data)
|
87
88
|
|
88
|
-
resp.body
|
89
|
+
JSON.parse(resp.body)
|
89
90
|
end
|
90
91
|
|
91
92
|
def send_message_to_buddy(buddy_id, content, attach = nil)
|
data/lib/mypeople/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mypeople
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Taekmin Kim
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-02-
|
11
|
+
date: 2014-02-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|