dato 0.3.7 → 0.3.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: b565e0c69439a1ff651c792a9f667afdeed71d12
4
- data.tar.gz: a545f329291e9778ff30d97c9489449df39804b7
3
+ metadata.gz: 891d66575da4adc07c30e50a32fbd58a1c4aa220
4
+ data.tar.gz: ac0d03088779bd0951f89ba7b0c5280580974212
5
5
  SHA512:
6
- metadata.gz: 8183e81004df27ca2a3c373a32bb472b7851d4a9307891d3a10826a48031e3b36578b2d237455262bbef086b40f45e08e4a0ab3d99245fecba044b915275ae13
7
- data.tar.gz: 8f72ca7d25556fa52e4c5cacc890144a2f7756b71ed401975bfb74cfb1213d3a55c71d25276fb403c3c9a41c803e61afbd0a16222b8fee66483a4703c431b36d
6
+ metadata.gz: 9d58c57016a7f4df7579dd47d209c6ee15bd64833d4344ca2e839a2aea1ab5b5d4e29399064fe51d9b822bc7d8c2f695cf465cd7ba9d8bc95d96f41b9e3ded2d
7
+ data.tar.gz: b4ee25de9041b0f1fc66b70f3d73cfaefcddfa3f4a6d4fbcc1292792998679c2d0a7a5aca0b868eabbb0b623940940df4ba4b4784d9fecad0437180605f03ea0
@@ -29,11 +29,11 @@ module Dato
29
29
  ).path(path)
30
30
  end
31
31
 
32
- def url(opts)
32
+ def url(opts = {})
33
33
  file.to_url(opts)
34
34
  end
35
35
 
36
- def to_hash(*args)
36
+ def to_hash(*_args)
37
37
  {
38
38
  format: format,
39
39
  size: size,
@@ -18,7 +18,7 @@ module Dato
18
18
  [latitude, longitude]
19
19
  end
20
20
 
21
- def to_hash(*args)
21
+ def to_hash(*_args)
22
22
  {
23
23
  latitude: latitude,
24
24
  longitude: longitude
@@ -52,7 +52,7 @@ module Dato
52
52
  VideoEmbed.embed(url, { width: width, height: height }.compact)
53
53
  end
54
54
 
55
- def to_hash(*args)
55
+ def to_hash(*_args)
56
56
  {
57
57
  url: url,
58
58
  thumbnail_url: thumbnail_url,
@@ -92,9 +92,7 @@ module Dato
92
92
  alias inspect to_s
93
93
 
94
94
  def to_hash(max_depth = 3, current_depth = 0)
95
- if current_depth >= max_depth
96
- return id
97
- end
95
+ return id if current_depth >= max_depth
98
96
 
99
97
  base = {
100
98
  id: id,
data/lib/dato/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Dato
3
- VERSION = '0.3.7'
3
+ VERSION = '0.3.8'
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.3.7
4
+ version: 0.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefano Verna
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-02-02 00:00:00.000000000 Z
11
+ date: 2017-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler