paperclip-compression 0.3.11 → 0.3.12

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YmY5NzZhMWI0NzBmOWNlODAwZGEyMmE0MDViYTM3ODBlNTgxOGRmNw==
4
+ MWFjMDJkYzczMGVjOWE1OWFhZDgwMzQyMWU4ZTEyZGNkMDkwMmNjOQ==
5
5
  data.tar.gz: !binary |-
6
- NWU3NjIyODI5ODI5MDU3ZTRmNzYwNTdmNmEyMDA4ZDU3NWRmZDlkZA==
6
+ YTJkNzAwZTgzM2I5M2JjZWRiN2VhNjBiZDY4ZjgwOWU4Mjk3ZTY2Mg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NDAxNmFkYTg4NjczZWQxZTU4YjY0MGNjNGNiY2Y3MzgxMzY0MTE2OTM0MWYy
10
- NzVmODA0OGNiMDc0OTU1NDdlOTE5MDViNDgzMjdiYTYwYWFiNGE1MTYzNjUx
11
- Yjc2Y2M1MzNmYjZlNDc3MzFlNzdlYjQ3MzY3ZDBmODA3YmU3MmI=
9
+ MjUzMjllZjVlNTBiNzk2ZGM2ZTk2YjQ4ZjEzYjRhOTM4ZGY5ZTQwODQxNWZi
10
+ MTc0MWJjNDJhNTI1NDYyYjI3ZWYxMjk2MjNkODVmYTZhMjRlMDAzY2M4OGYx
11
+ MWYwNDVhNmExZTUyNDc5OTFhNDJjNDAyNzg1NmE0MWNlOWRmNmU=
12
12
  data.tar.gz: !binary |-
13
- MWI4ZDlmZmVkMGNmOGVhOTFkZWY1OGFlODVhODJiZmY4MGZmYTBiMzA4MTZk
14
- NDA5OTlkNzA1YjAyODQ4ODlkNmFmODI0NDE4NWQ3YjRhNjA5N2NhNzA4YjBj
15
- YWQ3YTA1Y2ZlYmMzZGUzZDIyY2Y5NmVkNTdlMjZiYTMxZDg1YzI=
13
+ M2Q1ODg3MWJkYzIzMDYzYjUyNzI1MWI1ZGZkZDBhMmFiZjEyZTdlY2U5YTAw
14
+ MTk1NTA3NzMxM2M0NDQzMmViNjY0NDA0YTM5YWFkYWRiODdmYTBlYTE2MmYx
15
+ MWExNTNlM2U0ZWEyMzRmNzk5Yzk3MDlkYTcwMTc5OWUwODY2YzM=
@@ -1,6 +1,5 @@
1
1
  require 'paperclip'
2
2
  require 'os'
3
- require 'image_spec'
4
3
  require 'paperclip-compression/paperclip/compression'
5
4
  require 'paperclip-compression/base'
6
5
  require 'paperclip-compression/jpeg'
@@ -22,7 +22,7 @@ module Paperclip
22
22
  end
23
23
 
24
24
  def content_type
25
- @file.is_a?(Paperclip::AbstractAdapter) ? @file.content_type : ImageSpec.new(@file).content_type
25
+ @file.is_a?(Paperclip::AbstractAdapter) ? @file.content_type : Paperclip::ContentTypeDetector.new(@file.path).detect
26
26
  end
27
27
 
28
28
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paperclip-compression
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.11
4
+ version: 0.3.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - İ. Emre Kutlu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-15 00:00:00.000000000 Z
11
+ date: 2015-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: paperclip
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ! '>='
18
18
  - !ruby/object:Gem::Version
19
- version: 4.2.2
19
+ version: 4.3.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: 4.2.2
26
+ version: 4.3.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: os
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -38,20 +38,6 @@ dependencies:
38
38
  - - ~>
39
39
  - !ruby/object:Gem::Version
40
40
  version: 0.9.6
41
- - !ruby/object:Gem::Dependency
42
- name: ruby-imagespec
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ~>
46
- - !ruby/object:Gem::Version
47
- version: 0.4.1
48
- type: :runtime
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ~>
53
- - !ruby/object:Gem::Version
54
- version: 0.4.1
55
41
  - !ruby/object:Gem::Dependency
56
42
  name: bundler
57
43
  requirement: !ruby/object:Gem::Requirement