ppcurses 0.0.16 → 0.0.17
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/lib/ppcurses/actions/GetDataAction.rb +5 -6
- data/lib/ppcurses/actions/GetIntegerAction.rb +2 -0
- data/test/compositeMenu.rb +1 -1
- data/test/displayMenu.rb +1 -1
- data/test/getBooleanAction.rb +1 -1
- data/test/getDataAction.rb +1 -2
- data/test/getEnumStringAction.rb +1 -1
- data/test/getIntegerAction.rb +1 -1
- data/test/getStringAction.rb +1 -1
- data/test/insertSQLAction.rb +1 -1
- data/test/menuInMenu.rb +1 -1
- metadata +2 -2
@@ -48,7 +48,6 @@ class GetDataAction < BaseAction
|
|
48
48
|
createWindow()
|
49
49
|
echo
|
50
50
|
|
51
|
-
#y = @win.cury + 1
|
52
51
|
@win.setpos(@win.cury,xPadding())
|
53
52
|
|
54
53
|
self.beforeActions()
|
@@ -88,12 +87,12 @@ class GetDataAction < BaseAction
|
|
88
87
|
def promptToChangeData(preparedSQL)
|
89
88
|
self.printLine(preparedSQL)
|
90
89
|
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
90
|
+
proceed = GetBooleanAction.new("Proceed? ")
|
91
|
+
proceed.setParentAction(self)
|
92
|
+
proceed.setWindow(@win)
|
93
|
+
proceed.execute()
|
95
94
|
|
96
|
-
if
|
95
|
+
if proceed.data == "1" then
|
97
96
|
self.printLine("")
|
98
97
|
begin
|
99
98
|
@db.execute preparedSQL
|
data/test/compositeMenu.rb
CHANGED
data/test/displayMenu.rb
CHANGED
data/test/getBooleanAction.rb
CHANGED
data/test/getDataAction.rb
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
3
|
require 'rubygems'
|
4
|
-
|
5
|
-
#require_relative '../lib/ppcurses.rb'
|
4
|
+
require_relative '../lib/ppcurses.rb'
|
6
5
|
|
7
6
|
intAction = PPCurses::GetIntegerAction.new("Input Integer : ");
|
8
7
|
stringAction = PPCurses::GetStringAction.new("Input your name: ");
|
data/test/getEnumStringAction.rb
CHANGED
data/test/getIntegerAction.rb
CHANGED
data/test/getStringAction.rb
CHANGED
data/test/insertSQLAction.rb
CHANGED
data/test/menuInMenu.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ppcurses
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.17
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -49,7 +49,7 @@ homepage: https://github.com/mcormier/ppcurses
|
|
49
49
|
licenses: []
|
50
50
|
post_install_message: ! "\n ( ) ( ) )\n ) ( ) ( (\n ( ) (
|
51
51
|
\ ) )\n _____________\n <_____________> ___\n | |/ _
|
52
|
-
\\\n |
|
52
|
+
\\\n | mmm | | |\n | coffee |_| |\n ___| |\\___/
|
53
53
|
\n / \\___________/ \\\n \\_____________________/\n\n"
|
54
54
|
rdoc_options: []
|
55
55
|
require_paths:
|