wisepdf 1.2.5 → 1.2.6

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -7,4 +7,6 @@ group :development, :test do
7
7
  gem "shoulda", ">= 0"
8
8
  gem "bundler", ">= 1.0.0"
9
9
  gem "jeweler", "~> 1.6.4"
10
+
11
+ gem 'rails', '>=3.0.0'
10
12
  end
data/Gemfile.lock CHANGED
@@ -1,19 +1,96 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
+ actionmailer (3.2.9)
5
+ actionpack (= 3.2.9)
6
+ mail (~> 2.4.4)
7
+ actionpack (3.2.9)
8
+ activemodel (= 3.2.9)
9
+ activesupport (= 3.2.9)
10
+ builder (~> 3.0.0)
11
+ erubis (~> 2.7.0)
12
+ journey (~> 1.0.4)
13
+ rack (~> 1.4.0)
14
+ rack-cache (~> 1.2)
15
+ rack-test (~> 0.6.1)
16
+ sprockets (~> 2.2.1)
17
+ activemodel (3.2.9)
18
+ activesupport (= 3.2.9)
19
+ builder (~> 3.0.0)
20
+ activerecord (3.2.9)
21
+ activemodel (= 3.2.9)
22
+ activesupport (= 3.2.9)
23
+ arel (~> 3.0.2)
24
+ tzinfo (~> 0.3.29)
25
+ activeresource (3.2.9)
26
+ activemodel (= 3.2.9)
27
+ activesupport (= 3.2.9)
28
+ activesupport (3.2.9)
29
+ i18n (~> 0.6)
30
+ multi_json (~> 1.0)
31
+ arel (3.0.2)
32
+ builder (3.0.4)
33
+ erubis (2.7.0)
4
34
  git (1.2.5)
35
+ hike (1.2.1)
36
+ i18n (0.6.1)
5
37
  jeweler (1.6.4)
6
38
  bundler (~> 1.0)
7
39
  git (>= 1.2.5)
8
40
  rake
9
- rake (0.9.2.2)
10
- shoulda (3.0.1)
11
- shoulda-context (~> 1.0.0)
12
- shoulda-matchers (~> 1.0.0)
13
- shoulda-context (1.0.0)
14
- shoulda-matchers (1.0.0)
41
+ journey (1.0.4)
42
+ json (1.7.5)
43
+ mail (2.4.4)
44
+ i18n (>= 0.4.0)
45
+ mime-types (~> 1.16)
46
+ treetop (~> 1.4.8)
47
+ mime-types (1.19)
48
+ multi_json (1.3.7)
49
+ polyglot (0.3.3)
50
+ rack (1.4.1)
51
+ rack-cache (1.2)
52
+ rack (>= 0.4)
53
+ rack-ssl (1.3.2)
54
+ rack
55
+ rack-test (0.6.2)
56
+ rack (>= 1.0)
57
+ rails (3.2.9)
58
+ actionmailer (= 3.2.9)
59
+ actionpack (= 3.2.9)
60
+ activerecord (= 3.2.9)
61
+ activeresource (= 3.2.9)
62
+ activesupport (= 3.2.9)
63
+ bundler (~> 1.0)
64
+ railties (= 3.2.9)
65
+ railties (3.2.9)
66
+ actionpack (= 3.2.9)
67
+ activesupport (= 3.2.9)
68
+ rack-ssl (~> 1.3.2)
69
+ rake (>= 0.8.7)
70
+ rdoc (~> 3.4)
71
+ thor (>= 0.14.6, < 2.0)
72
+ rake (10.0.2)
73
+ rdoc (3.12)
74
+ json (~> 1.4)
75
+ shoulda (3.3.2)
76
+ shoulda-context (~> 1.0.1)
77
+ shoulda-matchers (~> 1.4.1)
78
+ shoulda-context (1.0.1)
79
+ shoulda-matchers (1.4.1)
80
+ activesupport (>= 3.0.0)
81
+ sprockets (2.2.2)
82
+ hike (~> 1.2)
83
+ multi_json (~> 1.0)
84
+ rack (~> 1.0)
85
+ tilt (~> 1.1, != 1.3.0)
15
86
  sqlite3 (1.3.6)
16
- wkhtmltopdf-binary (0.9.5.3)
87
+ thor (0.16.0)
88
+ tilt (1.3.3)
89
+ treetop (1.4.12)
90
+ polyglot
91
+ polyglot (>= 0.3.1)
92
+ tzinfo (0.3.35)
93
+ wkhtmltopdf-binary (0.9.9.1)
17
94
 
18
95
  PLATFORMS
19
96
  ruby
@@ -21,6 +98,7 @@ PLATFORMS
21
98
  DEPENDENCIES
22
99
  bundler (>= 1.0.0)
23
100
  jeweler (~> 1.6.4)
101
+ rails (>= 3.0.0)
24
102
  shoulda
25
103
  sqlite3
26
104
  wkhtmltopdf-binary
