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.
Files changed (4) hide show
  1. checksums.yaml +8 -8
  2. data/README.md +2 -0
  3. data/lib/gui.rb +15 -30
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NGE3ZTAyYjllZGUyZmQ4NThkYmU1N2FlNDc0NWQ3Y2I4MTNjMWNiNg==
4
+ ZGFhMDUzODQ0MTZkMWY4ZTE4MzYwNWViZThmY2I2MmZkNzU0ZjRmYg==
5
5
  data.tar.gz: !binary |-
6
- NzM5YjViNDI3MDQzYTk1MGQyMGNmMDZhZDBlNzVhNzM0MzQ1Y2M4Ng==
6
+ M2U3MmRjMjc2MjNhYjYwM2RhMzJiNDBkOTcyNjk2NjQyOTkxMmJiOQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZjRlNTRiM2ZjYzBkNmU4MjhkYTlhMGE3MDhmZjJiYzhmM2Q3N2Q2NTc4OGE4
10
- ZTY2NWNhYTg5NTNhNDA1YTczZjNlNzkzOWU4ODQzMWQyMTFlOTI1Njg2MTFk
11
- ZThkYmNlZTE2OGUxNmU3MmU2MmYzYjIzNTcxZGM1YTkxMWFlYzA=
9
+ NDRmMjViN2Y2YTZlYWUwMWRjZjExNmJlNTI3NWYzODRkMTM2MTU1YzJiMTI2
10
+ OGRlZWRhODc5MmIwZmZlNjg0MDFlZTIwNGQwM2QwM2MyMzNlNjUxNGYyOGRj
11
+ MWEwZGM1YTJmZDM5MThhYzcxM2QyNTZhOGVhZGYxNjZjMmQyMjg=
12
12
  data.tar.gz: !binary |-
13
- MjkwODExMmYzNzcxYjgyNTA2MDQ2YWQyMzdlOGExM2U0YTlmZTRiNTE3NDky
14
- N2M0OWQzZmQ1NWM0ZTM3Mjk1YTZiNWFlODkwOTkzNmE5MjkxNzI1NzQzMjM4
15
- ZGRkY2M0NmVmZGI5NmZjOTY1MjI5ODA4OTY2MzVlOWVjMmYxYzU=
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
- USAGE:
108
- x, y are the row number (x) and column number (y) in grid geometry
109
- 1. Gui.root: no options
110
- 2. Gui.entry($var1, x, y) : variable that contains entry
111
- Gui.entry($var1, x, y) : variable that contains entry
112
- 3. Gui.textfield(h, w, c1, c2, x, y) : h=height, w=width, c1=background, c2=foreground
113
- 4. Gui.button(tx1, m, x, y) : tx1= text on button, m= method triggered by button.
114
- Method should be written in the active script. e.g.
115
- def m
116
- z = $var1+ $var2
117
- $textfield.delete(1.0, 'end')
118
- $textfield.insert(1.0, '#{z}')
119
- end
120
- 5. Gui.label(tx2, x, y): tx2 = text on label
121
- 6. Gui.show :Tk.mainloop
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
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cf_conv
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sabry Fattah