san 1.0.0 → 1.1.0

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.
Files changed (3) hide show
  1. data/lib/san.rb +2 -2
  2. data/spec/san_spec.rb +4 -0
  3. metadata +3 -3
data/lib/san.rb CHANGED
@@ -2,13 +2,13 @@ class SAN
2
2
 
3
3
  class Version #:nodoc:
4
4
  Major = 1
5
- Minor = 0
5
+ Minor = 1
6
6
  Tiny = 0
7
7
 
8
8
  String = [Major, Minor, Tiny].join('.')
9
9
  end
10
10
 
11
- def initialize(num)
11
+ def initialize(str)
12
12
  @number = str.to_s
13
13
  end
14
14
 
data/spec/san_spec.rb CHANGED
@@ -4,6 +4,10 @@ require 'spec'
4
4
  require 'san'
5
5
 
6
6
  describe "The SAN class" do
7
+ it "should identify a valid SAN" do
8
+ SAN.new("9013725").valid?.should be_true
9
+ end
10
+
7
11
  it "should identify a valid SAN" do
8
12
  SAN.valid?("9013725").should be_true
9
13
  SAN.valid?(9013725).should be_true
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: san
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Healy
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-06-16 00:00:00 +10:00
12
+ date: 2008-09-11 00:00:00 +10:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -49,7 +49,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
49
49
  requirements: []
50
50
 
51
51
  rubyforge_project: san
52
- rubygems_version: 1.1.1
52
+ rubygems_version: 1.2.0
53
53
  signing_key:
54
54
  specification_version: 2
55
55
  summary: a (very) small library for working with Standard Address Numbers.