shrine 2.17.0 → 2.17.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of shrine might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/shrine/plugins/parsed_json.rb +2 -2
- data/lib/shrine/plugins/rack_file.rb +2 -2
- data/lib/shrine/version.rb +1 -1
- data/shrine.gemspec +8 -1
- metadata +9 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7732350278c5d815ab0b52cbedf453707d77fae3dd4bb65b809d804dc79264bd
|
4
|
+
data.tar.gz: 1c7d2767978fdc0a97be12fb3732e8cf3ff8fa440aa3fc88118fba4538b858b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 916e5df12daae5c50b1493a92593d6e030fbdabde239726edafb11eb7a8992a0d03479cd59ddab5ea720152281c4a042fd69812f8fb8b487a98943d0841cbd00
|
7
|
+
data.tar.gz: 8f1b8eb9abf796b86696c27f1a2614ae98724b1b0a5a4a00506b35cacac75dcd9ae9d193d2f5c5d8aaeab6f3cbd2a2934aeb88ab51de368b14738e18e3e33735
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
## 2.17.1 (2019-05-15)
|
2
|
+
|
3
|
+
* `rack_file` – Fix overriden `Attacher#assign` not accepting second argument (@janko)
|
4
|
+
|
5
|
+
* `parsed_json` – Fix overriden `Attacher#assign` not accepting second argument (@janko)
|
6
|
+
|
1
7
|
## 2.17.0 (2019-05-06)
|
2
8
|
|
3
9
|
* `data_uri` – Add `Attacher#assign_data_uri` which accepts additional `Shrine#upload` options (@janko)
|
@@ -7,9 +7,9 @@ class Shrine
|
|
7
7
|
# [doc/plugins/parsed_json.md]: https://github.com/shrinerb/shrine/blob/master/doc/plugins/parsed_json.md
|
8
8
|
module ParsedJson
|
9
9
|
module AttacherMethods
|
10
|
-
def assign(value)
|
10
|
+
def assign(value, **options)
|
11
11
|
if value.is_a?(Hash) && parsed_json?(value)
|
12
|
-
assign(value.to_json)
|
12
|
+
assign(value.to_json, **options)
|
13
13
|
else
|
14
14
|
super
|
15
15
|
end
|
@@ -60,9 +60,9 @@ class Shrine
|
|
60
60
|
module AttacherMethods
|
61
61
|
# Checks whether a file is a Rack file hash, and in that case wraps the
|
62
62
|
# hash in an IO-like object.
|
63
|
-
def assign(value)
|
63
|
+
def assign(value, **options)
|
64
64
|
if rack_file?(value)
|
65
|
-
assign(shrine_class.rack_file(value))
|
65
|
+
assign(shrine_class.rack_file(value), **options)
|
66
66
|
else
|
67
67
|
super
|
68
68
|
end
|
data/lib/shrine/version.rb
CHANGED
data/shrine.gemspec
CHANGED
@@ -18,10 +18,17 @@ tying them to record's lifecycle. It natively supports background jobs and
|
|
18
18
|
direct uploads for fully asynchronous user experience.
|
19
19
|
END
|
20
20
|
|
21
|
-
gem.homepage = "https://
|
21
|
+
gem.homepage = "https://shrinerb.com"
|
22
22
|
gem.authors = ["Janko Marohnić"]
|
23
23
|
gem.email = ["janko.marohnic@gmail.com"]
|
24
24
|
gem.license = "MIT"
|
25
|
+
gem.metadata = {
|
26
|
+
"bug_tracker_uri" => "https://github.com/shrinerb/shrine/issues",
|
27
|
+
"changelog_uri" => "https://github.com/shrinerb/shrine/blob/master/CHANGELOG.md",
|
28
|
+
"documentation_uri" => "https://shrinerb.com",
|
29
|
+
"mailing_list_uri" => "https://groups.google.com/forum/#!forum/ruby-shrine",
|
30
|
+
"source_code_uri" => "https://github.com/shrinerb/shrine",
|
31
|
+
}
|
25
32
|
|
26
33
|
gem.files = Dir["README.md", "LICENSE.txt", "CHANGELOG.md", "lib/**/*.rb", "shrine.gemspec", "doc/**/*.md"]
|
27
34
|
gem.require_path = "lib"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shrine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.17.
|
4
|
+
version: 2.17.1
|
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-05-
|
11
|
+
date: 2019-05-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: down
|
@@ -510,10 +510,15 @@ files:
|
|
510
510
|
- lib/shrine/uploaded_file.rb
|
511
511
|
- lib/shrine/version.rb
|
512
512
|
- shrine.gemspec
|
513
|
-
homepage: https://
|
513
|
+
homepage: https://shrinerb.com
|
514
514
|
licenses:
|
515
515
|
- MIT
|
516
|
-
metadata:
|
516
|
+
metadata:
|
517
|
+
bug_tracker_uri: https://github.com/shrinerb/shrine/issues
|
518
|
+
changelog_uri: https://github.com/shrinerb/shrine/blob/master/CHANGELOG.md
|
519
|
+
documentation_uri: https://shrinerb.com
|
520
|
+
mailing_list_uri: https://groups.google.com/forum/#!forum/ruby-shrine
|
521
|
+
source_code_uri: https://github.com/shrinerb/shrine
|
517
522
|
post_install_message:
|
518
523
|
rdoc_options: []
|
519
524
|
require_paths:
|