multicash 0.0.6 → 0.0.7

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2934f0c6a9738ee90df45b12650f01b604866094
4
- data.tar.gz: 82a90df7b4e71881f117ae054c2cb831050787ef
3
+ metadata.gz: 092aaa1aca43d7b5f5596e5ae07b75a9bccdf90e
4
+ data.tar.gz: 4f1cd5752e2c0c64a4352c383585bde761f71c97
5
5
  SHA512:
6
- metadata.gz: 98abc1dfdfa5442883016e225a8b92f61459cf6e7a0aa8ef71dbed3d899a63360ab5995b6595ca82b67b911e4e934e4c24724f69fe90ee08d615d17afff6b29b
7
- data.tar.gz: 1fb2d961e5ad960d20291e4071b3f7525772c542df2a18c6b649eabf09b25480f49896191f7d158f7932d27c9898f29f6cc7f3fa3833f6bffc2ceb8304840cb7
6
+ metadata.gz: cbdd0ba2c0f9380c8d43b0fb15a7dc5e65f7dd85f3a0d5efb257520488aadeef95c8f2f854dc4e1bd6b083b7229ff6d6f618f2b7f0b1610d4c57e24d50d59503
7
+ data.tar.gz: 69eab5c126414d19bfcc0f8516d7ea71adfa140517a2d08f69911f83ecb4bc83ca9ee896787385154cef17299b69de935c883546b53a341cea152279382b4780
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.6
1
+ 0.0.7
@@ -12,6 +12,7 @@ module Multicash
12
12
  validates :address, presence: true, allow_blank: false
13
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
16
  def initialize attributes = {}
16
17
  @name = attributes[:name]
17
18
  @city = attributes[:city] || "CITY"
@@ -50,7 +50,8 @@ module Multicash
50
50
  end
51
51
 
52
52
  def order_reference
53
- "#{today}000000000#{reference_counter}"
53
+ counter = sprintf("%010d", reference_counter)
54
+ "#{today}#{counter}"
54
55
  end
55
56
  end
56
57
  end
@@ -2,11 +2,11 @@
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.6 ruby lib
5
+ # stub: multicash 0.0.7 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "multicash"
9
- s.version = "0.0.6"
9
+ s.version = "0.0.7"
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"]
@@ -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[:iban] = "IBAN:BG57FINV915010BGN020QIBIC:FINVBGSF"
19
+ account_attributes[:iban] = "BG93STSA93000021529797"
20
20
  expect(Multicash::Account.new(account_attributes)).to_not be_valid
21
21
  end
22
22
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: multicash
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anton Yordanov