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 CHANGED
@@ -1 +1 @@
1
- 1.1.1
1
+ 1.1.2
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ebcdic_converter}
8
- s.version = "1.1.1"
8
+ s.version = "1.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 = ["Bernie Telles"]
@@ -27,7 +27,8 @@ module EbcdicConverter
27
27
  'O' => '6',
28
28
  'P' => '7',
29
29
  'Q' => '8',
30
- 'R' => '9'
30
+ 'R' => '9',
31
+ '}' => '0'
31
32
  }
32
33
  EBCDIC = EBCDICPOS.merge(EBCDICNEG)
33
34
  end
@@ -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: 17
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
- - 1
10
- version: 1.1.1
9
+ - 2
10
+ version: 1.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Bernie Telles