vault8 0.1.0 → 0.1.1

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: bfacf886266e2fd4351564d9af151d5799d69756
4
- data.tar.gz: 3b447d165252bb3c9c851453119a402b25bdd5a6
3
+ metadata.gz: 35512083690c67ba94c6fbe4769531434cace3ee
4
+ data.tar.gz: 1c1207f2e7a257f59dfc153ebceb1d151818b9e8
5
5
  SHA512:
6
- metadata.gz: f06f66b26b69be957110cb7cbe36d5984c21ee626478227eeec278e7b8cf855cd51a5e8070923160aa9b96abcbde546d8be8ac1a5d90829d3aaf915450f6071a
7
- data.tar.gz: 383f5742525c7140eb89c2da103885286e90c619fd8945e96bce6ff70c14ab3bf2b4dab324c81959aefb9e27f409aa8779204e9749ccc31523e70187c69c9be6
6
+ metadata.gz: 0737a687c6f15b8bdc16a0e039f94b64889fa19d0425304f4d7e345a8c7bc8631d88f53f904fc8e617715066957bede4bf27cb609eb98bef2d99c38499a30228
7
+ data.tar.gz: 1affed11a817bec55af1ba92f9018a575e8341bfd4d7f69dcadf3279e6dd4c4a6bb86110a06c5445857da1f634e8984211e9239edd6890127899a1eff02c2da2
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- vault8 (0.1.0)
4
+ vault8 (0.1.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -14,11 +14,13 @@ class Vault8
14
14
  @service_url = service_url
15
15
  end
16
16
 
17
- def image_url(uid:, filters: [], image_name: 'image.jpg')
18
- generate_url_for(path: image_path(uid, filters, image_name))
17
+ def image_url(uid:, filters: [], image_name: 'image.jpg', current_time: nil, until_time: nil)
18
+ generate_url_for( path: image_path(uid, filters, image_name),
19
+ current_time: (current_time && current_time.to_i),
20
+ until_time: (until_time && until_time.to_i) )
19
21
  end
20
22
 
21
- def upload_url(path: '/upload', current_time:, until_time:)
23
+ def upload_url(path: '/upload', current_time: Time.current, until_time: Time.current + 86400)
22
24
  generate_url_for(path: path, current_time: current_time, until_time: until_time)
23
25
  end
24
26
 
@@ -1,3 +1,3 @@
1
1
  class Vault8
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vault8
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - pavelperkin
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2017-01-05 00:00:00.000000000 Z
12
+ date: 2017-01-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler