kramdown 2.0.0.beta1 → 2.0.0.beta2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of kramdown might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a46f6cad363a7cede373f0a518b899c5f46fa0091be9475c8e679e9f5e211b9b
4
- data.tar.gz: f8a7d90234109921697e0deb76b370c063759676c92a568e7f40e0a1274aa943
3
+ metadata.gz: f737523fd370cb69aff3ae9bb1c7fbad526081be7d3df2275de8fb9563d9c4c2
4
+ data.tar.gz: 81ca8a7bb1aa6feecbad1cbe0cba3eeebb26751ff9b1e33692f0f0f663f76a3d
5
5
  SHA512:
6
- metadata.gz: 2e4036db169432b82bc680f151a41e38b29354c07984cd165f056068d45b052e2a261d2c35786932d8c030a5a0277b1ddc8553e27ae75d585ba2d0074c61e15b
7
- data.tar.gz: 2ceebbad2256128c1c0a92f350c6bd275b6d6cbae1363ea6b00ed6779d80f029088dd28b447f95faa06c51a4eff6dbae49b7abe42e07e5d07f26f5465b911ebd
6
+ metadata.gz: 5e5cd66bdc510a27fa640fe0ed18d598c3f4acda9dcd8fe54b931f00ea08011e16772881f6e3b3a17338412cd03ea6af57e8687102601cdde24c6da195fa67f4
7
+ data.tar.gz: 06202fba99c3a55af853235d3c1d355856b085d30cc5d4d29bfbde3587a01c258663a4b47b12ce60e649ceeb2b1e72cca66c1d434ae662bfdd07221ba75d8d73
@@ -302,7 +302,7 @@ module Kramdown
302
302
  el
303
303
  end
304
304
 
305
- @parsers = {}
305
+ @@parsers = {}
306
306
 
307
307
  # Struct class holding all the needed data for one block/span-level parser method.
308
308
  Data = Struct.new(:name, :start_re, :span_start, :method)
@@ -317,18 +317,18 @@ module Kramdown
317
317
  # to the registry. The method name is automatically derived from the +name+ or can explicitly
318
318
  # be set by using the +meth_name+ parameter.
319
319
  def self.define_parser(name, start_re, span_start = nil, meth_name = "parse_#{name}")
320
- raise "A parser with the name #{name} already exists!" if @parsers.key?(name)
321
- @parsers[name] = Data.new(name, start_re, span_start, meth_name)
320
+ raise "A parser with the name #{name} already exists!" if @@parsers.key?(name)
321
+ @@parsers[name] = Data.new(name, start_re, span_start, meth_name)
322
322
  end
323
323
 
324
324
  # Return the Data structure for the parser +name+.
325
325
  def self.parser(name = nil)
326
- @parsers[name]
326
+ @@parsers[name]
327
327
  end
328
328
 
329
329
  # Return +true+ if there is a parser called +name+.
330
330
  def self.has_parser?(name)
331
- @parsers.key?(name)
331
+ @@parsers.key?(name)
332
332
  end
333
333
 
334
334
  # Regexp for matching indentation (one tab or four spaces)
@@ -10,6 +10,6 @@
10
10
  module Kramdown
11
11
 
12
12
  # The kramdown version.
13
- VERSION = '2.0.0.beta1'
13
+ VERSION = '2.0.0.beta2'
14
14
 
15
15
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kramdown
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.beta1
4
+ version: 2.0.0.beta2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Leitner