sixarm_ruby_alpha_bravo 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/.gemtest +0 -0
- data/README.md +122 -0
- data/Rakefile +8 -0
- data/VERSION +1 -0
- data/lib/sixarm_ruby_alpha_bravo.rb +72 -0
- data/test/sixarm_ruby_alpha_bravo_test.rb +26 -0
- data.tar.gz.sig +1 -0
- metadata +79 -0
- metadata.gz.sig +1 -0
data/.gemtest
ADDED
File without changes
|
data/README.md
ADDED
@@ -0,0 +1,122 @@
|
|
1
|
+
# SixArm.com » Ruby » <br> AlphaBravo class provides lookup for standard alphabet keywords
|
2
|
+
|
3
|
+
* Docs: <http://sixarm.com/sixarm_ruby_alpha_bravo/doc>
|
4
|
+
* Repo: <http://github.com/sixarm/sixarm_ruby_alpha_bravo>
|
5
|
+
* Email: Joel Parker Henderson, <joel@sixarm.com>
|
6
|
+
|
7
|
+
|
8
|
+
## Introduction
|
9
|
+
|
10
|
+
For docs go to <http://sixarm.com/sixarm_ruby_alpha_bravo/doc>
|
11
|
+
|
12
|
+
Want to help? We're happy to get pull requests.
|
13
|
+
|
14
|
+
|
15
|
+
## Quickstart
|
16
|
+
|
17
|
+
Install:
|
18
|
+
|
19
|
+
gem install sixarm_ruby_alpha_bravo
|
20
|
+
|
21
|
+
Bundler:
|
22
|
+
|
23
|
+
gem "sixarm_ruby_alpha_bravo", "=1.0.2"
|
24
|
+
|
25
|
+
Require:
|
26
|
+
|
27
|
+
require "sixarm_ruby_alpha_bravo"
|
28
|
+
|
29
|
+
|
30
|
+
## High Security (Optional)
|
31
|
+
|
32
|
+
To enable high security for all our gems:
|
33
|
+
|
34
|
+
wget http://sixarm.com/sixarm.pem
|
35
|
+
gem cert --add sixarm.pem
|
36
|
+
gem sources --add http://sixarm.com
|
37
|
+
|
38
|
+
To install with high security:
|
39
|
+
|
40
|
+
gem install sixarm_ruby_alpha_bravo --test --trust-policy HighSecurity
|
41
|
+
|
42
|
+
|
43
|
+
## Examples
|
44
|
+
|
45
|
+
List:
|
46
|
+
|
47
|
+
AlphaBravo.list[0] => 'alpha'
|
48
|
+
AlphaBravo.list[1] => 'bravo'
|
49
|
+
AlphaBravo.list[2] => 'charlie'
|
50
|
+
|
51
|
+
Hash:
|
52
|
+
|
53
|
+
AlphaBravo.hash['a'] => 'alpha'
|
54
|
+
AlphaBravo.hash['b'] => 'bravo'
|
55
|
+
AlphaBravo.hash['c'] => 'charlie'
|
56
|
+
|
57
|
+
|
58
|
+
## Details
|
59
|
+
|
60
|
+
The complete set is:
|
61
|
+
|
62
|
+
* alpha
|
63
|
+
* bravo
|
64
|
+
* charlie
|
65
|
+
* delta
|
66
|
+
* echo
|
67
|
+
* foxtrot
|
68
|
+
* golf
|
69
|
+
* hotel
|
70
|
+
* india
|
71
|
+
* juliet
|
72
|
+
* kilo
|
73
|
+
* lima
|
74
|
+
* mike
|
75
|
+
* november
|
76
|
+
* oscar
|
77
|
+
* papa
|
78
|
+
* quebec
|
79
|
+
* romeo
|
80
|
+
* sierra
|
81
|
+
* tango
|
82
|
+
* uniform
|
83
|
+
* victor
|
84
|
+
* whiskey
|
85
|
+
* xray
|
86
|
+
* yankee
|
87
|
+
* zulu
|
88
|
+
|
89
|
+
|
90
|
+
## Changes
|
91
|
+
|
92
|
+
* 2012-03-14 1.0.4 Update docs, tests
|
93
|
+
* 2011-10-06 1.0.2 Updates for gem publishing
|
94
|
+
|
95
|
+
|
96
|
+
## License
|
97
|
+
|
98
|
+
You may choose any of these open source licenses:
|
99
|
+
|
100
|
+
* Apache License
|
101
|
+
* BSD License
|
102
|
+
* CreativeCommons License, Non-commercial Share Alike
|
103
|
+
* GNU General Public License Version 2 (GPL 2)
|
104
|
+
* GNU Lesser General Public License (LGPL)
|
105
|
+
* MIT License
|
106
|
+
* Perl Artistic License
|
107
|
+
* Ruby License
|
108
|
+
|
109
|
+
The software is provided "as is", without warranty of any kind,
|
110
|
+
express or implied, including but not limited to the warranties of
|
111
|
+
merchantability, fitness for a particular purpose and noninfringement.
|
112
|
+
|
113
|
+
In no event shall the authors or copyright holders be liable for any
|
114
|
+
claim, damages or other liability, whether in an action of contract,
|
115
|
+
tort or otherwise, arising from, out of or in connection with the
|
116
|
+
software or the use or other dealings in the software.
|
117
|
+
|
118
|
+
This license is for the included software that is created by SixArm;
|
119
|
+
some of the included software may have its own licenses, copyrights,
|
120
|
+
authors, etc. and these do take precedence over the SixArm license.
|
121
|
+
|
122
|
+
Copyright (c) 2005-2013 Joel Parker Henderson
|
data/Rakefile
ADDED
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.0.4
|
@@ -0,0 +1,72 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
=begin rdoc
|
3
|
+
Please see README
|
4
|
+
=end
|
5
|
+
|
6
|
+
|
7
|
+
class AlphaBravo
|
8
|
+
|
9
|
+
def self.list
|
10
|
+
[
|
11
|
+
'alpha',
|
12
|
+
'bravo',
|
13
|
+
'charlie',
|
14
|
+
'delta',
|
15
|
+
'echo',
|
16
|
+
'foxtrot',
|
17
|
+
'golf',
|
18
|
+
'hotel',
|
19
|
+
'india',
|
20
|
+
'juliet',
|
21
|
+
'kilo',
|
22
|
+
'lima',
|
23
|
+
'mike',
|
24
|
+
'november',
|
25
|
+
'oscar',
|
26
|
+
'papa',
|
27
|
+
'quebec',
|
28
|
+
'romeo',
|
29
|
+
'sierra',
|
30
|
+
'tango',
|
31
|
+
'uniform',
|
32
|
+
'victor',
|
33
|
+
'whiskey',
|
34
|
+
'xray',
|
35
|
+
'yankee',
|
36
|
+
'zulu',
|
37
|
+
]
|
38
|
+
end
|
39
|
+
|
40
|
+
def self.hash
|
41
|
+
{
|
42
|
+
'a' => 'alpha',
|
43
|
+
'b' => 'bravo',
|
44
|
+
'c' => 'charlie',
|
45
|
+
'd' => 'delta',
|
46
|
+
'e' => 'echo',
|
47
|
+
'f' => 'foxtrot',
|
48
|
+
'g' => 'golf',
|
49
|
+
'h' => 'hotel',
|
50
|
+
'i' => 'india',
|
51
|
+
'j' => 'juliet',
|
52
|
+
'k' => 'kilo',
|
53
|
+
'l' => 'lima',
|
54
|
+
'm' => 'mike',
|
55
|
+
'n' => 'november',
|
56
|
+
'o' => 'oscar',
|
57
|
+
'p' => 'papa',
|
58
|
+
'q' => 'quebec',
|
59
|
+
'r' => 'romeo',
|
60
|
+
's' => 'sierra',
|
61
|
+
't' => 'tango',
|
62
|
+
'u' => 'uniform',
|
63
|
+
'v' => 'victor',
|
64
|
+
'w' => 'whiskey',
|
65
|
+
'x' => 'xray',
|
66
|
+
'y' => 'yankee',
|
67
|
+
'z' => 'zulu',
|
68
|
+
}
|
69
|
+
end
|
70
|
+
|
71
|
+
end
|
72
|
+
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
require 'minitest/autorun'
|
3
|
+
require 'simplecov'
|
4
|
+
SimpleCov.start
|
5
|
+
require 'sixarm_ruby_alpha_bravo'
|
6
|
+
|
7
|
+
describe AlphaBravo do
|
8
|
+
|
9
|
+
describe "#list" do
|
10
|
+
|
11
|
+
it "0 => alpha" do
|
12
|
+
AlphaBravo.list[0].must_equal "alpha"
|
13
|
+
end
|
14
|
+
|
15
|
+
end
|
16
|
+
|
17
|
+
describe "#map" do
|
18
|
+
|
19
|
+
it "0 => alpha" do
|
20
|
+
AlphaBravo.hash['a'].must_equal "alpha"
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
24
|
+
|
25
|
+
end
|
26
|
+
|
data.tar.gz.sig
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
���<��Тй7,��ųn�)��t2�&Qbo��`7�sM�^�|�FsEgz�P7�B����po�Հ�����{��u/�#8���:��.�����>]]F^�x:BY�%z�4j�ӏ
|
metadata
ADDED
@@ -0,0 +1,79 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: sixarm_ruby_alpha_bravo
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.4
|
5
|
+
prerelease:
|
6
|
+
platform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jBHQTFVZERnUVdC
|
27
|
+
QlF6UEp0cW1TZ2M1M2VETjdhU3pEUXdyOVRBTERDQmtnWURWUjBqQklHS01J
|
28
|
+
R0gKZ0JRelBKdHFtU2djNTNlRE43YVN6RFF3cjlUQUxLRmtwR0l3WURFTE1B
|
29
|
+
a0dBMVVFQmhNQ1ZWTXhFekFSQmdOVgpCQWdUQ2tOaGJHbG1iM0p1YVdFeEZq
|
30
|
+
QVVCZ05WQkFjVERWTmhiaUJHY21GdVkybHpZMjh4RHpBTkJnTlZCQW9UCkJs
|
31
|
+
TnBlRUZ5YlRFVE1CRUdBMVVFQXhNS2MybDRZWEp0TG1OdmJZSUpBS1B3RUVU
|
32
|
+
VTViSG9NQXdHQTFVZEV3UUYKTUFNQkFmOHdEUVlKS29aSWh2Y05BUUVGQlFB
|
33
|
+
RGdZRUFvb0VleFAvb1BhbTFUUDcxU3l1aHhNYit1VHJaYlNRZQpqVkIrRXhS
|
34
|
+
d1dhZEd3YU5QVUE1NmQzOXF3YXZ3UCtpdSszSnBlb25OTVZ2YldYRjVuYUNY
|
35
|
+
L2RORkllUkVIekVSClpEUlFZTXFydTlURU1uYTZIRDl6cGNzdEY3dndUaEdv
|
36
|
+
dmxPUSszWTZwbFE0bk16aXBYY1o5VEhxczY1UElMMHEKZWFid3BDYkFvcG89
|
37
|
+
Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K
|
38
|
+
date: 2012-03-16 00:00:00.000000000 Z
|
39
|
+
dependencies: []
|
40
|
+
description:
|
41
|
+
email: sixarm@sixarm.com
|
42
|
+
executables: []
|
43
|
+
extensions: []
|
44
|
+
extra_rdoc_files: []
|
45
|
+
files:
|
46
|
+
- .gemtest
|
47
|
+
- Rakefile
|
48
|
+
- README.md
|
49
|
+
- VERSION
|
50
|
+
- lib/sixarm_ruby_alpha_bravo.rb
|
51
|
+
- test/sixarm_ruby_alpha_bravo_test.rb
|
52
|
+
homepage: http://sixarm.com/
|
53
|
+
licenses: []
|
54
|
+
post_install_message:
|
55
|
+
rdoc_options: []
|
56
|
+
require_paths:
|
57
|
+
- lib
|
58
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
59
|
+
none: false
|
60
|
+
requirements:
|
61
|
+
- - ! '>='
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '0'
|
64
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
requirements: []
|
71
|
+
rubyforge_project:
|
72
|
+
rubygems_version: 1.8.11
|
73
|
+
signing_key:
|
74
|
+
specification_version: 3
|
75
|
+
summary: SixArm.com » Ruby » NATO alphabet helper with words for alpha, bravo, charlie,
|
76
|
+
delta, etc.
|
77
|
+
test_files:
|
78
|
+
- test/sixarm_ruby_alpha_bravo_test.rb
|
79
|
+
has_rdoc: true
|
metadata.gz.sig
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
���ĨdeEsO�F�_�kh�+��|f�0p�QV�g���Gg��O�HDyn�趢a�$Z<��H-��o�{���ƞ�jx �SIC�F�b ���E��WL��k,�!�X�mAt����S��ѫ��� �
|