serialnumber 0.0.10 → 0.0.11
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/Gemfile.lock +1 -1
- data/VERSION +1 -1
- data/lib/serialnumber/rfc1982.rb +1 -0
- data/serialnumber.gemspec +1 -1
- data/spec/serial_spec.rb +7 -0
- metadata +3 -3
data/Gemfile.lock
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.11
|
data/lib/serialnumber/rfc1982.rb
CHANGED
data/serialnumber.gemspec
CHANGED
data/spec/serial_spec.rb
CHANGED
@@ -42,6 +42,12 @@ describe Serial::RFC1982 do
|
|
42
42
|
Serial::RFC1982.new(100000,2)
|
43
43
|
}.to raise_error(Serial::OutOfBound)
|
44
44
|
end
|
45
|
+
|
46
|
+
it "allows 0 as a valid serial" do
|
47
|
+
expect{
|
48
|
+
Serial::RFC1982.new(0)
|
49
|
+
}.to_not raise_error
|
50
|
+
end
|
45
51
|
end
|
46
52
|
|
47
53
|
context "Core Operations" do
|
@@ -52,6 +58,7 @@ describe Serial::RFC1982 do
|
|
52
58
|
sn + 100000
|
53
59
|
}.to raise_error(Serial::OutOfBound)
|
54
60
|
end
|
61
|
+
|
55
62
|
|
56
63
|
it "adds a value and returns a new serial" do
|
57
64
|
sn = Serial::RFC1982.new(1)
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: serialnumber
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 9
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 11
|
10
|
+
version: 0.0.11
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- David Krentzlin
|