absa-notify-me 0.0.1

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.
@@ -0,0 +1,31 @@
1
+ require 'spec_helper'
2
+
3
+ describe Absa::NotifyMe::XmlStatement do
4
+
5
+ before(:each) do
6
+ @input_string = File.open("./spec/examples/test.xml", "rb").read
7
+ @hash = Absa::NotifyMe::XmlStatement.string_to_hash(@input_string)
8
+ end
9
+
10
+ it "should be able to read the recon transmission header record" do
11
+ @hash[:data][:data].first.should == { :type => "header",
12
+ :data => {
13
+ :daily_no => "2326",
14
+ :client_code => "TEST",
15
+ :client_name => "TEST",
16
+ :processing_date => "20110509",
17
+ :processing_time => "13350612",
18
+ :buss_dir_code => "0310080"}
19
+ }
20
+ end
21
+
22
+ it "should be able to read the recon transmission trailer record" do
23
+ @hash[:data][:data].last.should == { :type => "trailer",
24
+ :data => {
25
+ :total_credit => "31896728",
26
+ :total_debit => "0",
27
+ :total_recs => " 944",
28
+ :check_sum => "031A8EE087CFB656296FF93456B62639"}
29
+ }
30
+ end
31
+ end
@@ -0,0 +1,9 @@
1
+ require 'rubygems'
2
+ require 'bundler/setup'
3
+
4
+ require 'absa-notify-me'
5
+ # require 'nori'
6
+
7
+ RSpec.configure do |config|
8
+ # some (optional) config here
9
+ end
metadata ADDED
@@ -0,0 +1,80 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: absa-notify-me
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Jeffrey van Aswegen, Douglas Anderson
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-06-13 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: nori
16
+ requirement: &70273081818420 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *70273081818420
25
+ description: ! "\n This is just a rapidly prototyped proof of concept gem for \n
26
+ \ bankserv gem and those who can afford to use the ABSA NotifyMe \n Platform.
27
+ \n \n For a production ready gem please rather use absa-esd with the \n bankserv
28
+ gem \n \n https://github.com/tehtorq/absa-esd\n https://github.com/jeffmess/Bankserv\n
29
+ \ "
30
+ email:
31
+ - jeffmess@gmail.com, i.am.douglas.anderson@gmail.com
32
+ executables: []
33
+ extensions: []
34
+ extra_rdoc_files: []
35
+ files:
36
+ - .DS_Store
37
+ - .gitignore
38
+ - .rvmrc
39
+ - Gemfile
40
+ - LICENSE
41
+ - README
42
+ - README.md
43
+ - Rakefile
44
+ - absa-notify-me.gemspec
45
+ - lib/absa-notify-me.rb
46
+ - lib/absa-notify-me/version.rb
47
+ - lib/absa-notify-me/xml_statement.rb
48
+ - spec/.DS_Store
49
+ - spec/examples/test.xml
50
+ - spec/lib/xml_statement_spec.rb
51
+ - spec/spec_helper.rb
52
+ homepage: ''
53
+ licenses: []
54
+ post_install_message:
55
+ rdoc_options: []
56
+ require_paths:
57
+ - lib
58
+ required_ruby_version: !ruby/object:Gem::Requirement
59
+ none: false
60
+ requirements:
61
+ - - ! '>='
62
+ - !ruby/object:Gem::Version
63
+ version: '0'
64
+ required_rubygems_version: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ requirements: []
71
+ rubyforge_project: absa-notify-me
72
+ rubygems_version: 1.8.6
73
+ signing_key:
74
+ specification_version: 3
75
+ summary: A ruby interface to commumicate with the ABSA Notify Me Statement Delivery
76
+ platform.
77
+ test_files:
78
+ - spec/examples/test.xml
79
+ - spec/lib/xml_statement_spec.rb
80
+ - spec/spec_helper.rb