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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e01f77764b72ba6acce9663b1dc0652afb5c645682aaec7972ebeeda8e326655
4
- data.tar.gz: 5f9e8accd7448390a6f3cd25158eb01295ec6e1ac9fb8e70b10c2adf56f34e4a
3
+ metadata.gz: 7732350278c5d815ab0b52cbedf453707d77fae3dd4bb65b809d804dc79264bd
4
+ data.tar.gz: 1c7d2767978fdc0a97be12fb3732e8cf3ff8fa440aa3fc88118fba4538b858b2
5
5
  SHA512:
6
- metadata.gz: 1bb7469736eeb705faa8bc68e7afa1373d0d3e0af221e5a1372bf829f4c0c553726b4a5cc3aa82081e5c54781636bf8d4a4e97a703f08dfc0ed0162d8470aa9b
7
- data.tar.gz: d0b0bd017bb9e79c2f7761640ed664ea8f673975ee86871d18df550c04838bdf7df0a3e50a0c96b0b59d9192b459ace9052a909624da7dc8ed6a5dc313a84c70
6
+ metadata.gz: 916e5df12daae5c50b1493a92593d6e030fbdabde239726edafb11eb7a8992a0d03479cd59ddab5ea720152281c4a042fd69812f8fb8b487a98943d0841cbd00
7
+ data.tar.gz: 8f1b8eb9abf796b86696c27f1a2614ae98724b1b0a5a4a00506b35cacac75dcd9ae9d193d2f5c5d8aaeab6f3cbd2a2934aeb88ab51de368b14738e18e3e33735
@@ -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
@@ -8,7 +8,7 @@ class Shrine
8
8
  module VERSION
9
9
  MAJOR = 2
10
10
  MINOR = 17
11
- TINY = 0
11
+ TINY = 1
12
12
  PRE = nil
13
13
 
14
14
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
@@ -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://github.com/shrinerb/shrine"
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.0
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-08 00:00:00.000000000 Z
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://github.com/shrinerb/shrine
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: