boombox 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.travis.yml +5 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +24 -0
- data/README.md +1 -0
- data/Rakefile +8 -0
- data/bin/setup +8 -0
- data/boombox.gemspec +27 -0
- data/docs/wip/README.md +45 -0
- data/lib/boombox/mp3_player.rb +5 -0
- data/lib/boombox/version.rb +3 -0
- data/lib/boombox.rb +1 -0
- metadata +98 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 9a4bf4a033094f12b7b5a9b7acff4d2f8a463da0
|
4
|
+
data.tar.gz: d9fd131fb0193401c73b5dad1923ac8f20dbcb78
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 03ce4e207b9e8dd518ec19052a2e80101663dd4f70f239e935eedd001c8a95be06ba8750ffc0ce08396b5171f1e63d4196788b68d8c369d05655b73596dcc8b1
|
7
|
+
data.tar.gz: 5e5d673c0607b0d33971e9c8a6220627679c4f8afac3c5614ed6fe50c05204413fb7e856a28370a86c259b8bff8876f5aafd3cccf2c57ae9f6d9d0190005b650
|
data/.gitignore
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
This is free and unencumbered software released into the public domain.
|
2
|
+
|
3
|
+
Anyone is free to copy, modify, publish, use, compile, sell, or
|
4
|
+
distribute this software, either in source code form or as a compiled
|
5
|
+
binary, for any purpose, commercial or non-commercial, and by any
|
6
|
+
means.
|
7
|
+
|
8
|
+
In jurisdictions that recognize copyright laws, the author or authors
|
9
|
+
of this software dedicate any and all copyright interest in the
|
10
|
+
software to the public domain. We make this dedication for the benefit
|
11
|
+
of the public at large and to the detriment of our heirs and
|
12
|
+
successors. We intend this dedication to be an overt act of
|
13
|
+
relinquishment in perpetuity of all present and future rights to this
|
14
|
+
software under copyright law.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
19
|
+
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
20
|
+
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
21
|
+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
22
|
+
OTHER DEALINGS IN THE SOFTWARE.
|
23
|
+
|
24
|
+
For more information, please refer to http://unlicense.org/
|
data/README.md
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
Work in progress
|
data/Rakefile
ADDED
data/bin/setup
ADDED
data/boombox.gemspec
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
lib = File.expand_path("../lib", __FILE__)
|
4
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
+
require "boombox/version"
|
6
|
+
|
7
|
+
Gem::Specification.new do |spec|
|
8
|
+
spec.name = "boombox"
|
9
|
+
spec.version = Boombox::VERSION
|
10
|
+
spec.authors = ["Rob Hesketh"]
|
11
|
+
spec.email = ["contact@robhesketh.com"]
|
12
|
+
|
13
|
+
spec.summary = "An incredibly tiny Shoutcast server that can be embedded into Ruby applications."
|
14
|
+
spec.homepage = "http://github.com/RHesketh/boombox"
|
15
|
+
spec.license = "Unlicense"
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
18
|
+
f.match(%r{^(test)/})
|
19
|
+
end
|
20
|
+
spec.bindir = "exe"
|
21
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
|
+
spec.require_paths = ["lib"]
|
23
|
+
|
24
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
25
|
+
spec.add_development_dependency "minitest", "~> 5.0"
|
26
|
+
spec.add_development_dependency "minitest-spec", "~> 0.0.2"
|
27
|
+
end
|
data/docs/wip/README.md
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
# Boombox
|
2
|
+
[![Gem Version](https://badge.fury.io/rb/lucio-mp3.svg)](https://badge.fury.io/rb/lucio-mp3) [![Test Coverage](https://codeclimate.com/github/RHesketh/cinch-uno/badges/coverage.svg)](https://codeclimate.com/github/RHesketh/lucio-mp3/coverage) [![License Unlicense](https://img.shields.io/badge/license-Unlicense-blue.svg)](http://unlicense.org/UNLICENSE)
|
3
|
+
|
4
|
+
An incredibly tiny Shoutcast server that can be embedded into Ruby applications. It has been designed with an emphasis on keeping listeners in synch with each other, so as to maximise the shared experience.
|
5
|
+
|
6
|
+
## Installation
|
7
|
+
First install the gem by running:
|
8
|
+
|
9
|
+
```
|
10
|
+
[sudo] gem install boombox
|
11
|
+
```
|
12
|
+
|
13
|
+
or, even better, by adding it to your `Gemfile`:
|
14
|
+
```
|
15
|
+
gem 'boombox' ~> "0.0.1"
|
16
|
+
```
|
17
|
+
|
18
|
+
Now use it in your code:
|
19
|
+
|
20
|
+
```ruby
|
21
|
+
require "boombox"
|
22
|
+
|
23
|
+
server = Boombox.new(7777) # Use port 7777
|
24
|
+
server.start # Start the server
|
25
|
+
server.play("path_to_mp3_file.mp3") # Play an MP3 file to all listeners
|
26
|
+
server.play("mp3_file_folder/", loop: true) # Play all MP3 files in a folder, looping continuously
|
27
|
+
server.play("mp3_file_folder/", shuffle: true) # Play all MP3 files in a folder in a random order
|
28
|
+
```
|
29
|
+
|
30
|
+
## Documentation
|
31
|
+
Project documentation can be found [here](#).
|
32
|
+
|
33
|
+
## Tests
|
34
|
+
The plugin has unit and integration tests. To run them:
|
35
|
+
`rake test`
|
36
|
+
|
37
|
+
You may need to `bundle install` first.
|
38
|
+
|
39
|
+
## Contributing
|
40
|
+
|
41
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/RHesketh/boombox. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
42
|
+
|
43
|
+
## License
|
44
|
+
|
45
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/lib/boombox.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require_relative 'boombox/mp3_player'
|
metadata
ADDED
@@ -0,0 +1,98 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: boombox
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Rob Hesketh
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-05-20 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rake
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '10.0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '10.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: minitest
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '5.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '5.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: minitest-spec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 0.0.2
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.0.2
|
55
|
+
description:
|
56
|
+
email:
|
57
|
+
- contact@robhesketh.com
|
58
|
+
executables: []
|
59
|
+
extensions: []
|
60
|
+
extra_rdoc_files: []
|
61
|
+
files:
|
62
|
+
- ".gitignore"
|
63
|
+
- ".travis.yml"
|
64
|
+
- Gemfile
|
65
|
+
- LICENSE.txt
|
66
|
+
- README.md
|
67
|
+
- Rakefile
|
68
|
+
- bin/setup
|
69
|
+
- boombox.gemspec
|
70
|
+
- docs/wip/README.md
|
71
|
+
- lib/boombox.rb
|
72
|
+
- lib/boombox/mp3_player.rb
|
73
|
+
- lib/boombox/version.rb
|
74
|
+
homepage: http://github.com/RHesketh/boombox
|
75
|
+
licenses:
|
76
|
+
- Unlicense
|
77
|
+
metadata: {}
|
78
|
+
post_install_message:
|
79
|
+
rdoc_options: []
|
80
|
+
require_paths:
|
81
|
+
- lib
|
82
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
83
|
+
requirements:
|
84
|
+
- - ">="
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: '0'
|
87
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
88
|
+
requirements:
|
89
|
+
- - ">="
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
version: '0'
|
92
|
+
requirements: []
|
93
|
+
rubyforge_project:
|
94
|
+
rubygems_version: 2.6.8
|
95
|
+
signing_key:
|
96
|
+
specification_version: 4
|
97
|
+
summary: An incredibly tiny Shoutcast server that can be embedded into Ruby applications.
|
98
|
+
test_files: []
|