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.
@@ -1,3 +1,7 @@
1
- class MPDClient
2
- VERSION = "0.0.6"
1
+ # frozen_string_literal: true
2
+
3
+ module MPD
4
+ class Client
5
+ VERSION = '0.1.0'
6
+ end
3
7
  end
@@ -1,16 +1,23 @@
1
- require File.expand_path('../lib/mpd_client/version', __FILE__)
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 = ["Anton Maminov"]
5
- gem.email = ["anton.linux@gmail.com"]
6
- gem.description = %q{Yet another Ruby MPD client library}
7
- gem.summary = %q{Simple Music Player Daemon library written entirely in Ruby}
8
- gem.homepage = "https://github.com/mamantoha/mpd_client"
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 = "mpd_client"
14
- gem.require_paths = ["lib"]
15
- gem.version = MPDClient::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
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ $LOAD_PATH.unshift File.expand_path(__dir__)
4
+ $LOAD_PATH.unshift File.expand_path('../lib', __dir__)
5
+
6
+ require 'mpd_client'
7
+ require 'rspec'
8
+ require 'pry'
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.6
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: 2017-02-09 00:00:00.000000000 Z
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.8
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
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env rake
2
- require "bundler/gem_tasks"