prawn_rails 0.0.11 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 308a79f72f3ef76ee6432be41c4dc6ac934838a6500cf3cce68315a3ce958e80
4
+ data.tar.gz: 7b99bfc316e2e134b60eaaa5d2ecc6d2551a61caeadabd4d8c1672ebe36aa0e6
5
+ SHA512:
6
+ metadata.gz: 7a33a04da1ce34b72a7d81026415e0dad6d3517c794f19278f228bd5d50ce6f29f1ad68d74f5f23998ee25d0884dae45bdd8137d0e15c2cce42d5922a85906f1
7
+ data.tar.gz: 757c58daa2cef54ab93c697fde75f2daac55a6b8605de16608be92577b2ce3e3cdb5a2e0bb1bab99fcdd5eb30da77b20cc120c774c98d81416c2f5218f2b68a7
data/README.rdoc CHANGED
@@ -125,7 +125,7 @@ The one major gotcha at this point is that layouts do not work. Do not attempt
125
125
 
126
126
  == Examples
127
127
 
128
- For examples see: http://prawn-rails-demo.heroku.com
128
+ For examples see: http://prawn-rails-demo.herokuapp.com
129
129
 
130
130
 
131
131
  Copyright (c) 2010 Walton Hoops, released under the MIT license
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.11
1
+ 0.0.12
data/lib/prawn_rails.rb CHANGED
@@ -34,8 +34,12 @@ module Prawn
34
34
  class_attribute :default_format
35
35
  self.default_format = :pdf
36
36
 
37
- def self.call(template)
38
- "#{template.source.strip}"
37
+ def self.call(template, source = nil)
38
+ if source
39
+ "#{source.strip}"
40
+ else
41
+ "#{template.source.strip}"
42
+ end
39
43
  end
40
44
 
41
45
  end
data/prawn_rails.gemspec CHANGED
@@ -2,16 +2,18 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
+ # stub: prawn_rails 0.0.12 ruby lib
5
6
 
6
7
  Gem::Specification.new do |s|
7
- s.name = "prawn_rails"
8
- s.version = "0.0.11"
8
+ s.name = "prawn_rails".freeze
9
+ s.version = "0.0.12"
9
10
 
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Walton Hoops"]
12
- s.date = "2012-08-28"
13
- s.description = "The prawn_rails gem provides a Prawn based view engine for creating PDFs with rails."
14
- s.email = "me@waltonhoops.com"
11
+ s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
+ s.require_paths = ["lib".freeze]
13
+ s.authors = ["Walton Hoops".freeze]
14
+ s.date = "2021-07-07"
15
+ s.description = "The prawn_rails gem provides a Prawn based view engine for creating PDFs with rails.".freeze
16
+ s.email = "me@waltonhoops.com".freeze
15
17
  s.extra_rdoc_files = [
16
18
  "README.rdoc"
17
19
  ]
@@ -25,25 +27,21 @@ Gem::Specification.new do |s|
25
27
  "prawn_rails.gemspec",
26
28
  "rails/init.rb"
27
29
  ]
28
- s.homepage = "http://github.com/Whoops/prawn-rails"
29
- s.licenses = ["MIT"]
30
- s.require_paths = ["lib"]
31
- s.rubygems_version = "1.8.23"
32
- s.summary = "Integrates Prawn into Rails in a natural way"
30
+ s.homepage = "http://github.com/Whoops/prawn-rails".freeze
31
+ s.licenses = ["MIT".freeze]
32
+ s.rubygems_version = "3.2.21".freeze
33
+ s.summary = "Integrates Prawn into Rails in a natural way".freeze
33
34
 
34
35
  if s.respond_to? :specification_version then
35
- s.specification_version = 3
36
+ s.specification_version = 4
37
+ end
36
38
 
37
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
38
- s.add_runtime_dependency(%q<railties>, [">= 3.0.0"])
39
- s.add_runtime_dependency(%q<prawn>, [">= 0.11.1"])
40
- else
41
- s.add_dependency(%q<railties>, [">= 3.0.0"])
42
- s.add_dependency(%q<prawn>, [">= 0.11.1"])
43
- end
39
+ if s.respond_to? :add_runtime_dependency then
40
+ s.add_runtime_dependency(%q<railties>.freeze, [">= 3.0.0"])
41
+ s.add_runtime_dependency(%q<prawn>.freeze, [">= 0.11.1"])
44
42
  else
45
- s.add_dependency(%q<railties>, [">= 3.0.0"])
46
- s.add_dependency(%q<prawn>, [">= 0.11.1"])
43
+ s.add_dependency(%q<railties>.freeze, [">= 3.0.0"])
44
+ s.add_dependency(%q<prawn>.freeze, [">= 0.11.1"])
47
45
  end
48
46
  end
49
47
 
metadata CHANGED
@@ -1,46 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prawn_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
5
- prerelease:
4
+ version: 0.0.12
6
5
  platform: ruby
7
6
  authors:
8
7
  - Walton Hoops
9
- autorequire:
8
+ autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-08-28 00:00:00.000000000 Z
11
+ date: 2021-07-07 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: railties
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: 3.0.0
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - ">="
28
25
  - !ruby/object:Gem::Version
29
26
  version: 3.0.0
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: prawn
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - ">="
36
32
  - !ruby/object:Gem::Version
37
33
  version: 0.11.1
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - ">="
44
39
  - !ruby/object:Gem::Version
45
40
  version: 0.11.1
46
41
  description: The prawn_rails gem provides a Prawn based view engine for creating PDFs
@@ -62,26 +57,24 @@ files:
62
57
  homepage: http://github.com/Whoops/prawn-rails
63
58
  licenses:
64
59
  - MIT
65
- post_install_message:
60
+ metadata: {}
61
+ post_install_message:
66
62
  rdoc_options: []
67
63
  require_paths:
68
64
  - lib
69
65
  required_ruby_version: !ruby/object:Gem::Requirement
70
- none: false
71
66
  requirements:
72
- - - ! '>='
67
+ - - ">="
73
68
  - !ruby/object:Gem::Version
74
69
  version: '0'
75
70
  required_rubygems_version: !ruby/object:Gem::Requirement
76
- none: false
77
71
  requirements:
78
- - - ! '>='
72
+ - - ">="
79
73
  - !ruby/object:Gem::Version
80
74
  version: '0'
81
75
  requirements: []
82
- rubyforge_project:
83
- rubygems_version: 1.8.23
84
- signing_key:
85
- specification_version: 3
76
+ rubygems_version: 3.2.21
77
+ signing_key:
78
+ specification_version: 4
86
79
  summary: Integrates Prawn into Rails in a natural way
87
80
  test_files: []