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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b32377c4f564000f821785a5c76644f4f1c666d8
4
- data.tar.gz: ebe1a3597f0af06953cb19a03b4883ac3ff1f89e
3
+ metadata.gz: 62ce89799db200facc64bf5b461d1a974d33511c
4
+ data.tar.gz: 67d7dea16b97d3f2d6e6babd0294da04fd59b96d
5
5
  SHA512:
6
- metadata.gz: ee0c62ce7d9b419e1d8c0a8d75bd323a9933009b55b5d1488c553737d0540dbec743b649c81576db5ecc4542f44fadcdcb4aac04f386990d1510a07db84021b4
7
- data.tar.gz: fdedeb80ae9f435e60e7debd06c2e478069bf20d2483d3e1d5427be5fc7ad241fce283beaa4686e7f02867a4bd2cb9a5dfa11ffe30cf0dac6f3ba843340e4d10
6
+ metadata.gz: 08d5dec9a5951f6a8f6275873596b443a0a67bc83312cb5774da121d016d793a4b9c73674d01899b839cbba65105ff4b7514a5d092603c643b63cf2aab481c63
7
+ data.tar.gz: 1a12796f41818c1bb59f837c8bbfd5218ba811959cda8a02bc0a9b992122b01be56baaf024cccae4723d60d487c6311a16356fe44d902e8b4f16df7c28dd765e
data/README.md CHANGED
@@ -20,6 +20,10 @@ Or install it yourself as:
20
20
 
21
21
  ### Setup
22
22
 
23
+ # config/initialize/mypeople.rb
24
+
25
+ require 'mypeople'
26
+
23
27
  Mypeople.configure do |config|
24
28
  config.host = "https://api.daum.net"
25
29
  config.key = "다음 API 콘솔에서 발급 받은 키"
data/lib/mypeople/bot.rb CHANGED
@@ -2,7 +2,7 @@ module Mypeople
2
2
  class Bot < Requirement
3
3
  class << self
4
4
  def exit(group_id)
5
- client.exit_from_group(buddy_id)
5
+ client.exit_from_group(group_id)
6
6
  end
7
7
  end
8
8
  end
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module Mypeople
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
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.3
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-17 00:00:00.000000000 Z
11
+ date: 2014-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler