spohlenz-sassic 0.2.2 → 0.2.3

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/lib/sassic/builder.rb +2 -1
  2. data/sassic.gemspec +2 -2
  3. metadata +2 -2
@@ -70,7 +70,7 @@ private
70
70
  prefix = dirs == 0 ? './' : (['../'] * dirs).join
71
71
 
72
72
  content = open("#{file}").read
73
- replaced = content.gsub(/\/(images|javascripts|stylesheets)/, "#{prefix}\\1")
73
+ replaced = content.gsub(/\/(images|javascripts|stylesheets|[^"]*\.html)/, "#{prefix}\\1")
74
74
  File.open(file, 'w') { |f| f.write(replaced) }
75
75
  end
76
76
  end
@@ -81,6 +81,7 @@ private
81
81
 
82
82
  def fetch_and_write(path, file)
83
83
  content = open("#{@server}/#{path}").read
84
+ FileUtils.mkdir_p(File.dirname("#{@output}/#{file}"))
84
85
  File.open("#{@output}/#{file}", 'w') { |f| f.write(content) }
85
86
  content
86
87
  end
data/sassic.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "sassic"
3
- s.version = "0.2.2"
4
- s.date = "2008-11-13"
3
+ s.version = "0.2.3"
4
+ s.date = "2008-11-19"
5
5
 
6
6
  s.authors = [ "Sam Pohlenz" ]
7
7
  s.email = "sam@sampohlenz.com"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spohlenz-sassic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Pohlenz
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-11-13 00:00:00 -08:00
12
+ date: 2008-11-19 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency