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 +4 -4
- data/lib/cortex/posts.rb +4 -0
- data/lib/cortex/version.rb +1 -1
- data/spec/posts_spec.rb +7 -0
- 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: e419c4728ee8a406508ab98228d7cdfc45bcd48f
|
4
|
+
data.tar.gz: 120729a62acb477abf196d7f7c2da88130d1295e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a68e6b55b256c909b96a9d3800945b949908ec1c127eab6a0d8973a9b8e69994e7a5fd53143c11f3356711767c588b0a23641a1b12189f67e1021ab8155f1561
|
7
|
+
data.tar.gz: ca68f9520ab68818e46cb4443217601d73aa740e40ec454ac4ba2c452696db20d61e98def54f2fa787f4d2b1b7e21b3f6f223e4b7d724fe0480b98e5cf15382a
|
data/lib/cortex/posts.rb
CHANGED
data/lib/cortex/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2014-07-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|