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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7ccde674cc31af5b323816de9732c1d4165d5eb9
4
- data.tar.gz: 649c67a4b46dca60a8875d23da686897bb521fe2
3
+ metadata.gz: a0f4b40555fb323feb4bc3f356c96b4ca4df470a
4
+ data.tar.gz: 4d8d1f5f10f1dd2c4c330e0a4d93716f7f499914
5
5
  SHA512:
6
- metadata.gz: 4bebeaa13f1236572525983b977b6ef7ceac857b42d592ab5f666e1b5d62a6b83aab0a1220fb72d76c87f7ba877fe990f13eb598b4630d321f6875894bc464ef
7
- data.tar.gz: 4a33554d6430d1bc6a3dbc5496a2bab19ef2cf253b95333132cd81c84f0c5a623f0f1c3385eac10fbc6028de5ccb2a0691f2b00031f8f6143e8a71435af120c5
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/golf_handicap2/golf_handicap.yaml"))
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.3
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
@@ -1,15 +0,0 @@
1
-
2
- class MyClass #(change name)
3
-
4
- include GladeGUI
5
-
6
- def before_show()
7
- @button1 = "Hello World"
8
- end
9
-
10
- def button1__clicked(*args)
11
- @builder["button1"].label = "Goodbye World"
12
- end
13
-
14
- end
15
-
@@ -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>