data/README.md CHANGED
@@ -1,4 +1,5 @@
1
1
  [![Build Status](https://secure.travis-ci.org/igor-alexandrov/wisepdf.png)](http://travis-ci.org/igor-alexandrov/wisepdf)
2
+ [![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/igor-alexandrov/wisepdf)
2
3
 
3
4
  # wisepdf
4
5
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.5
1
+ 1.2.6
@@ -41,7 +41,11 @@ module Wisepdf
41
41
  end
42
42
 
43
43
  def wisepdf_image_tag(img, options={})
44
- image_tag "file:///#{::Rails.application.assets.find_asset(img).pathname.to_s}", options
44
+ if File.exists? img
45
+ image_tag "file://#{img}", options
46
+ elsif asset = ::Rails.application.assets.find_asset(img)
47
+ image_tag "file:///#{asset.pathname.to_s}", options
48
+ end
45
49
  end
46
50
 
47
51
  def wisepdf_javascript_tag(*sources)
data/wisepdf.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "wisepdf"
8
- s.version = "1.2.5"
8
+ s.version = "1.2.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Igor Alexandrov"]
12
- s.date = "2012-08-02"
12
+ s.date = "2012-11-28"
13
13
  s.description = "wisepdf uses the shell utility wkhtmltopdf to serve a PDF file to a user from HTML. In other words, rather than dealing with a PDF generation DSL of some sort, you simply write an HTML view as you would normally, and let pdf take care of the hard stuff."
14
14
  s.email = "igor.alexandrov@gmail.com"
15
15
  s.extra_rdoc_files = [
@@ -79,12 +79,6 @@ Gem::Specification.new do |s|
79
79
  "test/dummy/public/javascripts/wisepdf.js",
80
80
  "test/dummy/public/stylesheets/wisepdf.css",
81
81
  "test/dummy/script/rails",
82
- "test/dummy/tmp/cache/assets/CA9/590/sprockets%2F260d19b0714b39b217abfe83309458b7",
83
- "test/dummy/tmp/cache/assets/D13/4A0/sprockets%2Fc857f4fea90e731182fa7000ea6833e9",
84
- "test/dummy/tmp/cache/assets/D1C/0F0/sprockets%2F13dc05c787589dd73a669e0ad23d54e8",
85
- "test/dummy/tmp/cache/assets/D6E/B20/sprockets%2F2669d77f5dd55e82ba092accac21871a",
86
- "test/dummy/tmp/cache/assets/D93/BA0/sprockets%2Fe162e2a148480db4edf41c7ca8a527cb",
87
- "test/dummy/tmp/cache/assets/E1B/1A0/sprockets%2Fbdc3a3ccd7d2f02dddd41712ed4c8e31",
88
82
  "test/helper.rb",
89
83
  "test/helper_assets_test.rb",
90
84
  "test/helper_legacy_test.rb",
@@ -107,12 +101,14 @@ Gem::Specification.new do |s|
107
101
  s.add_development_dependency(%q<shoulda>, [">= 0"])
108
102
  s.add_development_dependency(%q<bundler>, [">= 1.0.0"])
109
103
  s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
104
+ s.add_development_dependency(%q<rails>, [">= 3.0.0"])
110
105
  else
111
106
  s.add_dependency(%q<sqlite3>, [">= 0"])
112
107
  s.add_dependency(%q<wkhtmltopdf-binary>, [">= 0"])
113
108
  s.add_dependency(%q<shoulda>, [">= 0"])
114
109
  s.add_dependency(%q<bundler>, [">= 1.0.0"])
115
110
  s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
111
+ s.add_dependency(%q<rails>, [">= 3.0.0"])
116
112
  end
117
113
  else
118
114
  s.add_dependency(%q<sqlite3>, [">= 0"])
@@ -120,6 +116,7 @@ Gem::Specification.new do |s|
120
116
  s.add_dependency(%q<shoulda>, [">= 0"])
121
117
  s.add_dependency(%q<bundler>, [">= 1.0.0"])
122
118
  s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
119
+ s.add_dependency(%q<rails>, [">= 3.0.0"])
123
120
  end
124
121
  end
125
122
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wisepdf
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.5
4
+ version: 1.2.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-02 00:00:00.000000000 Z
12
+ date: 2012-11-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sqlite3
@@ -91,6 +91,22 @@ dependencies:
91
91
  - - ~>
92
92
  - !ruby/object:Gem::Version
93
93
  version: 1.6.4
94
+ - !ruby/object:Gem::Dependency
95
+ name: rails
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ! '>='
100
+ - !ruby/object:Gem::Version
101
+ version: 3.0.0
102
+ type: :development
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: 3.0.0
94
110
  description: wisepdf uses the shell utility wkhtmltopdf to serve a PDF file to a user
95
111
  from HTML. In other words, rather than dealing with a PDF generation DSL of some
96
112
  sort, you simply write an HTML view as you would normally, and let pdf take care
@@ -164,12 +180,6 @@ files:
164
180
  - test/dummy/public/javascripts/wisepdf.js
165
181
  - test/dummy/public/stylesheets/wisepdf.css
166
182
  - test/dummy/script/rails
167
- - test/dummy/tmp/cache/assets/CA9/590/sprockets%2F260d19b0714b39b217abfe83309458b7
168
- - test/dummy/tmp/cache/assets/D13/4A0/sprockets%2Fc857f4fea90e731182fa7000ea6833e9
169
- - test/dummy/tmp/cache/assets/D1C/0F0/sprockets%2F13dc05c787589dd73a669e0ad23d54e8
170
- - test/dummy/tmp/cache/assets/D6E/B20/sprockets%2F2669d77f5dd55e82ba092accac21871a
171
- - test/dummy/tmp/cache/assets/D93/BA0/sprockets%2Fe162e2a148480db4edf41c7ca8a527cb
172
- - test/dummy/tmp/cache/assets/E1B/1A0/sprockets%2Fbdc3a3ccd7d2f02dddd41712ed4c8e31
173
183
  - test/helper.rb
174
184
  - test/helper_assets_test.rb
175
185
  - test/helper_legacy_test.rb
@@ -191,7 +201,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
191
201
  version: '0'
192
202
  segments:
193
203
  - 0
194
- hash: 355350648860510222
204
+ hash: -4546671269605536200
195
205
  required_rubygems_version: !ruby/object:Gem::Requirement
196
206
  none: false
197
207
  requirements: