ipizza 0.7.1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile.lock +13 -11
- data/README.markdown +4 -0
- data/ipizza.gemspec +2 -1
- data/lib/ipizza/util.rb +0 -1
- data/lib/ipizza/version.rb +1 -1
- data/spec/ipizza/provider/swedbank_spec.rb +2 -2
- metadata +72 -81
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: b744dc05a11b37b526674e00c463d796432a4377
|
4
|
+
data.tar.gz: da0592a825d8c37ee6d7296f31fdf7fa08b185dd
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 236a522ff6096ce20b54926eb2856a7c88a945f2d98d205a91fef524c1f8d649422547c7dc13665b9372d9eab12ac9ed3b3f2099a1fd229835e6a3f716ddc593
|
7
|
+
data.tar.gz: 29775311abb40b01f940ac05ca945d2bbd3c7ab65d7a3fcc109f8f3c8bfb8215cc83d9eaf9e1a2807b9599ecd9498459466138871adbd39a81bfda97d64c7cbe
|
data/Gemfile.lock
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
ipizza (0.
|
4
|
+
ipizza (1.0.0)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: http://rubygems.org/
|
8
8
|
specs:
|
9
9
|
coderay (1.0.8)
|
10
|
-
diff-lcs (1.1.
|
10
|
+
diff-lcs (1.1.3)
|
11
11
|
guard (1.6.1)
|
12
12
|
listen (>= 0.6.0)
|
13
13
|
lumberjack (>= 1.0.2)
|
@@ -22,15 +22,16 @@ GEM
|
|
22
22
|
coderay (~> 1.0.5)
|
23
23
|
method_source (~> 0.8)
|
24
24
|
slop (~> 3.3.1)
|
25
|
+
rake (10.3.1)
|
25
26
|
rb-fsevent (0.9.1)
|
26
|
-
rspec (2.
|
27
|
-
rspec-core (~> 2.
|
28
|
-
rspec-expectations (~> 2.
|
29
|
-
rspec-mocks (~> 2.
|
30
|
-
rspec-core (2.
|
31
|
-
rspec-expectations (2.
|
32
|
-
diff-lcs (~> 1.1.
|
33
|
-
rspec-mocks (2.
|
27
|
+
rspec (2.9.0)
|
28
|
+
rspec-core (~> 2.9.0)
|
29
|
+
rspec-expectations (~> 2.9.0)
|
30
|
+
rspec-mocks (~> 2.9.0)
|
31
|
+
rspec-core (2.9.0)
|
32
|
+
rspec-expectations (2.9.1)
|
33
|
+
diff-lcs (~> 1.1.3)
|
34
|
+
rspec-mocks (2.9.0)
|
34
35
|
slop (3.3.3)
|
35
36
|
thor (0.16.0)
|
36
37
|
|
@@ -40,5 +41,6 @@ PLATFORMS
|
|
40
41
|
DEPENDENCIES
|
41
42
|
guard-rspec
|
42
43
|
ipizza!
|
44
|
+
rake
|
43
45
|
rb-fsevent
|
44
|
-
rspec (~> 2.
|
46
|
+
rspec (~> 2.9.0)
|
data/README.markdown
CHANGED
@@ -6,6 +6,10 @@ Add gem dependency in your `Gemfile` and install the gem:
|
|
6
6
|
|
7
7
|
gem 'ipizza'
|
8
8
|
|
9
|
+
## Ruby 1.8 support
|
10
|
+
|
11
|
+
Since ipizza gem version 1.0.0, Ruby 1.8 support has been dropped. If you need to use this gem with older versions of Ruby, use 0.7.1 version of this gem.
|
12
|
+
|
9
13
|
# Configuration
|
10
14
|
|
11
15
|
Configuration can be made in two different ways, using `Ipizza::Config.configure` block or loading configuration properties from YAML file.
|
data/ipizza.gemspec
CHANGED
@@ -12,9 +12,10 @@ 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.
|
15
|
+
s.add_development_dependency 'rspec', '~> 2.9.0'
|
16
16
|
s.add_development_dependency 'guard-rspec'
|
17
17
|
s.add_development_dependency 'rb-fsevent'
|
18
|
+
s.add_development_dependency 'rake'
|
18
19
|
|
19
20
|
s.files = `git ls-files`.split("\n")
|
20
21
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
data/lib/ipizza/util.rb
CHANGED
data/lib/ipizza/version.rb
CHANGED
@@ -17,8 +17,8 @@ describe Ipizza::Provider::Swedbank do
|
|
17
17
|
before(:each) do
|
18
18
|
@params = {
|
19
19
|
'VK_T_NO' => '587', 'encoding' => 'UTF-8', 'VK_REC_ID' => 'fraktal', 'VK_REF' => '201107010000080',
|
20
|
-
'VK_SND_NAME' =>
|
21
|
-
'VK_LANG' => 'EST', 'VK_SERVICE' => '1101', 'VK_REC_NAME' =>
|
20
|
+
'VK_SND_NAME' => 'TÕNU RUNNEL'.encode('iso-8859-4'), 'VK_T_DATE' => '01.07.2011', 'VK_STAMP' => '20110701000008', 'VK_SND_ACC' => '1108126403',
|
21
|
+
'VK_LANG' => 'EST', 'VK_SERVICE' => '1101', 'VK_REC_NAME' => 'FRAKTAL OÜ'.encode('iso-8859-4'), 'VK_AMOUNT' => '0.17',
|
22
22
|
'VK_MSG' => 'Edicy invoice #20110701000008', 'VK_AUTO' => 'N', 'VK_SND_ID' => 'HP', 'VK_VERSION' => '008', 'VK_ENCODING' => 'ISO-8859-4',
|
23
23
|
'VK_REC_ACC' => '221038811930', 'VK_CURR' => 'EUR',
|
24
24
|
'VK_MAC' => 'geOA+gjLJlFouGMih0WhbQwTehZM1FVus1OhO34yt8shekINWOzUi6gLymq9HYSDIAx/Gw2iUOKGxzhCRsXu3fxjVVlXpS9YRQfFF8HG1zoU2OUiNBZVa+7bGGDLOy+ZIhnyaW1I3jIFXHd57xDyCVCQvB0Ot4Ya9yE3YMKHTk4='
|
metadata
CHANGED
@@ -1,79 +1,81 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: ipizza
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 7
|
9
|
-
- 1
|
10
|
-
version: 0.7.1
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
6
|
+
authors:
|
13
7
|
- Priit Haamer
|
14
8
|
autorequire:
|
15
9
|
bindir: bin
|
16
10
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
dependencies:
|
21
|
-
- !ruby/object:Gem::Dependency
|
11
|
+
date: 2014-05-22 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
22
14
|
name: rspec
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
hash: 23
|
30
|
-
segments:
|
31
|
-
- 2
|
32
|
-
- 6
|
33
|
-
- 0
|
34
|
-
version: 2.6.0
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 2.9.0
|
35
20
|
type: :development
|
36
|
-
version_requirements: *id001
|
37
|
-
- !ruby/object:Gem::Dependency
|
38
|
-
name: guard-rspec
|
39
21
|
prerelease: false
|
40
|
-
|
41
|
-
|
42
|
-
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 2.9.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: guard-rspec
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
43
31
|
- - ">="
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
|
46
|
-
segments:
|
47
|
-
- 0
|
48
|
-
version: "0"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
49
34
|
type: :development
|
50
|
-
|
51
|
-
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
52
42
|
name: rb-fsevent
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
53
49
|
prerelease: false
|
54
|
-
|
55
|
-
|
56
|
-
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
57
59
|
- - ">="
|
58
|
-
- !ruby/object:Gem::Version
|
59
|
-
|
60
|
-
segments:
|
61
|
-
- 0
|
62
|
-
version: "0"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
63
62
|
type: :development
|
64
|
-
|
65
|
-
|
66
|
-
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
description: Simplifies generating payment requests and parsing responses from banks
|
70
|
+
when using iPizza protocol.
|
71
|
+
email:
|
67
72
|
- priit@fraktal.ee
|
68
73
|
executables: []
|
69
|
-
|
70
74
|
extensions: []
|
71
|
-
|
72
75
|
extra_rdoc_files: []
|
73
|
-
|
74
|
-
|
75
|
-
- .
|
76
|
-
- .rspec
|
76
|
+
files:
|
77
|
+
- ".gitignore"
|
78
|
+
- ".rspec"
|
77
79
|
- Gemfile
|
78
80
|
- Gemfile.lock
|
79
81
|
- Guardfile
|
@@ -128,41 +130,30 @@ files:
|
|
128
130
|
- spec/ipizza/util_spec.rb
|
129
131
|
- spec/spec_helper.rb
|
130
132
|
- spec/support/pizza.rb
|
131
|
-
has_rdoc: true
|
132
133
|
homepage: http://github.com/priithaamer/ipizza
|
133
134
|
licenses: []
|
134
|
-
|
135
|
+
metadata: {}
|
135
136
|
post_install_message:
|
136
137
|
rdoc_options: []
|
137
|
-
|
138
|
-
require_paths:
|
138
|
+
require_paths:
|
139
139
|
- lib
|
140
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
141
|
-
|
142
|
-
requirements:
|
140
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
141
|
+
requirements:
|
143
142
|
- - ">="
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
version: "0"
|
149
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
150
|
-
none: false
|
151
|
-
requirements:
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
version: '0'
|
145
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
146
|
+
requirements:
|
152
147
|
- - ">="
|
153
|
-
- !ruby/object:Gem::Version
|
154
|
-
|
155
|
-
segments:
|
156
|
-
- 0
|
157
|
-
version: "0"
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
version: '0'
|
158
150
|
requirements: []
|
159
|
-
|
160
151
|
rubyforge_project:
|
161
|
-
rubygems_version:
|
152
|
+
rubygems_version: 2.2.0
|
162
153
|
signing_key:
|
163
|
-
specification_version:
|
154
|
+
specification_version: 4
|
164
155
|
summary: Implements iPizza protocol to communicate with Estonian Banks
|
165
|
-
test_files:
|
156
|
+
test_files:
|
166
157
|
- spec/certificates/bank.crt
|
167
158
|
- spec/certificates/bank.csr
|
168
159
|
- spec/certificates/bank.key
|