cortex-client 0.4.6 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/cortex-client.gemspec +2 -1
- data/lib/cortex/connection.rb +3 -0
- data/lib/cortex/version.rb +1 -1
- metadata +20 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2af326ca62780ba4a5833fddcc0220cc68729163
|
4
|
+
data.tar.gz: 719dd8febfbebb597b9fe49aae514dd6cc31c75c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c08e36ee4d503f8dddf7f65b901515c5ac9d9cb0a7479c06189796fd1236efb7391207ac220d446ab746db72bf2bd0aabe900e0831b0feac046074ee0c080be
|
7
|
+
data.tar.gz: 14a867283faa861f8c7fe9038c95b6709cfe7e4cb972f464ee1cc283d4232b75cd8eea34690c88f192c8b0689566da510356e5a0379dc38be335598bb0b9a547
|
data/CHANGELOG.md
ADDED
data/cortex-client.gemspec
CHANGED
@@ -20,7 +20,8 @@ Gem::Specification.new do |s|
|
|
20
20
|
|
21
21
|
s.add_dependency 'faraday', '~> 0.9'
|
22
22
|
s.add_dependency 'faraday_middleware', '~> 0.10'
|
23
|
-
s.add_dependency '
|
23
|
+
s.add_dependency 'faraday-http-cache', '~> 1.3.0'
|
24
|
+
s.add_dependency 'oauth2', '~> 1.0.0'
|
24
25
|
s.add_dependency 'cortex-exceptions', '~> 0.0.4'
|
25
26
|
s.add_dependency 'hashie', '~> 3.4'
|
26
27
|
end
|
data/lib/cortex/connection.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
require 'faraday'
|
2
2
|
require 'faraday_middleware'
|
3
3
|
require 'cortex/faraday_middleware'
|
4
|
+
require 'faraday-http-cache'
|
4
5
|
|
5
6
|
module Cortex
|
6
7
|
module Connection
|
@@ -18,6 +19,8 @@ module Cortex
|
|
18
19
|
|
19
20
|
Faraday.new options do |conn|
|
20
21
|
conn.use Cortex::FaradayMiddleware
|
22
|
+
|
23
|
+
conn.use Faraday::HttpCache, store: Rails.cache, logger: Rails.logger if defined? Rails
|
21
24
|
conn.request :oauth2, access_token.is_a?(OAuth2::AccessToken) ? access_token.token : access_token
|
22
25
|
conn.request :json
|
23
26
|
conn.response :json, :content_type => /\bjson$/
|
data/lib/cortex/version.rb
CHANGED
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.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- CB Content Enablement
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-04-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -80,20 +80,34 @@ dependencies:
|
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0.10'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: faraday-http-cache
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 1.3.0
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 1.3.0
|
83
97
|
- !ruby/object:Gem::Dependency
|
84
98
|
name: oauth2
|
85
99
|
requirement: !ruby/object:Gem::Requirement
|
86
100
|
requirements:
|
87
101
|
- - "~>"
|
88
102
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
103
|
+
version: 1.0.0
|
90
104
|
type: :runtime
|
91
105
|
prerelease: false
|
92
106
|
version_requirements: !ruby/object:Gem::Requirement
|
93
107
|
requirements:
|
94
108
|
- - "~>"
|
95
109
|
- !ruby/object:Gem::Version
|
96
|
-
version:
|
110
|
+
version: 1.0.0
|
97
111
|
- !ruby/object:Gem::Dependency
|
98
112
|
name: cortex-exceptions
|
99
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -129,6 +143,7 @@ extensions: []
|
|
129
143
|
extra_rdoc_files: []
|
130
144
|
files:
|
131
145
|
- ".travis.yml"
|
146
|
+
- CHANGELOG.md
|
132
147
|
- Gemfile
|
133
148
|
- LICENSE
|
134
149
|
- README.md
|
@@ -172,7 +187,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
172
187
|
version: '0'
|
173
188
|
requirements: []
|
174
189
|
rubyforge_project:
|
175
|
-
rubygems_version: 2.
|
190
|
+
rubygems_version: 2.5.2
|
176
191
|
signing_key:
|
177
192
|
specification_version: 4
|
178
193
|
summary: Cortex API Client
|