octopress-code-highlighter 4.2.2 → 4.2.3

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: 3f4110adaf63b2c19179fe9d7875bd7aec2bab57
4
- data.tar.gz: 73534aa137becb88019023331a0770f6fec438ce
3
+ metadata.gz: 4164dd0c2e141d03bee935546f650601d2c0e5cb
4
+ data.tar.gz: a83c9099f0d9dd79ea224d86afcff2abeddd32e9
5
5
  SHA512:
6
- metadata.gz: f81da4dbecd56554077ddc007941a0f83846c9044690728c64da108a4bc955eb47bbbef504f15147174f896f4737b6cda6eab92cdd074b915b1406956300cb22
7
- data.tar.gz: 29f4ea15fb3caa4eb15dee19533a393c77958b3b35314d901b28799e7983dfe3cb0947a6c9a3e325e6389de5f01761ef294f9788b3eb4f14e5222281df452d50
6
+ metadata.gz: 1fe0c512294344643b66ef52113fdc17b1ce6626542f3957dc343a064be574babbbfbe73a46a19652815612d9cef8c6c5eedbf07ea2fdb2959a5366fdf1975c5
7
+ data.tar.gz: 488ba51111b20a62d1c9b4869b2101f67ae46995e61a3f13488b34391dfb2f2012fe819c2090511b00849da4004a2526d9563c261a76c0c71ef3c855679f5ee6
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## 4.2.3 - 2014-07-08
4
+ - Fixed: Code ranges now work on ruby 1.9.3
5
+
3
6
  ## 4.2.2 - 2014-07-07
4
7
  - Fixed: Closing spans aren't wrapped to a newline.
5
8
 
@@ -50,7 +50,7 @@ module Octopress
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
+ code = code.lines.to_a[range].join
54
54
  end
55
55
  code
56
56
  end
@@ -1,6 +1,6 @@
1
1
  module Octopress
2
2
  module CodeHighlighter
3
- VERSION = "4.2.2"
3
+ VERSION = "4.2.3"
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.2.2
4
+ version: 4.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis