prawn-print 0.0.3 → 0.0.4

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
- SHA1:
3
- metadata.gz: d7cb41742ce17c84ee133ae177fcd33a2f54a026
4
- data.tar.gz: 2fc20d5356396b904aa1a44d85f2208b968741b6
2
+ SHA256:
3
+ metadata.gz: 1c2d676531f8030ad378782668eb5a2026d902cc641109761c6c0347b3ec82ac
4
+ data.tar.gz: 23d3d83fe57ebff3161c880ae5716a141b94e522671166e079206ca96fb75e5b
5
5
  SHA512:
6
- metadata.gz: 580e73c2a36573b6552f307b9d8187b94691d74810ce72729dc951b0581fae5de294e5a1a0e7077dc75dd051995f77ba16bc94fd8f773f49aac6e0ac06d4d066
7
- data.tar.gz: 11b7f9f0133306c0afbda128e2c09c6696f951cf0d80c009f5dc0fba4559c92894557ac5fe7d9b12dcf6a6365a274f38c7e80eb272cc4c9882feabb2b86ae98b
6
+ metadata.gz: 2d5f5ccbca2d041850dd96401df32f51461f9249d14ea1e47adb08d4be40008d9be9241d4b27a87a814a3c9b6f5f66caf08859cb82fb8ed053b5e2bcdbbdaacb
7
+ data.tar.gz: e68387febc12634f62768ad706ce8ef57deaddd2283f000a3091acca532f63f1575412763443ee20947a459bd1e83b8c270a33f15c803d45846a13796dd721b7
data/README.markdown CHANGED
@@ -1,6 +1,8 @@
1
1
  # Prawn Print
2
2
 
3
- Ruby gem that adds `print` and `autoprint` methods for Adobe Reader to generated [Prawn](http://prawn.majesticseacreature.com) PDF documents.
3
+ [![Ruby CI](https://github.com/barsoom/prawn-print/actions/workflows/ci.yml/badge.svg)](https://github.com/barsoom/prawn-print/actions/workflows/ci.yml)
4
+
5
+ Ruby gem that adds `print` and `autoprint` methods for Adobe Reader to generated [Prawn](https://github.com/prawnpdf/prawn) PDF documents.
4
6
 
5
7
  The documents can be opened in any PDF reader, but only Adobe Reader supports triggering printing in this way.
6
8
 
@@ -9,7 +11,9 @@ The documents can be opened in any PDF reader, but only Adobe Reader supports tr
9
11
 
10
12
  With Bundler for e.g. Ruby on Rails, add this to your `Gemfile`:
11
13
 
12
- gem 'prawn-print', :git => 'git://github.com/barsoom/prawn-print.git'
14
+ ```ruby
15
+ gem 'prawn-print'
16
+ ```
13
17
 
14
18
  and run
15
19
 
@@ -20,20 +24,22 @@ to install it.
20
24
 
21
25
  ## Usage
22
26
 
23
- # Open print dialog, but don't autoprint.
24
- pdf = Prawn::Document.new
25
- pdf.text "I installed Adobe Reader and all I got was this lousy printout."
26
- pdf.print
27
+ ```ruby
28
+ # Open print dialog, but don't autoprint.
29
+ pdf = Prawn::Document.new
30
+ pdf.text "I installed Adobe Reader and all I got was this lousy printout."
31
+ pdf.print
27
32
 
28
- # Autoprint it on the default printer, when opened.
29
- pdf = Prawn::Document.new
30
- pdf.text "Help! I am trapped in a PDF factory!"
31
- pdf.autoprint
33
+ # Autoprint it on the default printer, when opened.
34
+ pdf = Prawn::Document.new
35
+ pdf.text "Help! I am trapped in a PDF factory!"
36
+ pdf.autoprint
32
37
 
33
- # Autoprint it on a printer where the name includes "LaserJet".
34
- pdf = Prawn::Document.new
35
- pdf.text "Help! I am trapped in a PDF factory!"
36
- pdf.autoprint "LaserJet"
38
+ # Autoprint it on a printer where the name includes "LaserJet".
39
+ pdf = Prawn::Document.new
40
+ pdf.text "Help! I am trapped in a PDF factory!"
41
+ pdf.autoprint "LaserJet"
42
+ ```
37
43
 
38
44
  You can call `print`/`autoprint` at any place of the generated PDF – it doesn't have to be at the end.
39
45
 
@@ -69,5 +75,3 @@ Glued together by [Henrik Nyh](http://henrik.nyh.se/) for [Barsoom](http://barso
69
75
  > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
70
76
  > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
71
77
  > THE SOFTWARE.
72
-
73
- #
@@ -14,7 +14,7 @@ module Prawn
14
14
  # multiple times will append the new fragment to the list.
15
15
  #
16
16
  def add_docopen_js(name, script)
17
- obj = ref!(:S => :JavaScript, :JS => script)
17
+ obj = ref!(S: :JavaScript, JS: script)
18
18
  javascript.data.add(name, obj)
19
19
  end
20
20
 
@@ -1,5 +1,5 @@
1
1
  module Prawn
2
2
  module Print
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,83 +1,83 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prawn-print
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henrik Nyh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-07 00:00:00.000000000 Z
11
+ date: 2021-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: prawn
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: 0.12.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: 0.12.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: guard
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: guard-rspec
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  description:
@@ -87,44 +87,34 @@ executables: []
87
87
  extensions: []
88
88
  extra_rdoc_files: []
89
89
  files:
90
- - .gitignore
91
- - .travis.yml
92
- - Gemfile
93
- - Guardfile
94
90
  - README.markdown
95
- - Rakefile
96
91
  - examples/autoprint.rb
97
92
  - examples/autoprint_named.rb
98
93
  - examples/print.rb
99
94
  - lib/prawn-print.rb
100
95
  - lib/prawn-print/js.rb
101
96
  - lib/prawn-print/version.rb
102
- - prawn-print.gemspec
103
- - spec/prawn-print_spec.rb
104
- - spec/spec_helper.rb
105
97
  homepage: https://github.com/barsoom/prawn_print
106
98
  licenses: []
107
- metadata: {}
99
+ metadata:
100
+ rubygems_mfa_required: 'true'
108
101
  post_install_message:
109
102
  rdoc_options: []
110
103
  require_paths:
111
104
  - lib
112
105
  required_ruby_version: !ruby/object:Gem::Requirement
113
106
  requirements:
114
- - - '>='
107
+ - - ">="
115
108
  - !ruby/object:Gem::Version
116
109
  version: '0'
117
110
  required_rubygems_version: !ruby/object:Gem::Requirement
118
111
  requirements:
119
- - - '>='
112
+ - - ">="
120
113
  - !ruby/object:Gem::Version
121
114
  version: '0'
122
115
  requirements: []
123
- rubyforge_project: prawn-print
124
- rubygems_version: 2.2.0
116
+ rubygems_version: 3.2.31
125
117
  signing_key:
126
118
  specification_version: 4
127
119
  summary: Autoprint generated PDFs from Adobe Reader.
128
- test_files:
129
- - spec/prawn-print_spec.rb
130
- - spec/spec_helper.rb
120
+ test_files: []
data/.gitignore DELETED
@@ -1,4 +0,0 @@
1
- *.gem
2
- .bundle
3
- Gemfile.lock
4
- pkg/*
data/.travis.yml DELETED
@@ -1,4 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 1.9.3
4
- - 1.8.7
data/Gemfile DELETED
@@ -1,4 +0,0 @@
1
- source "http://rubygems.org"
2
-
3
- # Specify your gem's dependencies in prawn-print.gemspec
4
- gemspec
data/Guardfile DELETED
@@ -1,5 +0,0 @@
1
- guard 'rspec', :version => 2, :cli => "--color" do
2
- watch(%r{^spec/.+_spec\.rb$})
3
- watch(%r{^lib/(.+)\.rb$}) { |m| "spec" }
4
- watch('spec/spec_helper.rb') { "spec" }
5
- end
data/Rakefile DELETED
@@ -1,6 +0,0 @@
1
- require "bundler/gem_tasks"
2
- require 'rspec/core/rake_task'
3
-
4
- RSpec::Core::RakeTask.new(:spec)
5
-
6
- task :default => :spec
data/prawn-print.gemspec DELETED
@@ -1,26 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
- $:.push File.expand_path("../lib", __FILE__)
3
- require "prawn-print/version"
4
-
5
- Gem::Specification.new do |s|
6
- s.name = "prawn-print"
7
- s.version = Prawn::Print::VERSION
8
- s.authors = ["Henrik Nyh"]
9
- s.email = ["henrik@barsoom.se"]
10
- s.homepage = "https://github.com/barsoom/prawn_print"
11
- s.summary = %q{Autoprint generated PDFs from Adobe Reader.}
12
-
13
- s.rubyforge_project = "prawn-print"
14
-
15
- s.files = `git ls-files`.split("\n")
16
- s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
17
- s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
18
- s.require_paths = ["lib"]
19
-
20
- s.add_dependency "prawn", ">= 0.12.0"
21
-
22
- s.add_development_dependency "rake"
23
- s.add_development_dependency "rspec"
24
- s.add_development_dependency "guard"
25
- s.add_development_dependency "guard-rspec"
26
- end
@@ -1,24 +0,0 @@
1
- # encoding: utf-8
2
- require "spec_helper"
3
- require "prawn-print"
4
-
5
- # These could use more work...
6
-
7
- describe Prawn::Print, "#print" do
8
- it "should work without arguments" do
9
- pdf = Prawn::Document.new
10
- lambda { pdf.print }.should_not raise_error
11
- end
12
- end
13
-
14
- describe Prawn::Print, "#autoprint" do
15
- it "should work without arguments" do
16
- pdf = Prawn::Document.new
17
- lambda { pdf.autoprint }.should_not raise_error
18
- end
19
-
20
- it "should work with an argument" do
21
- pdf = Prawn::Document.new
22
- lambda { pdf.autoprint("LaserJet") }.should_not raise_error
23
- end
24
- end
data/spec/spec_helper.rb DELETED
File without changes