middleman-syntax 3.0.0 → 3.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +2 -4
- data/CHANGELOG.md +34 -39
- data/Gemfile +5 -1
- data/README.md +4 -4
- data/lib/middleman-syntax/version.rb +1 -1
- data/middleman-syntax.gemspec +1 -1
- metadata +5 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 2938584ddd836e4ce6674e01ad8eab8ac96d87f319261d1d642d0e1975d4d495
|
4
|
+
data.tar.gz: 3fd48b680357a1c4fc8c965495e5540cce89910b0697bcfc68056602a4385180
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 693ec6000db5121c3e111e6d52c424c3cf9cff277f952b1c05485d25a60580b82b2ffd5ad782c98c61774d4245efa7fa46a28380068d4e62bdc16778b0cfbbb5
|
7
|
+
data.tar.gz: 85be352460bc44e32b05f3d114da90ce9e620aeb996bb0582a43d14f9926de0aae58aaaee63342ee74235f758c260f8ea2b1bee42b8056bafff7a878969ec54f
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,56 +1,51 @@
|
|
1
|
-
3.
|
2
|
-
-----
|
1
|
+
# 3.2.0
|
3
2
|
|
4
|
-
|
5
|
-
* Added the ability to disable the line numbers on a specific code block when using Markdown and Redcarpet. #63.
|
6
|
-
* Lexer options are properly passed down to the highlighter.
|
3
|
+
- Prep for Middleman v5
|
7
4
|
|
8
|
-
|
9
|
-
-----
|
5
|
+
# 3.0.0
|
10
6
|
|
11
|
-
|
12
|
-
|
13
|
-
|
7
|
+
- Upgrade to Rouge 2.0. #66.
|
8
|
+
- Added the ability to disable the line numbers on a specific code block when using Markdown and Redcarpet. #63.
|
9
|
+
- Lexer options are properly passed down to the highlighter.
|
14
10
|
|
15
|
-
2.
|
16
|
-
-----
|
11
|
+
# 2.1.0
|
17
12
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
* It is now possible to override options when calling the `code` helper by passing them as the second argument.
|
22
|
-
* Using the `code` helper from Slim templates no longer escapes the output.
|
23
|
-
* Added a `:code` filter for Haml as a more whitespace-friendly alternative to the `code` helper.
|
13
|
+
- Version compatibility with Middleman 4. #58
|
14
|
+
- Allow passing Rouge formatter options from the `code` helper. #50.
|
15
|
+
- Fixed tests and code reorganization.
|
24
16
|
|
25
|
-
|
26
|
-
-----
|
17
|
+
# 2.0.0
|
27
18
|
|
28
|
-
|
19
|
+
- Update to a new-style Middleman extension, dropping compatibility with Middleman versions older than 3.2.x.
|
20
|
+
- Setting the :css_class option will no longer prevent the language tag from being added as a class as well.
|
21
|
+
- Rouge lexer options should now be set via the :lexer_options option.
|
22
|
+
- It is now possible to override options when calling the `code` helper by passing them as the second argument.
|
23
|
+
- Using the `code` helper from Slim templates no longer escapes the output.
|
24
|
+
- Added a `:code` filter for Haml as a more whitespace-friendly alternative to the `code` helper.
|
29
25
|
|
30
|
-
1.2.
|
31
|
-
-----
|
26
|
+
# 1.2.1
|
32
27
|
|
33
|
-
|
34
|
-
* Switch to Rouge from Pygments.rb
|
35
|
-
* Fix bugs around setting language options.
|
28
|
+
- Restore compatibility with Middleman 3.0.x series.
|
36
29
|
|
37
|
-
1.
|
38
|
-
-----
|
30
|
+
# 1.2.0
|
39
31
|
|
40
|
-
|
32
|
+
- Support Kramdown as Markdown engine in addition to Redcarpet.
|
33
|
+
- Switch to Rouge from Pygments.rb
|
34
|
+
- Fix bugs around setting language options.
|
41
35
|
|
42
|
-
1.1.
|
43
|
-
-----
|
36
|
+
# 1.1.1
|
44
37
|
|
45
|
-
|
46
|
-
* Allow passing options to Pygments. #5 & #7
|
38
|
+
- Properly merge language attribute for Markdown. #14
|
47
39
|
|
48
|
-
1.0
|
49
|
-
-----
|
40
|
+
# 1.1.0
|
50
41
|
|
51
|
-
|
42
|
+
- Avoid errors when language is empty. #9
|
43
|
+
- Allow passing options to Pygments. #5 & #7
|
52
44
|
|
53
|
-
1.0.
|
54
|
-
-----
|
45
|
+
# 1.0.1
|
55
46
|
|
56
|
-
|
47
|
+
- Updated pygments.rb dependency.
|
48
|
+
|
49
|
+
# 1.0.0
|
50
|
+
|
51
|
+
- Initial release, basic syntax highlighting.
|
data/Gemfile
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
source "https://rubygems.org"
|
2
2
|
|
3
|
-
gem "middleman-core", :
|
3
|
+
gem "middleman-core", :git => "https://github.com/middleman/middleman.git", :branch => '4.x'
|
4
4
|
|
5
5
|
# Specify your gem's dependencies in middleman-syntax.gemspec
|
6
6
|
gemspec
|
@@ -14,6 +14,7 @@ gem 'pry', '~> 0.10', group: :development
|
|
14
14
|
gem 'aruba', '~> 0.10.0'
|
15
15
|
gem 'rspec', '~> 3.0'
|
16
16
|
gem 'cucumber', '~> 2.0'
|
17
|
+
gem 'capybara', '~> 2.5.0'
|
17
18
|
|
18
19
|
platforms :ruby do
|
19
20
|
gem "redcarpet"
|
@@ -21,3 +22,6 @@ end
|
|
21
22
|
|
22
23
|
# Code Quality
|
23
24
|
gem "cane", :platforms => [:mri_19, :mri_20], :require => false
|
25
|
+
|
26
|
+
# For old rubies
|
27
|
+
gem 'nokogiri', ['~> 1.5', '< 1.7']
|
data/README.md
CHANGED
@@ -88,19 +88,19 @@ end
|
|
88
88
|
|
89
89
|
On a default (i.e. unstyled) Middleman project, it will appear as if `middleman-syntax` isn't working, since obviously no CSS has been applied to color your code. You can use any Pygments-compatible stylesheet to style your code.
|
90
90
|
|
91
|
-
You can also let Rouge generate some CSS for you by creating a new stylesheet with a `.css.erb` extension in your Middleman project
|
91
|
+
You can also let Rouge generate some CSS for you by creating a new stylesheet with a `.css.erb` extension in your Middleman project (at a path like `source/stylesheets/highlighting.css.erb` with the contents:
|
92
92
|
|
93
93
|
```erb
|
94
94
|
<%= Rouge::Themes::ThankfulEyes.render(:scope => '.highlight') %>
|
95
95
|
```
|
96
96
|
|
97
|
-
|
97
|
+
If you want to include this in a larger Sass stylesheet, name it with an underscore (`source/stylesheets/_highlighting.css.erb`) and include it in your main stylesheet with `@import 'highlighting'`).
|
98
98
|
|
99
99
|
Rouge has `ThankfulEyes`, `Colorful`, `Github`, `Base16`, `Base16::Solarized` (like Octopress), `Base16::Monokai`, and `Monokai` themes.
|
100
100
|
|
101
101
|
## Markdown
|
102
102
|
|
103
|
-
The extension also makes code blocks in Markdown produce highlighted code. Make sure you're using
|
103
|
+
The extension also makes code blocks in Markdown produce highlighted code. Make sure you're using Redcarpet or Kramdown as your Markdown engine (in `config.rb`):
|
104
104
|
|
105
105
|
```ruby
|
106
106
|
set :markdown_engine, :redcarpet
|
@@ -121,7 +121,7 @@ end
|
|
121
121
|
```
|
122
122
|
</pre>
|
123
123
|
|
124
|
-
You can also disable the line numbers on a specific code block. However, this is Middleman-syntax specific feature, which only works when using
|
124
|
+
You can also disable the line numbers on a specific code block. However, this is Middleman-syntax specific feature, which only works when using Redcarpet.
|
125
125
|
|
126
126
|
Disabling the line numbers on a code block:
|
127
127
|
|
data/middleman-syntax.gemspec
CHANGED
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
|
|
16
16
|
s.test_files = `git ls-files -z -- {fixtures,features}/*`.split("\0")
|
17
17
|
s.require_paths = ["lib"]
|
18
18
|
s.add_runtime_dependency("middleman-core", [">= 3.2"])
|
19
|
-
s.add_runtime_dependency("rouge", ["~> 2
|
19
|
+
s.add_runtime_dependency("rouge", ["~> 3.2"])
|
20
20
|
s.add_development_dependency("aruba", "~> 0.5.1")
|
21
21
|
s.add_development_dependency("cucumber", "~> 1.3.1")
|
22
22
|
s.add_development_dependency("fivemat")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: middleman-syntax
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Hollis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-07-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: middleman-core
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '2
|
33
|
+
version: '3.2'
|
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: '2
|
40
|
+
version: '3.2'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: aruba
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -181,8 +181,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
181
181
|
- !ruby/object:Gem::Version
|
182
182
|
version: '0'
|
183
183
|
requirements: []
|
184
|
-
|
185
|
-
rubygems_version: 2.4.8
|
184
|
+
rubygems_version: 3.0.4
|
186
185
|
signing_key:
|
187
186
|
specification_version: 4
|
188
187
|
summary: Code syntax highlighting plugin via rouge for Middleman
|
@@ -202,4 +201,3 @@ test_files:
|
|
202
201
|
- fixtures/test-app/source/code_slim.html.slim
|
203
202
|
- fixtures/test-app/source/code_with_disabled_line_numbers.html.markdown
|
204
203
|
- fixtures/test-app/source/code_with_enabled_line_numbers.html.markdown
|
205
|
-
has_rdoc:
|