trombone 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +22 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE.txt +22 -0
  5. data/README.md +40 -0
  6. data/Rakefile +2 -0
  7. data/bin/trombone +6 -0
  8. data/lib/trombone.rb +4 -0
  9. data/lib/trombone/cli.rb +21 -0
  10. data/lib/trombone/sounds/56k.mp3 +0 -0
  11. data/lib/trombone/sounds/bell.mp3 +0 -0
  12. data/lib/trombone/sounds/bezos.mp3 +0 -0
  13. data/lib/trombone/sounds/bueller.mp3 +0 -0
  14. data/lib/trombone/sounds/clowntown.mp3 +0 -0
  15. data/lib/trombone/sounds/cottoneyejoe.mp3 +0 -0
  16. data/lib/trombone/sounds/crickets.mp3 +0 -0
  17. data/lib/trombone/sounds/dadgummit.mp3 +0 -0
  18. data/lib/trombone/sounds/dangerzone.mp3 +0 -0
  19. data/lib/trombone/sounds/danielsan.mp3 +0 -0
  20. data/lib/trombone/sounds/deeper.mp3 +0 -0
  21. data/lib/trombone/sounds/drama.mp3 +0 -0
  22. data/lib/trombone/sounds/greatjob.mp3 +0 -0
  23. data/lib/trombone/sounds/greyjoy.mp3 +0 -0
  24. data/lib/trombone/sounds/guarantee.mp3 +0 -0
  25. data/lib/trombone/sounds/heygirl.mp3 +0 -0
  26. data/lib/trombone/sounds/horn.mp3 +0 -0
  27. data/lib/trombone/sounds/horror.mp3 +0 -0
  28. data/lib/trombone/sounds/inconceivable.mp3 +0 -0
  29. data/lib/trombone/sounds/live.mp3 +0 -0
  30. data/lib/trombone/sounds/loggins.mp3 +0 -0
  31. data/lib/trombone/sounds/makeitso.mp3 +0 -0
  32. data/lib/trombone/sounds/noooo.mp3 +0 -0
  33. data/lib/trombone/sounds/nyan.mp3 +0 -0
  34. data/lib/trombone/sounds/ohmy.mp3 +0 -0
  35. data/lib/trombone/sounds/ohyeah.mp3 +0 -0
  36. data/lib/trombone/sounds/pushit.mp3 +0 -0
  37. data/lib/trombone/sounds/rimshot.mp3 +0 -0
  38. data/lib/trombone/sounds/rollout.mp3 +0 -0
  39. data/lib/trombone/sounds/sax.mp3 +0 -0
  40. data/lib/trombone/sounds/secret.mp3 +0 -0
  41. data/lib/trombone/sounds/sexyback.mp3 +0 -0
  42. data/lib/trombone/sounds/story.mp3 +0 -0
  43. data/lib/trombone/sounds/tada.mp3 +0 -0
  44. data/lib/trombone/sounds/tmyk.mp3 +0 -0
  45. data/lib/trombone/sounds/trololo.mp3 +0 -0
  46. data/lib/trombone/sounds/trombone.mp3 +0 -0
  47. data/lib/trombone/sounds/vuvuzela.mp3 +0 -0
  48. data/lib/trombone/sounds/what.mp3 +0 -0
  49. data/lib/trombone/sounds/whoomp.mp3 +0 -0
  50. data/lib/trombone/sounds/yeah.mp3 +0 -0
  51. data/lib/trombone/sounds/yodel.mp3 +0 -0
  52. data/lib/trombone/version.rb +3 -0
  53. data/trombone.gemspec +25 -0
  54. metadata +139 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: d38c3adeff81824040062dd6fb676cbf2a27e4d5
