shrine-imgix 0.1.2 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d7757da0782c874ae55a32e27cfb224beba82bc0
4
- data.tar.gz: 3cddb669cb9d70614c15ebdd08ee8170d6673b49
3
+ metadata.gz: f3c3f21cf0d11391f215f2dafa787565b124cfd3
4
+ data.tar.gz: 103304d4458e54ce84152da895beee60ddd160cc
5
5
  SHA512:
6
- metadata.gz: c7b855dc6cef8a9dae519d34b60a4943b798246c34871412087d166f4d2e7f079d142a4ca41de1783c019f4cfca1c997f30bffe1b01fa954d1d9467ef869c4f5
7
- data.tar.gz: 0d4add96ca49b7f31ced3b145c65b3257f605bb09b1f5c010bfa2ffe61aebfd165d323f2dc86d0fec824b2ea6accadb168a3dcf43d8195b903e31ef971106c80
6
+ metadata.gz: 3db2cc665e7b7eef47248d2db07b7c19cdb62eedb093378ff66598ac54b8b8adea30c549550d8c254b53e15e226ccd5cf659ecb9086e05f842e6e1cc06d8638b
7
+ data.tar.gz: 928a0a6ab1a00ca7eb37a622a3bccdef7bdcf93da1abb095198868e8a8522c0ef940800722e54816b50896daccb6e1b8c9a8a7126e289e99317443adf94ab5ff
data/README.md CHANGED
@@ -1,7 +1,10 @@
1
- # Shrine::Imgix
1
+ # Shrine::Storage::Imgix
2
2
 
3
3
  Provides [Imgix] integration for [Shrine].
4
4
 
5
+ Imgix is a service for processing images on the fly, and works with files
6
+ stored on Amazon S3.
7
+
5
8
  ## Installation
6
9
 
7
10
  ```ruby
@@ -24,8 +24,8 @@ class Shrine
24
24
  delegate [:upload, :download, :open, :read, :exists?, :clear!] => :storage
25
25
 
26
26
  # Purges the file from the source storage after moving it.
27
- def move(io, id, metadata = {})
28
- @storage.move(io, id, metadata)
27
+ def move(io, id, **options)
28
+ @storage.move(io, id, **options)
29
29
  io.storage.purge(io.id) if io.storage.is_a?(Storage::Imgix)
30
30
  end
31
31
 
data/shrine-imgix.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = "shrine-imgix"
3
- gem.version = "0.1.2"
3
+ gem.version = "0.2.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", "shrine-imgix.gemspec"]
14
14
  gem.require_path = "lib"
15
15
 
16
- gem.add_dependency "shrine", "~> 1.1"
16
+ gem.add_dependency "shrine", "~> 2.0"
17
17
  gem.add_dependency "imgix"
18
18
 
19
19
  gem.add_development_dependency "rake"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shrine-imgix
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.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: 2016-04-15 00:00:00.000000000 Z
11
+ date: 2016-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: shrine
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.1'
19
+ version: '2.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.1'
26
+ version: '2.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: imgix
29
29
  requirement: !ruby/object:Gem::Requirement