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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d3435aff7d37f882d774a516c1020d59b6e4468e
4
- data.tar.gz: bba6bbf9841d22c6d867f302a28f29250ffcbd9c
3
+ metadata.gz: 5ec698413b76cb0330270b096cf6d64faef47fe1
4
+ data.tar.gz: '029766af68a0f1b973c293efc55c940381bfa070'
5
5
  SHA512:
6
- metadata.gz: 77a5575eb8b6d8f06afe2e91615820995c38a4e1b55873456c558cf07deefd2fba5c05631bb4142101e2605f5b55c23361f693ea41183399c71cae38314d0e94
7
- data.tar.gz: 448789503c78cd2676076857add9760fc6a88adcd345d7a1f98b124a65cfe84f38dacacfc9e2b416224b8aa8a53d89269cbbb1d9fdd32ebcc3481ff64fdfe8a1
6
+ metadata.gz: bf60bf8184e4b79e87b3aa6bb0720b79c55e502a2bb08e96dc53a85dae39e2543c9904d5aa7db42c063a2e6b307cf831aded4ec8fc5e3debe11119fd5365c2d1
7
+ data.tar.gz: a25f8369672d19b898fff61a30c84f044d1b194efb8533434395c842a5fd8cdc06e00916d1726994f2cd1735b95faafcc86f22a3a2ff502e6e81b92e39758ce3
data/.travis.yml CHANGED
@@ -7,6 +7,8 @@ rvm:
7
7
  - 2.1
8
8
  - 2.2.1
9
9
  - 2.2.0
10
+ - 2.3.4
11
+ - 2.4.1
10
12
  - jruby-head
11
13
  - jruby-9.0.0.0.pre1
12
14
  - rbx-2
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
@@ -11,4 +11,12 @@ end
11
11
 
12
12
  group :test do
13
13
  gem "minitest", ">= 5.5"
14
+
15
+ if RUBY_VERSION < "2.2.2"
16
+ gem "activesupport", "< 5.0.0", require: false
17
+ end
18
+
19
+ if RUBY_VERSION < "2.1.0"
20
+ gem "nokogiri", "< 1.7.0", require: false
21
+ end
14
22
  end
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", "~> 1.8"
21
+ spec.add_dependency "rouge", "~> 2.0.7"
22
22
  spec.add_dependency "activesupport"
23
23
 
24
24
  spec.required_ruby_version = "~> 2.0"
@@ -45,7 +45,7 @@ module HTML
45
45
  end
46
46
 
47
47
  def formatter(css_class: default_css_class)
48
- Rouge::Formatters::HTML.new(css_class: css_class,
48
+ Rouge::Formatters::HTMLLegacy.new(css_class: css_class,
49
49
  line_numbers: line_numbers)
50
50
  end
51
51
 
@@ -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.4"
5
+ VERSION = "1.0.5"
6
6
  end
7
7
  end
@@ -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::HTML, filter.formatter
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<span class=\"n\">world</span></code></pre>\n", doc.to_html
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
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: 2016-04-15 00:00:00.000000000 Z
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: '1.8'
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: '1.8'
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.6.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: