ipizza-rails 1.0.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7fbb0f01a1ce9795c04da7ae1dcd82123e1c9825
4
- data.tar.gz: cf1bab477b7cc90f25932a4c4f87ef1f459be121
3
+ metadata.gz: 355e02999d9c5ceff3c2649893b70e76032496bd
4
+ data.tar.gz: a82deac3f9f7919902bd89d225f3b3d516c3744b
5
5
  SHA512:
6
- metadata.gz: 6c9b847be1e88e3c376c88fbc0a7a8a366d7d4611ee2fc75c96c192b8c4f7e6354ef10b1edb33549a02a653b03d488abce837719431f49c2291e73492467eb9c
7
- data.tar.gz: 5d62ffb0c083a54e069e2a5777909be6ca26ffb8a4f2d0a1aed5954c25032cebecad895e236ad949d8e9bd7b8d5b3b4712c546b4897fe62c9886da66622f9375
6
+ metadata.gz: cb672bf3ec4fbaa62aee9b1e2940822bcbb7594d2dc0010cb92ea60766852a3b78775ce1fb6f34eb0c79dadf6e713996a1728cd009f9598fae49e2346c0473af
7
+ data.tar.gz: 34e85937228562f1f9c3c144a3ac05786d474f6fe7a32fd63e91182a9f4499a943cf5b4b1d022c24f63e5fe78550d2f7b4f033f8f60b35bde8e865bd0594cbe6
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
- source "http://rubygems.org"
1
+ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in ipizza-rails.gemspec
4
4
  gemspec
data/README.markdown CHANGED
@@ -1,9 +1,11 @@
1
- Adds iPizza support to Rails 3 applications. Provides rails generators and easy configuration loading.
1
+ Adds iPizza support to Rails 3+ applications. Provides rails generators and easy configuration loading.
2
+
3
+ Read more about supported providers and configuration options form [ipizza gem hompage](https://github.com/Voog/ipizza).
2
4
 
3
5
  Installation
4
6
  ------------
5
7
 
6
- In your Gemfile add ipizza-rails gem:
8
+ In your `Gemfile` add `ipizza-rails` gem:
7
9
 
8
10
  gem ipizza-rails
9
11
 
data/ipizza-rails.gemspec CHANGED
@@ -6,19 +6,18 @@ Gem::Specification.new do |s|
6
6
  s.name = 'ipizza-rails'
7
7
  s.version = Ipizza::Rails::VERSION
8
8
  s.platform = Gem::Platform::RUBY
9
- s.authors = ['Priit Haamer']
10
- s.email = ['priit@fraktal.ee']
11
- s.homepage = "http://rubygems.org/gems/ipizza-rails"
9
+ s.authors = ['Priit Haamer', 'Tanel Jakobsoo']
10
+ s.email = ['priit@voog.com', 'tanel@voog.com']
11
+ s.homepage = "https://github.com/Voog/ipizza-rails"
12
12
  s.summary = %q{Adds iPizza support to Rails applications}
13
13
  s.description = %q{Helpers to use iPizza inside Rails applications}
14
14
 
15
15
  s.files = `git ls-files`.split("\n")
16
16
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
17
- s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
18
17
  s.require_paths = ['lib']
19
18
 
20
- s.add_dependency(%q<ipizza>, ['>= 1.0.0'])
19
+ s.add_dependency 'ipizza', '>= 2.0.0'
21
20
 
22
- s.add_development_dependency('rspec', ['>= 2.9.0'])
23
- s.add_development_dependency('rake')
21
+ s.add_development_dependency 'rspec', '>= 2.9.0'
22
+ s.add_development_dependency 'rake'
24
23
  end
@@ -3,13 +3,15 @@ module Ipizza
3
3
  module FormHelpers
4
4
  def ipizza_payment_form_tag(payment, options = {}, &block)
5
5
  request = case options.delete(:service).to_sym
6
+ when :lhv
7
+ Ipizza::Provider::Lhv.new.payment_request(payment)
6
8
  when :swedbank
7
9
  Ipizza::Provider::Swedbank.new.payment_request(payment)
8
10
  when :seb
9
11
  Ipizza::Provider::Seb.new.payment_request(payment)
10
12
  when :sampo
11
13
  Ipizza::Provider::Sampo.new.payment_request(payment)
12
- when :nordea
14
+ when :nordea, :danske
13
15
  Ipizza::Provider::Nordea.new.payment_request(payment)
14
16
  when :krediidipank
15
17
  Ipizza::Provider::Krediidipank.new.payment_request(payment)
@@ -1,4 +1,25 @@
1
1
  development:
2
+ lhv:
3
+ service_url: https://lhv.ee/banklink
4
+ return_url: http://localhost:3000/lhv/return
5
+ cancel_url: http://localhost:3000/lhv/cancel
6
+ login: dealer
7
+ file_cert: seb_test_pub.pem
8
+ file_key: seb_test_priv.pem
9
+ encoding: UTF-8
10
+ snd_id: testvpos
11
+
12
+ sampo:
13
+ service_url: https://www2.danskebank.ee/ibank/pizza/pizza
14
+ return_url: http://localhost:3000/sampo
15
+ cancel_url: http://localhost:3000/sampo
16
+ login: dealer
17
+ file_cert: seb_test_pub.pem
18
+ file_key: seb_test_priv.pem
19
+ key_secret: foobar
20
+ encoding: UTF-8
21
+ snd_id: sender
22
+
2
23
  swedbank:
3
24
  service_url: https://www.swedbank.ee/banklink
4
25
  return_url: http://localhost:3000/swedbank/return
@@ -42,6 +63,27 @@ development:
42
63
  snd_id: testvpos
43
64
 
44
65
  test:
66
+ lhv:
67
+ service_url: https://lhv.ee/banklink
68
+ return_url: http://test.host:3000/lhv/return
69
+ cancel_url: http://test.host:3000/lhv/cancel
70
+ login: dealer
71
+ file_cert: seb_test_pub.pem
72
+ file_key: seb_test_priv.pem
73
+ encoding: UTF-8
74
+ snd_id: testvpos
75
+
76
+ sampo:
77
+ service_url: https://www2.danskebank.ee/ibank/pizza/pizza
78
+ return_url: http://test.host/sampo
79
+ cancel_url: http://test.host/sampo
80
+ login: dealer
81
+ file_cert: seb_test_pub.pem
82
+ file_key: seb_test_priv.pem
83
+ key_secret: foobar
84
+ encoding: UTF-8
85
+ snd_id: sender
86
+
45
87
  swedbank:
46
88
  service_url: https://www.swedbank.ee/banklink
47
89
  return_url: http://test.host/swedbank/return
@@ -85,6 +127,27 @@ test:
85
127
  snd_id: testvpos
86
128
 
87
129
  production:
130
+ lhv:
131
+ service_url: https://lhv.ee/banklink
132
+ return_url: http://myapp.host/lhv/return
133
+ cancel_url: http://myapp.host/lhv/cancel
134
+ login: dealer
135
+ file_cert: seb_test_pub.pem
136
+ file_key: seb_test_priv.pem
137
+ encoding: UTF-8
138
+ snd_id: testvpos
139
+
140
+ sampo:
141
+ service_url: https://www2.danskebank.ee/ibank/pizza/pizza
142
+ return_url: http://myapp.host/sampo
143
+ cancel_url: http://myapp.host/sampo
144
+ login: dealer
145
+ file_cert: seb_test_pub.pem
146
+ file_key: seb_test_priv.pem
147
+ key_secret: foobar
148
+ encoding: UTF-8
149
+ snd_id: sender
150
+
88
151
  swedbank:
89
152
  service_url: https://www.swedbank.ee/banklink
90
153
  return_url: http://myapp.host/swedbank/return
@@ -1,5 +1,5 @@
1
1
  module Ipizza
2
2
  module Rails
3
- VERSION = '1.0.0'
3
+ VERSION = '2.0.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ipizza-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Priit Haamer
8
+ - Tanel Jakobsoo
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2014-05-22 00:00:00.000000000 Z
12
+ date: 2015-02-03 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: ipizza
@@ -16,14 +17,14 @@ dependencies:
16
17
  requirements:
17
18
  - - ">="
18
19
  - !ruby/object:Gem::Version
19
- version: 1.0.0
20
+ version: 2.0.0
20
21
  type: :runtime
21
22
  prerelease: false
22
23
  version_requirements: !ruby/object:Gem::Requirement
23
24
  requirements:
24
25
  - - ">="
25
26
  - !ruby/object:Gem::Version
26
- version: 1.0.0
27
+ version: 2.0.0
27
28
  - !ruby/object:Gem::Dependency
28
29
  name: rspec
29
30
  requirement: !ruby/object:Gem::Requirement
@@ -54,7 +55,8 @@ dependencies:
54
55
  version: '0'
55
56
  description: Helpers to use iPizza inside Rails applications
56
57
  email:
57
- - priit@fraktal.ee
58
+ - priit@voog.com
59
+ - tanel@voog.com
58
60
  executables: []
59
61
  extensions: []
60
62
  extra_rdoc_files: []
@@ -77,7 +79,7 @@ files:
77
79
  - lib/ipizza-rails/railtie.rb
78
80
  - lib/ipizza-rails/version.rb
79
81
  - spec/spec_helper.rb
80
- homepage: http://rubygems.org/gems/ipizza-rails
82
+ homepage: https://github.com/Voog/ipizza-rails
81
83
  licenses: []
82
84
  metadata: {}
83
85
  post_install_message:
@@ -96,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
96
98
  version: '0'
97
99
  requirements: []
98
100
  rubyforge_project:
99
- rubygems_version: 2.2.0
101
+ rubygems_version: 2.2.2
100
102
  signing_key:
101
103
  specification_version: 4
102
104
  summary: Adds iPizza support to Rails applications