golf_handicap 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/golf_handicap +1 -1
- data/src/Handicap.rb +3 -0
- metadata +1 -3
- data/src/MyClass.rb +0 -15
- data/src/glade/MyClass.glade +0 -36
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a0f4b40555fb323feb4bc3f356c96b4ca4df470a
|
4
|
+
data.tar.gz: 4d8d1f5f10f1dd2c4c330e0a4d93716f7f499914
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 957ed734cbf66c832c64b20c5c4ef584323aa2d6c4bb53b0acf9f176060d42512c35b806b15494229a51738d46090e80c7e64d045243ddcaa314c60f4c1e766b
|
7
|
+
data.tar.gz: e3e68ea31922aec60505a4e4ad2a981d8cceff00a1db18f62b2820c60a0e0d21232c7760167602e19bbd4e40a8907be6ac85db1ac81c787872c3e63fccff0f29
|
data/golf_handicap
CHANGED
@@ -5,7 +5,7 @@ require "vrlib"
|
|
5
5
|
# from require_all gem:
|
6
6
|
require_rel 'src/'
|
7
7
|
|
8
|
-
$MAIN = VR::load_yaml(Handicap, File.expand_path("~/visualruby/
|
8
|
+
$MAIN = VR::load_yaml(Handicap, File.expand_path("~/visualruby/golf_handicap/golf_handicap.yaml"))
|
9
9
|
|
10
10
|
$MAIN.show_glade()
|
11
11
|
|
data/src/Handicap.rb
CHANGED
@@ -55,6 +55,8 @@ class Handicap
|
|
55
55
|
end
|
56
56
|
end
|
57
57
|
|
58
|
+
|
59
|
+
|
58
60
|
def update_handicaps
|
59
61
|
@scores.each_index do |i|
|
60
62
|
fill_handicap(@scores[@scores.size-i-1..@scores.size-1])
|
@@ -101,6 +103,7 @@ class Handicap
|
|
101
103
|
def buttonEditScore__clicked(*a)
|
102
104
|
return unless row = @view.selected_rows.first
|
103
105
|
row[:diff].show_glade
|
106
|
+
@scores.sort! { |x,y| y.date <=> x.date }
|
104
107
|
refresh
|
105
108
|
end
|
106
109
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: golf_handicap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Cunningham
|
@@ -49,10 +49,8 @@ extra_rdoc_files: []
|
|
49
49
|
files:
|
50
50
|
- "./golf_handicap"
|
51
51
|
- src/Handicap.rb
|
52
|
-
- src/MyClass.rb
|
53
52
|
- src/Score.rb
|
54
53
|
- src/glade/Handicap.glade
|
55
|
-
- src/glade/MyClass.glade
|
56
54
|
- src/glade/Score.glade
|
57
55
|
homepage: http://visualruby.net/
|
58
56
|
licenses: []
|
data/src/MyClass.rb
DELETED
data/src/glade/MyClass.glade
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<!-- Generated with glade 3.16.1 -->
|
3
|
-
<interface>
|
4
|
-
<requires lib="gtk+" version="3.0"/>
|
5
|
-
<object class="GtkWindow" id="window1">
|
6
|
-
<property name="can_focus">False</property>
|
7
|
-
<property name="window_position">center</property>
|
8
|
-
<child>
|
9
|
-
<object class="GtkButtonBox" id="buttonbox1">
|
10
|
-
<property name="visible">True</property>
|
11
|
-
<property name="can_focus">False</property>
|
12
|
-
<property name="halign">center</property>
|
13
|
-
<property name="valign">center</property>
|
14
|
-
<property name="margin_left">50</property>
|
15
|
-
<property name="margin_right">50</property>
|
16
|
-
<property name="margin_top">50</property>
|
17
|
-
<property name="margin_bottom">50</property>
|
18
|
-
<property name="orientation">vertical</property>
|
19
|
-
<property name="layout_style">start</property>
|
20
|
-
<child>
|
21
|
-
<object class="GtkButton" id="button1">
|
22
|
-
<property name="label" translatable="yes">button</property>
|
23
|
-
<property name="visible">True</property>
|
24
|
-
<property name="can_focus">True</property>
|
25
|
-
<property name="receives_default">True</property>
|
26
|
-
</object>
|
27
|
-
<packing>
|
28
|
-
<property name="expand">True</property>
|
29
|
-
<property name="fill">True</property>
|
30
|
-
<property name="position">0</property>
|
31
|
-
</packing>
|
32
|
-
</child>
|
33
|
-
</object>
|
34
|
-
</child>
|
35
|
-
</object>
|
36
|
-
</interface>
|