gtk_advent_calendar 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gtk_advent_calendar/calendar.rb +6 -3
- data/lib/gtk_advent_calendar/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb3604feeeaa849994f0cb76d00a3623969539d7
|
4
|
+
data.tar.gz: 52367785737ea96224e2871749b9e8d3c7c87b91
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 90639d40742fc4f69baa50e91b141aa913431b8a63dd6a67fea0ca86e49703d265a89efddd9d3ec4aa0094c2ce4d545e26cc8ca91fa2e812c65a5e5aa80cb717
|
7
|
+
data.tar.gz: ed23ba0d91c7bf66fc7efda2f914e0729d213b410d92d38232c2cc86c3120d47c7326d494ee225cf2367391bf8359092235dbe0792493f2ab386884afbd2ad8a
|
@@ -9,7 +9,6 @@ module GtkAdventCalendar
|
|
9
9
|
super
|
10
10
|
@day = 1
|
11
11
|
box = Gtk::Box.new(:vertical)
|
12
|
-
box.add(Gtk::Label.new)
|
13
12
|
box.add(month)
|
14
13
|
add(box)
|
15
14
|
end
|
@@ -48,7 +47,7 @@ module GtkAdventCalendar
|
|
48
47
|
button.width_request = CELL_WIDTH
|
49
48
|
button.height_request = CELL_WIDTH
|
50
49
|
button.signal_connect("clicked") do
|
51
|
-
show_uri("http://
|
50
|
+
show_uri("http://en.wikipedia.org/wiki/December_#{n}")
|
52
51
|
end
|
53
52
|
button
|
54
53
|
end
|
@@ -60,7 +59,11 @@ module GtkAdventCalendar
|
|
60
59
|
when /mswin|mingw|cygwin|bccwin/
|
61
60
|
system("start", uri)
|
62
61
|
else
|
63
|
-
|
62
|
+
if Gtk.respond_to?(:show_uri)
|
63
|
+
Gtk.show_uri(uri)
|
64
|
+
else
|
65
|
+
system("firefox", uri)
|
66
|
+
end
|
64
67
|
end
|
65
68
|
end
|
66
69
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gtk_advent_calendar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Masafumi Yokoyama
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-12-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gtk3
|