shrine 2.6.0 → 2.6.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
  SHA1:
3
- metadata.gz: af515b9a7c0e52d86cc58b7765dd6f894ab152e5
4
- data.tar.gz: 6fa6cf185cc41cb6185538423bf144f8dd854f40
3
+ metadata.gz: 0474d268473ec2255e7710efdc424ea7abcaa129
4
+ data.tar.gz: 75489de0c246f813fd48fd707e0f9e1355de7f80
5
5
  SHA512:
6
- metadata.gz: f5a3a92fa19e363cffc64853ff5aafd1385d200698b6fc803606d366c487eca53f2c39c1ea3fc436613f3ed16916da1b0587a0ffa9672c6bd7175b2ec3c2000b
7
- data.tar.gz: fdc756c2aea5c035348cb2f640edcfdc2773e8ea1c2ed041ae9d270c2a609e7f5500e79c352979e47f37736dec033cb9fae34c4a2ff439d60ddc673bbf3a8c0f
6
+ metadata.gz: 65de646144983c25c985aaca273c503bff2391c53f3267cae93d4d535ad398ffffb6833f6b3f6d12fb1e8d2fba04aa80c395389c351c808a36d51ea39fe797e9
7
+ data.tar.gz: d4ebe688c1f33850f0a91df74528b3761aa0e842f9d97aa4b64ab6d9b5bfd3d6f4b1c62f3a32b488b2f2e109cfe009b90c2cc6987c248f9420df77869284fec6
@@ -119,7 +119,7 @@ class Shrine
119
119
  MAGIC_NUMBER = 256 * 1024
120
120
 
121
121
  def initialize(tool)
122
- raise ArgumentError, "unsupported mime type analyzer tool: #{tool}" unless SUPPORTED_TOOLS.include?(tool)
122
+ raise ArgumentError, "unsupported mime type analysis tool: #{tool}" unless SUPPORTED_TOOLS.include?(tool)
123
123
 
124
124
  @tool = tool
125
125
  end
@@ -126,7 +126,7 @@ class Shrine
126
126
  if io.respond_to?(:each_chunk) # Down::ChunkedIO
127
127
  io.each_chunk { |chunk| out << chunk }
128
128
  else
129
- out << io.read(16*1024, buffer ||= "") until io.eof?
129
+ out << io.read(16*1024) until io.eof?
130
130
  end
131
131
  end
132
132
  end
@@ -113,7 +113,7 @@ class Shrine
113
113
  SUPPORTED_TOOLS = [:fastimage]
114
114
 
115
115
  def initialize(tool)
116
- raise ArgumentError, "unsupported mime type analyzer tool: #{tool}" unless SUPPORTED_TOOLS.include?(tool)
116
+ raise ArgumentError, "unsupported dimensions analysis tool: #{tool}" unless SUPPORTED_TOOLS.include?(tool)
117
117
 
118
118
  @tool = tool
119
119
  end
@@ -6,7 +6,7 @@ class Shrine
6
6
  module VERSION
7
7
  MAJOR = 2
8
8
  MINOR = 6
9
- TINY = 0
9
+ TINY = 1
10
10
  PRE = nil
11
11
 
12
12
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
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.6.0
4
+ version: 2.6.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: 2017-04-04 00:00:00.000000000 Z
11
+ date: 2017-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: down