4
+ data.tar.gz: eb1421069b5a0819c5288a53b76f2f15f53ef50c
5
+ SHA512:
6
+ metadata.gz: 8a3eb973a0346204effde8f3ee1793b64d1013fbe0b328dc0030917cbb52c351e4756d458ee36f21eeed265ccc0a3cb89aadfa7109f3ec4a2a29003960689c0c
7
+ data.tar.gz: de158b88e89b5fcc3c4b032ea14d19b7d16af6e963f0b63a3b239b3acdca87585c1d82b93896dceb676d235227a11cf672110d83a3816b7245708b5d5e892ad2
@@ -0,0 +1,22 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
18
+ *.bundle
19
+ *.so
20
+ *.o
21
+ *.a
22
+ mkmf.log
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in trombone.gemspec
4
+ gemspec
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2014 Mathieu Allaire
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
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
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,40 @@
1
+ # Trombone
2
+
3
+ Play Campfire sounds, right in your terminal.
4
+
5
+ ## Why?
6
+
7
+ We are now using Hipchat, and we really miss the Campfire sounds that we could send to each other. Since we are now mostly working in the same office, with *trombone*, we still have the chance to play our favorite sounds to our teammates using a terminal and a speakers.
8
+
9
+ ## Installation
10
+
11
+ Simply run :
12
+
13
+ $ gem install trombone
14
+
15
+ ## Usage
16
+
17
+ `trombone list`
18
+ `trombone play SOUND`
19
+
20
+ ## Limitation
21
+
22
+ Currently, *trombone* only works on Mac OS X, since it uses the `afplay` command line tool.
23
+
24
+ Pull requests welcome to support more platforms!
25
+
26
+ ## Contributing
27
+
28
+ 1. Fork it ( https://github.com/lodgem/trombone/fork )
29
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
30
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
31
+ 4. Push to the branch (`git push origin my-new-feature`)
32
+ 5. Create a new Pull Request
33
+
34
+ ## About
35
+
36
+ ![Lodgem](http://lodgem.s3.amazonaws.com/tm/logotype.png)
37
+
38
+ Lodgem is small team of passionate who enjoy creating polished applications that solve interesting problems. We consider ourselves as friendly, hard workers and dynamic. We love to see things differently and strongly believe in progress and innovation.
39
+
40
+ At Lodgem, we use open source software a lot and that's why we try hard to share as much as possible.
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ $:.push File.expand_path("../../lib", __FILE__)
4
+ require "trombone/cli"
5
+
6
+ Trombone::Cli.start(ARGV)
@@ -0,0 +1,4 @@
1
+ require "trombone/version"
2
+
3
+ module Trombone
4
+ end
@@ -0,0 +1,21 @@
1
+ require "thor"
2
+
3
+ module Trombone
4
+ class Cli < Thor
5
+ desc "play SOUND", "Play the sound with given SOUND"
6
+ def play(sound)
7
+ file = File.expand_path("../sounds/#{sound}.mp3", __FILE__)
8
+ if File.file?(file)
9
+ pid = spawn("afplay #{file}")
10
+ Process.detach(pid)
11
+ else
12
+ puts "Sound does not exist, use `list` command to see available sounds."
13
+ end
14
+ end
15
+
16
+ desc "list", "List all the sounds available"
17
+ def list
18
+ Dir[File.expand_path("../sounds/*", __FILE__)].each { |sound| puts File.basename(sound, ".*") }
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,3 @@
1
+ module Trombone
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,25 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "trombone/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "trombone"
8
+ spec.version = Trombone::VERSION
9
+ spec.authors = ["Mathieu Allaire"]
10
+ spec.email = ["mathieu@lodgem.com"]
11
+ spec.summary = %q{Play Campfire sounds, right in your terminal.}
12
+ spec.description = %q{Play Campfire sounds, right in your terminal.}
13
+ spec.homepage = "http://www.lodgem.com"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files -z`.split("\x0")
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_dependency "thor", "~> 0.19"
22
+
23
+ spec.add_development_dependency "bundler", "~> 1.6"
24
+ spec.add_development_dependency "rake"
25
+ end
metadata ADDED
@@ -0,0 +1,139 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: trombone
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Mathieu Allaire
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-06-05 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: thor
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '0.19'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '0.19'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.6'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.6'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ description: Play Campfire sounds, right in your terminal.
56
+ email:
57
+ - mathieu@lodgem.com
58
+ executables:
59
+ - trombone
60
+ extensions: []
61
+ extra_rdoc_files: []
62
+ files:
63
+ - ".gitignore"
64
+ - Gemfile
65
+ - LICENSE.txt
66
+ - README.md
67
+ - Rakefile
68
+ - bin/trombone
69
+ - lib/trombone.rb
70
+ - lib/trombone/cli.rb
71
+ - lib/trombone/sounds/56k.mp3
72
+ - lib/trombone/sounds/bell.mp3
73
+ - lib/trombone/sounds/bezos.mp3
74
+ - lib/trombone/sounds/bueller.mp3
75
+ - lib/trombone/sounds/clowntown.mp3
76
+ - lib/trombone/sounds/cottoneyejoe.mp3
77
+ - lib/trombone/sounds/crickets.mp3
78
+ - lib/trombone/sounds/dadgummit.mp3
79
+ - lib/trombone/sounds/dangerzone.mp3
80
+ - lib/trombone/sounds/danielsan.mp3
81
+ - lib/trombone/sounds/deeper.mp3
82
+ - lib/trombone/sounds/drama.mp3
83
+ - lib/trombone/sounds/greatjob.mp3
84
+ - lib/trombone/sounds/greyjoy.mp3
85
+ - lib/trombone/sounds/guarantee.mp3
86
+ - lib/trombone/sounds/heygirl.mp3
87
+ - lib/trombone/sounds/horn.mp3
88
+ - lib/trombone/sounds/horror.mp3
89
+ - lib/trombone/sounds/inconceivable.mp3
90
+ - lib/trombone/sounds/live.mp3
91
+ - lib/trombone/sounds/loggins.mp3
92
+ - lib/trombone/sounds/makeitso.mp3
93
+ - lib/trombone/sounds/noooo.mp3
94
+ - lib/trombone/sounds/nyan.mp3
95
+ - lib/trombone/sounds/ohmy.mp3
96
+ - lib/trombone/sounds/ohyeah.mp3
97
+ - lib/trombone/sounds/pushit.mp3
98
+ - lib/trombone/sounds/rimshot.mp3
99
+ - lib/trombone/sounds/rollout.mp3
100
+ - lib/trombone/sounds/sax.mp3
101
+ - lib/trombone/sounds/secret.mp3
102
+ - lib/trombone/sounds/sexyback.mp3
103
+ - lib/trombone/sounds/story.mp3
104
+ - lib/trombone/sounds/tada.mp3
105
+ - lib/trombone/sounds/tmyk.mp3
106
+ - lib/trombone/sounds/trololo.mp3
107
+ - lib/trombone/sounds/trombone.mp3
108
+ - lib/trombone/sounds/vuvuzela.mp3
109
+ - lib/trombone/sounds/what.mp3
110
+ - lib/trombone/sounds/whoomp.mp3
111
+ - lib/trombone/sounds/yeah.mp3
112
+ - lib/trombone/sounds/yodel.mp3
113
+ - lib/trombone/version.rb
114
+ - trombone.gemspec
115
+ homepage: http://www.lodgem.com
116
+ licenses:
117
+ - MIT
118
+ metadata: {}
119
+ post_install_message:
120
+ rdoc_options: []
121
+ require_paths:
122
+ - lib
123
+ required_ruby_version: !ruby/object:Gem::Requirement
124
+ requirements:
125
+ - - ">="
126
+ - !ruby/object:Gem::Version
127
+ version: '0'
128
+ required_rubygems_version: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - ">="
131
+ - !ruby/object:Gem::Version
132
+ version: '0'
133
+ requirements: []
134
+ rubyforge_project:
135
+ rubygems_version: 2.2.2
136
+ signing_key:
137
+ specification_version: 4
138
+ summary: Play Campfire sounds, right in your terminal.
139
+ test_files: []