lipsiadmin 5.0.4 → 5.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ 2009-09-31
2
+ * Bump to 5.0.5
3
+ * Small fix to render_pdf
4
+
1
5
  2009-09-07
2
6
  * Bump to 5.0.4
3
7
  * Fix for monthnames in locale.js
@@ -59,7 +59,7 @@ module Lipsiadmin
59
59
  ext = File.exist?("#{view_path}/#{template}.html.erb") ? "erb" : "haml"
60
60
 
61
61
  # encode the template
62
- input = encode_entities(render(:template => "#{view_path}/#{template}.html.#{ext}"))
62
+ input = encode_entities(render(:template => "#{view_path}/#{template}.html.#{ext}", :layout => false))
63
63
 
64
64
  # search for stylesheet links and make their paths absolute.
65
65
  input.gsub!('<link href="/javascripts', '<link href="' + view_path + '/../../../public/javascripts')
@@ -32,7 +32,7 @@ module Lipsiadmin
32
32
 
33
33
  # Returns the url of the attachment, optionally you can pass the style like url(:thumb)
34
34
  def url(style=nil)
35
- file.to_s(style)
35
+ file.url(style)
36
36
  end
37
37
 
38
38
  # Returns a <tt>Lipsiadmin::Attachment::Attach</tt> instance
data/lib/version.rb CHANGED
@@ -2,7 +2,7 @@ module Lipsiadmin
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 5
4
4
  MINOR = 0
5
- TINY = 4
5
+ TINY = 5
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lipsiadmin
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.4
4
+ version: 5.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Davide D'Agostino
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-08-08 00:00:00 +02:00
12
+ date: 2009-08-31 00:00:00 +02:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency