middleman-dato 0.5.7 → 0.5.8

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: 2dca7469c1611f8ff110ff74a9f08acf037c56ae
4
- data.tar.gz: 82095d692ef11ca19d54e5e6308cf245d0d358e4
3
+ metadata.gz: 08094a64ca64f2d34876b280fe75ef644065a103
4
+ data.tar.gz: 56b8d639a4b9348dd0d07cf22205cf16083a84d7
5
5
  SHA512:
6
- metadata.gz: c0ebc6cf2a290d19b8c2049ca11797b704c3e0cdbefbcddbcf079429e635e66e11d79cfe8869861aee07ab35e24e9836e220755e34dc590ce0e67cba453e3eed
7
- data.tar.gz: 8d84ccdefb3be96fe5b4d35616841bfba2c996679b669d3fab473b8486845dced45fc989fa20728d203c79e465fd5bf6bef3561583c92d3f12e05ebcf6419aba
6
+ metadata.gz: 98956b618bdd89884e57dbb5f05263bec51079d9a9cfd5df7b5db23614a050dafbf47e95a34c98ec1c96805830ba799157668116a0cd04ebd5a12088699c13e5
7
+ data.tar.gz: 6e3a18c2125738b44918efc0bfd7550b83d16d5b34ddb2c9ded88d0996bfce789ca68320e6d5d1b0cc50381fad574122c3dce080ae9e1cd5d0d823c744ed8bea
@@ -20,10 +20,10 @@ module Dato
20
20
  end
21
21
 
22
22
  def file
23
- @file ||= Imgix::Client.new(
23
+ Imgix::Client.new(
24
24
  host: 'dato-images.imgix.net',
25
25
  secure: true
26
- ).path(path).ch('DPR', 'Width').auto('compress', 'format')
26
+ ).path(path)
27
27
  end
28
28
  end
29
29
  end
@@ -20,6 +20,10 @@ module Dato
20
20
  @width = width
21
21
  @height = height
22
22
  end
23
+
24
+ def file
25
+ super.ch('DPR', 'Width').auto('compress', 'format')
26
+ end
23
27
  end
24
28
  end
25
29
  end
@@ -3,7 +3,7 @@ $LOAD_PATH.push File.expand_path('../lib', __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = 'middleman-dato'
6
- s.version = '0.5.7'
6
+ s.version = '0.5.8'
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.authors = ['Stefano Verna']
9
9
  s.email = ['s.verna@cantierecreativo.net']
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.7
4
+ version: 0.5.8
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-05-05 00:00:00.000000000 Z
11
+ date: 2016-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: middleman-core
@@ -93,7 +93,6 @@ files:
93
93
  - ".rubocop.yml"
94
94
  - Gemfile
95
95
  - Rakefile
96
- - foo.rb
97
96
  - lib/dato/client.rb
98
97
  - lib/dato/entities_repo.rb
99
98
  - lib/dato/field_type/boolean.rb
data/foo.rb DELETED
@@ -1,12 +0,0 @@
1
- space = Dato::Space.new(
2
- domain: 'admin.cucistorie.it',
3
- api_host: 'http://127.0.0.1:3001',
4
- token: 'xZqr1G8vRFOMnLe9ofn7w4Yr590SKhxjZ46v4tw1WXc'
5
- )
6
-
7
- space.refresh!
8
- puts space.records_repo.creations.size
9
- puts space.records_repo.creations.first.attributes.inspect
10
- puts space.records_repo.creations.first.name
11
- puts space.records_repo.creations.first.slug
12
- puts space.records_repo.creations.first.cover_image.file.to_url