me2api-ruby 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- me2api-ruby (0.2.2)
4
+ me2api-ruby (0.2.3)
5
5
  curb (~> 0.8.0)
6
6
  json (~> 1.7.3)
7
7
  rake (~> 0.8.3)
data/README.md CHANGED
@@ -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.4 (2012-07-08)
49
+ - `API::get_post` 의 추가 파라미터 지정시 적용되지 않는 문제 수정
50
+
48
51
  ## 0.2.3 (2012-07-07)
49
52
  - `API#get_post`에 추가 파라미터 지정할 수 있도록 `options` 파라미터 추가
50
53
 
@@ -28,7 +28,7 @@ module Me2API
28
28
 
29
29
  def get_post(post_id, options = {})
30
30
  options[:post_id] = post_id
31
- resp = agent.call("get_posts", :post_id => post_id)
31
+ resp = agent.call("get_posts", options)
32
32
  Post.new(resp.first)
33
33
  end
34
34
 
@@ -1,3 +1,3 @@
1
1
  module Me2API
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
@@ -31,10 +31,11 @@ class APITest < Test::Unit::TestCase
31
31
  end
32
32
 
33
33
  def test_get_post
34
- post = @api.get_post('pyxdhvf-yr5s')
34
+ post = @api.get_post('pyliv_f-bm01', :include_multimedia => true)
35
35
 
36
36
  assert_kind_of(Me2API::Post, post)
37
- assert_equal('pyxdhvf-yr5s', post.post_id)
37
+ assert_equal('pyliv_f-bm01', post.post_id)
38
+ assert_kind_of(Array, post.multimedia)
38
39
  end
39
40
 
40
41
  def test_create_and_delete_post
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: 17
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 3
10
- version: 0.2.3
9
+ - 4
10
+ version: 0.2.4
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-07-07 00:00:00 Z
18
+ date: 2012-07-08 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: rake