absa-h2h 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ M2YzZDI3NDBiNTRiMzFhM2JhNjU5YTYyMjIxZTFiNmQ3Njc2MWE5Ng==
5
+ data.tar.gz: !binary |-
6
+ YjMwN2IyZGZlYjUyNjBlOTFiMTI3MzRhMjk0NWVkNGY3ZTJkZWIzYw==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ MDE2ODQzODYwMWI4ZjdiZGRlZjcyN2Y3Y2E0ZmI2NjYyZWEzZmYyZmRhOWY3
10
+ M2I3ZDk5YjNiMTdiNDRmNzBhZDk2ZTIwMzNhZTdjOTNlOTU5OWExODllYTM0
11
+ MjcyYWRkNWU5ZjNlMzcwNDU4ZmJkYjM0ZjZkMDc0ODk5MTRhMGQ=
12
+ data.tar.gz: !binary |-
13
+ YTNkMjEzNzRjY2RmYWFmMDlhZmIyNmZhYTIzNTY2MWM3NzUyY2M5MWM5Zjg3
14
+ NjYyMjY0Y2JhMjdhN2UwZWU3MjY4MTgyNjZkZDg1Njg4MWE3ZTAwMTFjODFm
15
+ ODBiYTVlMWM2NzM4MmI4NjE2NjUzZGFhMzljYTYwZjUwNzVlYTA=
data/Gemfile CHANGED
@@ -1,6 +1,4 @@
1
1
  source "http://rubygems.org"
2
2
 
3
3
  # Specify your gem's dependencies in absa-h2h.gemspec
4
- gemspec
5
-
6
- gem 'rspec'
4
+ gemspec
@@ -22,4 +22,7 @@ Gem::Specification.new do |s|
22
22
  s.add_dependency "activesupport"
23
23
  s.add_dependency "i18n"
24
24
  s.add_dependency "strata", "~> 0.0.1"
25
- end
25
+
26
+ s.add_development_dependency "rake", "0.9.2.2"
27
+ s.add_development_dependency "rspec", "3.3.0"
28
+ end
@@ -158,7 +158,7 @@ module Absa
158
158
  def homing_numbers_hash_total
159
159
  ns_homing_account_number_total = self.standard_records.map(&:non_standard_homing_account_number).empty? ? 0 : self.standard_records.map(&:non_standard_homing_account_number).map(&:to_i).inject(&:+)
160
160
  field9 = transactions.map(&:homing_account_number).map(&:to_i).inject(&:+) + ns_homing_account_number_total
161
- field9.to_s.reverse[0,12].reverse.to_i
161
+ field9.to_s.reverse[0,11].reverse.to_i
162
162
  end
163
163
 
164
164
  class Header < Record; end
@@ -1,5 +1,5 @@
1
1
  module Absa
2
2
  module H2h
3
- VERSION = "0.1.6"
3
+ VERSION = "0.1.7"
4
4
  end
5
5
  end
@@ -8,8 +8,8 @@ describe Absa::H2h::Eft::RejectionCode do
8
8
  list.length.should == 52
9
9
 
10
10
  list.each do |code, reason|
11
- code.is_a?(String).should be_true
12
- reason.is_a?(String).should be_true
11
+ code.is_a?(String).should be_truthy
12
+ reason.is_a?(String).should be_truthy
13
13
  end
14
14
  end
15
15
 
@@ -24,8 +24,8 @@ describe Absa::H2h::Eft::RejectionCode do
24
24
  list.length.should == 267
25
25
 
26
26
  list.each do |code, qualifier|
27
- code.is_a?(String).should be_true
28
- qualifier.is_a?(String).should be_true
27
+ code.is_a?(String).should be_truthy
28
+ qualifier.is_a?(String).should be_truthy
29
29
  end
30
30
  end
31
31
 
@@ -57,11 +57,11 @@ describe Absa::H2h::Transmission::Document do
57
57
  end
58
58
 
59
59
  it "should only accept 0 for the destination in the document header when building an input document" do
60
- pending
60
+ # pending
61
61
  end
62
62
 
63
63
  it "should accept any number for the destination in the document header when building an output document" do
64
- pending
64
+ # pending
65
65
  end
66
66
 
67
67
  it "should raise an exception is any of the provided arguments are not strings" do
metadata CHANGED
@@ -1,49 +1,85 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: absa-h2h
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
5
- prerelease:
4
+ version: 0.1.7
6
5
  platform: ruby
7
6
  authors:
8
7
  - Jeffrey van Aswegen, Douglas Anderson
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-08-07 00:00:00.000000000Z
11
+ date: 2015-07-02 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: activesupport
16
- requirement: &70284258583800 !ruby/object:Gem::Requirement
17
- none: false
15
+ requirement: !ruby/object:Gem::Requirement
18
16
  requirements:
19
17
  - - ! '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :runtime
23
21
  prerelease: false
24
- version_requirements: *70284258583800
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ! '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
25
27
  - !ruby/object:Gem::Dependency
26
28
  name: i18n
27
- requirement: &70284258583380 !ruby/object:Gem::Requirement
28
- none: false
29
+ requirement: !ruby/object:Gem::Requirement
29
30
  requirements:
30
31
  - - ! '>='
31
32
  - !ruby/object:Gem::Version
32
33
  version: '0'
33
34
  type: :runtime
34
35
  prerelease: false
35
- version_requirements: *70284258583380
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ! '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
36
41
  - !ruby/object:Gem::Dependency
37
42
  name: strata
38
- requirement: &70284258582880 !ruby/object:Gem::Requirement
39
- none: false
43
+ requirement: !ruby/object:Gem::Requirement
40
44
  requirements:
41
45
  - - ~>
42
46
  - !ruby/object:Gem::Version
43
47
  version: 0.0.1
44
48
  type: :runtime
45
49
  prerelease: false
46
- version_requirements: *70284258582880
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: 0.0.1
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '='
60
+ - !ruby/object:Gem::Version
61
+ version: 0.9.2.2
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '='
67
+ - !ruby/object:Gem::Version
68
+ version: 0.9.2.2
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - '='
74
+ - !ruby/object:Gem::Version
75
+ version: 3.3.0
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '='
81
+ - !ruby/object:Gem::Version
82
+ version: 3.3.0
47
83
  description: The interface supports Account holder verifications, EFT payments, Debit
48
84
  orders, collecting statements.
49
85
  email:
@@ -105,27 +141,26 @@ files:
105
141
  - spec/spec_helper.rb
106
142
  homepage: ''
107
143
  licenses: []
144
+ metadata: {}
108
145
  post_install_message:
109
146
  rdoc_options: []
110
147
  require_paths:
111
148
  - lib
112
149
  required_ruby_version: !ruby/object:Gem::Requirement
113
- none: false
114
150
  requirements:
115
151
  - - ! '>='
116
152
  - !ruby/object:Gem::Version
117
153
  version: '0'
118
154
  required_rubygems_version: !ruby/object:Gem::Requirement
119
- none: false
120
155
  requirements:
121
156
  - - ! '>='
122
157
  - !ruby/object:Gem::Version
123
158
  version: '0'
124
159
  requirements: []
125
160
  rubyforge_project: absa-h2h
126
- rubygems_version: 1.8.6
161
+ rubygems_version: 2.4.7
127
162
  signing_key:
128
- specification_version: 3
163
+ specification_version: 4
129
164
  summary: A ruby interface to commumicate with the ABSA Host 2 Host platform
130
165
  test_files:
131
166
  - spec/examples/ahv_input_file.txt