octopress-code-highlighter 4.2.0 → 4.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 46baa2ce8aa0f668a09c0bc698c0f82b2700abbd
4
- data.tar.gz: ffd4f5ef8d71d0f9ba00551b2c4e2712a251aa0c
3
+ metadata.gz: 5a036d25122bb9a29e53d9f4631da1490eb238e8
4
+ data.tar.gz: 52600bbb3b960bcbb72137da1671fa73d6721050
5
5
  SHA512:
6
- metadata.gz: 38044e87197659c0434f711ffef5f679923960c93076e704792b0e8df66fad89cee746b2c03fc4b0017ff4cdea90e5a98e669bc0c07d82bd6cea4a1a50ea5146
7
- data.tar.gz: e2241329385980c82d7901ed16fcbd1199279e7a5d94b2b50361bc3c6d5c3340cfae6a21e14b5f855a12ac7752d32bca9aabdb1de7370e58214e99be6da820b7
6
+ metadata.gz: cbc34b7b0722b185bd1f10d76473d2341097b88c9d01741ddc89a2d1dff6d151044ff1130fcef35afd7e999c4296fe86f6be6e4c32b1506ab1527e1e3ff4596e
7
+ data.tar.gz: 1d1349ff1bb0928ca96310ccc62bdae556ec0d6afd9515e8c47603dabe088c6d88c64811857ad761abf1be2bf5266fe67f3634a8ac410c99aa8ecfd6244fc42b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## 4.2.1 - 2014-06-29
4
+ - Improved support for new Pygments.rb.
5
+
3
6
  ## 4.2.0 - 2014-06-28
4
7
  - New: Add classnames on code figure: `class:"example classnames"`.
5
8
 
@@ -70,11 +70,11 @@ module Octopress
70
70
  code = render_plain
71
71
  end
72
72
 
73
- if code =~ /<pre.+?>(.+)<\/pre>/m
74
- $1.strip
75
- else
76
- code
73
+ if code =~ /<pre.*?>(.+?)<\/pre>/m
74
+ code = $1.strip
77
75
  end
76
+
77
+ code
78
78
  end
79
79
 
80
80
  def render_plain
@@ -1,6 +1,6 @@
1
1
  module Octopress
2
2
  module CodeHighlighter
3
- VERSION = "4.2.0"
3
+ VERSION = "4.2.1"
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.0
4
+ version: 4.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-29 00:00:00.000000000 Z
11
+ date: 2014-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorator