hubdown 0.0.10 → 0.0.11
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.
- data/CHANGELOG +4 -0
- data/lib/hubdown/page_builder.rb +1 -0
- data/lib/hubdown/style_cache.rb +5 -2
- data/lib/hubdown/template.html.erb +1 -0
- data/lib/hubdown/version.rb +1 -1
- metadata +2 -2
data/CHANGELOG
CHANGED
data/lib/hubdown/page_builder.rb
CHANGED
data/lib/hubdown/style_cache.rb
CHANGED
@@ -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
|
data/lib/hubdown/version.rb
CHANGED
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.
|
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-
|
12
|
+
date: 2013-03-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: mixlib-cli
|