html-pipeline-rouge_filter 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -0
- data/CHANGELOG.md +4 -0
- data/Gemfile +8 -0
- data/README.md +12 -0
- data/html-pipeline-rouge_filter.gemspec +1 -1
- data/lib/html/pipeline/rouge_filter.rb +1 -1
- data/lib/html/pipeline/rouge_filter/version.rb +1 -1
- data/test/rouge_filter_test.rb +3 -2
- metadata +5 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ec698413b76cb0330270b096cf6d64faef47fe1
|
4
|
+
data.tar.gz: '029766af68a0f1b973c293efc55c940381bfa070'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf60bf8184e4b79e87b3aa6bb0720b79c55e502a2bb08e96dc53a85dae39e2543c9904d5aa7db42c063a2e6b307cf831aded4ec8fc5e3debe11119fd5365c2d1
|
7
|
+
data.tar.gz: a25f8369672d19b898fff61a30c84f044d1b194efb8533434395c842a5fd8cdc06e00916d1726994f2cd1735b95faafcc86f22a3a2ff502e6e81b92e39758ce3
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
|
3
3
|
## Unreleased
|
4
4
|
|
5
|
+
## 1.0.5
|
6
|
+
|
7
|
+
- Update rouge to v2.0.7 [#10](https://github.com/JuanitoFatas/html-pipeline-rouge_filter/pull/10) by @hibariya
|
8
|
+
|
5
9
|
## 1.0.4 - 2016.04.16
|
6
10
|
|
7
11
|
- Replace `<br>` to newline via `replace_br` option in context hash [#7](https://github.com/JuanitoFatas/html-pipeline-rouge_filter/pull/7) by @allenwq
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -72,3 +72,15 @@ You can specify following options in
|
|
72
72
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
73
73
|
4. Push to the branch (`git push origin my-new-feature`)
|
74
74
|
5. Create a new Pull Request
|
75
|
+
|
76
|
+
## License, Contributor's Guidelines and Code of Conduct
|
77
|
+
|
78
|
+
This project is open source under the MIT license, which means you have full access to the source code and can modify
|
79
|
+
it to fit your own needs.
|
80
|
+
|
81
|
+
This project subscribes to the
|
82
|
+
[Moya Contributors Guidelines](https://github.com/Moya/contributors/blob/master/Community.md) which TLDR: means we give
|
83
|
+
out push access easily and often.
|
84
|
+
|
85
|
+
Contributors subscribe to the [Contributor Code of Conduct](http://contributor-covenant.org/version/1/4/) based on
|
86
|
+
the [Contributor Covenant](http://contributor-covenant.org) version 1.4.
|
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.require_paths = ["lib"]
|
19
19
|
|
20
20
|
spec.add_dependency "html-pipeline", ">= 1.11"
|
21
|
-
spec.add_dependency "rouge", "~>
|
21
|
+
spec.add_dependency "rouge", "~> 2.0.7"
|
22
22
|
spec.add_dependency "activesupport"
|
23
23
|
|
24
24
|
spec.required_ruby_version = "~> 2.0"
|
data/test/rouge_filter_test.rb
CHANGED
@@ -72,7 +72,7 @@ class HTML::Pipeline::RougeFilterTest < Minitest::Test
|
|
72
72
|
filter = RougeFilter.new \
|
73
73
|
"<pre lang='ruby'>hello</pre>"
|
74
74
|
|
75
|
-
assert_kind_of Rouge::Formatters::
|
75
|
+
assert_kind_of Rouge::Formatters::HTMLLegacy, filter.formatter
|
76
76
|
end
|
77
77
|
|
78
78
|
def test_default_lexer
|
@@ -95,6 +95,7 @@ class HTML::Pipeline::RougeFilterTest < Minitest::Test
|
|
95
95
|
|
96
96
|
doc = filter.call
|
97
97
|
assert_equal "<pre class=\"highlight highlight-ruby\"><code>"\
|
98
|
-
"<span class=\"n\">hello</span>\n
|
98
|
+
"<span class=\"n\">hello</span>\n"\
|
99
|
+
"<span class=\"n\">world</span></code></pre>", doc.to_html
|
99
100
|
end
|
100
101
|
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.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juanito Fatas
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-04-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: html-pipeline
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 2.0.7
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 2.0.7
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: activesupport
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -91,9 +91,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
91
91
|
version: '0'
|
92
92
|
requirements: []
|
93
93
|
rubyforge_project:
|
94
|
-
rubygems_version: 2.
|
94
|
+
rubygems_version: 2.5.2
|
95
95
|
signing_key:
|
96
96
|
specification_version: 4
|
97
97
|
summary: Rouge integration with html-pipeline.
|
98
98
|
test_files: []
|
99
|
-
has_rdoc:
|