Skip to content

Commit

Permalink
added support for HTTPS in dlbase
Browse files Browse the repository at this point in the history
  • Loading branch information
geraldb committed Feb 6, 2011
1 parent a5802d4 commit cfc4f80
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/slideshow.rb
Expand Up @@ -55,7 +55,7 @@

module Slideshow

VERSION = '0.9.8'
VERSION = '0.9.9'

# version string for generator meta tag (includes ruby version)
def Slideshow.generator
Expand Down
4 changes: 2 additions & 2 deletions lib/slideshow/fetch.rb
Expand Up @@ -105,7 +105,7 @@ def fetch_slideshow_templates
# src = 'http://github.com/geraldb/sandbox/raw/13d4fec0908fbfcc456b74dfe2f88621614b5244/s5blank/s5blank.txt'
uri = URI.parse( src )

logger.debug "host: #{uri.host}, port: #{uri.port}, path: #{uri.path}"
logger.debug "scheme: #{uri.scheme}, host: #{uri.host}, port: #{uri.port}, path: #{uri.path}"

dirname = File.dirname( uri.path )
basename = File.basename( uri.path, '.*' ) # e.g. fullerscreen (without extension)
Expand All @@ -114,7 +114,7 @@ def fetch_slideshow_templates
logger.debug "dirname: #{dirname}"
logger.debug "basename: #{basename}, filename: #{filename}"

dlbase = "http://#{uri.host}:#{uri.port}#{dirname}"
dlbase = "#{uri.scheme}://#{uri.host}:#{uri.port}#{dirname}"
pkgpath = File.expand_path( "#{config_dir}/templates/#{basename}" )

logger.debug "dlpath: #{dlbase}"
Expand Down

0 comments on commit cfc4f80

Please sign in to comment.