prawnto 0.0.1 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -24,9 +24,10 @@ end
24
24
 
25
25
  PKG_FILES = FileList[ '[a-zA-Z]*', 'lib/**/*', 'test/*', 'rails/*' ]
26
26
 
27
+ require 'lib/prawnto.rb'
27
28
  spec = Gem::Specification.new do |s|
28
29
  s.name = "prawnto"
29
- s.version = "0.0.1"
30
+ s.version = Prawnto::VERSION
30
31
  s.author = "smecsia"
31
32
  s.email = "smecsia@gmail.com"
32
33
  #s.homepage = ""
@@ -2,6 +2,7 @@ $:.unshift(File.dirname(__FILE__)) unless
2
2
  $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
3
3
 
4
4
  module Prawnto
5
+ VERSION='0.0.3'
5
6
  autoload :ActionControllerMixin, 'prawnto/action_controller_mixin'
6
7
  autoload :ActionViewMixin, 'prawnto/action_view_mixin'
7
8
  module TemplateHandlers
@@ -31,7 +31,8 @@ module Prawnto
31
31
 
32
32
  # added to make ie happy with ssl pdf's (per naisayer)
33
33
  def ssl_request?
34
- @controller.request.env['SERVER_PROTOCOL'].downcase == "https"
34
+ protocol = @controller.request.env['SERVER_PROTOCOL']
35
+ protocol && protocol.downcase == "https"
35
36
  end
36
37
  memoize :ssl_request?
37
38
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prawnto
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - smecsia
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-03-17 00:00:00 +03:00
12
+ date: 2010-09-13 00:00:00 +04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency