quiyo 0.2.1 → 0.2.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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.2.2
data/bin/quiyo CHANGED
@@ -68,7 +68,7 @@ aliases:
68
68
  loves: loved
69
69
  vol: vol(action[1])
70
70
  exit: quit
71
- v: action.drop(1).join(' ')" }
71
+ v: action.drop(1).join(' ')" )}
72
72
  p "Sample configuration can be found at #{config_path}"
73
73
  p "Edit the configuration, and re-run Quiyo"
74
74
  abort
@@ -20,6 +20,14 @@ class Quiyo
20
20
  @mpd.delete(id)
21
21
  end
22
22
 
23
+ def saveplist(name)
24
+ @mpd.save(name)
25
+ end
26
+
27
+ def randomalbum(opt)
28
+ @mpd.clear if opt == "clear"
29
+ addtoplist("album", @mpd.albums[rand(@mpd.albums.length)])
30
+ end
23
31
  end
24
32
  include Playlist
25
33
  end
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{quiyo}
8
- s.version = "0.2.1"
8
+ s.version = "0.2.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["crshd"]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 1
9
- version: 0.2.1
8
+ - 2
9
+ version: 0.2.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - crshd
@@ -139,7 +139,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
139
139
  requirements:
140
140
  - - ">="
141
141
  - !ruby/object:Gem::Version
142
- hash: 1102096542118000620
142
+ hash: 2797796956606799901
143
143
  segments:
144
144
  - 0
145
145
  version: "0"