vail 0.1.1 → 0.1.2

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
@@ -26,7 +26,17 @@ module Vail
26
26
  "w" => [Dot, Dash, Dash],
27
27
  "x" => [Dash, Dot, Dot, Dash],
28
28
  "y" => [Dash, Dot, Dash, Dash],
29
- "z" => [Dash, Dash, Dot, Dot]
29
+ "z" => [Dash, Dash, Dot, Dot],
30
+ "0" => [Dash,Dash,Dash,Dash,Dash],
31
+ "1" => [Dot, Dash, Dash, Dash, Dash],
32
+ "2" => [Dot, Dot, Dash, Dash, Dash],
33
+ "3" => [Dot, Dot, Dot, Dash, Dash],
34
+ "4" => [Dot, Dot, Dot, Dot, Dash],
35
+ "5" => [Dot, Dot, Dot, Dot, Dot],
36
+ "6" => [Dash, Dot, Dot, Dot, Dot],
37
+ "7" => [Dash, Dash, Dot, Dot, Dot],
38
+ "8" => [Dash, Dash, Dash, Dot, Dot],
39
+ "9" => [Dash, Dash, Dash, Dash, Dot]
30
40
  }
31
41
  def self.to_morse(letter)
32
42
  Morse[letter.downcase] || []
@@ -11,4 +11,9 @@ describe Vail::Translate do
11
11
  Vail::Translate.to_morse(l).should_not be_empty
12
12
  end
13
13
  end
14
+ it "should return morse representations of digits" do
15
+ (0..9).each do |n|
16
+ Vail::Translate.to_morse(n.to_s).should_not be_empty
17
+ end
18
+ end
14
19
  end
data/vail.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{vail}
8
- s.version = "0.1.1"
8
+ s.version = "0.1.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Rory McKinley"]
12
- s.date = %q{2011-06-13}
12
+ s.date = %q{2011-06-14}
13
13
  s.default_executable = %q{vail}
14
14
  s.description = %q{Vail generates audible morse code. Currently it only works on Linux distros that have the beep utility installed. This is hopefully a temporary limitation}
15
15
  s.email = %q{rorymckinley@gmail.com}
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 1
9
- version: 0.1.1
8
+ - 2
9
+ version: 0.1.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Rory McKinley
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-06-13 00:00:00 +02:00
17
+ date: 2011-06-14 00:00:00 +02:00
18
18
  default_executable: vail
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -147,7 +147,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
147
147
  requirements:
148
148
  - - ">="
149
149
  - !ruby/object:Gem::Version
150
- hash: 502417193772436768
150
+ hash: -35729697720693374
151
151
  segments:
152
152
  - 0
153
153
  version: "0"