o-mpd_client 0.2.0.1
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.
- checksums.yaml +7 -0
- data/.gitignore +17 -0
- data/.hound.yml +2 -0
- data/.rubocop.yml +30 -0
- data/.travis.yml +10 -0
- data/CHANGELOG.md +44 -0
- data/Gemfile +16 -0
- data/LICENSE +22 -0
- data/MPD_COMMANDS.md +653 -0
- data/README.md +148 -0
- data/bin/console +15 -0
- data/bin/setup +8 -0
- data/examples/Gemfile +5 -0
- data/examples/albumart.rb +18 -0
- data/examples/client.rb +17 -0
- data/examples/idle.rb +27 -0
- data/examples/range.rb +22 -0
- data/examples/rangeid.rb +26 -0
- data/examples/search_and_replace_playlist.rb +44 -0
- data/examples/stickers.rb +53 -0
- data/lib/mpd_client/version.rb +7 -0
- data/lib/mpd_client.rb +549 -0
- data/mpd_client.gemspec +25 -0
- data/spec/mpd_client/mpd_client_spec.rb +17 -0
- data/spec/spec_helper.rb +8 -0
- metadata +85 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 32f1b3ac3557bccb3e20ac2f1019d8a7445e6b04bc69ee6b5f0e21ba51ebd241
|
|
4
|
+
data.tar.gz: b56fc360f9600e25f7431864364bf464967f3520d7ac25b2580a559965b7a52c
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 1a66b369a6a951cf84bf9056439200dceb68dbc7dc7fdd46ee091acc0f1109a908cd76f141191cb8139caf2f5a473925536ba18f88fc9c2a5b3b013c10c70b54
|
|
7
|
+
data.tar.gz: 8e382a6ec23c6bba0ca7aa06aa3447a063bef6b260073f67bcdfd8373d0390a40c6e5c223713882f9357dae40ad7de1b7a92882c90b1c8d80c5e7536679ee701
|
data/.gitignore
ADDED
data/.hound.yml
ADDED
data/.rubocop.yml
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
AllCops:
|
|
2
|
+
NewCops: enable
|
|
3
|
+
|
|
4
|
+
Layout/LineLength:
|
|
5
|
+
Max: 120
|
|
6
|
+
|
|
7
|
+
Metrics/AbcSize:
|
|
8
|
+
Enabled: false
|
|
9
|
+
|
|
10
|
+
Metrics/ClassLength:
|
|
11
|
+
Enabled: false
|
|
12
|
+
|
|
13
|
+
Metrics/MethodLength:
|
|
14
|
+
Enabled: false
|
|
15
|
+
|
|
16
|
+
Metrics/ModuleLength:
|
|
17
|
+
Enabled: false
|
|
18
|
+
|
|
19
|
+
# TODO FIXME
|
|
20
|
+
Metrics/CyclomaticComplexity:
|
|
21
|
+
Max: 7
|
|
22
|
+
|
|
23
|
+
Metrics/PerceivedComplexity:
|
|
24
|
+
Max: 8
|
|
25
|
+
|
|
26
|
+
Security/Eval:
|
|
27
|
+
Exclude:
|
|
28
|
+
- 'lib/mpd_client.rb'
|
|
29
|
+
|
|
30
|
+
|
data/.travis.yml
ADDED
data/CHANGELOG.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# MPD::Client CHANGELOG
|
|
2
|
+
|
|
3
|
+
## 0.2.0
|
|
4
|
+
|
|
5
|
+
* Tested with Ruby 3.1
|
|
6
|
+
* Add `albumart` command
|
|
7
|
+
* Add `readpicture` command
|
|
8
|
+
* Remove `playlist` command. Use `playlistinfo` instead
|
|
9
|
+
|
|
10
|
+
## 0.1.0
|
|
11
|
+
|
|
12
|
+
* Rename `MPDClient` to `MPD::Client`
|
|
13
|
+
|
|
14
|
+
## 0.0.6
|
|
15
|
+
|
|
16
|
+
* Fixed readcomments command
|
|
17
|
+
|
|
18
|
+
## 0.0.5
|
|
19
|
+
|
|
20
|
+
* Support for mount, umount, listmounts, listneighbors
|
|
21
|
+
* Support for listfiles
|
|
22
|
+
* Support for rangeid, addtagid, cleartagid
|
|
23
|
+
|
|
24
|
+
## 0.0.4
|
|
25
|
+
|
|
26
|
+
* Added support for readcomments, toggleoutput, volume
|
|
27
|
+
* Added a mutex protecting execution of MPD commands
|
|
28
|
+
* Automatic reconnect after the server dropped the connection
|
|
29
|
+
|
|
30
|
+
## 0.0.3
|
|
31
|
+
|
|
32
|
+
* Support for logging
|
|
33
|
+
* Better support for fetching stickers from MPD
|
|
34
|
+
* Fixed sticker commands
|
|
35
|
+
* Add support for ranges
|
|
36
|
+
|
|
37
|
+
## 0.0.2
|
|
38
|
+
|
|
39
|
+
* Support for connecting to unix domain sockets
|
|
40
|
+
* Fixed some bugs
|
|
41
|
+
|
|
42
|
+
## 0.0.1
|
|
43
|
+
|
|
44
|
+
* Porting code from mpd-python2
|
data/Gemfile
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
source 'https://rubygems.org'
|
|
4
|
+
|
|
5
|
+
# Specify your gem's dependencies in mpd_client.gemspec
|
|
6
|
+
gemspec
|
|
7
|
+
|
|
8
|
+
group :development, :test do
|
|
9
|
+
gem 'pry'
|
|
10
|
+
gem 'rubocop'
|
|
11
|
+
gem 'solargraph'
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
group :test do
|
|
15
|
+
gem 'rspec'
|
|
16
|
+
end
|
data/LICENSE
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Copyright (c) 2012-2022 Anton Maminov
|
|
2
|
+
|
|
3
|
+
MIT License
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
|
+
a copy of this software and associated documentation files (the
|
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
11
|
+
the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be
|
|
14
|
+
included in all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|