Skip to content

Commit

Permalink
Merge pull request #86 from jekyll/param-fixe
Browse files Browse the repository at this point in the history
Fix fetching of parameters from options hash
  • Loading branch information
parkr committed Nov 18, 2013
2 parents 32c6d7a + cc47492 commit 6b5fb77
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/jekyll-import/importers/rss.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def self.require_deps
#
# Returns nothing.
def self.process(options)
source = options.fetch('file')
source = options.fetch('source')

content = ""
open(source) { |s| content = s.read }
Expand Down
2 changes: 1 addition & 1 deletion lib/jekyll-import/importers/s9y.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def self.require_deps
end

def self.process(options)
source = options.fetch(:source)
source = options.fetch('source')

FileUtils.mkdir_p("_posts")

Expand Down
2 changes: 1 addition & 1 deletion lib/jekyll-import/importers/textpattern.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def self.specify_options(c)
def self.process(options)
dbname = options.fetch('dbname')
user = options.fetch('user')
pass = options.fetch('password')
pass = options.fetch('password', "")
host = options.fetch('host', "localhost")

db = Sequel.mysql(dbname, :user => user, :password => pass, :host => host, :encoding => 'utf8')
Expand Down

0 comments on commit 6b5fb77

Please sign in to comment.