wisepdf 1.2.4 → 1.2.5

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,12 +1,10 @@
1
1
  source "http://rubygems.org"
2
2
 
3
- gem 'rails', '>=3.0.0'
4
-
5
3
  group :development, :test do
6
4
  gem 'sqlite3'
7
5
  gem 'wkhtmltopdf-binary'
8
6
 
9
7
  gem "shoulda", ">= 0"
10
- gem "bundler", "~> 1.0.0"
8
+ gem "bundler", ">= 1.0.0"
11
9
  gem "jeweler", "~> 1.6.4"
12
10
  end
data/Gemfile.lock CHANGED
@@ -1,102 +1,26 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
- actionmailer (3.2.3)
5
- actionpack (= 3.2.3)
6
- mail (~> 2.4.4)
7
- actionpack (3.2.3)
8
- activemodel (= 3.2.3)
9
- activesupport (= 3.2.3)
10
- builder (~> 3.0.0)
11
- erubis (~> 2.7.0)
12
- journey (~> 1.0.1)
13
- rack (~> 1.4.0)
14
- rack-cache (~> 1.2)
15
- rack-test (~> 0.6.1)
16
- sprockets (~> 2.1.2)
17
- activemodel (3.2.3)
18
- activesupport (= 3.2.3)
19
- builder (~> 3.0.0)
20
- activerecord (3.2.3)
21
- activemodel (= 3.2.3)
22
- activesupport (= 3.2.3)
23
- arel (~> 3.0.2)
24
- tzinfo (~> 0.3.29)
25
- activeresource (3.2.3)
26
- activemodel (= 3.2.3)
27
- activesupport (= 3.2.3)
28
- activesupport (3.2.3)
29
- i18n (~> 0.6)
30
- multi_json (~> 1.0)
31
- arel (3.0.2)
32
- builder (3.0.0)
33
- erubis (2.7.0)
34
4
  git (1.2.5)
35
- hike (1.2.1)
36
- i18n (0.6.0)
37
5
  jeweler (1.6.4)
38
6
  bundler (~> 1.0)
39
7
  git (>= 1.2.5)
40
8
  rake
41
- journey (1.0.3)
42
- json (1.6.6)
43
- mail (2.4.4)
44
- i18n (>= 0.4.0)
45
- mime-types (~> 1.16)
46
- treetop (~> 1.4.8)
47
- mime-types (1.18)
48
- multi_json (1.3.2)
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.1)
56
- rack (>= 1.0)
57
- rails (3.2.3)
58
- actionmailer (= 3.2.3)
59
- actionpack (= 3.2.3)
60
- activerecord (= 3.2.3)
61
- activeresource (= 3.2.3)
62
- activesupport (= 3.2.3)
63
- bundler (~> 1.0)
64
- railties (= 3.2.3)
65
- railties (3.2.3)
66
- actionpack (= 3.2.3)
67
- activesupport (= 3.2.3)
68
- rack-ssl (~> 1.3.2)
69
- rake (>= 0.8.7)
70
- rdoc (~> 3.4)
71
- thor (~> 0.14.6)
72
9
  rake (0.9.2.2)
73
- rdoc (3.12)
74
- json (~> 1.4)
75
10
  shoulda (3.0.1)
76
11
  shoulda-context (~> 1.0.0)
77
12
  shoulda-matchers (~> 1.0.0)
78
13
  shoulda-context (1.0.0)
79
14
  shoulda-matchers (1.0.0)
80
- sprockets (2.1.2)
81
- hike (~> 1.2)
82
- rack (~> 1.0)
83
- tilt (~> 1.1, != 1.3.0)
84
15
  sqlite3 (1.3.6)
85
- thor (0.14.6)
86
- tilt (1.3.3)
87
- treetop (1.4.10)
88
- polyglot
89
- polyglot (>= 0.3.1)
90
- tzinfo (0.3.33)
91
16
  wkhtmltopdf-binary (0.9.5.3)
