prawn-manual_builder 0.1.0 → 0.1.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: e2eca85112ee7d46bc93c0144400a563a634043a
4
- data.tar.gz: 3c2fa75b912119df6a464dbe5fb42bd28ae2313c
3
+ metadata.gz: fa3c533f89d003a31530b99a647609cd294d8ed0
4
+ data.tar.gz: a3785902023d94ccd19d7f02f3a4a1784e14fe02
5
5
  SHA512:
6
- metadata.gz: a5a77150054091d16fed847a9a8232c334cf5c58a2d3f7ad9574c5b0bcbd3c99ca6f6cda7432be194e89b6638e13475a5fb1dcfc71c90d55adc8b10db207198d
7
- data.tar.gz: 8035f501c3076c8fe7498b7b1dd5142aa92568ef503a3d13d55dde15384739faa12b17eb1e62cac58303df8b8febd8d041c5594fcf22f5595263dcb3c75759cc
6
+ metadata.gz: 007739b8754212bfb0107d5ebee88acab2f8e9b43a20225e4f6618546d14d21df4d9ad948b288586ae015a0b2519cec7315ff6fe728a20f8d8ee426b7a93f1f9
7
+ data.tar.gz: 6dd68ce117bec6ea8f68ffd864436fe6476058a47afc00678d3d299671c86a7c045c06b7231860e67717208a3ae67a28caef525e9bb1626449f4303fd5b22060
@@ -65,7 +65,13 @@ module Prawn
65
65
  # Then removes the '#' signs, reflows the line breaks and return the result
66
66
  #
67
67
  def introduction_text
68
- intro = @data.lines.grep(/^#/).join
68
+ intro = @data.lines.grep(/^#/)
69
+
70
+ intro.shift if intro.first =~ /^#!/
71
+ intro.shift if intro.first =~ /coding:/
72
+
73
+ intro = intro.join
74
+
69
75
  intro.gsub!(/\n# (?=\S)/m, ' ')
70
76
  intro.gsub!(/^#/, '')
71
77
  intro.gsub!("\n", "\n\n")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prawn-manual_builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felipe Doria
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-05-28 00:00:00.000000000 Z
12
+ date: 2014-06-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: coderay