ipizza 0.5.3 → 0.5.4
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.
- data/Gemfile.lock +9 -9
- data/README.markdown +1 -1
- data/ipizza.gemspec +1 -1
- data/lib/ipizza/util.rb +6 -2
- data/lib/ipizza/version.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- data/spec/support/pizza.rb +1 -1
- metadata +8 -8
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
ipizza (0.5.
|
4
|
+
ipizza (0.5.4)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: http://rubygems.org/
|
@@ -17,14 +17,14 @@ GEM
|
|
17
17
|
open_gem (1.4.2)
|
18
18
|
launchy (~> 0.3.5)
|
19
19
|
rake (0.8.7)
|
20
|
-
rspec (2.
|
21
|
-
rspec-core (~> 2.
|
22
|
-
rspec-expectations (~> 2.
|
23
|
-
rspec-mocks (~> 2.
|
24
|
-
rspec-core (2.
|
25
|
-
rspec-expectations (2.
|
20
|
+
rspec (2.6.0)
|
21
|
+
rspec-core (~> 2.6.0)
|
22
|
+
rspec-expectations (~> 2.6.0)
|
23
|
+
rspec-mocks (~> 2.6.0)
|
24
|
+
rspec-core (2.6.2)
|
25
|
+
rspec-expectations (2.6.0)
|
26
26
|
diff-lcs (~> 1.1.2)
|
27
|
-
rspec-mocks (2.
|
27
|
+
rspec-mocks (2.6.0)
|
28
28
|
thor (0.14.6)
|
29
29
|
|
30
30
|
PLATFORMS
|
@@ -33,4 +33,4 @@ PLATFORMS
|
|
33
33
|
DEPENDENCIES
|
34
34
|
guard
|
35
35
|
ipizza!
|
36
|
-
rspec (
|
36
|
+
rspec (~> 2.6.0)
|
data/README.markdown
CHANGED
@@ -76,7 +76,7 @@ Gateway specifications
|
|
76
76
|
This library currently works with four Estonian Banks. Here are their respective interface specifications:
|
77
77
|
|
78
78
|
* [Swedbank](https://www.swedbank.ee/static/pdf/business/d2d/paymentcollection/info_banklink_techspec_est.pdf)
|
79
|
-
* [SEB](http://www.seb.ee/
|
79
|
+
* [SEB](http://www.seb.ee/ari/maksete-kogumine/maksete-kogumine-internetis/tehniline-spetsifikatsioon)
|
80
80
|
* [Sampo](http://www.sampopank.ee/et/14732.html)
|
81
81
|
* [Nordea](http://www.nordea.ee/Teenused+ärikliendile/E-lahendused/787802.html)
|
82
82
|
|
data/ipizza.gemspec
CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
|
|
12
12
|
s.summary = %q{Implements iPizza protocol to communicate with Estonian Banks}
|
13
13
|
s.description = %q{Simplifies generating payment requests and parsing responses from banks when using iPizza protocol.}
|
14
14
|
|
15
|
-
s.add_development_dependency 'rspec', '
|
15
|
+
s.add_development_dependency 'rspec', '~> 2.6.0'
|
16
16
|
s.add_development_dependency 'guard'
|
17
17
|
|
18
18
|
s.files = `git ls-files`.split("\n")
|
data/lib/ipizza/util.rb
CHANGED
@@ -22,7 +22,7 @@ module Ipizza
|
|
22
22
|
|
23
23
|
# Calculates and adds control number using 7-3-1 algoritm for Estonian banking account and reference numbers.
|
24
24
|
def sign_731(ref_num)
|
25
|
-
arr = ref_num.to_s.
|
25
|
+
arr = ref_num.to_s.reverse.split('')
|
26
26
|
m = 0
|
27
27
|
r = 0
|
28
28
|
|
@@ -62,7 +62,11 @@ module Ipizza
|
|
62
62
|
|
63
63
|
# p(x) is length of the field x represented by three digits
|
64
64
|
def func_p(val)
|
65
|
-
|
65
|
+
if RUBY_VERSION < '1.9'
|
66
|
+
sprintf("%03i", val.size)
|
67
|
+
else
|
68
|
+
sprintf("%03i", val.bytesize)
|
69
|
+
end
|
66
70
|
end
|
67
71
|
end
|
68
72
|
end
|
data/lib/ipizza/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
data/spec/support/pizza.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ipizza
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 3
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 0.5.
|
9
|
+
- 4
|
10
|
+
version: 0.5.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Priit Haamer
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-06-
|
18
|
+
date: 2011-06-20 00:00:00 +03:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -24,14 +24,14 @@ dependencies:
|
|
24
24
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
25
|
none: false
|
26
26
|
requirements:
|
27
|
-
- -
|
27
|
+
- - ~>
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
hash:
|
29
|
+
hash: 23
|
30
30
|
segments:
|
31
31
|
- 2
|
32
|
-
-
|
32
|
+
- 6
|
33
33
|
- 0
|
34
|
-
version: 2.
|
34
|
+
version: 2.6.0
|
35
35
|
type: :development
|
36
36
|
version_requirements: *id001
|
37
37
|
- !ruby/object:Gem::Dependency
|