cortex-client 0.10.1 → 0.10.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1 -0
- data/lib/cortex/posts.rb +4 -0
- data/lib/cortex/version.rb +1 -1
- data/spec/posts_spec.rb +7 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8da39f14dbbc93d26841f83fbb7ac1178a993047
|
4
|
+
data.tar.gz: dd6d75b58849ef0193bd0575608d070d71d74ee7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5509f01a99c25ba1c94a6b5926d44e6b76d24a94e89337ecf86d37884d7fa9c4e1f3ee141e7f47af6475bbf1539f54c2a2a92c57ae3ab8dfbb6d6ccf2910ac18
|
7
|
+
data.tar.gz: f7a80836c16ab8b01398326a01d38284101a64517f1520d0e7eff6bca5d9d6cb0252d6c4ced20a377fb60d349eba0b4b5dab6f4572588ff900b9589cf08d3ed4
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,7 @@ Version History
|
|
3
3
|
* All Version bumps are required to update this file as well!
|
4
4
|
----
|
5
5
|
|
6
|
+
* 0.10.2 - Add all_posts function to posts class to retrieve all articles.
|
6
7
|
* 0.10.0:
|
7
8
|
* Utilize `Addressable::URI` as Faraday's default URI parser so that resourceful URI fragments are escaped and parsed properly
|
8
9
|
* Utilize `Faraday::Middleware` for `Hashie::Mash`ing & OAuth2 Token insertion
|
data/lib/cortex/posts.rb
CHANGED
data/lib/cortex/version.rb
CHANGED
data/spec/posts_spec.rb
CHANGED
@@ -42,6 +42,13 @@ RSpec.describe Cortex::Posts do
|
|
42
42
|
end
|
43
43
|
end
|
44
44
|
|
45
|
+
describe :all_posts do
|
46
|
+
it 'should correctly make the request' do
|
47
|
+
client.expects(:get).with('/posts/feed/all_posts', {}).returns('response')
|
48
|
+
expect(client.posts.all_posts()).to eq('response')
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
45
52
|
describe :save do
|
46
53
|
context 'with an existing post' do
|
47
54
|
it 'should correctly make the request' do
|
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.10.
|
4
|
+
version: 0.10.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- CareerBuilder Employer Site & Content Products
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-05-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -204,7 +204,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
204
204
|
version: '0'
|
205
205
|
requirements: []
|
206
206
|
rubyforge_project:
|
207
|
-
rubygems_version: 2.6.
|
207
|
+
rubygems_version: 2.6.11
|
208
208
|
signing_key:
|
209
209
|
specification_version: 4
|
210
210
|
summary: Cortex API Client
|