highlight 1.1.7 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/HISTORY.md CHANGED
@@ -1,3 +1,8 @@
1
+ v2.0.0
2
+ ------
3
+
4
+ * don't strip leading/trailing whitespaces, only remove trailing newlines (http://ruby-doc.org/core-2.0/String.html#method-i-chomp)
5
+
1
6
  v1.1.7
2
7
  ------
3
8
 
@@ -33,12 +33,12 @@ module Simplabs
33
33
  # the highlighted code or simply the HTML-escaped code
34
34
  # if the language is not supported.
35
35
  #
36
- def highlight
36
+ def highlight(options = {})
37
37
  command = "pygmentize -f html -O nowrap=true -l #{@language}"
38
38
  IO.popen(command, mode = 'r+') do |pygments|
39
39
  pygments << @code
40
40
  pygments.close_write
41
- pygments.read.strip.chomp
41
+ result = pygments.read.chomp
42
42
  end
43
43
  end
44
44
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: highlight
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.7
4
+ version: 2.0.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -55,8 +55,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
55
55
  version: '0'
56
56
  requirements: []
57
57
  rubyforge_project:
58
- rubygems_version: 1.8.23
58
+ rubygems_version: 1.8.11
59
59
  signing_key:
60
60
  specification_version: 2
61
61
  summary: Syntax Higlighting plugin for Ruby on Rails
62
62
  test_files: []
63
+ has_rdoc: false