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.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ipizza (0.5.1)
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.5.0)
21
- rspec-core (~> 2.5.0)
22
- rspec-expectations (~> 2.5.0)
23
- rspec-mocks (~> 2.5.0)
24
- rspec-core (2.5.1)
25
- rspec-expectations (2.5.0)
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.5.0)
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 (= 2.5.0)
36
+ rspec (~> 2.6.0)
@@ -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/index/130212050201)
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
 
@@ -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', '= 2.5.0'
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")
@@ -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.dup.reverse!.split('')
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
- sprintf("%03i", val.size)
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
@@ -1,3 +1,3 @@
1
1
  module Ipizza
2
- VERSION = '0.5.3'
2
+ VERSION = '0.5.4'
3
3
  end
@@ -4,6 +4,6 @@ require 'rspec'
4
4
  # in ./support/ and its subdirectories.
5
5
  Dir[File.expand_path(File.join(File.dirname(__FILE__),'support','**','*.rb'))].each {|f| require f}
6
6
 
7
- Rspec.configure do |c|
7
+ RSpec.configure do |c|
8
8
  c.mock_with :rspec
9
9
  end
@@ -1,6 +1,6 @@
1
1
  require 'ipizza'
2
2
 
3
- Rspec.configure do |c|
3
+ RSpec.configure do |c|
4
4
  c.before(:each) do
5
5
  # Load configuration for tests
6
6
  Ipizza::Config.load_from_file(File.expand_path(File.dirname(__FILE__) + '/../config/config.yml'))
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: 13
4
+ hash: 3
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 3
10
- version: 0.5.3
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-03 00:00:00 +03:00
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: 27
29
+ hash: 23
30
30
  segments:
31
31
  - 2
32
- - 5
32
+ - 6
33
33
  - 0
34
- version: 2.5.0
34
+ version: 2.6.0
35
35
  type: :development
36
36
  version_requirements: *id001
37
37
  - !ruby/object:Gem::Dependency