hubdown 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,5 +1,9 @@
1
1
  # hubdown changelog
2
2
 
3
+ ## V 0.0.11
4
+ Support for multibyte chars in the template (Thx to @kitak!)
5
+ Fix bug where needed cached files could potentially be deleted
6
+
3
7
  ## V 0.0.10
4
8
 
5
9
  ### Add syntax highlighting
@@ -1,3 +1,4 @@
1
+ # coding: utf-8
1
2
  require 'hubdown/style_generator'
2
3
  require 'erb'
3
4
 
@@ -22,7 +22,7 @@ class StyleCache
22
22
  create_tmp_file
23
23
  write_link_cache_file links
24
24
  write_link_contents links
25
- remove_old_files
25
+ remove_old_files links
26
26
 
27
27
  end
28
28
 
@@ -47,8 +47,11 @@ class StyleCache
47
47
  end
48
48
  end
49
49
 
50
- def remove_old_files
50
+ def remove_old_files links
51
51
  prev_sheets = load_latest_files
52
+ prev_sheets.delete_if do |link|
53
+ links.index {|item| item.name == link.name}
54
+ end
52
55
  prev_sheets.each do |sheet|
53
56
  FileUtils.rm(get_cache_file( sheet.name ))
54
57
  end
@@ -1,6 +1,7 @@
1
1
  <!DOCTYPE html>
2
2
  <html>
3
3
  <head>
4
+ <meta charset="UTF-8">
4
5
  <title><%= filename || ''%></title>
5
6
  <% links.each do |link| -%>
6
7
  <%= link.to_tag %>
@@ -1,3 +1,3 @@
1
1
  module Hubdown
2
- VERSION = "0.0.10"
2
+ VERSION = "0.0.11"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hubdown
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-17 00:00:00.000000000 Z
12
+ date: 2013-03-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mixlib-cli