shrine-imgix 0.1.1 → 0.1.2

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: 2d6e574f6f0188cc167c2e7df9b1f590b2e93398
4
- data.tar.gz: 23e4c1db6334b44e904d10404b80f08ea83cd0bb
3
+ metadata.gz: d7757da0782c874ae55a32e27cfb224beba82bc0
4
+ data.tar.gz: 3cddb669cb9d70614c15ebdd08ee8170d6673b49
5
5
  SHA512:
6
- metadata.gz: d85786dd62c82e2d856f39a5efa54f0df7cc919626d7d051b0d900deac9a1870b690bb0cf8cb21476413830b693f070d1ca3e90422db928ef2bdc7cbe6f0fc8d
7
- data.tar.gz: 5261c00955dac3d6223141183fbc65230cc29341a0102a3e9aa92cda2d34293af84692bffcb49a9b5da99f9cc895914e9f0fd6c4a2a90b48fe203095beb0c1af
6
+ metadata.gz: c7b855dc6cef8a9dae519d34b60a4943b798246c34871412087d166f4d2e7f079d142a4ca41de1783c019f4cfca1c997f30bffe1b01fa954d1d9467ef869c4f5
7
+ data.tar.gz: 0d4add96ca49b7f31ced3b145c65b3257f605bb09b1f5c010bfa2ffe61aebfd165d323f2dc86d0fec824b2ea6accadb168a3dcf43d8195b903e31ef971106c80
data/README.md CHANGED
@@ -41,6 +41,9 @@ post.image.url(w: 150, h: 200, fit: "crop")
41
41
  #=> "http://my-subdomain.imgix.net/943kdfs0gkfg.jpg?w=150&h=200&fit=crop"
42
42
  ```
43
43
 
44
+ See the [Imgix docs](https://www.imgix.com/docs/reference) for all available
45
+ URL options.
46
+
44
47
  ## Development
45
48
 
46
49
  The tests for shrine-imgix uses S3, so you'll have to create an `.env` file with
@@ -58,8 +61,8 @@ S3_BUCKET="..."
58
61
 
59
62
  Afterwards you can run the tests:
60
63
 
61
- ```rb
62
- bundle exec rake test
64
+ ```sh
65
+ $ bundle exec rake test
63
66
  ```
64
67
 
65
68
  ## License
@@ -33,6 +33,15 @@ class Shrine
33
33
  @storage.movable?(io, id) if @storage.respond_to?(:movable?)
34
34
  end
35
35
 
36
+ def multi_delete(ids)
37
+ if @storage.respond_to?(:multi_delete)
38
+ @storage.multi_delete(ids)
39
+ ids.each { |id| purge(id) }
40
+ else
41
+ ids.each { |id| delete(id) }
42
+ end
43
+ end
44
+
36
45
  # Purges the deleted file.
37
46
  def delete(id)
38
47
  @storage.delete(id)
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.1"
3
+ gem.version = "0.1.2"
4
4
 
5
5
  gem.required_ruby_version = ">= 2.1"
6
6
 
@@ -13,11 +13,11 @@ 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
17
  gem.add_dependency "imgix"
17
18
 
18
19
  gem.add_development_dependency "rake"
19
- gem.add_development_dependency "shrine"
20
20
  gem.add_development_dependency "minitest"
21
21
  gem.add_development_dependency "dotenv"
22
- gem.add_development_dependency "aws-sdk", "~> 2.1.0"
22
+ gem.add_development_dependency "aws-sdk", "~> 2.1"
23
23
  end
metadata CHANGED
@@ -1,37 +1,37 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shrine-imgix
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Janko Marohnić
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-06 00:00:00.000000000 Z
11
+ date: 2016-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: imgix
14
+ name: shrine
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: '1.1'
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: '0'
26
+ version: '1.1'
27
27
  - !ruby/object:Gem::Dependency
28
- name: rake
28
+ name: imgix
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
- type: :development
34
+ type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
@@ -39,7 +39,7 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: shrine
42
+ name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ">="
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 2.1.0
89
+ version: '2.1'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 2.1.0
96
+ version: '2.1'
97
97
  description:
98
98
  email:
99
99
  - janko.marohnic@gmail.com
@@ -125,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
125
125
  version: '0'
126
126
  requirements: []
127
127
  rubyforge_project:
128
- rubygems_version: 2.4.5
128
+ rubygems_version: 2.5.1
129
129
  signing_key:
130
130
  specification_version: 4
131
131
  summary: Provides Imgix integration for Shrine.