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 +1 -1
- data/bin/kiss +1 -1
- data/data/scaffold.tgz +0 -0
- data/lib/kiss/action.rb +1 -1
- data/lib/kiss/ext/core.rb +1 -1
- data/lib/kiss/form/field.rb +527 -110
- data/lib/kiss/form.rb +165 -88
- data/lib/kiss.rb +3 -3
- metadata +3 -5
- data/lib/kiss/form/field_types.rb +0 -239
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
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
|
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
|
-
|
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