multicash 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6d245ece852ed962113e40b05202f0526fe03708
4
- data.tar.gz: af5aafce8aa5e763f7552384ae62dfea3fdcdcaa
3
+ metadata.gz: 43c6ef97f40cc606f40359fe407c4103a32805d8
4
+ data.tar.gz: a65c33778894354ee335b19790313ff3b93ec7ec
5
5
  SHA512:
6
- metadata.gz: fc8a89ad85f98e10db1ff60c63c7b9ff3835c061ffa6d206656cba3387d5553894e5a5bd63f9a520fee6f31ad063745023e0d5a43ec0ef7e7c442490a8f784a0
7
- data.tar.gz: e6dce9bd9b7362d5fbbfc0309cd53cb19adc59144143475c3cc99430b1270f4a7c29cdc33b64435cb177adee0597555a3040df7e45430c35f1616a21ba11a2c4
6
+ metadata.gz: 35004cfdf2e723e34e0d6332cb33e1356bf7e66b63dde091cac61a4b2130bdbddfd23de4246eecd2cce2524b1476c203e6eed21ac96167a84db20031d12f4a1d
7
+ data.tar.gz: 1adb1a6139458149c7e884c61f4dc51d0c24fb69ca41e808b6833acec29b8c45ad491c94c407a1550ed63c011ba0661a95d70937b647a7c2540c463bc1735a9d
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.4
1
+ 0.0.5
@@ -10,7 +10,7 @@ module Multicash
10
10
  validates :name, presence: true, allow_blank: false
11
11
  validates :city, presence: true, allow_blank: false
12
12
  validates :address, presence: true, allow_blank: false
13
- validates :iban, presence: true, format: /[A-Z0-9]{2}\d{2}[A-Z0-9]{4}\d{4}[A-Z0-9]{10}/
13
+ validates :iban, presence: true, format: /\A[A-Z0-9]{2}\d{2}[A-Z0-9]{4}\d{4}[A-Z0-9]{10}\z/
14
14
 
15
15
  def initialize attributes = {}
16
16
  @name = attributes[:name]
@@ -23,7 +23,7 @@ module Multicash
23
23
  @currency ||= transfer.currency
24
24
  @ordering_bae ||= transfer.ordering_bae
25
25
  else
26
- errors.add("#{transfer.reference_counter}", transfer.errors.full_messages)
26
+ errors.add("transfer - #{@transfers.size}", transfer.errors.full_messages)
27
27
  end
28
28
  end
29
29
 
@@ -2,15 +2,15 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: multicash 0.0.4 ruby lib
5
+ # stub: multicash 0.0.5 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "multicash"
9
- s.version = "0.0.4"
9
+ s.version = "0.0.5"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.authors = ["Anton Yordanov"]
13
- s.date = "2014-02-05"
13
+ s.date = "2014-02-07"
14
14
  s.description = "Generate payment order under the multicash spec"
15
15
  s.email = "anton.yordnaov@gmail.com"
16
16
  s.extra_rdoc_files = [
@@ -16,7 +16,7 @@ describe "Multicash::Account" do
16
16
  end
17
17
 
18
18
  it "not be valid if required attributes are missing" do
19
- account_attributes.delete(:iban)
19
+ account_attributes[:iban] = "IBAN:BG57FINV915010BGN020QIBIC:FINVBGSF"
20
20
  expect(Multicash::Account.new(account_attributes)).to_not be_valid
21
21
  end
22
22
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: multicash
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anton Yordanov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-05 00:00:00.000000000 Z
11
+ date: 2014-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel