archer 0.0.1

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 9585c54850c02d50d625494343985e95835dc782
4
+ data.tar.gz: cc0b0f7b9f7b10f4f5564ed6cf86e3480a47620c
5
+ SHA512:
6
+ metadata.gz: 4978ff44eb633155836c4c17a7a9f73861b12d2ef3be593feebb5c7784fc53878ff4c6393442641b57490db46f8aefbb9616fed1d8627a0e41b78d1648dc0bf0
7
+ data.tar.gz: 24a3bffb7bf937c10626e643046a21b0934f94cfa6547e0967ef14cf055fee3c45c1ac8d1588cb148fcc4f76208e80b0c627d44d065d748b25682df8a22f11ea
data/.gitignore ADDED
@@ -0,0 +1,17 @@
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
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in archer.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 Adam Zaninovich
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.
data/README.md ADDED
@@ -0,0 +1,24 @@
1
+ # Archer
2
+
3
+ says "archer"
4
+
5
+ ## Installation
6
+
7
+ gem install archer
8
+
9
+ ## Usage
10
+
11
+ run `archer` on the commandline for help
12
+
13
+ ## Changes
14
+
15
+ First version
16
+
17
+ ## Contributing
18
+
19
+ 1. Fork it
20
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
21
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
22
+ 4. Push to the branch (`git push origin my-new-feature`)
23
+ 5. Create new Pull Request
24
+
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
data/archer.gemspec ADDED
@@ -0,0 +1,24 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'archer/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "archer"
8
+ spec.version = Archer::VERSION
9
+ spec.authors = ["Adam Zaninovich"]
10
+ spec.email = ["adam.zaninovich@gmail.com"]
11
+ spec.description = %q{plays archer sounds}
12
+ spec.summary = %q{plays archer sounds}
13
+ spec.homepage = ""
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files`.split($/)
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 "sounder", "~> 1.0.1"
22
+ spec.add_development_dependency "bundler", "~> 1.3"
23
+ spec.add_development_dependency "rake"
24
+ end
data/bin/archer ADDED
@@ -0,0 +1,38 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'sounder'
4
+ require 'archer'
5
+
6
+ sounds = {
7
+ dangerzone1: 'dangerzone',
8
+ dangerzone2: 'dangerzone2',
9
+ dangerzone3: 'dangerzone3',
10
+ 'dangerzone laugh' => 'dangerzone_laugh',
11
+ 'welcome to the dangerzone' => 'welcome_to_the_dangerzone',
12
+ 'zone of danger' => 'zone_of_danger'
13
+ }
14
+ sound_files = {}
15
+ sounds.each do |name, file|
16
+ sound_files[name] = File.expand_path("../../lib/support/#{file}.m4a", __FILE__)
17
+ end
18
+
19
+ archer = Sounder::SoundGroup.new sound_files
20
+
21
+ usage = archer.usage.map do |line|
22
+ " #{line}"
23
+ end
24
+ usage = ["archer version #{Archer::VERSION}","Usage:"] + usage
25
+ usage = usage.join "\n"
26
+
27
+ if ARGV.size == 1 && ARGV[0] == 'random'
28
+ archer.random
29
+ elsif ARGV.size >= 1 && ARGV[0] != '-h' && ARGV[0] != 'help' && ARGV[0] != '--help'
30
+ begin
31
+ archer.play ARGV.join ' '
32
+ rescue Sounder::UnknownSoundError
33
+ puts "Error: \"#{ARGV.join ' '}\" does not match a known sound"
34
+ puts usage
35
+ end
36
+ else
37
+ puts usage
38
+ end
data/lib/archer.rb ADDED
@@ -0,0 +1,4 @@
1
+ require "archer/version"
2
+
3
+ module Archer
4
+ end
@@ -0,0 +1,3 @@
1
+ module Archer
2
+ VERSION = "0.0.1"
3
+ end
Binary file
Binary file
Binary file
Binary file
Binary file
metadata ADDED
@@ -0,0 +1,102 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: archer
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Adam Zaninovich
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-08-06 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: sounder
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: 1.0.1
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: 1.0.1
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.3'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: '1.3'
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: plays archer sounds
56
+ email:
57
+ - adam.zaninovich@gmail.com
58
+ executables:
59
+ - archer
60
+ extensions: []
61
+ extra_rdoc_files: []
62
+ files:
63
+ - .gitignore
64
+ - Gemfile
65
+ - LICENSE.txt
66
+ - README.md
67
+ - Rakefile
68
+ - archer.gemspec
69
+ - bin/archer
70
+ - lib/archer.rb
71
+ - lib/archer/version.rb
72
+ - lib/support/dangerzone.m4a
73
+ - lib/support/dangerzone2.m4a
74
+ - lib/support/dangerzone3.m4a
75
+ - lib/support/dangerzone_laugh.m4a
76
+ - lib/support/welcome_to_the_dangerzone.m4a
77
+ - lib/support/zone_of_danger.m4a
78
+ homepage: ''
79
+ licenses:
80
+ - MIT
81
+ metadata: {}
82
+ post_install_message:
83
+ rdoc_options: []
84
+ require_paths:
85
+ - lib
86
+ required_ruby_version: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - '>='
89
+ - !ruby/object:Gem::Version
90
+ version: '0'
91
+ required_rubygems_version: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - '>='
94
+ - !ruby/object:Gem::Version
95
+ version: '0'
96
+ requirements: []
97
+ rubyforge_project:
98
+ rubygems_version: 2.0.5
99
+ signing_key:
100
+ specification_version: 4
101
+ summary: plays archer sounds
102
+ test_files: []