gtk2mp3 0.5.1 → 0.5.2
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.
- data/bin/gtk2mp3 +1 -1
- data/lib/gtk2mp3.rb +6 -1
- metadata +8 -10
data/bin/gtk2mp3
CHANGED
|
@@ -15,7 +15,7 @@ program = Gtk2AppLib::Program.new( {
|
|
|
15
15
|
'website' => 'https://sites.google.com/site/gtk2applib/home/gtk2applib-applications/gtk2mp3',
|
|
16
16
|
'website-label' => 'Ruby-Gnome MP3',
|
|
17
17
|
'license' => 'GPL',
|
|
18
|
-
'copyright' => '2011-07-
|
|
18
|
+
'copyright' => '2011-07-16 16:15:40',
|
|
19
19
|
} )
|
|
20
20
|
|
|
21
21
|
begin
|
data/lib/gtk2mp3.rb
CHANGED
|
@@ -125,10 +125,15 @@ module Gtk2MP3 # Gtk2MP3 defined
|
|
|
125
125
|
self.random_song
|
|
126
126
|
@info.text = File.basename(@current,MP3) # File defined
|
|
127
127
|
@pipe.puts "#{Configuration::C_LOAD} #{@current}"
|
|
128
|
+
@time = Time.now
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
def demote
|
|
132
|
+
@couple.demote if Time.now - @time < 60.0
|
|
128
133
|
end
|
|
129
134
|
|
|
130
135
|
def skip_song
|
|
131
|
-
(@continue)?
|
|
136
|
+
(@continue)? demote: (@continue = true)
|
|
132
137
|
self.load_song
|
|
133
138
|
end
|
|
134
139
|
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gtk2mp3
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 15
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 5
|
|
9
|
-
-
|
|
10
|
-
version: 0.5.
|
|
9
|
+
- 2
|
|
10
|
+
version: 0.5.2
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- carlosjhr64@gmail.com
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2011-07-
|
|
18
|
+
date: 2011-07-16 00:00:00 Z
|
|
19
19
|
dependencies:
|
|
20
20
|
- !ruby/object:Gem::Dependency
|
|
21
21
|
name: gtk2applib
|
|
@@ -38,8 +38,8 @@ executables:
|
|
|
38
38
|
- gtk2mp3
|
|
39
39
|
extensions: []
|
|
40
40
|
|
|
41
|
-
extra_rdoc_files:
|
|
42
|
-
|
|
41
|
+
extra_rdoc_files: []
|
|
42
|
+
|
|
43
43
|
files:
|
|
44
44
|
- ./lib/gtk2mp3/playlist.rb
|
|
45
45
|
- ./lib/gtk2mp3/couple.rb
|
|
@@ -48,15 +48,13 @@ files:
|
|
|
48
48
|
- ./pngs/logo.png
|
|
49
49
|
- ./pngs/icon.png
|
|
50
50
|
- ./README.txt
|
|
51
|
-
- README.txt
|
|
52
51
|
- bin/gtk2mp3
|
|
53
52
|
homepage: https://sites.google.com/site/gtk2applib/home/gtk2applib-applications/gtk2mp3
|
|
54
53
|
licenses: []
|
|
55
54
|
|
|
56
55
|
post_install_message:
|
|
57
|
-
rdoc_options:
|
|
58
|
-
|
|
59
|
-
- README.txt
|
|
56
|
+
rdoc_options: []
|
|
57
|
+
|
|
60
58
|
require_paths:
|
|
61
59
|
- lib
|
|
62
60
|
required_ruby_version: !ruby/object:Gem::Requirement
|