coderay 1.1.0.rc4 → 1.1.0.rc5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/coderay/encoders/html.rb +8 -6
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4273da537d959978b502a11519c872c2b37bcd7d
4
- data.tar.gz: dfddb0449f3b9deb01762e540229734ca9464080
3
+ metadata.gz: 10e5ef84cf070e23c1aee4ce116d9541782b4e5b
4
+ data.tar.gz: 3a7ec8f962450b85280ca65c04031d801c5015d7
5
5
  SHA512:
6
- metadata.gz: 52854fead30d395a3850fe4d8648390aadda38a72c265e39eb5ccadcf65a34e5749793f385bb33a5481585291e5d3daf914d1897bf62af4be1e8bc89bc1964f8
7
- data.tar.gz: 0c03faadff87b289ef853a2c4d1fb03ebf955b0a57e04ddd071160f6c9ad99e70fc7ba42d94e675c08e97089fef2849a08a22732dd6668569fb2abd916cf0c70
6
+ metadata.gz: 6044bb7c7480d637a2446d29c3ad0811e4f97a602550db948bc53fd23596df89c0186f95f77462b2a292f4f561e04965819185c709f57fd702bfacb3a351062d
7
+ data.tar.gz: 2da2dff3d5f4fbcd3c3056945a985ca00d0ed0081071b515208a124879ca356502198057ae2267fa65b4db58ea33cd8f6839154ffdac0d321396dd44d8a1b607
@@ -197,13 +197,15 @@ module Encoders
197
197
  @last_opened = nil
198
198
  end
199
199
 
200
- @out.extend Output
201
- @out.css = @css
202
- if options[:line_numbers]
203
- Numbering.number! @out, options[:line_numbers], options
200
+ if @out.respond_to? :to_str
201
+ @out.extend Output
202
+ @out.css = @css
203
+ if options[:line_numbers]
204
+ Numbering.number! @out, options[:line_numbers], options
205
+ end
206
+ @out.wrap! options[:wrap]
207
+ @out.apply_title! options[:title]
204
208
  end
205
- @out.wrap! options[:wrap]
206
- @out.apply_title! options[:title]
207
209
 
208
210
  if defined?(@real_out) && @real_out
209
211
  @real_out << @out
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coderay
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0.rc4
4
+ version: 1.1.0.rc5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kornelius Kalnbach
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-23 00:00:00.000000000 Z
11
+ date: 2013-08-30 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Fast and easy syntax highlighting for selected languages, written in
14
14
  Ruby. Comes with RedCloth integration and LOC counter.