File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
- 0.1.2
1
+ 0.1.3
Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ def output_image(image)
57
57
return unless sources . length > 0
58
58
59
59
name = image [ 'name' ]
60
+ format = image [ 'format' ] || config [ "default_format" ]
60
61
spaced_by = image [ 'spaced_by' ] || 0
61
62
62
63
combiner = ImageCombiner . new
@@ -77,12 +78,12 @@ def output_image(image)
77
78
end
78
79
79
80
# set up path
80
- path = image_output_path ( name , image [ ' format' ] || config [ "default_format" ] )
81
+ path = image_output_path ( name , format )
81
82
FileUtils . mkdir_p ( File . dirname ( path ) )
82
83
83
84
# write sprite image file to disk
84
85
dest_image . write ( path )
85
- @output [ name ] = results
86
+ @output [ " #{ name } . #{ format } " ] = results
86
87
end
87
88
88
89
def output_file
Original file line number Diff line number Diff line change 5
5
6
6
Gem ::Specification . new do |s |
7
7
s . name = %q{sprite}
8
- s . version = "0.1.1 "
8
+ s . version = "0.1.2 "
9
9
10
10
s . required_rubygems_version = Gem ::Requirement . new ( ">= 0" ) if s . respond_to? :required_rubygems_version=
11
11
s . authors = [ "Jacques Crocker" , "Richard Huang" ]
You can’t perform that action at this time.
0 commit comments