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 +4 -4
- data/VERSION +1 -1
- data/lib/multicash/account.rb +1 -1
- data/lib/multicash/payment_order.rb +1 -1
- data/multicash.gemspec +3 -3
- data/spec/account_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43c6ef97f40cc606f40359fe407c4103a32805d8
|
4
|
+
data.tar.gz: a65c33778894354ee335b19790313ff3b93ec7ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35004cfdf2e723e34e0d6332cb33e1356bf7e66b63dde091cac61a4b2130bdbddfd23de4246eecd2cce2524b1476c203e6eed21ac96167a84db20031d12f4a1d
|
7
|
+
data.tar.gz: 1adb1a6139458149c7e884c61f4dc51d0c24fb69ca41e808b6833acec29b8c45ad491c94c407a1550ed63c011ba0661a95d70937b647a7c2540c463bc1735a9d
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.5
|
data/lib/multicash/account.rb
CHANGED
@@ -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:
|
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("#{
|
26
|
+
errors.add("transfer - #{@transfers.size}", transfer.errors.full_messages)
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
data/multicash.gemspec
CHANGED
@@ -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.
|
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.
|
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-
|
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 = [
|
data/spec/account_spec.rb
CHANGED
@@ -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
|
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
|
+
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-
|
11
|
+
date: 2014-02-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|