middleman-syntax 1.2.0 → 1.2.1

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: b4d472a90adef6ca025bcac82d3f00f6546d0083
4
- data.tar.gz: 72e518ba6b0ee79bcbd16c9382bad88d3cffad25
3
+ metadata.gz: 1a45717c68c5251ef83aeaae803378ce95dbcf4f
4
+ data.tar.gz: a671567f6cd311b77b7461cd39849ac21d8be6a7
5
5
  SHA512:
6
- metadata.gz: 854f1f201cf18fe0d765a3e20a6106466e2bd743475228aebcb32747a067daa0961442bfd1ffada7f0e64d6f3f9c38bf6785658c76a2992585074975db95fc82
7
- data.tar.gz: 09db1d1c2d64c46ac851b5fd99595086a7f914ccdb192f54d95de7b8658501e7cafdb04c52a1ce6f9daa68df5cff70ff51f644a361cf24fa9d7cd9384bde080e
6
+ metadata.gz: 444d66ce7c7e589cc7b9615e9c0983e1589470d11dcf7c1e790aac8d0b9a5ccd884dbdafa777b7da9c91568fb65ef87b57e8c6a56da2d1a5be506735637377f5
7
+ data.tar.gz: aee00d72c73b307aebc08b4a840d71e4b2ca2f027b082993178520016a9d2c63d74d47f0091cdf224699cbe6b8018fa23b4e18de83275745c42206331815049f
@@ -1,5 +1,10 @@
1
+ 1.2.1
2
+ -----
3
+
4
+ * Restore compatibility with Middleman 3.0.x series.
5
+
1
6
  1.2.0
2
- ------
7
+ -----
3
8
 
4
9
  * Support Kramdown as Markdown engine in addition to Redcarpet.
5
10
  * Switch to Rouge from Pygments.rb
@@ -14,14 +14,11 @@ module Middleman
14
14
 
15
15
  app.send :include, Helper
16
16
 
17
- if app.markdown_engine == :redcarpet
18
- begin
17
+ app.after_configuration do
18
+ if markdown_engine == :redcarpet
19
19
  require 'middleman-core/renderers/redcarpet'
20
20
  Middleman::Renderers::MiddlemanRedcarpetHTML.send :include, MarkdownCodeRenderer
21
- rescue LoadError
22
- end
23
- else
24
- begin
21
+ elsif markdown_engine == :kramdown
25
22
  require 'kramdown'
26
23
  Kramdown::Converter::Html.class_eval do
27
24
  def convert_codeblock(el, indent)
@@ -30,7 +27,6 @@ module Middleman
30
27
  Middleman::Syntax::Highlighter.highlight(el.value, language)
31
28
  end
32
29
  end
33
- rescue LoadError
34
30
  end
35
31
  end
36
32
  end
@@ -1,5 +1,5 @@
1
1
  module Middleman
2
2
  module Syntax
3
- VERSION = "1.2.0"
3
+ VERSION = "1.2.1"
4
4
  end
5
5
  end
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: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Hollis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-05-12 00:00:00.000000000 Z
11
+ date: 2013-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: middleman-core