html-pipeline-rouge_filter 1.0.0 → 1.0.1

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: 6fbe6d6bed5f26e774cbec97e4c4f3daf0f8fb78
4
- data.tar.gz: 4ef0190ac74ee92841a5ff7a07ec37aac417e6ba
3
+ metadata.gz: a0795c378efe8982c18b9ba06170198b03a645d8
4
+ data.tar.gz: 7a98ea63d2054ec6cab6844584406abcb1710443
5
5
  SHA512:
6
- metadata.gz: 3ed19d6d77dbffa08f7a4ce7a3d25a17e9def14172379b9c6bba8fd25c0f681fc1bf866195de8371cc358ff882e73d5aa77eaebdb29029a132d5403f409268b8
7
- data.tar.gz: 0107b840f5c002b3e802aee73a02e6eb8c35cab95868f9f7f7e623291ab306aaced04f4f7e416de3b918af0afb7c2f0eeee07ee63e7aa22593bb9a985e4d9b95
6
+ metadata.gz: 9e34003bdb322d9976afb85438c1acbd2f55741f881dff4593e4a9c810a0a932debf99da42cf849a985219a6c9d85f2cdec96feea9a6df4ba93157a1a3c7c2a9
7
+ data.tar.gz: e747dbaa9ae2a68fb9f66bd89202b6e7219a6ecd07cc9300b2c1f2855cd870d27ebd9fa0c47528cd320f5e7dbb335d9130d9aff53f2ee31a63b24aa3a8e79f39
data/.travis.yml ADDED
@@ -0,0 +1,12 @@
1
+ language: ruby
2
+ sudo: false
3
+ bundler_args: "--retry=3 --jobs=3"
4
+ rvm:
5
+ - 2.0
6
+ - 2.1
7
+ - 2.2
8
+ - ruby-head
9
+ matrix:
10
+ allow_failures:
11
+ - rvm: ruby-head
12
+ fast_finish: true
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 1.0.1 - 2015.03.10
6
+
7
+ - Fix lexer finding logic [#1](https://github.com/JuanitoFatas/html-pipeline-rouge_filter/pull/1) by @JuanitoFatas
8
+
5
9
  ## 1.0.0 - 2015.02.08
6
10
 
7
11
  - RougeFilter (Implementation reference: [SyntaxHighlightFilter](https://github.com/jch/html-pipeline/blob/956be5bf3d3b0dbe47dd9215b85b56773f23efb1/lib/html/pipeline/syntax_highlight_filter.rb)).
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # HTML::Pipeline::RougeFilter
1
+ # HTML::Pipeline::RougeFilter [![Build Status](https://travis-ci.org/JuanitoFatas/html-pipeline-rouge_filter.svg)](https://travis-ci.org/JuanitoFatas/html-pipeline-rouge_filter)
2
2
 
3
3
  [Rouge](https://github.com/jneen/rouge) integration for [HTML::Pipeline](https://github.com/jch/html-pipeline).
4
4
 
@@ -20,22 +20,20 @@ Or install it yourself as:
20
20
 
21
21
  ## Usage
22
22
 
23
- ```ruby
24
- pipeline = HTML::Pipeline.new [
25
- HTML::Pipeline::MarkdownFilter,
26
- HTML::Pipeline::RougeFilter
27
- ]
23
+ pipeline = HTML::Pipeline.new [
24
+ HTML::Pipeline::MarkdownFilter,
25
+ HTML::Pipeline::RougeFilter
26
+ ]
28
27
 
29
- result = pipeline.call <<-CODE
30
- ```ruby
31
- def foo
32
- puts "foo"
33
- end
34
- ```
35
- CODE
28
+ result = pipeline.call <<-CODE
29
+ ```ruby
30
+ def foo
31
+ puts "foo"
32
+ end
33
+ ```
34
+ CODE
36
35
 
37
- result[:output].to_s
38
- ```
36
+ result[:output].to_s
39
37
 
40
38
  Prints
41
39
 
@@ -53,7 +51,7 @@ Prints
53
51
 
54
52
  ## Contributing
55
53
 
56
- 1. Fork it ( https://github.com/[my-github-username]/html-pipeline-rouge_filter/fork )
54
+ 1. Fork it ( https://github.com/juanitofatas/html-pipeline-rouge_filter/fork )
57
55
  2. Create your feature branch (`git checkout -b my-new-feature`)
58
56
  3. Commit your changes (`git commit -am 'Add some feature'`)
59
57
  4. Push to the branch (`git push origin my-new-feature`)
@@ -44,10 +44,8 @@ module HTML
44
44
  end
45
45
 
46
46
  def lexer_for(lang)
47
- lexer = "Rouge::Lexers::#{lang.camelize}".constantize
48
- lexer.new(parent: lang)
47
+ Rouge::Lexer.find_fancy(lang) || Rouge::Lexers::PlainText
49
48
  end
50
49
  end
51
50
  end
52
51
  end
53
-
@@ -2,6 +2,6 @@
2
2
  # and we don't want to define it here inadvertently
3
3
  module HTML_Pipeline
4
4
  class RougeFilter
5
- VERSION = "1.0.0"
5
+ VERSION = "1.0.1"
6
6
  end
7
7
  end
@@ -23,8 +23,4 @@ class HTML::Pipeline::RougeFilterTest < Minitest::Test
23
23
  assert doc.css(".highlight-coffeescript").empty?
24
24
  assert !doc.css(".highlight-ruby").empty?
25
25
  end
26
-
27
- def test_version
28
- assert_equal HTML_Pipeline::RougeFilter::VERSION, "0.0.1"
29
- end
30
26
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: html-pipeline-rouge_filter
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juanito Fatas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-08 00:00:00.000000000 Z
11
+ date: 2015-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: html-pipeline
@@ -60,6 +60,7 @@ extensions: []
60
60
  extra_rdoc_files: []
61
61
  files:
62
62
  - ".gitignore"
63
+ - ".travis.yml"
63
64
  - CHANGELOG.md
64
65
  - Gemfile
65
66
  - LICENSE
@@ -95,4 +96,3 @@ signing_key:
95
96
  specification_version: 4
96
97
  summary: Rouge integration with html-pipeline.
97
98
  test_files: []
98
- has_rdoc: