sepa 0.0.13 → 0.0.14

Sign up to get free protection for your applications and to get access to all the features.
data/lib/sepa/base.rb CHANGED
@@ -45,7 +45,7 @@ module Sepa
45
45
  end
46
46
  end
47
47
  elsif meta[:type] == Time
48
- v = item.is_a?(String) ? item : item.strftime("%Y-%m-%dT%H:%M:%S")
48
+ v = item.is_a?(String) ? item : item.strftime("%Y-%m-%dT%H:%M:%SZ")
49
49
  builder.__send__(meta[:tag], v, attributes)
50
50
  elsif meta[:type] == Date
51
51
  v = item.is_a?(String) ? item : item.strftime("%Y-%m-%d")
@@ -1,6 +1,6 @@
1
1
  # -*- coding: utf-8 -*-
2
2
 
3
- require 'countries'
3
+ require 'iso3166'
4
4
  require 'sepa/payments_initiation/pain00800104/customer_direct_debit_initiation'
5
5
 
6
6
  class Sepa::DirectDebitOrder
@@ -32,7 +32,7 @@ class Sepa::DirectDebitOrder
32
32
  return "" if blank?(name)
33
33
  name = name.upcase
34
34
  return name if name.match(/^[A-Z]{2}$/)
35
- country = ::Country.find_country_by_name(name)
35
+ country = ISO3166::Country.find_country_by_name(name)
36
36
  country ? country.alpha2 : ""
37
37
  end
38
38
  end
data/lib/sepa/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Sepa
2
- VERSION = "0.0.13"
2
+ VERSION = "0.0.14"
3
3
  end
@@ -3,7 +3,7 @@
3
3
  <CstmrDrctDbtInitn>
4
4
  <GrpHdr>
5
5
  <MsgId>MSG0001</MsgId>
6
- <CreDtTm>1992-02-28T18:30:00</CreDtTm>
6
+ <CreDtTm>1992-02-28T18:30:00Z</CreDtTm>
7
7
  <NbOfTxs>2</NbOfTxs>
8
8
  <CtrlSum>2963.63</CtrlSum>
9
9
  <InitgPty>
@@ -3,7 +3,7 @@
3
3
  <CstmrDrctDbtInitn>
4
4
  <GrpHdr>
5
5
  <MsgId>MSG0001</MsgId>
6
- <CreDtTm>1992-02-28T18:30:00</CreDtTm>
6
+ <CreDtTm>1992-02-28T18:30:00Z</CreDtTm>
7
7
  <NbOfTxs>6</NbOfTxs>
8
8
  <CtrlSum>8303.01</CtrlSum>
9
9
  <InitgPty>
@@ -3,7 +3,7 @@
3
3
  <CstmrDrctDbtInitn>
4
4
  <GrpHdr>
5
5
  <MsgId>MSG0001</MsgId>
6
- <CreDtTm>1992-02-28T18:30:00</CreDtTm>
6
+ <CreDtTm>1992-02-28T18:30:00Z</CreDtTm>
7
7
  <NbOfTxs>6</NbOfTxs>
8
8
  <CtrlSum>8303.01</CtrlSum>
9
9
  <InitgPty>
@@ -3,7 +3,7 @@
3
3
  <CstmrDrctDbtInitn>
4
4
  <GrpHdr>
5
5
  <MsgId>MSG0001</MsgId>
6
- <CreDtTm>1992-02-28T18:30:00</CreDtTm>
6
+ <CreDtTm>1992-02-28T18:30:00Z</CreDtTm>
7
7
  <NbOfTxs>6</NbOfTxs>
8
8
  <CtrlSum>8303.01</CtrlSum>
9
9
  <InitgPty>
@@ -6,7 +6,7 @@ describe Sepa::PaymentsInitiation::Pain00800104::CustomerDirectDebitInitiation d
6
6
 
7
7
  let(:props) {
8
8
  { "group_header.message_identification" => "MSG0001",
9
- "group_header.creation_date_time" => "1992-02-28T18:30:00",
9
+ "group_header.creation_date_time" => "1992-02-28T18:30:00Z",
10
10
  "group_header.number_of_transactions" => "2",
11
11
  "group_header.control_sum" => "2963.63",
12
12
  "group_header.initiating_party.name" => "SOFTIFY SARL",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sepa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-12-05 00:00:00.000000000 Z
12
+ date: 2013-12-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: builder