mpd_client 0.0.5 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.hound.yml +2 -0
- data/.rubocop.yml +30 -0
- data/.travis.yml +10 -0
- data/CHANGELOG.md +21 -6
- data/Gemfile +12 -0
- data/LICENSE +2 -2
- data/MPD_COMMANDS.md +41 -45
- data/README.md +46 -15
- data/bin/console +15 -0
- data/bin/setup +8 -0
- data/examples/Gemfile +3 -1
- data/examples/albumart.rb +18 -0
- data/examples/client.rb +17 -0
- data/examples/idle.rb +27 -0
- data/examples/range.rb +6 -4
- data/examples/rangeid.rb +5 -3
- data/examples/search_and_replace_playlist.rb +6 -6
- data/examples/stickers.rb +10 -8
- data/lib/mpd_client/version.rb +5 -3
- data/lib/mpd_client.rb +449 -347
- data/mpd_client.gemspec +20 -12
- data/spec/mpd_client/mpd_client_spec.rb +17 -0
- data/spec/spec_helper.rb +8 -0
- metadata +42 -14
- data/Rakefile +0 -2
data/mpd_client.gemspec
CHANGED
@@ -1,17 +1,25 @@
|
|
1
|
-
#
|
2
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
lib = File.expand_path('lib', __dir__)
|
4
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
+
require 'mpd_client/version'
|
3
6
|
|
4
7
|
Gem::Specification.new do |gem|
|
5
|
-
gem.authors = [
|
6
|
-
gem.email = [
|
7
|
-
gem.description =
|
8
|
-
gem.summary =
|
9
|
-
gem.homepage =
|
8
|
+
gem.authors = ['Anton Maminov']
|
9
|
+
gem.email = ['anton.linux@gmail.com']
|
10
|
+
gem.description = 'Yet another Ruby MPD client library'
|
11
|
+
gem.summary = 'Simple Music Player Daemon library written entirely in Ruby'
|
12
|
+
gem.homepage = 'https://github.com/mamantoha/mpd_client'
|
10
13
|
|
11
|
-
gem.files = `git ls-files`.split(
|
12
|
-
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
14
|
+
gem.files = `git ls-files`.split($OUTPUT_RECORD_SEPARATOR)
|
15
|
+
gem.executables = gem.files.grep(%r{^bin/}).map { |f| File.basename(f) }
|
13
16
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
14
|
-
gem.
|
15
|
-
gem.
|
16
|
-
gem.
|
17
|
+
gem.required_ruby_version = '>= 2.6.6'
|
18
|
+
gem.name = 'mpd_client'
|
19
|
+
gem.require_paths = ['lib']
|
20
|
+
gem.version = MPD::Client::VERSION
|
21
|
+
gem.license = 'MIT'
|
22
|
+
|
23
|
+
gem.add_development_dependency 'bundler'
|
24
|
+
gem.metadata['rubygems_mfa_required'] = 'true'
|
17
25
|
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
describe MPD::Client do
|
6
|
+
it 'should have version' do
|
7
|
+
expect(MPD::Client::VERSION).to_not be_nil
|
8
|
+
end
|
9
|
+
|
10
|
+
describe '#initialize' do
|
11
|
+
it 'should create new client' do
|
12
|
+
client = MPD::Client.new
|
13
|
+
|
14
|
+
expect(client.connected?).to eq(false)
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
data/spec/spec_helper.rb
ADDED
metadata
CHANGED
@@ -1,30 +1,53 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mpd_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anton Maminov
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
12
|
-
dependencies:
|
11
|
+
date: 2022-05-08 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
13
27
|
description: Yet another Ruby MPD client library
|
14
28
|
email:
|
15
29
|
- anton.linux@gmail.com
|
16
|
-
executables:
|
30
|
+
executables:
|
31
|
+
- console
|
32
|
+
- setup
|
17
33
|
extensions: []
|
18
34
|
extra_rdoc_files: []
|
19
35
|
files:
|
20
36
|
- ".gitignore"
|
37
|
+
- ".hound.yml"
|
38
|
+
- ".rubocop.yml"
|
39
|
+
- ".travis.yml"
|
21
40
|
- CHANGELOG.md
|
22
41
|
- Gemfile
|
23
42
|
- LICENSE
|
24
43
|
- MPD_COMMANDS.md
|
25
44
|
- README.md
|
26
|
-
-
|
45
|
+
- bin/console
|
46
|
+
- bin/setup
|
27
47
|
- examples/Gemfile
|
48
|
+
- examples/albumart.rb
|
49
|
+
- examples/client.rb
|
50
|
+
- examples/idle.rb
|
28
51
|
- examples/range.rb
|
29
52
|
- examples/rangeid.rb
|
30
53
|
- examples/search_and_replace_playlist.rb
|
@@ -32,10 +55,14 @@ files:
|
|
32
55
|
- lib/mpd_client.rb
|
33
56
|
- lib/mpd_client/version.rb
|
34
57
|
- mpd_client.gemspec
|
58
|
+
- spec/mpd_client/mpd_client_spec.rb
|
59
|
+
- spec/spec_helper.rb
|
35
60
|
homepage: https://github.com/mamantoha/mpd_client
|
36
|
-
licenses:
|
37
|
-
|
38
|
-
|
61
|
+
licenses:
|
62
|
+
- MIT
|
63
|
+
metadata:
|
64
|
+
rubygems_mfa_required: 'true'
|
65
|
+
post_install_message:
|
39
66
|
rdoc_options: []
|
40
67
|
require_paths:
|
41
68
|
- lib
|
@@ -43,16 +70,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
43
70
|
requirements:
|
44
71
|
- - ">="
|
45
72
|
- !ruby/object:Gem::Version
|
46
|
-
version:
|
73
|
+
version: 2.6.6
|
47
74
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
48
75
|
requirements:
|
49
76
|
- - ">="
|
50
77
|
- !ruby/object:Gem::Version
|
51
78
|
version: '0'
|
52
79
|
requirements: []
|
53
|
-
|
54
|
-
|
55
|
-
signing_key:
|
80
|
+
rubygems_version: 3.3.7
|
81
|
+
signing_key:
|
56
82
|
specification_version: 4
|
57
83
|
summary: Simple Music Player Daemon library written entirely in Ruby
|
58
|
-
test_files:
|
84
|
+
test_files:
|
85
|
+
- spec/mpd_client/mpd_client_spec.rb
|
86
|
+
- spec/spec_helper.rb
|
data/Rakefile
DELETED