vkpd 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/vkpd/cli.rb +1 -8
- data/lib/vkpd/version.rb +1 -1
- metadata +2 -2
data/lib/vkpd/cli.rb
CHANGED
@@ -75,6 +75,7 @@ module Vkpd
|
|
75
75
|
end
|
76
76
|
mpd.clear if do_clear
|
77
77
|
response.each do |song|
|
78
|
+
puts song if @debug
|
78
79
|
mpd.add song["url"]
|
79
80
|
end
|
80
81
|
mpd.play if do_play
|
@@ -87,13 +88,5 @@ module Vkpd
|
|
87
88
|
hash.map{|k,v| "#{k}=#{CGI.escape(v.to_s)}"}.join("&")
|
88
89
|
end
|
89
90
|
|
90
|
-
# Run external command. In debug mode simply prints its arguments.
|
91
|
-
def run(*args)
|
92
|
-
if @debug
|
93
|
-
puts(*args)
|
94
|
-
else
|
95
|
-
system(*args)
|
96
|
-
end
|
97
|
-
end
|
98
91
|
end
|
99
92
|
end
|
data/lib/vkpd/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vkpd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-09-
|
12
|
+
date: 2013-09-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sinatra
|