shrine-url 2.2.1 → 2.3.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/url.rb +1 -5
- data/shrine-url.gemspec +2 -2
- metadata +9 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6dfeb588234efeca1a152b52ae7f5c1d88c20dc245c35b6f7ba44b0026782d2e
|
4
|
+
data.tar.gz: 195da70cb97fb6bb6b1b74bfa8171c32fe56b7094cadd9dcab766833dc6b77aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1ff48bc93629942adc87758853e1d1b87fe0cf084119ac8abb9459b3eebb21615e8e65e066dbbf837b4213c26c1437378063916aa795999bff68d7a22983864
|
7
|
+
data.tar.gz: 8c00b080db20350f2b4141c8e7c7f6bd547f6276ff3ab54548a07d1cbf6c8ccc9de4532f4016ec8441d6be7ea1dd799f5e567ba4fef2e1358ea78ed555c69871
|
data/README.md
CHANGED
@@ -113,6 +113,6 @@ you'll need to have Docker installed and running.
|
|
113
113
|
[shrine-tus-demo]: https://github.com/shrinerb/shrine-tus-demo
|
114
114
|
[shrine-cloudinary]: https://github.com/shrinerb/shrine-cloudinary
|
115
115
|
[shrine-uploadcare]: https://github.com/shrinerb/shrine-uploadcare
|
116
|
-
[Down]: https://github.com/janko
|
116
|
+
[Down]: https://github.com/janko/down
|
117
117
|
[HTTP.rb]: https://github.com/httprb/http
|
118
118
|
[kennethreitz/httpbin]: https://github.com/kennethreitz/httpbin
|
data/lib/shrine/storage/url.rb
CHANGED
@@ -15,12 +15,8 @@ class Shrine
|
|
15
15
|
id.replace(io.url)
|
16
16
|
end
|
17
17
|
|
18
|
-
def download(id, **options)
|
19
|
-
@downloader.download(id, **options)
|
20
|
-
end
|
21
|
-
|
22
18
|
def open(id, **options)
|
23
|
-
|
19
|
+
downloader.open(id, **options)
|
24
20
|
end
|
25
21
|
|
26
22
|
def exists?(id)
|
data/shrine-url.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |gem|
|
2
2
|
gem.name = "shrine-url"
|
3
|
-
gem.version = "2.
|
3
|
+
gem.version = "2.3.0"
|
4
4
|
|
5
5
|
gem.required_ruby_version = ">= 2.1"
|
6
6
|
|
@@ -13,7 +13,7 @@ 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", ">= 2.0"
|
16
|
+
gem.add_dependency "shrine", ">= 2.0", "< 4"
|
17
17
|
gem.add_dependency "down", "~> 4.4"
|
18
18
|
gem.add_dependency "http", ">= 3.2", "< 5"
|
19
19
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shrine-url
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.3.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-
|
11
|
+
date: 2019-09-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: shrine
|
@@ -17,6 +17,9 @@ dependencies:
|
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '2.0'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '4'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -24,6 +27,9 @@ dependencies:
|
|
24
27
|
- - ">="
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: '2.0'
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '4'
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: down
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -144,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
144
150
|
- !ruby/object:Gem::Version
|
145
151
|
version: '0'
|
146
152
|
requirements: []
|
147
|
-
rubygems_version: 3.0.
|
153
|
+
rubygems_version: 3.0.3
|
148
154
|
signing_key:
|
149
155
|
specification_version: 4
|
150
156
|
summary: Provides a fake storage which allows you to create a Shrine attachment defined
|