lumpy_space_princess 0.0.2 → 0.0.3
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/bin/lsp +34 -0
- data/lib/lumpy_space_princess/version.rb +1 -1
- data/lib/support/these_lumps.m4a +0 -0
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c8f58c6a7e87680e26fbb76c8afdce2432984787
|
4
|
+
data.tar.gz: 2c24d07e41f4ef10bbbd95e0dddb03af0c9c8862
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d869dbfd6bab742a4a878f71b8de6a6efd93c666a7afb0822e3b2e8152a8cec0a9cfa7019c5f09730d901289ed16ffbc04b460693c81e2008f8fd3c8470def0
|
7
|
+
data.tar.gz: e6aba45a44c4e8ef16aaa46dc85052f25103846db8000af8ea46d830ef01d415d9d920e7e8ab81a6589b13f51b02f55be8ecc30dd6afdd84a29e795035a969dd
|
data/bin/lsp
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'sounder'
|
4
|
+
require 'lumpy_space_princess'
|
5
|
+
|
6
|
+
sounds = {
|
7
|
+
'these lumps' => 'these_lumps'
|
8
|
+
}
|
9
|
+
|
10
|
+
sound_files = {}
|
11
|
+
sounds.each do |name, file|
|
12
|
+
sound_files[name] = File.expand_path("../../lib/support/#{file}.m4a", __FILE__)
|
13
|
+
end
|
14
|
+
|
15
|
+
lsp = Sounder::SoundGroup.new sound_files
|
16
|
+
|
17
|
+
usage = lsp.usage.map do |line|
|
18
|
+
" #{line}"
|
19
|
+
end
|
20
|
+
usage = ["lsp version #{LumpySpacePrincess::VERSION}","Usage:"] + usage
|
21
|
+
usage = usage.join "\n"
|
22
|
+
|
23
|
+
if ARGV.size == 1 && ARGV[0] == 'random'
|
24
|
+
lsp.random
|
25
|
+
elsif ARGV.size >= 1 && ARGV[0] != '-h' && ARGV[0] != 'help' && ARGV[0] != '--help'
|
26
|
+
begin
|
27
|
+
lsp.play ARGV.join ' '
|
28
|
+
rescue Sounder::UnknownSoundError
|
29
|
+
puts "Error: \"#{ARGV.join ' '}\" does not match a known sound"
|
30
|
+
puts usage
|
31
|
+
end
|
32
|
+
else
|
33
|
+
puts usage
|
34
|
+
end
|
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lumpy_space_princess
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Devin Clark
|
@@ -55,7 +55,8 @@ dependencies:
|
|
55
55
|
description: Lumpy Space Princess Soundboard
|
56
56
|
email:
|
57
57
|
- d3.4n777@gmail.com
|
58
|
-
executables:
|
58
|
+
executables:
|
59
|
+
- lsp
|
59
60
|
extensions: []
|
60
61
|
extra_rdoc_files: []
|
61
62
|
files:
|
@@ -64,8 +65,10 @@ files:
|
|
64
65
|
- LICENSE.txt
|
65
66
|
- README.md
|
66
67
|
- Rakefile
|
68
|
+
- bin/lsp
|
67
69
|
- lib/lumpy_space_princess.rb
|
68
70
|
- lib/lumpy_space_princess/version.rb
|
71
|
+
- lib/support/these_lumps.m4a
|
69
72
|
- lumpy_space_princess.gemspec
|
70
73
|
homepage: https://github.com/notdevinclark/lumpy_space_princess
|
71
74
|
licenses:
|