mpd_client 0.2.0 → 0.3.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6f6e3b14a951fdfbd9467155757083aff2fa275945363cf137e813dfce3e80ab
4
- data.tar.gz: ce2ae51be7986266b0ad1978e76e5714ca6a4937d29bbeec905c295fedaa8960
3
+ metadata.gz: ffc79b6fabba358c1dfb4009c4ae05d1dcf8e90aa2f197adc9ffe0eb539b5bba
4
+ data.tar.gz: 703ebecf1c53fb53e96ca24abcbe7ed7d17d4499973e860730ba621a8937f5ad
5
5
  SHA512:
6
- metadata.gz: e0b9ab125796173047fe37d4ddcd1885f1381bb3b9723da38c6999e385a457d72f064d3ec400ac62c5a58c2674386a872da392b997688402a662ddbad4cf638a
7
- data.tar.gz: 7d690dfbb506809875c63b534431bbb5658acf3b48855357087350d1856ddd21f0e21475697790917998d7b0e99d24fc588144172fa605a9d53829896f4d9f6e
6
+ metadata.gz: 153b319bc45d272750a6df581be17694d3dd9ca57f3ce735fc8ba9598d7beff5097e0d4e773e4368e63db877d162a1e61f095dd8d0f04e2ec2f9b7c6c4a3ed89
7
+ data.tar.gz: 181f0c28e26f096fccef58f3848b25de4e7a06f6414bb38faea5fef7712904321bc10ee32e7d48cabc39c7230df937c6ba2b4a0dd9d437ebdc3bec0fd48c39eb
data/.rubocop.yml CHANGED
@@ -1,4 +1,5 @@
1
1
  AllCops:
2
+ TargetRubyVersion: 3.2
2
3
  NewCops: enable
3
4
 
4
5
  Layout/LineLength:
@@ -26,5 +27,3 @@ Metrics/PerceivedComplexity:
26
27
  Security/Eval:
27
28
  Exclude:
28
29
  - 'lib/mpd_client.rb'
29
-
30
-
data/CHANGELOG.md CHANGED
@@ -1,44 +1,48 @@
1
1
  # MPD::Client CHANGELOG
2
2
 
3
+ ## 0.3.0
4
+
5
+ - Require Ruby >= 3.2
6
+
3
7
  ## 0.2.0
4
8
 
5
- * Tested with Ruby 3.1
6
- * Add `albumart` command
7
- * Add `readpicture` command
8
- * Remove `playlist` command. Use `playlistinfo` instead
9
+ - Tested with Ruby 3.1
10
+ - Add `albumart` command
11
+ - Add `readpicture` command
12
+ - Remove `playlist` command. Use `playlistinfo` instead
9
13
 
10
14
  ## 0.1.0
11
15
 
12
- * Rename `MPDClient` to `MPD::Client`
16
+ - Rename `MPDClient` to `MPD::Client`
13
17
 
14
18
  ## 0.0.6
15
19
 
16
- * Fixed readcomments command
20
+ - Fixed readcomments command
17
21
 
18
22
  ## 0.0.5
19
23
 
20
- * Support for mount, umount, listmounts, listneighbors
21
- * Support for listfiles
22
- * Support for rangeid, addtagid, cleartagid
24
+ - Support for mount, umount, listmounts, listneighbors
25
+ - Support for listfiles
26
+ - Support for rangeid, addtagid, cleartagid
23
27
 
24
28
  ## 0.0.4
25
29
 
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
30
+ - Added support for readcomments, toggleoutput, volume
31
+ - Added a mutex protecting execution of MPD commands
32
+ - Automatic reconnect after the server dropped the connection
29
33
 
30
34
  ## 0.0.3
31
35
 
32
- * Support for logging
33
- * Better support for fetching stickers from MPD
34
- * Fixed sticker commands
35
- * Add support for ranges
36
+ - Support for logging
37
+ - Better support for fetching stickers from MPD
38
+ - Fixed sticker commands
39
+ - Add support for ranges
36
40
 
37
41
  ## 0.0.2
38
42
 
39
- * Support for connecting to unix domain sockets
40
- * Fixed some bugs
43
+ - Support for connecting to unix domain sockets
44
+ - Fixed some bugs
41
45
 
42
46
  ## 0.0.1
43
47
 
44
- * Porting code from mpd-python2
48
+ - Porting code from mpd-python2
data/Gemfile CHANGED
@@ -6,6 +6,7 @@ source 'https://rubygems.org'
6
6
  gemspec
7
7
 
8
8
  group :development, :test do
9
+ gem 'bundler'
9
10
  gem 'pry'
10
11
  gem 'rubocop'
11
12
  gem 'solargraph'
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2012-2022 Anton Maminov
1
+ Copyright (c) 2012-2023 Anton Maminov
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -143,6 +143,6 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
143
143
 
144
144
  ## License and Author
145
145
 
146
- Copyright (c) 2012-2022 by Anton Maminov
146
+ Copyright (c) 2012-2023 by Anton Maminov
147
147
 
148
148
  This library is distributed under the MIT license. Please see the LICENSE file.
data/examples/range.rb CHANGED
@@ -3,7 +3,6 @@
3
3
  require 'bundler'
4
4
  Bundler.setup :default
5
5
 
6
- require 'pp'
7
6
  require 'logger'
8
7
  require 'mpd_client'
9
8
 
data/examples/rangeid.rb CHANGED
@@ -3,7 +3,6 @@
3
3
  require 'bundler'
4
4
  Bundler.setup :default
5
5
 
6
- require 'pp'
7
6
  require 'logger'
8
7
  require 'mpd_client'
9
8
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module MPD
4
4
  class Client
5
- VERSION = '0.2.0'
5
+ VERSION = '0.3.0'
6
6
  end
7
7
  end
data/lib/mpd_client.rb CHANGED
@@ -257,9 +257,9 @@ module MPD
257
257
  raise 'Please connect to MPD server' unless connected?
258
258
  end
259
259
 
260
- def execute(command, *args, retval)
260
+ def execute(command, *, retval)
261
261
  @mutex.synchronize do
262
- write_command(command, *args)
262
+ write_command(command, *)
263
263
 
264
264
  if @command_list.nil?
265
265
  eval retval
@@ -294,7 +294,6 @@ module MPD
294
294
  parts << line
295
295
  end
296
296
 
297
- # log.debug("Calling MPD: #{command}#{args}") if log
298
297
  log&.debug("Calling MPD: #{parts.join(' ')}")
299
298
  write_line(parts.join(' '))
300
299
  end
@@ -402,11 +401,11 @@ module MPD
402
401
  objs ? objs[0] : {}
403
402
  end
404
403
 
405
- def fetch_binary(io = StringIO.new, offset = 0, *args)
404
+ def fetch_binary(io = StringIO.new, offset = 0, *)
406
405
  data = {}
407
406
 
408
407
  @mutex.synchronize do
409
- write_command(*args, offset)
408
+ write_command(*, offset)
410
409
 
411
410
  binary = false
412
411
 
@@ -434,7 +433,7 @@ module MPD
434
433
 
435
434
  io.seek(-1, IO::SEEK_CUR)
436
435
 
437
- fetch_binary(io, next_offset, *args)
436
+ fetch_binary(io, next_offset, *)
438
437
  end
439
438
 
440
439
  def fetch_changes
data/mpd_client.gemspec CHANGED
@@ -13,13 +13,11 @@ Gem::Specification.new do |gem|
13
13
 
14
14
  gem.files = `git ls-files`.split($OUTPUT_RECORD_SEPARATOR)
15
15
  gem.executables = gem.files.grep(%r{^bin/}).map { |f| File.basename(f) }
16
- gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
17
- gem.required_ruby_version = '>= 2.6.6'
16
+ gem.required_ruby_version = '>= 3.2'
18
17
  gem.name = 'mpd_client'
19
18
  gem.require_paths = ['lib']
20
19
  gem.version = MPD::Client::VERSION
21
20
  gem.license = 'MIT'
22
21
 
23
- gem.add_development_dependency 'bundler'
24
22
  gem.metadata['rubygems_mfa_required'] = 'true'
25
23
  end
metadata CHANGED
@@ -1,29 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mpd_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.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: 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'
11
+ date: 2023-10-29 00:00:00.000000000 Z
12
+ dependencies: []
27
13
  description: Yet another Ruby MPD client library
28
14
  email:
29
15
  - anton.linux@gmail.com
@@ -70,17 +56,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
70
56
  requirements:
71
57
  - - ">="
72
58
  - !ruby/object:Gem::Version
73
- version: 2.6.6
59
+ version: '3.2'
74
60
  required_rubygems_version: !ruby/object:Gem::Requirement
75
61
  requirements:
76
62
  - - ">="
77
63
  - !ruby/object:Gem::Version
78
64
  version: '0'
79
65
  requirements: []
80
- rubygems_version: 3.3.7
66
+ rubygems_version: 3.4.14
81
67
  signing_key:
82
68
  specification_version: 4
83
69
  summary: Simple Music Player Daemon library written entirely in Ruby
84
- test_files:
85
- - spec/mpd_client/mpd_client_spec.rb
86
- - spec/spec_helper.rb
70
+ test_files: []