octopress-code-highlighter 4.2.4 → 4.2.5

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c6e9892e2d81b5eb3511df94f71f76a1df7890c2
4
- data.tar.gz: ce7e0c23bf5ccf87692c2359258e795e71d8864d
3
+ metadata.gz: dcfcfd2991df611613ab7fba05af720191804cb5
4
+ data.tar.gz: 882cdf44b122b9f2276607adda5373553da938a1
5
5
  SHA512:
6
- metadata.gz: 865e32859e2e7bc1cd36b74993e37d64ed5fc49fca1dfb9159da6aec1c054ca6374f6f91ecd3968466c0d3e7a3c5ead761d09e615c1cfbf54cc99530c43350cf
7
- data.tar.gz: 9b16907de093ec56ef18c8c98ef0a98f3ed71f42075bff49d77b12c9067cc94ef00e467b5b0a92475013243e23892e4ccdb2c984c5457b233c0b731e61eb83d5
6
+ metadata.gz: f4d464fcc9c7d49093ef55b822acead2ea214e562cf6c152aa61d073edb5fc1b157297f0fe5c041e48a09fad2668419825506c84b28dfbbe0e5659f612645b91
7
+ data.tar.gz: bb04339b4e9df5137e6b4d4158f7e2722643e7dc1ef1f57a507b215420ba1096b3b2afb044ea0e88ea528b3ad2d95bb154e7799913c26c6124b18eb02ceeb131
data/CHANGELOG.md CHANGED
@@ -1,6 +1,9 @@
1
1
  # Changelog
2
2
 
3
- ## 4.2.3 - 2015-05-18
3
+ ## 4.2.5 - 2015-05-29
4
+ - Fix: Code cache doesn't attempt cleanup if there is no cache.
5
+
6
+ ## 4.2.4 - 2015-05-18
4
7
  - New: Now works with Jekyll 3 and Jekyll Hooks.
5
8
  - Fix: Cache reads and writes do not trigger Jekyll watcher.
6
9
  - Fix: Cache fingerprinting improvement.
data/README.md CHANGED
@@ -4,23 +4,12 @@
4
4
 
5
5
  Generates highlighted code using Pygments.rb or Rouge with enanced HTML output and fancy stylesheets. This gem is used by [octopress-codefence](https://github.com/octopress/codefence) and [octopress-gist](https://github.com/octopress/octopress-gist).
6
6
 
7
- ## Installation
7
+ ## Usage Note
8
8
 
9
- Add this line to your application's Gemfile:
9
+ This plugin is really a library plugin, handling the heavy lifting for generating nice code snippets. If you want to add nice code snippets to your Jekyll site,
10
+ you probably want [octopress-codefence](https://github.com/octopress/codefence), [octopress-render-code](https://github.com/octopress/render-code), [octopress-codeblock](https://github.com/octopress/codeblock), or [octopress-gist](https://github.com/octopress/gist).
10
11
 
11
- gem 'octopress-code-style'
12
-
13
- And then execute:
14
-
15
- $ bundle
16
-
17
- Or install it yourself as:
18
-
19
- $ gem install octopress-code-style
20
-
21
- ## Usage
22
-
23
- TODO: Write usage instructions here
12
+ If you want to style highlighted code markup, check out [octopress-solarized](https://github.com/octopress/solarized).
24
13
 
25
14
  ## Contributing
26
15
 
@@ -38,8 +38,10 @@ module Octopress
38
38
  end
39
39
 
40
40
  def clean
41
- remove = Find.find(CODE_CACHE_DIR).to_a.reject do |file|
42
- @cached_files.include?(file) || File.directory?(file)
41
+ remove = []
42
+
43
+ Find.find(CODE_CACHE_DIR).each do |file|
44
+ remove << file unless @cached_files.include?(file) || File.directory?(file)
43
45
  end
44
46
 
45
47
  @cached_files = []
@@ -1,6 +1,6 @@
1
1
  module Octopress
2
2
  module CodeHighlighter
3
- VERSION = "4.2.4"
3
+ VERSION = "4.2.5"
4
4
  end
5
5
  end
6
6
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octopress-code-highlighter
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.4
4
+ version: 4.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-18 00:00:00.000000000 Z
11
+ date: 2015-05-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorator