SassyExport 1.0.9 → 1.0.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/SassyExport.rb +2 -2
  2. metadata +1 -1
data/lib/SassyExport.rb CHANGED
@@ -11,7 +11,7 @@ Compass::Frameworks.register('SassyExport', :path => extension_path)
11
11
  # Version is a number. If a version contains alphas, it will be created as a prerelease version
12
12
  # Date is in the form of YYYY-MM-DD
13
13
  module SassyExport
14
- VERSION = "1.0.9"
14
+ VERSION = "1.0.10"
15
15
  DATE = "2014-05-31"
16
16
  end
17
17
 
@@ -26,7 +26,7 @@ end
26
26
  module Sass::Script::Functions
27
27
  def SassyExport(path, filename, string)
28
28
  # define root path up to current folder
29
- root = File.dirname(options[:filename] || ".")
29
+ root = File.expand_path File.dirname(__FILE__)
30
30
  # open file [create new file if file does not exist], write $string to $root/$path/$filename
31
31
  File.open("#{root}/#{path}/#{filename}.json", "w") { |f| f.write(string) }
32
32
  # return string for use in css
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: SassyExport
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.9
4
+ version: 1.0.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: