mikeplayer 1.0.7 → 1.0.8
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 +4 -4
- data/lib/mikeplayer/version.rb +1 -1
- data/mikeplayer.gemspec +23 -20
- metadata +2 -11
- data/.gitignore +0 -51
- data/bin/console +0 -15
- data/test/mikeplayer/settings_test.rb +0 -17
- data/test/mikeplayer_test.rb +0 -9
- data/test/test_helper.rb +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 98d73ca7a4c48fc9468996b9aa27ca592d544c8a2637161295625acd6fd849b2
|
4
|
+
data.tar.gz: 44288a081ec5d6f8e3090613b220fe63828ff239f69209a77f951edc680c8776
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc0bea67f1ba47fcfe6f63bf7008981ac69ff4247d21e413444bbc641d02a1d245737cfba1f495f9b049562ac409e55deba85bd1a8b87d51f77f8f64eeb81708
|
7
|
+
data.tar.gz: 0ced60fdb31a438d80597f0bb7c4118f8662db0133fd235ea318a4ad591393e2bc85e9b8093a973dc7c5ed522874e74d1a883fb176287eac85ac3f6c44154213
|
data/lib/mikeplayer/version.rb
CHANGED
data/mikeplayer.gemspec
CHANGED
@@ -3,15 +3,15 @@ lib = File.expand_path('../lib', __FILE__)
|
|
3
3
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
4
|
require 'mikeplayer/version'
|
5
5
|
|
6
|
-
Gem::Specification.new do |
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
#{
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = 'mikeplayer'
|
8
|
+
spec.version = MikePlayer::VERSION
|
9
|
+
spec.authors = ['Mike Crockett']
|
10
|
+
spec.email = ['rubygems@mmcrockett.com']
|
11
|
+
spec.summary = 'Wraps Sox\'s `play` command, allowing playslists, find, random and time limit.'
|
12
|
+
spec.executables << 'MikePlayer.rb'
|
13
|
+
spec.description = <<-EOF.gsub(/^\s+/, '')
|
14
|
+
#{spec.summary}
|
15
15
|
|
16
16
|
Once a song is playing you can:
|
17
17
|
'x' to previous
|
@@ -20,17 +20,20 @@ Gem::Specification.new do |gem|
|
|
20
20
|
'q' to quit
|
21
21
|
't' n to set a timer that will pause the music after n minutes
|
22
22
|
EOF
|
23
|
-
|
23
|
+
spec.homepage = 'https://github.com/mmcrockett/mikeplayer'
|
24
24
|
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
gem.require_paths = ['lib']
|
29
|
-
gem.licenses = ['MIT']
|
25
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
26
|
+
f.match?(%r{^(test|spec|features|helpers|)/}) || f.match?(%r{^(\.[[:alnum:]]+)}) || f.match?(/console/)
|
27
|
+
end
|
30
28
|
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
29
|
+
spec.executables = spec.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
30
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
31
|
+
spec.require_paths = ['lib']
|
32
|
+
spec.licenses = ['MIT']
|
33
|
+
|
34
|
+
spec.add_dependency 'json', '~> 2.5'
|
35
|
+
spec.add_dependency 'ruby-mp3info', '~> 0.8'
|
36
|
+
spec.add_dependency 'minitest', '~> 5'
|
37
|
+
spec.add_development_dependency 'rake', '~> 12'
|
38
|
+
spec.add_development_dependency 'byebug', '~> 11'
|
36
39
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mikeplayer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Crockett
|
@@ -92,17 +92,14 @@ email:
|
|
92
92
|
- rubygems@mmcrockett.com
|
93
93
|
executables:
|
94
94
|
- MikePlayer.rb
|
95
|
-
- console
|
96
95
|
extensions: []
|
97
96
|
extra_rdoc_files: []
|
98
97
|
files:
|
99
|
-
- ".gitignore"
|
100
98
|
- Gemfile
|
101
99
|
- LICENSE
|
102
100
|
- README.md
|
103
101
|
- Rakefile
|
104
102
|
- bin/MikePlayer.rb
|
105
|
-
- bin/console
|
106
103
|
- lib/mikeplayer.rb
|
107
104
|
- lib/mikeplayer/display.rb
|
108
105
|
- lib/mikeplayer/executable.rb
|
@@ -112,9 +109,6 @@ files:
|
|
112
109
|
- lib/mikeplayer/song.rb
|
113
110
|
- lib/mikeplayer/version.rb
|
114
111
|
- mikeplayer.gemspec
|
115
|
-
- test/mikeplayer/settings_test.rb
|
116
|
-
- test/mikeplayer_test.rb
|
117
|
-
- test/test_helper.rb
|
118
112
|
homepage: https://github.com/mmcrockett/mikeplayer
|
119
113
|
licenses:
|
120
114
|
- MIT
|
@@ -138,7 +132,4 @@ rubygems_version: 3.1.2
|
|
138
132
|
signing_key:
|
139
133
|
specification_version: 4
|
140
134
|
summary: Wraps Sox's `play` command, allowing playslists, find, random and time limit.
|
141
|
-
test_files:
|
142
|
-
- test/mikeplayer/settings_test.rb
|
143
|
-
- test/mikeplayer_test.rb
|
144
|
-
- test/test_helper.rb
|
135
|
+
test_files: []
|
data/.gitignore
DELETED
@@ -1,51 +0,0 @@
|
|
1
|
-
*.gem
|
2
|
-
Gemfile.lock
|
3
|
-
*.rbc
|
4
|
-
/.config
|
5
|
-
/coverage/
|
6
|
-
/InstalledFiles
|
7
|
-
/pkg/
|
8
|
-
/spec/reports/
|
9
|
-
/spec/examples.txt
|
10
|
-
/test/tmp/
|
11
|
-
/test/version_tmp/
|
12
|
-
/tmp/
|
13
|
-
|
14
|
-
# Used by dotenv library to load environment variables.
|
15
|
-
# .env
|
16
|
-
|
17
|
-
## Specific to RubyMotion:
|
18
|
-
.dat*
|
19
|
-
.repl_history
|
20
|
-
build/
|
21
|
-
*.bridgesupport
|
22
|
-
build-iPhoneOS/
|
23
|
-
build-iPhoneSimulator/
|
24
|
-
|
25
|
-
## Specific to RubyMotion (use of CocoaPods):
|
26
|
-
#
|
27
|
-
# We recommend against adding the Pods directory to your .gitignore. However
|
28
|
-
# you should judge for yourself, the pros and cons are mentioned at:
|
29
|
-
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
|
30
|
-
#
|
31
|
-
# vendor/Pods/
|
32
|
-
|
33
|
-
## Documentation cache and generated files:
|
34
|
-
/.yardoc/
|
35
|
-
/_yardoc/
|
36
|
-
/doc/
|
37
|
-
/rdoc/
|
38
|
-
|
39
|
-
## Environment normalization:
|
40
|
-
/.bundle/
|
41
|
-
/vendor/bundle
|
42
|
-
/lib/bundler/man/
|
43
|
-
|
44
|
-
# for a library or gem, you might want to ignore these files since the code is
|
45
|
-
# intended to run in multiple environments; otherwise, check them in:
|
46
|
-
# Gemfile.lock
|
47
|
-
# .ruby-version
|
48
|
-
# .ruby-gemset
|
49
|
-
|
50
|
-
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
51
|
-
.rvmrc
|
data/bin/console
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require 'bundler/setup'
|
4
|
-
require 'json'
|
5
|
-
require 'mikeplayer'
|
6
|
-
|
7
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
8
|
-
# with your gem easier. You can also use a different console, if you like.
|
9
|
-
|
10
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
11
|
-
# require "pry"
|
12
|
-
# Pry.start
|
13
|
-
|
14
|
-
require 'irb'
|
15
|
-
IRB.start
|
@@ -1,17 +0,0 @@
|
|
1
|
-
require 'test_helper'
|
2
|
-
|
3
|
-
class SettingsTest < Minitest::Test
|
4
|
-
describe 'settings' do
|
5
|
-
let(:home) { File.join('', 'tmp') }
|
6
|
-
let(:sdir) { File.join(home, MikePlayer::Settings::SETTINGS_DIRECTORY) }
|
7
|
-
|
8
|
-
before do
|
9
|
-
Dir.delete(sdir) if Dir.exist?(sdir)
|
10
|
-
end
|
11
|
-
|
12
|
-
it 'creates a settings directory' do
|
13
|
-
MikePlayer::Settings.new(home: home)
|
14
|
-
assert(Dir.exist?(sdir))
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
data/test/mikeplayer_test.rb
DELETED