spud_media 1.0.0.rc1 → 1.0.0.rc1.1

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: d7b6b5fa84c4a3a36db6186d469051782cba93fe
4
- data.tar.gz: 68c0d642b5af1827165ea2984c1d094bfe69d36a
3
+ metadata.gz: 67e5af75d007adc5d4f07ed1e987a2fa3939ea71
4
+ data.tar.gz: a8d3a683fef33f31b65ac16df9daa939def5558a
5
5
  SHA512:
6
- metadata.gz: ec056de961a21b5d51c6086216e3090d15548333501147aa1d00ce854a682befe33b1edabae1a6aaa84a4a69df6ce06ca0f948eada73393086951ce04d192ab3
7
- data.tar.gz: dae05ef3195f08dc484d617266702771d9d5fc9aef557ee91d51ad9d99b82250da33e047ad770f6149e69e5144cdb62dcf141de70e588e92cede2c53b295c768
6
+ metadata.gz: 67a5b81c1497e513b6efb2364ff3ff3f0040c1a26f4b47fe4122b5ece6f65dd4af5fb212d0adaa40965a76f4bd24bee05cac9b1eeff0dc2d70d5eb2f8dbdc840
7
+ data.tar.gz: 804d825fea97544b6d955e7c11174aa7ea7277b0944d43149e1fb88a8613019e31019f6a7561d72dcff23649f7f9015e702c98866904caa99f1c502f89362d0f
@@ -40,7 +40,7 @@ class SpudMedia < ActiveRecord::Base
40
40
  if self.attachment_content_type.blank?
41
41
  return "spud/admin/files_thumbs/dat_thumb.png"
42
42
  end
43
- if self.is_image? || self.is_pdf?
43
+ if self.is_image?
44
44
  return self.attachment_url(:small)
45
45
 
46
46
  elsif self.attachment_content_type.blank?
@@ -99,7 +99,7 @@ class SpudMedia < ActiveRecord::Base
99
99
 
100
100
  def dynamic_styles
101
101
  styles = {}
102
- if is_image? || is_pdf?
102
+ if is_image?
103
103
  styles[:small] = '50'
104
104
  if has_custom_crop?
105
105
  styles[:cropped] = {:geometry => '', :convert_options => "-resize #{crop_s}% -crop #{crop_w}x#{crop_h}+#{crop_x}+#{crop_y}"}
@@ -1,5 +1,5 @@
1
1
  module Spud
2
2
  module Media
3
- VERSION = "1.0.0.rc1"
3
+ VERSION = "1.0.0.rc1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spud_media
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.rc1
4
+ version: 1.0.0.rc1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Estes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-05 00:00:00.000000000 Z
11
+ date: 2014-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -172,6 +172,9 @@ executables: []
172
172
  extensions: []
173
173
  extra_rdoc_files: []
174
174
  files:
175
+ - MIT-LICENSE
176
+ - Rakefile
177
+ - Readme.markdown
175
178
  - app/assets/images/spud/admin/files_thumbs/dat_thumb.png
176
179
  - app/assets/images/spud/admin/files_thumbs/doc_thumb.png
177
180
  - app/assets/images/spud/admin/files_thumbs/jpg_thumb.png
@@ -192,9 +195,9 @@ files:
192
195
  - app/assets/libs/jcrop/css/Jcrop.gif
193
196
  - app/assets/libs/jcrop/css/jquery.Jcrop.css
194
197
  - app/assets/libs/jcrop/css/jquery.Jcrop.min.css
195
- - app/assets/libs/jcrop/js/jquery.color.js
196
198
  - app/assets/libs/jcrop/js/jquery.Jcrop.js
197
199
  - app/assets/libs/jcrop/js/jquery.Jcrop.min.js
200
+ - app/assets/libs/jcrop/js/jquery.color.js
198
201
  - app/assets/libs/jcrop/js/jquery.min.js
199
202
  - app/assets/libs/tiny_mce/plugins/spud_media/blank.htm
200
203
  - app/assets/libs/tiny_mce/plugins/spud_media/css/template.css
@@ -225,14 +228,11 @@ files:
225
228
  - db/migrate/20120501203325_add_protected_to_spud_media.rb
226
229
  - db/migrate/20120508132153_add_cropping_to_spud_media.rb
227
230
  - lib/responds_to_parent.rb
231
+ - lib/spud_media.rb
228
232
  - lib/spud_media/configuration.rb
229
233
  - lib/spud_media/engine.rb
230
234
  - lib/spud_media/version.rb
231
- - lib/spud_media.rb
232
235
  - lib/tasks/spud_media_tasks.rake
233
- - MIT-LICENSE
234
- - Rakefile
235
- - Readme.markdown
236
236
  homepage: http://www.github.com/spud-rails/spud_media
237
237
  licenses: []
238
238
  metadata: {}
@@ -252,7 +252,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
252
252
  version: 1.3.1
253
253
  requirements: []
254
254
  rubyforge_project:
255
- rubygems_version: 2.0.5
255
+ rubygems_version: 2.2.2
256
256
  signing_key:
257
257
  specification_version: 4
258
258
  summary: Spud File upload/management module