shrine-flickr 1.4.1 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/shrine/storage/flickr.rb +3 -1
- data/shrine-flickr.gemspec +3 -3
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd9e9ca0e2d64238b4f6a46cc9b9776127f48fae8681269001211c1c7611d0d1
|
4
|
+
data.tar.gz: 67bb50ecafee5aff74f53e179f404bda532d1f1c2be020c38160c2bc0bbd3026
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0987c6f2594ce6b2410b58a0c8d5715a965507066e7b6dcd77222ae739c315e3574aff517a67be6609b9a3b38140077c6d05cda18d648e2df8b0051d6033bcd
|
7
|
+
data.tar.gz: 3b51c4dbd6f044dc38d931f18040a7516a7dbea45f35d232da4ecea6e1849f96cfe727afa37b778ebe3b52bb8503b62671b15e126859124ee5f66ae3d68a5459
|
data/README.md
CHANGED
@@ -16,7 +16,7 @@ class Shrine
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def upload(io, id, shrine_metadata: {}, **upload_options)
|
19
|
-
options = {title: shrine_metadata["filename"]}
|
19
|
+
options = { title: shrine_metadata["filename"] }
|
20
20
|
options.update(@upload_options)
|
21
21
|
options.update(upload_options)
|
22
22
|
|
@@ -36,6 +36,8 @@ class Shrine
|
|
36
36
|
|
37
37
|
def open(id, **options)
|
38
38
|
Down::Http.open(url(id, size: "Original"), **options)
|
39
|
+
rescue Down::NotFound
|
40
|
+
raise Shrine::FileNotFound, "file #{id.inspect} not found on storage"
|
39
41
|
end
|
40
42
|
|
41
43
|
def exists?(id)
|
data/shrine-flickr.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |gem|
|
2
2
|
gem.name = "shrine-flickr"
|
3
|
-
gem.version = "
|
3
|
+
gem.version = "2.0.0"
|
4
4
|
|
5
5
|
gem.required_ruby_version = ">= 2.1"
|
6
6
|
|
@@ -13,9 +13,9 @@ Gem::Specification.new do |gem|
|
|
13
13
|
gem.files = Dir["README.md", "LICENSE.txt", "lib/**/*.rb", "*.gemspec"]
|
14
14
|
gem.require_path = "lib"
|
15
15
|
|
16
|
-
gem.add_dependency "shrine", ">=
|
16
|
+
gem.add_dependency "shrine", ">= 3.0.0.rc", "< 4"
|
17
17
|
gem.add_dependency "flickr-objects", ">= 0.6.3"
|
18
|
-
gem.add_dependency "down", "~>
|
18
|
+
gem.add_dependency "down", "~> 5.0"
|
19
19
|
gem.add_dependency "http", ">= 3.2", "< 5"
|
20
20
|
|
21
21
|
gem.add_development_dependency "rake"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shrine-flickr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Janko Marohnić
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-09-
|
11
|
+
date: 2019-09-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: shrine
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 3.0.0.rc
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: '4'
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
29
|
+
version: 3.0.0.rc
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: '4'
|
@@ -50,14 +50,14 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '
|
53
|
+
version: '5.0'
|
54
54
|
type: :runtime
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: '
|
60
|
+
version: '5.0'
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: http
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|