middleman-dato 0.5.15 → 0.5.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 597d6c5916e6c4e5a97f07a0c211276a947801d7
4
- data.tar.gz: 6ec16abbc96a87903409656150fe357d0100d621
3
+ metadata.gz: db49edec3165eb83f6ef23d4e8f6706111373242
4
+ data.tar.gz: 98d83c83ab48efc805ef73b9d21f094440f16a18
5
5
  SHA512:
6
- metadata.gz: 4f487384ebb8edb49d7f62e90f04aab19140b8d6af7cc5662940e19179695d12c26314fe59fbef3c8ba7493fd2cc429c932f528c44fd780fc8cd34da366058ab
7
- data.tar.gz: e50ccaf96b0704e58eeaaabeb93ebaf8844f02516d026bf86e7e385bf786da694f2f01778fbfd440b18b24f1c4a46d1efb475da9e0fa7450c728bf6e25316a95
6
+ metadata.gz: 68b4d2023625e6583cadb0f829dfc689adce53f4c23faae424be5d77843d9af0f3aff7daa6991e52f23384193fa0ba04a2d6a163eab2dd166cc0f6850071868b
7
+ data.tar.gz: 92d603a63548fab08628d4c571b1275032845e1bb04348b301c83be3941a24010bc949f3f9cec0ef39f53562882cb4dca7843bbe96b9a39bff615ff1f6564adc
data/README.md CHANGED
@@ -16,8 +16,7 @@ To learn more about DatoCMS and how you can use it with your Middleman website,
16
16
  # config.rb
17
17
 
18
18
  activate :dato,
19
- domain: 'lively-smoke-1134.admin.datocms.com',
20
- token: 'XXXYYY',
19
+ token: 'SITE_READ_ONLY_TOKEN',
21
20
  base_url: 'http://www.mywebsite.com'
22
21
 
23
22
  # feel free to use dato from now on:
@@ -5,9 +5,8 @@ require 'active_support/core_ext/hash/indifferent_access'
5
5
 
6
6
  module MiddlemanDato
7
7
  class Client
8
- def initialize(host, domain, token)
8
+ def initialize(host, token)
9
9
  @host = host
10
- @domain = domain
11
10
  @token = token
12
11
  end
13
12
 
@@ -52,7 +51,6 @@ module MiddlemanDato
52
51
  headers: {
53
52
  'Content-Type' => 'application/json',
54
53
  'Accept' => 'application/json',
55
- 'X-Site-Domain' => @domain,
56
54
  'Authorization' => "Api-Key #{@token}"
57
55
  }
58
56
  }
@@ -9,7 +9,7 @@ module MiddlemanDato
9
9
  class MiddlemanExtension < ::Middleman::Extension
10
10
  attr_reader :site
11
11
 
12
- option :domain, nil, 'Site domain'
12
+ option :domain, nil, 'Site domain (legacy)'
13
13
  option :token, nil, 'Site API token'
14
14
  option :api_host, 'https://site-api.datocms.com', 'Site API host'
15
15
  option :base_url, nil, 'Website base URL'
@@ -29,7 +29,6 @@ module MiddlemanDato
29
29
  def client
30
30
  @client ||= Client.new(
31
31
  options[:api_host],
32
- options[:domain],
33
32
  options[:token]
34
33
  )
35
34
  end
@@ -1,4 +1,4 @@
1
1
  module MiddlemanDato
2
- VERSION = '0.5.15'
2
+ VERSION = '0.5.16'
3
3
  end
4
4
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman-dato
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.15
4
+ version: 0.5.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefano Verna
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-23 00:00:00.000000000 Z
11
+ date: 2016-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: middleman-core