hexp-kramdown 0.9.1 → 0.9.2

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: 9791ca6ac20c192ad77d6c073bbe4cd1b6439643
4
- data.tar.gz: 07bf2dafc0c06ce6fb2a1f6514bb8773aef40c32
3
+ metadata.gz: b2d460c24b8a84b77bafa5e3298ad92439eae245
4
+ data.tar.gz: ecd94483a2b4a5750ddaf015f646c5afe713e39e
5
5
  SHA512:
6
- metadata.gz: accdfbe142d0db5671f66091b9579fd9a3d5a998073a23409419ffaae7de2f354493c25aa09e7c8da043f2fe39df2c0d4897488424b585fc6c43ab09e77b7c52
7
- data.tar.gz: 37c945e054541e1c8116b38a59e025415966c1a32e5f8ebec66561adb0cc5effcbc055cd5fd0cb724657634566874ebc9a42720a4b7dcae981845b243a832c29
6
+ metadata.gz: e457759d1dc5d736ff4bb74723a18e68bf04187c7f43a0ccdbb27e99926a38eab337c8669baf41311c1c8378ccde34a2436293e0ce500daa7e766ff8742b9089
7
+ data.tar.gz: 95779a1362112568abe377ed3559d8c65778a0d8f273bf80f32e1426533c6b2f0960e71f1550ea884297b01506a66e1d0734d17f757c3854b3d456129fb662ce
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = 'hexp-kramdown'
5
- gem.version = "0.9.1"
5
+ gem.version = "0.9.2"
6
6
  gem.authors = [ 'Arne Brasseur' ]
7
7
  gem.email = [ 'arne@arnebrasseur.net' ]
8
8
  gem.description = 'Convert a Kramdown document to Hexp'
@@ -1,11 +1,12 @@
1
1
  require 'hexp'
2
2
  require 'kramdown'
3
+ require 'hexp/kramdown/converter'
3
4
 
4
5
  module Hexp
5
6
  module Kramdown
6
- def convert(document_or_element)
7
- Hexp::Kramdown::Converter.new.convert(
8
- if document_or_element.is_a? Kramdown::Document
7
+ def self.convert(document_or_element)
8
+ Converter.new.convert(
9
+ if document_or_element.is_a? ::Kramdown::Document
9
10
  document_or_element.root
10
11
  else
11
12
  document_or_element
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hexp-kramdown
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arne Brasseur