bulldog 0.0.12 → 0.0.13

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 +1 @@
1
- 0.0.12
1
+ 0.0.13
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{bulldog}
8
- s.version = "0.0.12"
8
+ s.version = "0.0.13"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["George Ogata"]
12
- s.date = %q{2009-12-11}
12
+ s.date = %q{2010-01-18}
13
13
  s.description = %q{= Bulldog
14
14
 
15
15
  Flexible file attachments for active record.
@@ -109,6 +109,7 @@ module Bulldog
109
109
  styles.each do |style|
110
110
  @tree.add(style, ['-quality', style[:quality].to_s]) if style[:quality]
111
111
  @tree.add(style, ['-colorspace', style[:colorspace]]) if style[:colorspace]
112
+ @tree.add(style, ['-strip']) if style[:stripped]
112
113
  path = output_file(style.name)
113
114
  FileUtils.mkdir_p(File.dirname(path))
114
115
  @tree.output(style, path)
@@ -118,6 +118,18 @@ describe Processor::ImageMagick do
118
118
  process
119
119
  end
120
120
 
121
+ it "should add -strip if the :stripped style attribute is true" do
122
+ style :output, :stripped => true
123
+ Bulldog.expects(:run).once.with(convert, "#{original_path}[0]", '-strip', output_path).returns('')
124
+ process
125
+ end
126
+
127
+ it "should add -strip if the :stripped style attribute is true" do
128
+ style :output, :stripped => false
129
+ Bulldog.expects(:run).once.with(convert, "#{original_path}[0]", output_path).returns('')
130
+ process
131
+ end
132
+
121
133
  it "should use the :format style attribute to set the file extension if it's specified by the :extension interpolation key" do
122
134
  style :output, :format => 'png'
123
135
  Bulldog.expects(:run).once.with(convert, "#{original_path}[0]", output_path.sub(/jpg\z/, 'png')).returns('')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bulldog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - George Ogata
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-12-11 00:00:00 -05:00
12
+ date: 2010-01-18 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency