prawn_cocktail_rails 0.2.0 → 0.2.1

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
+ SHA1:
3
+ metadata.gz: f4c165db87e416f31223f1b040af4bd641cbbeeb
4
+ data.tar.gz: b9b76396a68bb5c60b6c6c733f7a67c7f8415e30
5
+ SHA512:
6
+ metadata.gz: 7aee4cbec1d15b67aa140d45ed63ff9161cb3ccf17a01122e95a3b8a04dd0c8e32b423aabd4f87d0a56c987c762ff47a705ebb97b5ad24688d80057f6785d883
7
+ data.tar.gz: 594286851f72a7e79a4d6555a0726698253bfa957bd374f6513a645e2f2a370bae372c30e24a4ada914c8ceb89c4be8d32c555e2a7b9c18761a2e475dc834b04
data/.travis.yml CHANGED
@@ -1,4 +1,3 @@
1
1
  language: ruby
2
2
  rvm:
3
3
  - 2.0.0
4
- - 1.9.3
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # PrawnCocktailRails
2
2
 
3
+ [![Build status](https://secure.travis-ci.org/barsoom/prawn_cocktail_rails.png)](https://travis-ci.org/#!/barsoom/prawn_cocktail_rails/builds)
4
+
3
5
  Ruby on Rails integration for [PrawnCocktail](http://github.com/barsoom/prawn_cocktail).
4
6
 
5
7
  ## Usage
@@ -39,6 +41,14 @@ And then execute:
39
41
 
40
42
  As this library depends on `prawn_cocktail`, you only need to list this one to get both.
41
43
 
44
+ ### Mime types
45
+
46
+ You may need to register the pdf mimetype in `config/initializers/mime_types.rb`, for older versions of rails.
47
+
48
+ ```ruby
49
+ Mime::Type.register "application/pdf", :pdf
50
+ ```
51
+
42
52
  ## License
43
53
 
44
54
  Copyright (c) 2013 [Barsoom AB](http://barsoom.se)
@@ -5,7 +5,7 @@ module PrawnCocktailRails
5
5
  def send_pdf(document)
6
6
  send_data(
7
7
  document.render,
8
- type: "application/pdf",
8
+ type: :pdf,
9
9
  disposition: "attachment",
10
10
  filename: document.filename
11
11
  )
@@ -1,3 +1,3 @@
1
1
  module PrawnCocktailRails
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,60 +1,71 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prawn_cocktail_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
5
- prerelease:
4
+ version: 0.2.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Henrik Nyh
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-03-02 00:00:00.000000000 Z
11
+ date: 2015-04-10 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: prawn_cocktail
16
- requirement: &70205053958180 !ruby/object:Gem::Requirement
17
- none: false
15
+ requirement: !ruby/object:Gem::Requirement
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: 0.4.0
22
20
  type: :runtime
23
21
  prerelease: false
24
- version_requirements: *70205053958180
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 0.4.0
25
27
  - !ruby/object:Gem::Dependency
26
28
  name: rails
27
- requirement: &70205053957740 !ruby/object:Gem::Requirement
28
- none: false
29
+ requirement: !ruby/object:Gem::Requirement
29
30
  requirements:
30
- - - ! '>='
31
+ - - ">="
31
32
  - !ruby/object:Gem::Version
32
33
  version: '0'
33
34
  type: :runtime
34
35
  prerelease: false
35
- version_requirements: *70205053957740
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
36
41
  - !ruby/object:Gem::Dependency
37
42
  name: rake
38
- requirement: &70205053957180 !ruby/object:Gem::Requirement
39
- none: false
43
+ requirement: !ruby/object:Gem::Requirement
40
44
  requirements:
41
- - - ! '>='
45
+ - - ">="
42
46
  - !ruby/object:Gem::Version
43
47
  version: '0'
44
48
  type: :development
45
49
  prerelease: false
46
- version_requirements: *70205053957180
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
47
55
  - !ruby/object:Gem::Dependency
48
56
  name: pdf-inspector
49
- requirement: &70205053956720 !ruby/object:Gem::Requirement
50
- none: false
57
+ requirement: !ruby/object:Gem::Requirement
51
58
  requirements:
52
- - - ! '>='
59
+ - - ">="
53
60
  - !ruby/object:Gem::Version
54
61
  version: '0'
55
62
  type: :development
56
63
  prerelease: false
57
- version_requirements: *70205053956720
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
58
69
  description:
59
70
  email:
60
71
  - henrik@barsoom.se
@@ -62,8 +73,8 @@ executables: []
62
73
  extensions: []
63
74
  extra_rdoc_files: []
64
75
  files:
65
- - .gitignore
66
- - .travis.yml
76
+ - ".gitignore"
77
+ - ".travis.yml"
67
78
  - Gemfile
68
79
  - README.md
69
80
  - Rakefile
@@ -93,27 +104,26 @@ files:
93
104
  - spec/integration_spec.rb
94
105
  homepage: ''
95
106
  licenses: []
107
+ metadata: {}
96
108
  post_install_message:
97
109
  rdoc_options: []
98
110
  require_paths:
99
111
  - lib
100
112
  required_ruby_version: !ruby/object:Gem::Requirement
101
- none: false
102
113
  requirements:
103
- - - ! '>='
114
+ - - ">="
104
115
  - !ruby/object:Gem::Version
105
116
  version: '0'
106
117
  required_rubygems_version: !ruby/object:Gem::Requirement
107
- none: false
108
118
  requirements:
109
- - - ! '>='
119
+ - - ">="
110
120
  - !ruby/object:Gem::Version
111
121
  version: '0'
112
122
  requirements: []
113
123
  rubyforge_project:
114
- rubygems_version: 1.8.5
124
+ rubygems_version: 2.4.5
115
125
  signing_key:
116
- specification_version: 3
126
+ specification_version: 4
117
127
  summary: Simple documents, templates and helpers on top of Prawn. In Ruby on Rails.
118
128
  test_files:
119
129
  - spec/dummy/.gitignore
@@ -135,4 +145,3 @@ test_files:
135
145
  - spec/dummy/lib/assets/.gitkeep
136
146
  - spec/dummy/script/rails
137
147
  - spec/integration_spec.rb
138
- has_rdoc: