absa-notify-me 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  module Absa
2
2
  module NotifyMe
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
@@ -3,6 +3,11 @@ module Absa
3
3
 
4
4
  class XmlStatement
5
5
 
6
+ def self.file_to_hash(file)
7
+ input_string = File.open(file, "rb").read
8
+ self.string_to_hash(input_string)
9
+ end
10
+
6
11
  def self.string_to_hash(string)
7
12
  hash = {type: 'document', data: {type: 'notifyme_account', data: []}}
8
13
 
@@ -3,8 +3,9 @@ require 'spec_helper'
3
3
  describe Absa::NotifyMe::XmlStatement do
4
4
 
5
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)
6
+ # @input_string = File.open("./spec/examples/test.xml", "rb").read
7
+ # @hash = Absa::NotifyMe::XmlStatement.string_to_hash(@input_string)
8
+ @hash = Absa::NotifyMe::XmlStatement.file_to_hash("./spec/examples/test.xml")
8
9
  end
9
10
 
10
11
  it "should be able to read the recon transmission header record" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: absa-notify-me
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-13 00:00:00.000000000Z
12
+ date: 2012-06-14 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nori
16
- requirement: &70273081818420 !ruby/object:Gem::Requirement
16
+ requirement: &70234842462720 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70273081818420
24
+ version_requirements: *70234842462720
25
25
  description: ! "\n This is just a rapidly prototyped proof of concept gem for \n
26
26
  \ bankserv gem and those who can afford to use the ABSA NotifyMe \n Platform.
27
27
  \n \n For a production ready gem please rather use absa-esd with the \n bankserv