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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b4e27e1e9bc03e0f05a4ca637ee4af81dc5ee6d0
4
- data.tar.gz: 35059233fa8c716526e5f8c57a396e2cf670e399
3
+ metadata.gz: 2af326ca62780ba4a5833fddcc0220cc68729163
4
+ data.tar.gz: 719dd8febfbebb597b9fe49aae514dd6cc31c75c
5
5
  SHA512:
6
- metadata.gz: 4447ef45198b1f62bae5b95d0da6276b4a657fe306fca07913bdd8f5bb3926fc63767a27f15d71a19364624e79429f53ff99152744cf072ec0ee46c4aaeb890a
7
- data.tar.gz: adfa8fd9adc0cf56daae4680e8e31a74b39c8cf11f16e2da0e41c0c005566d7009732c3d840a9f98b629d055c38cd8e75292197371ee2c0fdb9665ac463de850
6
+ metadata.gz: 5c08e36ee4d503f8dddf7f65b901515c5ac9d9cb0a7479c06189796fd1236efb7391207ac220d446ab746db72bf2bd0aabe900e0831b0feac046074ee0c080be
7
+ data.tar.gz: 14a867283faa861f8c7fe9038c95b6709cfe7e4cb972f464ee1cc283d4232b75cd8eea34690c88f192c8b0689566da510356e5a0379dc38be335598bb0b9a547
data/CHANGELOG.md ADDED
@@ -0,0 +1,6 @@
1
+ Version History
2
+ ====
3
+ * All Version bumps are required to update this file as well!!
4
+ ----
5
+
6
+ * 0.5.0 - Update OAuth2 gem to 1.0.0
@@ -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 'oauth2', '~> 0.9'
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
@@ -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$/
@@ -1,3 +1,3 @@
1
1
  module Cortex
2
- VERSION = '0.4.6'
2
+ VERSION = '0.6.0'
3
3
  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.4.6
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: 2015-12-17 00:00:00.000000000 Z
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: '0.9'
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: '0.9'
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.4.5
190
+ rubygems_version: 2.5.2
176
191
  signing_key:
177
192
  specification_version: 4
178
193
  summary: Cortex API Client