middleman-syntax 2.1.0 → 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: c40d443bb7ade438430edef6ea27fef606d2056b
4
- data.tar.gz: 9c07e674417d80c403b3e6cfbf0ce0a15211f25a
2
+ SHA256:
3
+ metadata.gz: '069a5916deb149f37860dd78cd181278367e1ae343d4053e619d902e2fb3f87e'
4
+ data.tar.gz: 3e3e12eef81c32dfc9d683f8925e65d1fc22ed714b869880a8719acaf1c8e50a
5
5
  SHA512:
6
- metadata.gz: 27794aa28183988c42ea1074e305caaaa57cf756f50828682713d115fb0c9b93873107502a7adef19feb003e75fba2ab2aff6178e5d8c0f246c3d80c316e829f
7
- data.tar.gz: b0e820698e90a582dcd0a0c12a8afd09e6150e267895cc9e6bb60a47d6d69611710092e3ecef07e133ed04a750f26084aca6e19b08557807f7eadb46079a41a6
6
+ metadata.gz: 98e67a62f908fa76c4588dbd32b39f1374831a944efd604794ee157a9693c45c87b657bcb7497d36c1d162fbd7928fd0e94549c3350b018685419554335222ce
7
+ data.tar.gz: 1e1c3c2dcf955bbe33b8ca8ffbacb77fcd96896123927971bba2fe3bdeb78a762bdaf53d5aae7ac799a1f5a7e19ea1c064438a3e15b3630d1390470133ce8f44
@@ -0,0 +1,19 @@
1
+ # See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.241.1/containers/ruby/.devcontainer/base.Dockerfile
2
+
3
+ # [Choice] Ruby version (use -bullseye variants on local arm64/Apple Silicon): 3, 3.1, 3.0, 2, 2.7, 3-bullseye, 3.1-bullseye, 3.0-bullseye, 2-bullseye, 2.7-bullseye, 3-buster, 3.1-buster, 3.0-buster, 2-buster, 2.7-buster
4
+ ARG VARIANT="3.1-bullseye"
5
+ FROM mcr.microsoft.com/vscode/devcontainers/ruby:0-${VARIANT}
6
+
7
+ # [Choice] Node.js version: none, lts/*, 16, 14, 12, 10
8
+ ARG NODE_VERSION="none"
9
+ RUN if [ "${NODE_VERSION}" != "none" ]; then su vscode -c "umask 0002 && . /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi
10
+
11
+ # [Optional] Uncomment this section to install additional OS packages.
12
+ # RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
13
+ # && apt-get -y install --no-install-recommends <your-package-list-here>
14
+
15
+ # [Optional] Uncomment this line to install additional gems.
16
+ # RUN gem install <your-gem-names-here>
17
+
18
+ # [Optional] Uncomment this line to install global node packages.
19
+ # RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g <your-package-here>" 2>&1
@@ -0,0 +1,37 @@
1
+ // For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
2
+ // https://github.com/microsoft/vscode-dev-containers/tree/v0.241.1/containers/ruby
3
+ {
4
+ "name": "Ruby",
5
+ "build": {
6
+ "dockerfile": "Dockerfile",
7
+ "args": {
8
+ // Update 'VARIANT' to pick a Ruby version: 3, 3.1, 3.0, 2, 2.7
9
+ // Append -bullseye or -buster to pin to an OS version.
10
+ // Use -bullseye variants on local on arm64/Apple Silicon.
11
+ "VARIANT": "2.7",
12
+ // Options
13
+ "NODE_VERSION": "lts/*"
14
+ }
15
+ },
16
+
17
+ // Configure tool-specific properties.
18
+ "customizations": {
19
+ // Configure properties specific to VS Code.
20
+ "vscode": {
21
+ // Add the IDs of extensions you want installed when the container is created.
22
+ "extensions": [
23
+ "rebornix.Ruby"
24
+ ]
25
+ }
26
+ },
27
+
28
+ // Use 'forwardPorts' to make a list of ports inside the container available locally.
29
+ // "forwardPorts": [],
30
+
31
+ // Use 'postCreateCommand' to run commands after the container is created.
32
+ // "postCreateCommand": "ruby --version",
33
+
34
+ // Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
35
+ "remoteUser": "vscode"
36
+
37
+ }
data/.travis.yml CHANGED
@@ -1,11 +1,9 @@
1
1
  rvm:
2
2
  - ruby-head
3
- - 2.2.2
4
- - 2.1
5
- - 2.0
3
+ - 2.6.3
4
+ - 2.5.5
6
5
  os:
7
6
  - linux
8
- # - osx
9
7
  matrix:
10
8
  fast_finish: true
11
9
  allow_failures:
data/CHANGELOG.md CHANGED
@@ -1,49 +1,53 @@
1
- 2.1.0
2
- -----
1
+ - Fixed HAML :code filter to remove trailing blank lines
3
2
 
4
- * Version compatibility with Middleman 4. #58
5
- * Allow passing Rouge formatter options from the `code` helper. #50.
6
- * Fixed tests and code reorganization.
3
+ # 3.2.0
7
4
 
8
- 2.0.0
9
- -----
5
+ - Prep for Middleman v5
10
6
 
11
- * Update to a new-style Middleman extension, dropping compatibility with Middleman versions older than 3.2.x.
12
- * Setting the :css_class option will no longer prevent the language tag from being added as a class as well.
13
- * Rouge lexer options should now be set via the :lexer_options option.
14
- * It is now possible to override options when calling the `code` helper by passing them as the second argument.
15
- * Using the `code` helper from Slim templates no longer escapes the output.
16
- * Added a `:code` filter for Haml as a more whitespace-friendly alternative to the `code` helper.
7
+ # 3.0.0
17
8
 
18
- 1.2.1
19
- -----
9
+ - Upgrade to Rouge 2.0. #66.
10
+ - Added the ability to disable the line numbers on a specific code block when using Markdown and Redcarpet. #63.
11
+ - Lexer options are properly passed down to the highlighter.
20
12
 
21
- * Restore compatibility with Middleman 3.0.x series.
13
+ # 2.1.0
22
14
 
23
- 1.2.0
24
- -----
15
+ - Version compatibility with Middleman 4. #58
16
+ - Allow passing Rouge formatter options from the `code` helper. #50.
17
+ - Fixed tests and code reorganization.
25
18
 
26
- * Support Kramdown as Markdown engine in addition to Redcarpet.
27
- * Switch to Rouge from Pygments.rb
28
- * Fix bugs around setting language options.
19
+ # 2.0.0
29
20
 
30
- 1.1.1
31
- -----
21
+ - Update to a new-style Middleman extension, dropping compatibility with Middleman versions older than 3.2.x.
22
+ - Setting the :css_class option will no longer prevent the language tag from being added as a class as well.
23
+ - Rouge lexer options should now be set via the :lexer_options option.
24
+ - It is now possible to override options when calling the `code` helper by passing them as the second argument.
25
+ - Using the `code` helper from Slim templates no longer escapes the output.
26
+ - Added a `:code` filter for Haml as a more whitespace-friendly alternative to the `code` helper.
32
27
 
33
- * Properly merge language attribute for Markdown. #14
28
+ # 1.2.1
34
29
 
35
- 1.1.0
36
- -----
30
+ - Restore compatibility with Middleman 3.0.x series.
37
31
 
38
- * Avoid errors when language is empty. #9
39
- * Allow passing options to Pygments. #5 & #7
32
+ # 1.2.0
40
33
 
41
- 1.0.1
42
- -----
34
+ - Support Kramdown as Markdown engine in addition to Redcarpet.
35
+ - Switch to Rouge from Pygments.rb
36
+ - Fix bugs around setting language options.
43
37
 
44
- * Updated pygments.rb dependency.
38
+ # 1.1.1
45
39
 
46
- 1.0.0
47
- -----
40
+ - Properly merge language attribute for Markdown. #14
48
41
 
49
- * Initial release, basic syntax highlighting.
42
+ # 1.1.0
43
+
44
+ - Avoid errors when language is empty. #9
45
+ - Allow passing options to Pygments. #5 & #7
46
+
47
+ # 1.0.1
48
+
49
+ - Updated pygments.rb dependency.
50
+
51
+ # 1.0.0
52
+
53
+ - Initial release, basic syntax highlighting.
data/Gemfile CHANGED
@@ -1,6 +1,6 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- gem "middleman-core", :github => "middleman/middleman", :branch => 'v3-stable'
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
@@ -2,10 +2,10 @@
2
2
 
3
3
  `middleman-syntax` is an extension for the [Middleman] static site generator that adds syntax highlighting via [Rouge](https://github.com/jayferd/rouge).
4
4
 
5
- [![Gem Version](https://badge.fury.io/rb/middleman-syntax.png)][gem]
6
- [![Build Status](https://travis-ci.org/middleman/middleman-syntax.png)][travis]
7
- [![Dependency Status](https://gemnasium.com/middleman/middleman-syntax.png?travis)][gemnasium]
8
- [![Code Quality](https://codeclimate.com/github/middleman/middleman-syntax.png)][codeclimate]
5
+ [![Gem Version](https://badge.fury.io/rb/middleman-syntax.svg)][gem]
6
+ [![Build Status](https://travis-ci.org/middleman/middleman-syntax.svg)][travis]
7
+ [![Dependency Status](https://gemnasium.com/middleman/middleman-syntax.svg?travis)][gemnasium]
8
+ [![Code Quality](https://codeclimate.com/github/middleman/middleman-syntax.svg)][codeclimate]
9
9
 
10
10
  ## Installation
11
11
 
@@ -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, and then including:
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
- To prevent the stylesheet from being recognized as a html page source when running `middleman build`, add an underscore at the beginning of the filename or add `ignore "/this/file/path.css.erb"` to config.rb.
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 RedCarpet or Kramdown as your Markdown engine (in `config.rb`):
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,6 +121,18 @@ 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 Redcarpet.
125
+
126
+ Disabling the line numbers on a code block:
127
+
128
+ <pre>
129
+ ```ruby?line_numbers=false
130
+ def my_cool_method(message)
131
+ puts message
132
+ end
133
+ ```
134
+ </pre>
135
+
124
136
  or with Kramdown:
125
137
 
126
138
  <pre>
@@ -11,3 +11,15 @@ Feature: Haml :code filter.
11
11
  When I go to "/code_haml_filter.html"
12
12
  Then I should see '<span class="k">def</span>'
13
13
  Then I should see '<pre class="highlight plaintext"><code>This is some code'
14
+
15
+ Scenario: Filter doesn't keep trailing blank lines
16
+ Given a fixture app "test-app"
17
+ And a file named "config.rb" with:
18
+ """
19
+ set :haml, { :ugly => false }
20
+ activate :syntax
21
+ """
22
+ Given the Server is running at "test-app"
23
+ When I go to "/code_haml_filter.html"
24
+ Then I should see '<span class="k">def</span>'
25
+ Then I should see '<pre class="highlight plaintext"><code>This is some code</code></pre>'
@@ -0,0 +1,13 @@
1
+ Feature: Code blocks with line numbers in markdown
2
+ @nojava
3
+ Scenario: Disabled line numbers with Redcarpet
4
+ Given a fixture app "test-app"
5
+ And a file named "config.rb" with:
6
+ """
7
+ set :markdown_engine, :redcarpet
8
+ set :markdown, :fenced_code_blocks => true
9
+ activate :syntax, :line_numbers => true
10
+ """
11
+ Given the Server is running at "test-app"
12
+ When I go to "/code_with_disabled_line_numbers.html"
13
+ Then I should not see line numbers markup
@@ -0,0 +1,13 @@
1
+ Feature: Code blocks with line numbers in markdown
2
+ @nojava
3
+ Scenario: Line numbers enabled with Redcarpet
4
+ Given a fixture app "test-app"
5
+ And a file named "config.rb" with:
6
+ """
7
+ set :markdown_engine, :redcarpet
8
+ set :markdown, :fenced_code_blocks => true
9
+ activate :syntax, :line_numbers => true
10
+ """
11
+ Given the Server is running at "test-app"
12
+ When I go to "/code_with_enabled_line_numbers.html"
13
+ Then I should see '<pre class="lineno">'
@@ -0,0 +1,4 @@
1
+ # step definition for testing line number markup
2
+ Then(/^I should not see line numbers markup$/) do
3
+ expect(page).not_to have_selector("pre.lineno")
4
+ end
@@ -0,0 +1,7 @@
1
+ # Ruby with no line numbers
2
+
3
+ ~~~ruby?line_numbers=false
4
+ def foo(bar)
5
+ puts "baz"
6
+ end
7
+ ~~~
@@ -0,0 +1,25 @@
1
+ # Ruby with line numbers
2
+
3
+ ~~~ruby?line_numbers=
4
+ def foo(bar)
5
+ puts "baz"
6
+ end
7
+ ~~~
8
+
9
+ ~~~ruby?line_numbers
10
+ def foo(bar)
11
+ puts "baz"
12
+ end
13
+ ~~~
14
+
15
+ ~~~ruby?line_numbers=flase
16
+ def foo(bar)
17
+ puts "baz"
18
+ end
19
+ ~~~
20
+
21
+ # Whatever
22
+
23
+ ~~~
24
+ This is some code
25
+ ~~~
@@ -2,12 +2,14 @@ require 'rouge'
2
2
  require 'middleman-syntax/highlighter'
3
3
  require 'middleman-syntax/redcarpet_code_renderer'
4
4
  require 'middleman-syntax/haml_monkey_patch'
5
+ require 'middleman-syntax/language_parameter_parser.rb'
5
6
 
6
7
  module Middleman
7
8
  module Syntax
8
9
  class SyntaxExtension < Extension
9
10
  option :css_class, 'highlight', 'Class name applied to the syntax-highlighted output.'
10
11
  option :line_numbers, false, 'Generate line numbers.'
12
+ option :line_numbers_div, false, 'Generate line numbers with wrapping divs.'
11
13
  option :start_line, 1, 'Start the line numbering (if enabled) at the desired integer'
12
14
  option :inline_theme, nil, 'A Rouge::CSSTheme that will be used to highlight the output with inline styles instead of using CSS classes.'
13
15
  option :wrap, true, 'Wrap the highlighted content in a container (<pre> or <div>, depending on whether :line_numbers is on).'
@@ -15,7 +17,6 @@ module Middleman
15
17
 
16
18
  def after_configuration
17
19
  Middleman::Syntax::Highlighter.options = options
18
-
19
20
  if app.config[:markdown_engine] == :redcarpet
20
21
  require 'middleman-core/renderers/redcarpet'
21
22
  Middleman::Renderers::MiddlemanRedcarpetHTML.send :include, RedcarpetCodeRenderer
@@ -0,0 +1,29 @@
1
+ module Middleman
2
+ module Syntax
3
+ module Formatters
4
+ class HTML < Rouge::Formatter
5
+ tag 'html'
6
+
7
+ def initialize(opts={})
8
+ @formatter = if opts[:inline_theme]
9
+ Rouge::Formatters::HTMLInline.new(opts[:inline_theme])
10
+ else
11
+ Rouge::Formatters::HTML.new
12
+ end
13
+
14
+ @formatter = Rouge::Formatters::HTMLTable.new(@formatter, opts) if opts[:line_numbers]
15
+
16
+ @formatter = Rouge::Formatters::HTMLLinewise.new(@formatter, class:'line-%i') if opts[:line_numbers_div]
17
+
18
+ if opts.fetch(:wrap, true)
19
+ @formatter = Rouge::Formatters::HTMLPygments.new(@formatter, opts.fetch(:css_class, 'codehilite'))
20
+ end
21
+ end
22
+
23
+ def stream(tokens, &block)
24
+ @formatter.stream(tokens, &block)
25
+ end
26
+ end
27
+ end
28
+ end
29
+ end
@@ -6,6 +6,7 @@ if defined? Haml
6
6
  include Base
7
7
 
8
8
  def render(code)
9
+ code = code.rstrip
9
10
  code = code.encode(Encoding::UTF_8)
10
11
 
11
12
  # Allow language to be specified via a special comment like:
@@ -1,3 +1,5 @@
1
+ require 'middleman-syntax/formatters'
2
+
1
3
  module Middleman
2
4
  module Syntax
3
5
  module Highlighter
@@ -11,8 +13,8 @@ module Middleman
11
13
  highlighter_options[:css_class] = [ highlighter_options[:css_class], lexer.tag ].join(' ')
12
14
  lexer_options = highlighter_options.delete(:lexer_options)
13
15
 
14
- formatter = Rouge::Formatters::HTML.new(highlighter_options)
15
- formatter.format(lexer.lex(code, options.lexer_options))
16
+ formatter = Middleman::Syntax::Formatters::HTML.new(highlighter_options)
17
+ formatter.format(lexer.lex(code, lexer_options))
16
18
  end
17
19
  end
18
20
  end
@@ -0,0 +1,20 @@
1
+ module Middleman
2
+ module Syntax
3
+ module LanguageParameterParser
4
+ def self.parse_parameter_from_language(language = "")
5
+ language, params = language.to_s.split("?", 2)
6
+ if params and params.to_s.include? "="
7
+ attribute, value = params.to_s.split("=")
8
+ # if there are more arguments, refactor this
9
+ if attribute == "line_numbers" and value == "false"
10
+ return { line_numbers: false }
11
+ end
12
+ if attribute == "line_numbers_div" and value == "false"
13
+ return { line_numbers_div: false }
14
+ end
15
+ end
16
+ {}
17
+ end
18
+ end
19
+ end
20
+ end
@@ -1,10 +1,13 @@
1
+ require 'middleman-syntax/language_parameter_parser.rb'
2
+
1
3
  module Middleman
2
4
  module Syntax
3
5
  # A mixin for the Redcarpet Markdown renderer that will highlight
4
6
  # code.
5
7
  module RedcarpetCodeRenderer
6
8
  def block_code(code, language)
7
- Middleman::Syntax::Highlighter.highlight(code, language)
9
+ opts = Middleman::Syntax::LanguageParameterParser.parse_parameter_from_language(language)
10
+ Middleman::Syntax::Highlighter.highlight(code, language, opts)
8
11
  end
9
12
  end
10
13
  end
@@ -1,5 +1,5 @@
1
1
  module Middleman
2
2
  module Syntax
3
- VERSION = "2.1.0"
3
+ VERSION = "3.3.0"
4
4
  end
5
5
  end
@@ -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", ["~> 1.0"])
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: 2.1.0
4
+ version: 3.3.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: 2015-12-19 00:00:00.000000000 Z
11
+ date: 2022-08-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: '1.0'
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: '1.0'
40
+ version: '3.2'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: aruba
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -129,6 +129,8 @@ executables: []
129
129
  extensions: []
130
130
  extra_rdoc_files: []
131
131
  files:
132
+ - ".devcontainer/Dockerfile"
133
+ - ".devcontainer/devcontainer.json"
132
134
  - ".gitignore"
133
135
  - ".travis.yml"
134
136
  - CHANGELOG.md
@@ -140,17 +142,24 @@ files:
140
142
  - features/haml_filter.feature
141
143
  - features/helper.feature
142
144
  - features/markdown.feature
145
+ - features/markdown_line_numbers_disabled.feature
146
+ - features/markdown_line_numbers_enabled.feature
143
147
  - features/support/env.rb
148
+ - features/support/step_definitions.rb
144
149
  - fixtures/test-app/config.rb
145
150
  - fixtures/test-app/source/code.html.markdown
146
151
  - fixtures/test-app/source/code_haml.html.haml
147
152
  - fixtures/test-app/source/code_haml_filter.html.haml
148
153
  - fixtures/test-app/source/code_html.html.erb
149
154
  - fixtures/test-app/source/code_slim.html.slim
155
+ - fixtures/test-app/source/code_with_disabled_line_numbers.html.markdown
156
+ - fixtures/test-app/source/code_with_enabled_line_numbers.html.markdown
150
157
  - lib/middleman-syntax.rb
151
158
  - lib/middleman-syntax/extension.rb
159
+ - lib/middleman-syntax/formatters.rb
152
160
  - lib/middleman-syntax/haml_monkey_patch.rb
153
161
  - lib/middleman-syntax/highlighter.rb
162
+ - lib/middleman-syntax/language_parameter_parser.rb
154
163
  - lib/middleman-syntax/middleman_extension.rb
155
164
  - lib/middleman-syntax/redcarpet_code_renderer.rb
156
165
  - lib/middleman-syntax/version.rb
@@ -174,20 +183,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
174
183
  - !ruby/object:Gem::Version
175
184
  version: '0'
176
185
  requirements: []
177
- rubyforge_project:
178
- rubygems_version: 2.4.8
186
+ rubygems_version: 3.1.6
179
187
  signing_key:
180
188
  specification_version: 4
181
189
  summary: Code syntax highlighting plugin via rouge for Middleman
182
- test_files:
183
- - features/haml_filter.feature
184
- - features/helper.feature
185
- - features/markdown.feature
186
- - features/support/env.rb
187
- - fixtures/test-app/config.rb
188
- - fixtures/test-app/source/code.html.markdown
189
- - fixtures/test-app/source/code_haml.html.haml
190
- - fixtures/test-app/source/code_haml_filter.html.haml
191
- - fixtures/test-app/source/code_html.html.erb
192
- - fixtures/test-app/source/code_slim.html.slim
193
- has_rdoc:
190
+ test_files: []