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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 33493bd9308df9d2b527e317df57f46a9216722c
4
- data.tar.gz: 79bd0fecc2631516853fedec37fada2cad7ad7a6
3
+ metadata.gz: b62dcaff84deb8f301f43e12680d53541522a3fc
4
+ data.tar.gz: 88633bb89d395de77c0b154faae96dfefa7c9bd8
5
5
  SHA512:
6
- metadata.gz: c611d12ea6b6cfe97d7aa4b2ea6c4c63f6ecfd17f63c71ed6e215518c8415238b1ad468714eec06240e33e4bed5f62929dda7346a6d76b30f5baceb661e02434
7
- data.tar.gz: 6f24e5ca6ceed1dab0ad15527628bdbcfc8dd4f2f85e098c940b5606c61cbf18fb50bc3f0c8b1253a85c20d1940bf6a6586339a6dac3be4e6d22131fa2837c18
6
+ metadata.gz: 3da4f670d94203531f90ae100f87d29dc5fdff3fadb617e82b30e46ff3d75c75be4e5167b56b1a9bee0cacd6fa7bd5bce306e397364f8a155406603f82a8f365
7
+ data.tar.gz: 795fcf6d978184473cc5d5c17529891a49a44f63d0e5213feefdd8682925bd604fe8e448244ff65245f11413edfa1028e16ceda428e92ed2d7a454f5ee185987
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## 4.0.2
4
+ - Fixed: end of range now works properly.
5
+
3
6
  ## 4.0.1
4
7
  - Changed `get_range` method to `select_lines` which returns a code partial when `start`, `end` or `range` options are defined.
5
8
 
@@ -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
- code = code.lines[(start - 1), (endline + 1)].join
52
+ range = Range.new(start - 1, endline - 1)
53
+ code = code.lines[range].join
53
54
  end
54
55
  code
55
56
  end
@@ -1,6 +1,6 @@
1
1
  module Octopress
2
2
  module CodeHighlighter
3
- VERSION = "4.0.1"
3
+ VERSION = "4.0.2"
4
4
  end
5
5
  end
6
6
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octopress-code-highlighter
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.1
4
+ version: 4.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis