ksk 0.2.7 → 0.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/actives/asset.rb +1 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 82c20844247dcb3e170f7e950cb872f6bbee3e0c
4
- data.tar.gz: 0094d8cb022c924de0f0413cec40f17efea16fe8
3
+ metadata.gz: 0ba89b85e998d5a247ec3430b491f4101781cf6e
4
+ data.tar.gz: 7186043f16771af0c6ae982d1ec746859b912790
5
5
  SHA512:
6
- metadata.gz: d8c0e9d2fb37eb910c2d6ce82870ccfdf1c6c8a26e0a274ec52f09357c00f4fe13294484a4e51443f0926c3acce0f8a968f00a91b8818c326e365280f6e0b6ea
7
- data.tar.gz: 6fe69bf7fdaad4da4fff5a42c2952c2c8c906c61db0a1b56186d92fca93f074a1d9066c3ce1d652d3ccb6e34c1c35b1feb00a93a1cc38a56573b091f3410627b
6
+ metadata.gz: 5460018dc72567d5d246f8fad5e2c5a51768a5799d89620c9f2d4a403ff64b5ffd6491526542d2c3194a8915d84f6400792cea692c201b14aab45758f1342ca1
7
+ data.tar.gz: 4efbcb388ba61312e55efe1c59e4f3abfd270150e6044242c77ca8323367ec0b6bdff4e56445a408e0d8bc6248d388a2ae7038e18d3cfc04e983741945a3e6b7
data/lib/actives/asset.rb CHANGED
@@ -15,8 +15,8 @@ module Ksk
15
15
  after_initialize :resize_attr_accessors
16
16
  before_save :crop_thumbs, if: :cropping?
17
17
 
18
- #validates_attachment :file, :content_type => { :content_type => IMGTYPE }
19
18
  IMGTYPE = ['image/jpeg', 'image/pjpeg', 'image/jpg', 'image/png', 'image/tif', 'image/gif']
19
+ validates_attachment_content_type :file, :content_type => /.*/
20
20
 
21
21
  scope :only_images, -> {where(file_content_type: IMGTYPE)}
22
22
  scope :first_image, -> {only_images.limit(1)}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ksk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anton Pawlik
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-12 00:00:00.000000000 Z
11
+ date: 2014-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bhf