dato 0.1.10 → 0.1.11

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: 6216ff4b667cc51e18ed57a12baf98f3842d7496
4
- data.tar.gz: 43b8903bbeb99b24621aa807a254dacfbe6ee58b
3
+ metadata.gz: f91005b0e94c70a309df243d5c62039f60da319d
4
+ data.tar.gz: d737ccf440a21f459936699675cdea2c6b96fc63
5
5
  SHA512:
6
- metadata.gz: 6d66fd7dd1c183f5be27d231f59108fd872662e3f1c7d3be903b9367c1cfc54a47ba537108ca2c476505a9e5e81712fbcc637ee11ba4c2a4e482dc0469104edf
7
- data.tar.gz: 2441b1e38e4aac136ba05cd261be9e7d4507423ef073ec6c751192fc4a43df2ba6abe45713b222898932c20a024a2963fee3cadb2152f230df7b9b809673971b
6
+ metadata.gz: 135719e79f5765cdb695b7e8397202e8e08e54172a81193cfb66c0e9d3fa185b9fd3afe4c6e70192f6ab5d82916211ab5930188b22a618b03ab4af803b4fd817
7
+ data.tar.gz: 684cee79c4a3512fe08d9ba9b0d2b3de0922bd5d97905ed83f3eec38a084553c7fe3c75b5a4fe46d027fcb1e54e731b8a6069b620099508de0f3a370e29b1a87
data/README.md CHANGED
@@ -8,7 +8,7 @@ Ruby client for the DatoCMS API.
8
8
 
9
9
  1. Use your favorite static website generator (Middleman, Hugo, Jekyll, and many others);
10
10
  2. Let your clients publish new content independently;
11
- 3. Let your site build with any Continuous Deployment service (Netlify, Gitlab, CircleCI, etc.);
11
+ 3. Connect and build your site with any Continuous Deployment service (Netlify, Gitlab, CircleCI, etc.);
12
12
  4. Host the site anywhere you like (Amazon S3, Netlify, Surge.sh, etc.)
13
13
 
14
14
  ## Usage
@@ -217,10 +217,18 @@ Complex field types (ie. `image`, `file`, `video`, `seo`) implement specific met
217
217
  ```
218
218
  article = dato.articles.first
219
219
 
220
- article.cover_image.file.width(500).fit('crop').to_url
220
+ article.cover_image.url(w: 500, fit: 'crop')
221
221
  article.video.iframe_embed(800, 600)
222
222
  ```
223
223
 
224
+ ### Examples
225
+
226
+ To help you with your first integration, here's a list of sample websites integrated with DatoCMS we built:
227
+
228
+ * [Middleman](https://github.com/datocms/middleman-example)
229
+ * [Jekyll](https://github.com/datocms/jekyll-example)
230
+
224
231
  ### Need more help?
225
232
 
226
- Just ask! Send us an email to [support@datocms.com](mailto:support@datocms.com) and we'll be happy to guide you.
233
+ Just ask! Send us an email to [support@datocms.com](mailto:support@datocms.com) and we'll be happy to answer any question!
234
+
@@ -27,6 +27,10 @@ module Dato
27
27
  secure: true
28
28
  ).path(path)
29
29
  end
30
+
31
+ def url(*args)
32
+ file.to_url(*args)
33
+ end
30
34
  end
31
35
  end
32
36
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Dato
3
- VERSION = '0.1.10'
3
+ VERSION = '0.1.11'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dato
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefano Verna
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-08-26 00:00:00.000000000 Z
11
+ date: 2016-09-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -379,4 +379,3 @@ signing_key:
379
379
  specification_version: 4
380
380
  summary: Ruby client for DatoCMS API
381
381
  test_files: []
382
- has_rdoc: