-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from mamantoha/binary-response
fetch binary
- Loading branch information
Showing
12 changed files
with
163 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
language: ruby | ||
|
||
rvm: | ||
- 3.0.0 | ||
- 2.7.2 | ||
- 2.6.6 | ||
- 3.1.2 | ||
- 3.0.4 | ||
- 2.7.6 | ||
|
||
script: | ||
- rspec | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ gemspec | |
group :development, :test do | ||
gem 'pry' | ||
gem 'rubocop' | ||
gem 'solargraph' | ||
end | ||
|
||
group :test do | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'bundler' | ||
Bundler.setup :default | ||
|
||
require 'logger' | ||
require 'mpd_client' | ||
|
||
# MPD::Client.log = Logger.new($stderr) | ||
|
||
client = MPD::Client.new | ||
client.connect('localhost', 6600) | ||
|
||
if (current_song = client.currentsong) | ||
data, io = client.readpicture(current_song['file']) | ||
puts data | ||
File.write('cover.jpg', io.string) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'bundler' | ||
Bundler.setup :default | ||
|
||
require 'logger' | ||
require 'mpd_client' | ||
|
||
MPD::Client.log = Logger.new($stderr) | ||
|
||
client = MPD::Client.new | ||
client.connect('localhost', 6600) | ||
|
||
puts client.stats | ||
puts client.status | ||
puts client.currentsong | ||
puts client.playlistinfo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.