kiss 1.7.4 → 1.8

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.7.4
1
+ 1.8
data/bin/kiss CHANGED
@@ -129,7 +129,7 @@ def open_db_prompt
129
129
  puts 'The Kiss command-line tool supports only MySQL databases.'
130
130
  end
131
131
 
132
- Kernel.exec %Q(mysql -u #{database_config.user} #{"-p#{database_config.password}".inspect} #{database_config.database})
132
+ Kernel.exec('mysql', '-u', database_config.user, "-p#{database_config.password}", database_config.database)
133
133
  end
134
134
 
135
135
  def load_kiss_project
data/data/scaffold.tgz CHANGED
Binary file
data/lib/kiss/action.rb CHANGED
@@ -486,7 +486,7 @@ class Kiss
486
486
  # Return string result from rendering specified string or template options.
487
487
  def render_to_string(options)
488
488
  if options.is_a?(String)
489
- return options
489
+ options = {:template => options}
490
490
  elsif options[:text]
491
491
  return options[:text].to_s
492
492
  end
data/lib/kiss/ext/core.rb CHANGED
@@ -610,7 +610,7 @@ class String
610
610
  def headercase
611
611
  original_sequel_underscore.capitalize.gsub('_', '-')
612
612
  end
613
- alias_method :headerize, :titlecase
613
+ alias_method :headerize, :headercase
614
614
 
615
615
  def adjective
616
616
  gsub(/\s/, '-')