spriter 0.8.0 → 0.9.0

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. data/Rakefile +1 -1
  2. data/lib/spriter.rb +2 -1
  3. metadata +1 -1
data/Rakefile CHANGED
@@ -14,7 +14,7 @@ spec = Gem::Specification.new do |s|
14
14
 
15
15
  # Change these as appropriate
16
16
  s.name = "spriter"
17
- s.version = "0.8.0"
17
+ s.version = "0.9.0"
18
18
  s.summary = "Managers sprites and your css in a mega way."
19
19
  s.author = "Reevoo"
20
20
  s.homepage = "http://www.reevoo.com"
@@ -51,7 +51,8 @@ class Spriter
51
51
 
52
52
  def transform_files(*paths)
53
53
  files = paths.map{ |p| File.open(p, 'r') }
54
- generated_css = [*transform(*files)]
54
+ generated_css = transform(*files)
55
+ generated_css = [generated_css] unless generated_css.is_a? Array
55
56
  paths.map{ |p| p.sub(/\.spriter$/, '.css') }.each_with_index do |output_path, i|
56
57
  File.open(output_path, 'w'){ |f| f << generated_css[i] }
57
58
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spriter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Reevoo