wads 0.1.3 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +11 -0
- data/data/sample_graph.csv +11 -0
- data/lib/wads/app.rb +40 -332
- data/lib/wads/data_structures.rb +236 -19
- data/lib/wads/textinput.rb +20 -14
- data/lib/wads/version.rb +1 -1
- data/lib/wads/widgets.rb +2142 -212
- data/lib/wads.rb +1 -1
- data/media/CircleAlpha.png +0 -0
- data/media/CircleAqua.png +0 -0
- data/media/CircleBlue.png +0 -0
- data/media/CircleGray.png +0 -0
- data/media/CircleGreen.png +0 -0
- data/media/CirclePurple.png +0 -0
- data/media/CircleRed.png +0 -0
- data/media/CircleWhite.png +0 -0
- data/media/CircleYellow.png +0 -0
- data/media/SampleGraph.png +0 -0
- data/media/WadsScreenshot.png +0 -0
- data/run-graph +3 -0
- data/run-star-wars +3 -0
- data/run-stocks +3 -0
- data/run-theme-test +3 -0
- data/samples/basic_gosu_with_graph_widget.rb +66 -0
- data/samples/graph.rb +72 -0
- data/samples/star_wars.rb +112 -0
- data/samples/stocks.rb +126 -0
- data/samples/theme_test.rb +256 -0
- metadata +22 -5
- data/run-sample-app +0 -3
- data/sample_app.rb +0 -64
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wads
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- dbroemme
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-09
|
11
|
+
date: 2021-10-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gosu
|
@@ -69,6 +69,7 @@ files:
|
|
69
69
|
- bin/setup
|
70
70
|
- data/NASDAQ.csv
|
71
71
|
- data/Pick4_12_21_2020.txt
|
72
|
+
- data/sample_graph.csv
|
72
73
|
- data/starwars-episode-4-interactions.json
|
73
74
|
- lib/wads.rb
|
74
75
|
- lib/wads/app.rb
|
@@ -77,11 +78,27 @@ files:
|
|
77
78
|
- lib/wads/version.rb
|
78
79
|
- lib/wads/widgets.rb
|
79
80
|
- media/Banner.png
|
81
|
+
- media/CircleAlpha.png
|
82
|
+
- media/CircleAqua.png
|
83
|
+
- media/CircleBlue.png
|
84
|
+
- media/CircleGray.png
|
85
|
+
- media/CircleGreen.png
|
86
|
+
- media/CirclePurple.png
|
87
|
+
- media/CircleRed.png
|
88
|
+
- media/CircleWhite.png
|
89
|
+
- media/CircleYellow.png
|
80
90
|
- media/SampleGraph.png
|
81
91
|
- media/StocksSample.png
|
82
92
|
- media/WadsScreenshot.png
|
83
|
-
- run-
|
84
|
-
-
|
93
|
+
- run-graph
|
94
|
+
- run-star-wars
|
95
|
+
- run-stocks
|
96
|
+
- run-theme-test
|
97
|
+
- samples/basic_gosu_with_graph_widget.rb
|
98
|
+
- samples/graph.rb
|
99
|
+
- samples/star_wars.rb
|
100
|
+
- samples/stocks.rb
|
101
|
+
- samples/theme_test.rb
|
85
102
|
- wads.gemspec
|
86
103
|
homepage: https://github.com/dbroemme/ruby-wads
|
87
104
|
licenses: []
|
@@ -104,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
104
121
|
- !ruby/object:Gem::Version
|
105
122
|
version: '0'
|
106
123
|
requirements: []
|
107
|
-
rubygems_version: 3.2.
|
124
|
+
rubygems_version: 3.2.22
|
108
125
|
signing_key:
|
109
126
|
specification_version: 4
|
110
127
|
summary: Simple, easy to use data structure classes and Gosu widgets
|
data/run-sample-app
DELETED
data/sample_app.rb
DELETED
@@ -1,64 +0,0 @@
|
|
1
|
-
require_relative "lib/wads/app"
|
2
|
-
require 'tty-option'
|
3
|
-
|
4
|
-
class SampleAppCommand
|
5
|
-
include TTY::Option
|
6
|
-
|
7
|
-
usage do
|
8
|
-
program "run-sample-app"
|
9
|
-
|
10
|
-
command ""
|
11
|
-
|
12
|
-
example <<~EOS
|
13
|
-
Run the sample app to analyze stock market data in gui mode
|
14
|
-
$ ./run-sample-app -s -g
|
15
|
-
EOS
|
16
|
-
|
17
|
-
end
|
18
|
-
|
19
|
-
flag :help do
|
20
|
-
short "-h"
|
21
|
-
long "--help"
|
22
|
-
desc "Print usage"
|
23
|
-
end
|
24
|
-
|
25
|
-
flag :stocks do
|
26
|
-
short "-s"
|
27
|
-
long "--stocks"
|
28
|
-
desc "Run sample stocks analysis"
|
29
|
-
end
|
30
|
-
|
31
|
-
flag :lottery do
|
32
|
-
short "-l"
|
33
|
-
long "--lottery"
|
34
|
-
desc "Run sample analysis of lottery numbers"
|
35
|
-
end
|
36
|
-
|
37
|
-
flag :jedi do
|
38
|
-
short "-j"
|
39
|
-
long "--jedi"
|
40
|
-
desc "Run sample analysis of interactions between Star Wars"
|
41
|
-
end
|
42
|
-
|
43
|
-
flag :graph do
|
44
|
-
short "-g"
|
45
|
-
long "--graph"
|
46
|
-
desc "Run a graph test"
|
47
|
-
end
|
48
|
-
|
49
|
-
flag :text do
|
50
|
-
short "-t"
|
51
|
-
long "--text"
|
52
|
-
desc "Display text only output"
|
53
|
-
end
|
54
|
-
|
55
|
-
def run
|
56
|
-
if params[:help]
|
57
|
-
print help
|
58
|
-
exit
|
59
|
-
end
|
60
|
-
params.to_h
|
61
|
-
end
|
62
|
-
end
|
63
|
-
|
64
|
-
WadsSampleApp.new.parse_opts_and_run
|