srdperu-prawn-format 0.1.1.2 → 0.1.2

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.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: srdperu-prawn-format
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1.2
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - srdperu
@@ -42,19 +42,8 @@ extensions: []
42
42
  extra_rdoc_files: []
43
43
 
44
44
  files:
45
- - examples/basic-formatting.rb
46
- - examples/christmas-carol.txt
47
- - examples/document.rb
48
- - examples/flowing.rb
49
- - examples/style-classes.rb
50
- - examples/syntax-highlighting.rb
51
- - examples/tags.rb
52
- - lib/prawn/format/effects/link.rb
53
- - lib/prawn/format/effects/underline.rb
54
- - lib/prawn/format/instructions/base.rb
55
- - lib/prawn/format/instructions/tag_close.rb
56
- - lib/prawn/format/instructions/tag_open.rb
57
- - lib/prawn/format/instructions/text.rb
45
+ - lib/prawn/
46
+ - lib/prawn/format.rb
58
47
  - lib/prawn/format/layout_builder.rb
59
48
  - lib/prawn/format/lexer.rb
60
49
  - lib/prawn/format/line.rb
@@ -62,23 +51,14 @@ files:
62
51
  - lib/prawn/format/state.rb
63
52
  - lib/prawn/format/text_object.rb
64
53
  - lib/prawn/format/version.rb
65
- - lib/prawn/format.rb
66
- - manual/html.rb
67
- - manual/include/basics.rb
68
- - manual/include/breaks.rb
69
- - manual/include/custom-tags.rb
70
- - manual/include/custom-tags2.rb
71
- - manual/include/indent.rb
72
- - manual/include/options.rb
73
- - manual/include/style-classes.rb
74
- - manual/manual.txt
75
- - manual/pdf.rb
76
- - Rakefile
77
- - spec/layout_builder_spec.rb
78
- - spec/lexer_spec.rb
79
- - spec/parser_spec.rb
80
- - spec/spec_helper.rb
81
- - Manifest
54
+ - lib/prawn/format/effects/
55
+ - lib/prawn/format/effects/link.rb
56
+ - lib/prawn/format/effects/underline.rb
57
+ - lib/prawn/format/instructions/
58
+ - lib/prawn/format/instructions/base.rb
59
+ - lib/prawn/format/instructions/tag_close.rb
60
+ - lib/prawn/format/instructions/tag_open.rb
61
+ - lib/prawn/format/instructions/text.rb
82
62
  has_rdoc: false
83
63
  homepage: http://github.com/srdperu/prawn-format
84
64
  post_install_message:
data/Manifest DELETED
@@ -1,37 +0,0 @@
1
- examples/basic-formatting.rb
2
- examples/christmas-carol.txt
3
- examples/document.rb
4
- examples/flowing.rb
5
- examples/style-classes.rb
6
- examples/syntax-highlighting.rb
7
- examples/tags.rb
8
- lib/prawn/format/effects/link.rb
9
- lib/prawn/format/effects/underline.rb
10
- lib/prawn/format/instructions/base.rb
11
- lib/prawn/format/instructions/tag_close.rb
12
- lib/prawn/format/instructions/tag_open.rb
13
- lib/prawn/format/instructions/text.rb
14
- lib/prawn/format/layout_builder.rb
15
- lib/prawn/format/lexer.rb
16
- lib/prawn/format/line.rb
17
- lib/prawn/format/parser.rb
18
- lib/prawn/format/state.rb
19
- lib/prawn/format/text_object.rb
20
- lib/prawn/format/version.rb
21
- lib/prawn/format.rb
22
- manual/html.rb
23
- manual/include/basics.rb
24
- manual/include/breaks.rb
25
- manual/include/custom-tags.rb
26
- manual/include/custom-tags2.rb
27
- manual/include/indent.rb
28
- manual/include/options.rb
29
- manual/include/style-classes.rb
30
- manual/manual.txt
31
- manual/pdf.rb
32
- Rakefile
33
- spec/layout_builder_spec.rb
34
- spec/lexer_spec.rb
35
- spec/parser_spec.rb
36
- spec/spec_helper.rb
37
- Manifest
data/Rakefile DELETED
@@ -1,30 +0,0 @@
1
- require './lib/prawn/format/version'
2
-
3
- begin
4
- require 'echoe'
5
- rescue LoadError
6
- abort "You'll need to have `echoe' installed to use Prawn::Format's Rakefile"
7
- end
8
-
9
- version = Prawn::Format::VERSION.dup
10
- if ENV['SNAPSHOT'].to_i == 1
11
- version << "." << Time.now.utc.strftime("%Y%m%d%H%M%S")
12
- end
13
-
14
- Echoe.new('prawn-format', version) do |p|
15
- p.changelog = "CHANGELOG.rdoc"
16
-
17
- p.author = "Jamis Buck"
18
- p.email = "jamis@jamisbuck.org"
19
- p.summary = "an extension of Prawn that allows inline formatting"
20
- p.url = "http://rubyforge.org/projects/prawn"
21
- p.project = "prawn"
22
-
23
- p.runtime_dependencies << "prawn-core"
24
-
25
- p.need_zip = true
26
- p.include_rakefile = true
27
-
28
- p.rdoc_pattern = /^(lib|README.rdoc|CHANGELOG.rdoc|THANKS.rdoc)/
29
- p.test_pattern = "spec/*_spec.rb"
30
- end
@@ -1,37 +0,0 @@
1
- #coding: utf-8
2
-
3
- $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
4
- require 'prawn'
5
- require 'prawn/format'
6
-
7
- JAPANESE = "#{Prawn::BASEDIR}/data/fonts/gkai00mp.ttf"
8
-
9
- Prawn::Document.generate "basic-formatting.pdf" do
10
- text "<a name='top'/>Thanks to the Prawn-Format library, <a href='prawn'>Prawn</a> now supports <i>inline formatting</i>. What this means in practical terms is that you can embed XML tags in your text calls, turning bits like <code>&lt;b&gt;bold&lt;/b&gt;</code> into <b>bold</b>."
11
-
12
- move_text_position font_size
13
-
14
- text "Most common HTML tags are supported, including <i>&lt;i&gt;</i>, <b>&lt;b&gt;</b>, <u>&lt;u&gt;</u>, <code>&lt;code&gt;</code>, <sub>&lt;sub&gt;</sub> and <sup>&lt;sup&gt;</sup>. (For the full list, refer to <code>Prawn::Format::DEFAULT_TAGS</code> in <code>prawn/format.rb</code>.)"
15
-
16
- move_text_position font_size
17
-
18
- bounding_box [bounds.left + 72, y - bounds.absolute_bottom], :width => bounds.width - 144 do
19
- text "Finally, and as demonstrated by this very paragraph, Prawn-Format also supports full-justification of text. All you need to do is set <code>:align =&gt; :justify</code> in your text options, and the rest is taken care of. No more ragged right! Enter a new era of professional-looking documents.", :align => :justify
20
- end
21
-
22
- start_new_page
23
-
24
- text "<a name='prawn'/><font color='#f70'><strong>Prawn</strong></font> is a PDF generation library for <a href='ruby'>Ruby</a>. Its emphasis is on speed, but also provides a very easy-to-use API, and boasts such advanced features as <em>True-Type font embedding</em>, <em>font subsetting</em>, <em>image support</em>, and many text layout functions."
25
-
26
- move_text_position font_size
27
-
28
- text "<a href='top'>Return to top of document</a>"
29
-
30
- start_new_page
31
-
32
- text "<a name='ruby'/><font color='red'><strong>Ruby</strong></font> is a programming language with an emphasis on programmer happiness. It was developed by Yukihiro Matsumoto (<font face='#{JAPANESE}'>まつもとゆきひろ</font>, a.k.a. <strong>Matz</strong>)."
33
-
34
- move_text_position font_size
35
-
36
- text "<a href='top'>Return to top of document</a>"
37
- end