92
17
 
93
18
  PLATFORMS
94
19
  ruby
95
20
 
96
21
  DEPENDENCIES
97
- bundler (~> 1.0.0)
22
+ bundler (>= 1.0.0)
98
23
  jeweler (~> 1.6.4)
99
- rails (>= 3.0.0)
100
24
  shoulda
101
25
  sqlite3
102
26
  wkhtmltopdf-binary
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.4
1
+ 1.2.5
@@ -0,0 +1,9 @@
1
+ class Object
2
+ def blank?
3
+ !self
4
+ end unless method_defined? :blank?
5
+
6
+ def present?
7
+ !blank?
8
+ end unless method_defined? :present?
9
+ end
data/lib/wisepdf.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  WISEPDF_PATH = File.dirname(__FILE__) + "/wisepdf/"
2
2
 
3
+ require WISEPDF_PATH + 'ext'
3
4
  require WISEPDF_PATH + 'errors'
4
5
  require WISEPDF_PATH + 'configuration'
5
6
  require WISEPDF_PATH + 'parser'
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.4"
8
+ s.version = "1.2.5"
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-06-24"
12
+ s.date = "2012-08-02"
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 = [
@@ -29,6 +29,7 @@ Gem::Specification.new do |s|
29
29
  "lib/wisepdf.rb",
30
30
  "lib/wisepdf/configuration.rb",
31
31
  "lib/wisepdf/errors.rb",
32
+ "lib/wisepdf/ext.rb",
32
33
  "lib/wisepdf/helper.rb",
33
34
  "lib/wisepdf/parser.rb",
34
35
  "lib/wisepdf/rails.rb",
@@ -94,33 +95,30 @@ Gem::Specification.new do |s|
94
95
  s.homepage = "http://github.com/igor-alexandrov/wisepdf"
95
96
  s.licenses = ["MIT"]
96
97
  s.require_paths = ["lib"]
97
- s.rubygems_version = "1.8.15"
98
+ s.rubygems_version = "1.8.24"
98
99
  s.summary = "wkhtmltopdf for Rails done right"
99
100
 
100
101
  if s.respond_to? :specification_version then
101
102
  s.specification_version = 3
102
103
 
103
104
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
104
- s.add_runtime_dependency(%q<rails>, [">= 3.0.0"])
105
105
  s.add_development_dependency(%q<sqlite3>, [">= 0"])
106
106
  s.add_development_dependency(%q<wkhtmltopdf-binary>, [">= 0"])
107
107
  s.add_development_dependency(%q<shoulda>, [">= 0"])
108
- s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
108
+ s.add_development_dependency(%q<bundler>, [">= 1.0.0"])
109
109
  s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
110
110
  else
111
- s.add_dependency(%q<rails>, [">= 3.0.0"])
112
111
  s.add_dependency(%q<sqlite3>, [">= 0"])
113
112
  s.add_dependency(%q<wkhtmltopdf-binary>, [">= 0"])
114
113
  s.add_dependency(%q<shoulda>, [">= 0"])
115
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
114
+ s.add_dependency(%q<bundler>, [">= 1.0.0"])
116
115
  s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
117
116
  end
118
117
  else
119
- s.add_dependency(%q<rails>, [">= 3.0.0"])
120
118
  s.add_dependency(%q<sqlite3>, [">= 0"])
121
119
  s.add_dependency(%q<wkhtmltopdf-binary>, [">= 0"])
122
120
  s.add_dependency(%q<shoulda>, [">= 0"])
123
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
121
+ s.add_dependency(%q<bundler>, [">= 1.0.0"])
124
122
  s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
125
123
  end
126
124
  end
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.4
4
+ version: 1.2.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,33 +9,27 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-24 00:00:00.000000000 Z
12
+ date: 2012-08-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: rails
16
- requirement: &70231596495140 !ruby/object:Gem::Requirement
15
+ name: sqlite3
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
- version: 3.0.0
22
- type: :runtime
21
+ version: '0'
22
+ type: :development
23
23
  prerelease: false
24
- version_requirements: *70231596495140
25
- - !ruby/object:Gem::Dependency
26
- name: sqlite3
27
- requirement: &70231596494500 !ruby/object:Gem::Requirement
24
+ version_requirements: !ruby/object:Gem::Requirement
28
25
  none: false
29
26
  requirements:
30
27
  - - ! '>='
31
28
  - !ruby/object:Gem::Version
32
29
  version: '0'
33
- type: :development
34
- prerelease: false
35
- version_requirements: *70231596494500
36
30
  - !ruby/object:Gem::Dependency
37
31
  name: wkhtmltopdf-binary
38
- requirement: &70231596493780 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
39
33
  none: false
40
34
  requirements:
41
35
  - - ! '>='
@@ -43,10 +37,15 @@ dependencies:
43
37
  version: '0'
44
38
  type: :development
45
39
  prerelease: false
46
- version_requirements: *70231596493780
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
47
46
  - !ruby/object:Gem::Dependency
48
47
  name: shoulda
49
- requirement: &70231596493080 !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
50
49
  none: false
51
50
  requirements:
52
51
  - - ! '>='
@@ -54,21 +53,31 @@ dependencies:
54
53
  version: '0'
55
54
  type: :development
56
55
  prerelease: false
57
- version_requirements: *70231596493080
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
58
62
  - !ruby/object:Gem::Dependency
59
63
  name: bundler
60
- requirement: &70231596492380 !ruby/object:Gem::Requirement
64
+ requirement: !ruby/object:Gem::Requirement
61
65
  none: false
62
66
  requirements:
63
- - - ~>
67
+ - - ! '>='
64
68
  - !ruby/object:Gem::Version
65
69
  version: 1.0.0
66
70
  type: :development
67
71
  prerelease: false
68
- version_requirements: *70231596492380
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: 1.0.0
69
78
  - !ruby/object:Gem::Dependency
70
79
  name: jeweler
71
- requirement: &70231596491600 !ruby/object:Gem::Requirement
80
+ requirement: !ruby/object:Gem::Requirement
72
81
  none: false
73
82
  requirements:
74
83
  - - ~>
@@ -76,7 +85,12 @@ dependencies:
76
85
  version: 1.6.4
77
86
  type: :development
78
87
  prerelease: false
79
- version_requirements: *70231596491600
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ~>
92
+ - !ruby/object:Gem::Version
93
+ version: 1.6.4
80
94
  description: wisepdf uses the shell utility wkhtmltopdf to serve a PDF file to a user
81
95
  from HTML. In other words, rather than dealing with a PDF generation DSL of some
82
96
  sort, you simply write an HTML view as you would normally, and let pdf take care
@@ -100,6 +114,7 @@ files:
100
114
  - lib/wisepdf.rb
101
115
  - lib/wisepdf/configuration.rb
102
116
  - lib/wisepdf/errors.rb
117
+ - lib/wisepdf/ext.rb
103
118
  - lib/wisepdf/helper.rb
104
119
  - lib/wisepdf/parser.rb
105
120
  - lib/wisepdf/rails.rb
@@ -176,7 +191,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
176
191
  version: '0'
177
192
  segments:
178
193
  - 0
179
- hash: 848368753025123795
194
+ hash: 355350648860510222
180
195
  required_rubygems_version: !ruby/object:Gem::Requirement
181
196
  none: false
182
197
  requirements:
@@ -185,7 +200,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
185
200
  version: '0'
186
201
  requirements: []
187
202
  rubyforge_project:
188
- rubygems_version: 1.8.15
203
+ rubygems_version: 1.8.24
189
204
  signing_key:
190
205
  specification_version: 3
191
206
  summary: wkhtmltopdf for Rails done right