middleman-syntax 3.0.0 → 3.2.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: f4eb136031946fc9e1302df15f1158482e797ec3
4
- data.tar.gz: 2b2e3b0abf60b2390a39dfa9c133b0fc780c0861
2
+ SHA256:
3
+ metadata.gz: 2938584ddd836e4ce6674e01ad8eab8ac96d87f319261d1d642d0e1975d4d495
4
+ data.tar.gz: 3fd48b680357a1c4fc8c965495e5540cce89910b0697bcfc68056602a4385180
5
5
  SHA512:
6
- metadata.gz: dd0bb555b69b28ec3e6dcf97e47c4ce932fde862513c06aa24f34d180b30f4e9271695179de0c0ca8fdc83477ece51a373a46dc008af080f79208f43bf5c0fba
7
- data.tar.gz: 7a6f2f02432c48e1c0a89dbe0e45c26c4ce5bd848da62404ebada8b33b85489ba5b657793b76e9601fcaf73936ab879ce8f1532b96134be6efb24dda6daedcb3
6
+ metadata.gz: 693ec6000db5121c3e111e6d52c424c3cf9cff277f952b1c05485d25a60580b82b2ffd5ad782c98c61774d4245efa7fa46a28380068d4e62bdc16778b0cfbbb5
7
+ data.tar.gz: 85be352460bc44e32b05f3d114da90ce9e620aeb996bb0582a43d14f9926de0aae58aaaee63342ee74235f758c260f8ea2b1bee42b8056bafff7a878969ec54f
@@ -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:
@@ -1,56 +1,51 @@
1
- 3.0.0
2
- -----
1
+ # 3.2.0
3
2
 
4
- * Upgrade to Rouge 2.0. #66.
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
- 2.1.0
9
- -----
5
+ # 3.0.0
10
6
 
11
- * Version compatibility with Middleman 4. #58
12
- * Allow passing Rouge formatter options from the `code` helper. #50.
13
- * Fixed tests and code reorganization.
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.0.0
16
- -----
11
+ # 2.1.0
17
12
 
18
- * Update to a new-style Middleman extension, dropping compatibility with Middleman versions older than 3.2.x.
19
- * Setting the :css_class option will no longer prevent the language tag from being added as a class as well.
20
- * Rouge lexer options should now be set via the :lexer_options option.
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
- 1.2.1
26
- -----
17
+ # 2.0.0
27
18
 
28
- * Restore compatibility with Middleman 3.0.x series.
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.0
31
- -----
26
+ # 1.2.1
32
27
 
33
- * Support Kramdown as Markdown engine in addition to Redcarpet.
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.1.1
38
- -----
30
+ # 1.2.0
39
31
 
40
- * Properly merge language attribute for Markdown. #14
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.0
43
- -----
36
+ # 1.1.1
44
37
 
45
- * Avoid errors when language is empty. #9
46
- * Allow passing options to Pygments. #5 & #7
38
+ - Properly merge language attribute for Markdown. #14
47
39
 
48
- 1.0.1
49
- -----
40
+ # 1.1.0
50
41
 
51
- * Updated pygments.rb dependency.
42
+ - Avoid errors when language is empty. #9
43
+ - Allow passing options to Pygments. #5 & #7
52
44
 
53
- 1.0.0
54
- -----
45
+ # 1.0.1
55
46
 
56
- * Initial release, basic syntax highlighting.
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", :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
@@ -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,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 Redcarpert.
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
 
@@ -1,5 +1,5 @@
1
1
  module Middleman
2
2
  module Syntax
3
- VERSION = "3.0.0"
3
+ VERSION = "3.2.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", ["~> 2.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: 3.0.0
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: 2016-07-23 00:00:00.000000000 Z
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.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: '2.0'
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
- rubyforge_project:
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: