octopress-code-highlighter 4.0.1 → 4.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/octopress-code-highlighter.rb +2 -1
- data/lib/octopress-code-highlighter/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b62dcaff84deb8f301f43e12680d53541522a3fc
|
4
|
+
data.tar.gz: 88633bb89d395de77c0b154faae96dfefa7c9bd8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3da4f670d94203531f90ae100f87d29dc5fdff3fadb617e82b30e46ff3d75c75be4e5167b56b1a9bee0cacd6fa7bd5bce306e397364f8a155406603f82a8f365
|
7
|
+
data.tar.gz: 795fcf6d978184473cc5d5c17529891a49a44f63d0e5213feefdd8682925bd604fe8e448244ff65245f11413edfa1028e16ceda428e92ed2d7a454f5ee185987
|
data/CHANGELOG.md
CHANGED
@@ -49,7 +49,8 @@ module Octopress
|
|
49
49
|
if start > 1 or endline < length
|
50
50
|
raise "Code is #{length} lines long, cannot begin at line #{start}." if start > length
|
51
51
|
raise "Code lines starting line #{start} cannot be after ending line #{endline}." if start > endline
|
52
|
-
|
52
|
+
range = Range.new(start - 1, endline - 1)
|
53
|
+
code = code.lines[range].join
|
53
54
|
end
|
54
55
|
code
|
55
56
|
end
|