me2api-ruby 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- me2api-ruby (0.2.1)
4
+ me2api-ruby (0.2.2)
5
5
  curb (~> 0.8.0)
6
6
  json (~> 1.7.3)
7
7
  rake (~> 0.8.3)
data/README.md CHANGED
@@ -6,7 +6,7 @@ A Ruby wrapper for the Me2day API.
6
6
  설치
7
7
  ====
8
8
 
9
- gem install me2day-ruby
9
+ gem install me2api-ruby
10
10
 
11
11
  사용례
12
12
  =====
@@ -45,6 +45,9 @@ For more information, see http://unlicense.org/ or the accompanying UNLICENSE fi
45
45
  ChangeLog
46
46
  =========
47
47
 
48
+ ## 0.2.3 (2012-07-07)
49
+ - `API#get_post`에 추가 파라미터 지정할 수 있도록 `options` 파라미터 추가
50
+
48
51
  ## 0.2.2 (2012-06-30)
49
52
 
50
53
  - `Model#type` 메소드에 대해서도 속성을 반환하도록 변경
data/lib/me2api/agent.rb CHANGED
@@ -2,6 +2,7 @@ require 'cgi'
2
2
  require 'curb'
3
3
  require 'digest/md5'
4
4
  require 'json'
5
+ require 'logger'
5
6
 
6
7
  module Me2API
7
8
  class Me2dayAPIError < StandardError; end
data/lib/me2api/api.rb CHANGED
@@ -26,7 +26,8 @@ module Me2API
26
26
  Person.new(resp)
27
27
  end
28
28
 
29
- def get_post(post_id)
29
+ def get_post(post_id, options = {})
30
+ options[:post_id] = post_id
30
31
  resp = agent.call("get_posts", :post_id => post_id)
31
32
  Post.new(resp.first)
32
33
  end
@@ -1,3 +1,3 @@
1
1
  module Me2API
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: me2api-ruby
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 2
10
- version: 0.2.2
9
+ - 3
10
+ version: 0.2.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Heungseok Do
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-06-30 00:00:00 Z
18
+ date: 2012-07-07 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: rake