cortex-client 0.1.2 → 0.1.3

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: 8d4a7029a68781747888bb6898fb8c492ca01689
4
- data.tar.gz: ed321e8718b45133e3e2ea0547b630f9f15bad08
3
+ metadata.gz: e419c4728ee8a406508ab98228d7cdfc45bcd48f
4
+ data.tar.gz: 120729a62acb477abf196d7f7c2da88130d1295e
5
5
  SHA512:
6
- metadata.gz: f49c24080ffd139603628769558ac0690301017204749441735c99b38c4b757914edd2b8ffa98d85ac6df2925dd65e058e117546fa111b6dd768b74ff7788518
7
- data.tar.gz: 9937c642d87e1cd06e3bd98ad1e348abca4a4681d8055969ef4cf1ca959c635b81c255fa6e9aca579c70268e443ad8c416b581a97f298c6134f5f93c38fe690c
6
+ metadata.gz: a68e6b55b256c909b96a9d3800945b949908ec1c127eab6a0d8973a9b8e69994e7a5fd53143c11f3356711767c588b0a23641a1b12189f67e1021ab8155f1561
7
+ data.tar.gz: ca68f9520ab68818e46cb4443217601d73aa740e40ec454ac4ba2c452696db20d61e98def54f2fa787f4d2b1b7e21b3f6f223e4b7d724fe0480b98e5cf15382a
data/lib/cortex/posts.rb CHANGED
@@ -23,5 +23,9 @@ module Cortex
23
23
  def filters
24
24
  client.get('/posts/filters')
25
25
  end
26
+
27
+ def related(id)
28
+ client.get("/posts/feed/#{id}/related")
29
+ end
26
30
  end
27
31
  end
@@ -1,3 +1,3 @@
1
1
  module Cortex
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end
data/spec/posts_spec.rb CHANGED
@@ -47,4 +47,11 @@ describe Cortex::Posts do
47
47
  client.posts.filters().should == 'success'
48
48
  end
49
49
  end
50
+
51
+ describe :related do
52
+ it 'should correctly make the request' do
53
+ client.should_receive(:get).with('/posts/feed/1/related').and_return('success')
54
+ client.posts.related(1).should == 'success'
55
+ end
56
+ end
50
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cortex-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bennett Goble
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-15 00:00:00.000000000 Z
11
+ date: 2014-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake