cf_conv 0.1.0 → 0.1.1
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.
- checksums.yaml +8 -8
- data/README.md +2 -0
- data/lib/gui.rb +15 -30
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
ZGFhMDUzODQ0MTZkMWY4ZTE4MzYwNWViZThmY2I2MmZkNzU0ZjRmYg==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
M2U3MmRjMjc2MjNhYjYwM2RhMzJiNDBkOTcyNjk2NjQyOTkxMmJiOQ==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
NDRmMjViN2Y2YTZlYWUwMWRjZjExNmJlNTI3NWYzODRkMTM2MTU1YzJiMTI2
|
|
10
|
+
OGRlZWRhODc5MmIwZmZlNjg0MDFlZTIwNGQwM2QwM2MyMzNlNjUxNGYyOGRj
|
|
11
|
+
MWEwZGM1YTJmZDM5MThhYzcxM2QyNTZhOGVhZGYxNjZjMmQyMjg=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
NTVkNWNjNjA3NGM4NmQxODFlZDA1MzM5YTliM2I1NzM1NTMxOGQ0NmUyZjEw
|
|
14
|
+
ZDQyYzJiY2QzZTI5MTgxOTQ4YjcyMzMxNWU4MjgzYzdiMjkyNjVmOTUwYTFl
|
|
15
|
+
MWVhNDBmMjZmMjFkOWI2OWRmYjg1ZjY2Zjc3YjIyZDAwZTRhOTk=
|
data/README.md
CHANGED
|
@@ -8,10 +8,12 @@ install cf_conv yourself as:
|
|
|
8
8
|
## Usage
|
|
9
9
|
|
|
10
10
|
This is a graphical user interface app. Create a ruby file with the following code (notice the backticks):
|
|
11
|
+
|
|
11
12
|
```
|
|
12
13
|
require 'cf_conv'
|
|
13
14
|
`cf-conv`
|
|
14
15
|
|
|
15
16
|
```
|
|
17
|
+
|
|
16
18
|
and save it as "cf.rb"
|
|
17
19
|
Create a desktop shortcut link to this file. When the shortcut link is clicked the app will be launched.
|
data/lib/gui.rb
CHANGED
|
@@ -104,34 +104,19 @@ end
|
|
|
104
104
|
#______________________________________________________________
|
|
105
105
|
#here document to use in Help Window accessed through the menu
|
|
106
106
|
$guide = %q{
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
#______________EXAMPLE___________________
|
|
123
|
-
require_relative 'gui'
|
|
124
|
-
Gui.root
|
|
125
|
-
Gui.menu
|
|
126
|
-
Gui.label("Enter Number", 0, 0)
|
|
127
|
-
Gui.entry($var1, 0, 1)
|
|
128
|
-
Gui.label("Enter Number", 1, 0)
|
|
129
|
-
Gui.entry($var2, 1, 1)
|
|
130
|
-
Gui.textfield(15, 1, "black", "white", 2, 1)
|
|
131
|
-
Gui.button("OK", "m" , 2, 0)
|
|
132
|
-
def m
|
|
133
|
-
$z = $var1 + $var2
|
|
134
|
-
$textfield.insert('end', "#$z")
|
|
135
|
-
end
|
|
136
|
-
Gui.show
|
|
107
|
+
Installation
|
|
108
|
+
=======
|
|
109
|
+
install cf_conv yourself as:
|
|
110
|
+
|
|
111
|
+
$ gem install cf_conv
|
|
112
|
+
|
|
113
|
+
Usage
|
|
114
|
+
====
|
|
115
|
+
This is a graphical user interface app. Create a ruby file with the following code (notice the backticks):
|
|
116
|
+
-------------------------
|
|
117
|
+
require 'cf_conv'
|
|
118
|
+
`cf-conv`
|
|
119
|
+
------------------------
|
|
120
|
+
and save it as "cf.rb"
|
|
121
|
+
Create a desktop shortcut link to this file. When the shortcut link is clicked the app will be launched.
|
|
137
122
|
}
|