ebcdic_converter 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/ebcdic_converter.gemspec +1 -1
- data/lib/ebcdic_converter.rb +2 -1
- data/spec/ebcdic_converter_spec.rb +4 -0
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.2
|
data/ebcdic_converter.gemspec
CHANGED
data/lib/ebcdic_converter.rb
CHANGED
@@ -12,5 +12,9 @@ describe "EbcdicConverter" do
|
|
12
12
|
it "converts last digit to negative if ebcdic says it is" do
|
13
13
|
"12K".ebcdic_to_i.should == -122
|
14
14
|
end
|
15
|
+
it "converts last digit to 0 if it's a } OR {" do
|
16
|
+
"00012}".ebcdic_to_i.should == 120
|
17
|
+
"00012{".ebcdic_to_i.should == -120
|
18
|
+
end
|
15
19
|
end
|
16
20
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ebcdic_converter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 1.1.
|
9
|
+
- 2
|
10
|
+
version: 1.1.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Bernie Telles
|