bcms_tools 0.2.0 → 0.2.1

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.
data/VERSION CHANGED
@@ -1,2 +1,2 @@
1
- 0.2.0
1
+ 0.2.1
2
2
 
data/bcms_tools.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{bcms_tools}
8
- s.version = "0.2.0"
8
+ s.version = "0.2.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["buzzware"]
12
- s.date = %q{2010-06-23}
12
+ s.date = %q{2010-06-26}
13
13
  s.description = %q{Tools for BrowserCms.}
14
14
  s.email = %q{contact@buzzware.com.au}
15
15
  s.extra_rdoc_files = [
@@ -63,7 +63,9 @@ Paperclip::Thumbnail.class_eval do
63
63
  def make_custom(aDestpath)
64
64
  src = @file
65
65
  srcpath = File.expand_path(src.path).gsub('$','\$') # escape $, more chars may need to be added
66
- command = "#{ source_file_options } \"#{ srcpath }[0]\" #{ transformation_command } \"#{ File.expand_path(aDestpath) }\""
66
+ tcmd = transformation_command.sub('-resize','-strip -thumbnail')
67
+ command = "#{ source_file_options } \"#{ srcpath }[0]\" #{ tcmd } \"#{ File.expand_path(aDestpath) }\""
68
+
67
69
  success = false
68
70
  begin
69
71
  success = (Paperclip.run("convert", command)=='') # assuming output always mean failure
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bcms_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - buzzware
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-06-23 00:00:00 +08:00
12
+ date: 2010-06-26 00:00:00 +08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency