prawn-manual_builder 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/prawn/manual_builder/example_file.rb +7 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fa3c533f89d003a31530b99a647609cd294d8ed0
|
|
4
|
+
data.tar.gz: a3785902023d94ccd19d7f02f3a4a1784e14fe02
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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(/^#/)
|
|
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.
|
|
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-
|
|
12
|
+
date: 2014-06-23 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: coderay
|