mpd_client 0.0.6 → 0.1.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 +27 -0
- data/.ruby-version +1 -0
- data/.travis.yml +4 -0
- data/CHANGELOG.md +11 -7
- data/Gemfile +8 -1
- data/MPD_COMMANDS.md +41 -45
- data/README.md +19 -15
- data/bin/console +4 -3
- data/examples/Gemfile +2 -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 +7 -5
- data/examples/stickers.rb +10 -6
- data/lib/mpd_client.rb +394 -351
- data/lib/mpd_client/version.rb +6 -2
- data/mpd_client.gemspec +18 -11
- data/spec/mpd_client/mpd_client_spec.rb +17 -0
- data/spec/spec_helper.rb +8 -0
- metadata +30 -7
- data/Rakefile +0 -2
data/lib/mpd_client/version.rb
CHANGED
data/mpd_client.gemspec
CHANGED
@@ -1,16 +1,23 @@
|
|
1
|
-
|
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'
|
2
6
|
|
3
7
|
Gem::Specification.new do |gem|
|
4
|
-
gem.authors = [
|
5
|
-
gem.email = [
|
6
|
-
gem.description =
|
7
|
-
gem.summary =
|
8
|
-
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'
|
9
13
|
|
10
|
-
gem.files = `git ls-files`.split(
|
11
|
-
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) }
|
12
16
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
13
|
-
gem.name =
|
14
|
-
gem.require_paths = [
|
15
|
-
gem.version =
|
17
|
+
gem.name = 'mpd_client'
|
18
|
+
gem.require_paths = ['lib']
|
19
|
+
gem.version = MPD::Client::VERSION
|
20
|
+
gem.license = 'MIT'
|
21
|
+
|
22
|
+
gem.add_development_dependency 'bundler', '~> 1.16'
|
16
23
|
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,15 +1,29 @@
|
|
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.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anton Maminov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
12
|
-
dependencies:
|
11
|
+
date: 2018-07-31 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: '1.16'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.16'
|
13
27
|
description: Yet another Ruby MPD client library
|
14
28
|
email:
|
15
29
|
- anton.linux@gmail.com
|
@@ -20,15 +34,19 @@ extensions: []
|
|
20
34
|
extra_rdoc_files: []
|
21
35
|
files:
|
22
36
|
- ".gitignore"
|
37
|
+
- ".hound.yml"
|
38
|
+
- ".rubocop.yml"
|
39
|
+
- ".ruby-version"
|
40
|
+
- ".travis.yml"
|
23
41
|
- CHANGELOG.md
|
24
42
|
- Gemfile
|
25
43
|
- LICENSE
|
26
44
|
- MPD_COMMANDS.md
|
27
45
|
- README.md
|
28
|
-
- Rakefile
|
29
46
|
- bin/console
|
30
47
|
- bin/setup
|
31
48
|
- examples/Gemfile
|
49
|
+
- examples/idle.rb
|
32
50
|
- examples/range.rb
|
33
51
|
- examples/rangeid.rb
|
34
52
|
- examples/search_and_replace_playlist.rb
|
@@ -36,8 +54,11 @@ files:
|
|
36
54
|
- lib/mpd_client.rb
|
37
55
|
- lib/mpd_client/version.rb
|
38
56
|
- mpd_client.gemspec
|
57
|
+
- spec/mpd_client/mpd_client_spec.rb
|
58
|
+
- spec/spec_helper.rb
|
39
59
|
homepage: https://github.com/mamantoha/mpd_client
|
40
|
-
licenses:
|
60
|
+
licenses:
|
61
|
+
- MIT
|
41
62
|
metadata: {}
|
42
63
|
post_install_message:
|
43
64
|
rdoc_options: []
|
@@ -55,8 +76,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
55
76
|
version: '0'
|
56
77
|
requirements: []
|
57
78
|
rubyforge_project:
|
58
|
-
rubygems_version: 2.6
|
79
|
+
rubygems_version: 2.7.6
|
59
80
|
signing_key:
|
60
81
|
specification_version: 4
|
61
82
|
summary: Simple Music Player Daemon library written entirely in Ruby
|
62
|
-
test_files:
|
83
|
+
test_files:
|
84
|
+
- spec/mpd_client/mpd_client_spec.rb
|
85
|
+
- spec/spec_helper.rb
|
data/Rakefile
DELETED