lumpy_space_princess 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9a9cb48a1ba7e9ba378656f6704d4e236a6967e7
4
- data.tar.gz: 6663a31957497f5defc667b478e083d87362c55e
3
+ metadata.gz: c8f58c6a7e87680e26fbb76c8afdce2432984787
4
+ data.tar.gz: 2c24d07e41f4ef10bbbd95e0dddb03af0c9c8862
5
5
  SHA512:
6
- metadata.gz: d4ee33d1a8baa2955b2ff1e038b907f6ffa997a233dd8b6363ba7af0e261bd87ea9ddd79ae3552c4da84678832017c26dcfbfb1c28d5f9b99208dbcf9ccad989
7
- data.tar.gz: fbd10b724e9339b3b5734bd6bdedcca217819624111264c0521d2458eed359677d9c3878a494add56f9a71c1cd8f5b1de2b97628ccb9ce68854827e4947ec474
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
@@ -1,3 +1,3 @@
1
1
  module LumpySpacePrincess
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  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.2
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: