prismic.io 1.3.1 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +7 -0
- data/Gemfile.lock +1 -1
- data/lib/prismic/api.rb +4 -4
- data/lib/prismic/version.rb +1 -1
- data/spec/cache_spec.rb +1 -1
- 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: 7dd72a8b4157559e09dbf03af67e175b4303ade4
|
4
|
+
data.tar.gz: 786099f491183c9e30bbd1e97be367eedfa749f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 490bbc66b6bec4ea28fb162d0ece6619f4df5f4d34a3951648a32958fe3454fe9186bc372e5f61a51563e8d31fcfe0d62f11a4ce601578fe9cb702c150fc49dc
|
7
|
+
data.tar.gz: 4c40eb9188b71fa644f8774aef858e6494207e6fa97df04d303079ba9f70da4a9dbe66d4df33b58fb7d554519ecf134cd0ff6e2c1a9fd77d71df35c766eddc42
|
data/.travis.yml
CHANGED
@@ -5,13 +5,20 @@ rvm:
|
|
5
5
|
- 2.0.0
|
6
6
|
- 1.9.3
|
7
7
|
- jruby-19mode
|
8
|
+
|
9
|
+
sudo: false
|
10
|
+
cache: bundler
|
11
|
+
|
8
12
|
script: bundle exec rspec spec
|
13
|
+
|
9
14
|
notifications:
|
10
15
|
email:
|
11
16
|
- evo@zenexity.com
|
17
|
+
|
12
18
|
addons:
|
13
19
|
code_climate:
|
14
20
|
repo_token: f46a7e216896abddbc4877ce065239e8ac9f575af7a120bdaa61a42be70777e9
|
21
|
+
|
15
22
|
deploy:
|
16
23
|
provider: rubygems
|
17
24
|
api_key:
|
data/Gemfile.lock
CHANGED
data/lib/prismic/api.rb
CHANGED
@@ -139,10 +139,10 @@ module Prismic
|
|
139
139
|
def self.start(url, opts={})
|
140
140
|
http_client = opts[:http_client] || Prismic::DefaultHTTPClient
|
141
141
|
access_token = opts[:access_token]
|
142
|
-
|
143
|
-
api_cache = opts[:api_cache]
|
144
|
-
|
145
|
-
|
142
|
+
# We don't use ||= because we want to keep the DefaultCache if nil was explicitly passed
|
143
|
+
api_cache = opts.has_key?(:api_cache) ? opts[:api_cache] : Prismic::DefaultCache
|
144
|
+
cache = opts.has_key?(:cache) ? opts[:cache] : Prismic::DefaultCache
|
145
|
+
|
146
146
|
resp = get(url, access_token, http_client, api_cache)
|
147
147
|
json = JSON.load(resp.body)
|
148
148
|
parse_api_response(json, access_token, http_client, cache)
|
data/lib/prismic/version.rb
CHANGED
data/spec/cache_spec.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: prismic.io
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Étienne Vallette d'Osia
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2015-07-
|
14
|
+
date: 2015-07-13 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: bundler
|