md2key 0.1.1 → 0.1.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: 9f31d9ed6e9a7428c52fa2e6665a35542a51c6e9
4
- data.tar.gz: a9038cac9c72f6e60fd393e16c0c95e52b9da5e3
3
+ metadata.gz: 715e0b41ecbfdbb4b7bd47471b3869361fdf12a4
4
+ data.tar.gz: 4aa12b0da58a5571dba5bbf57844d5b6b536274c
5
5
  SHA512:
6
- metadata.gz: 408660f8b67738c316801c71d7dfbff6caeb476cc52456a260cec8dd6ab421057140956021ffbb16df15a78c9b13659a8a578eb82690739de43bafaa7d0d9e15
7
- data.tar.gz: de6382e7f4a8a18fecd886017b09e9743ffc53c13137ef9b2cf32e20ef8c4f2ca4ab71f001179394bd5b9c136219baabe9a8589f2cdd4778d3a9a6cecd94d6ed
6
+ metadata.gz: 0b8459ae62e7adeaf6f57757d0d1420ac18106a0d13320ef581d454d16cdb767c547ae22b1d7f49b5bf9c4f2664c78d2f14d43877b2bf735ac0d823d7a9d7d07
7
+ data.tar.gz: 00219c993468952728073684d4051b2d41eae58594255fba50500ba17da89234debdf49fb068a38f3d468a54cb9ec009edeff2ef3e273eb2e5feaa8c62a7280e
@@ -18,9 +18,10 @@ module Md2key
18
18
  line = line.strip
19
19
  case line
20
20
  when /^--+$/
21
+ # noop
22
+ when /^# *(.+)$/
21
23
  slides << slide
22
24
  slide = Slide.new
23
- when /^# *(.+)$/
24
25
  slide.title = $1
25
26
  when /^- *(.+)$/
26
27
  slide.lines << $1
@@ -29,6 +30,8 @@ module Md2key
29
30
  end
30
31
  end
31
32
  slides << slide
33
+ slides.shift unless slides.empty?
34
+ slides
32
35
  end
33
36
  end
34
37
  end
@@ -1,3 +1,3 @@
1
1
  module Md2key
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: md2key
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takashi Kokubun