sermepa_web_tpv 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,7 +7,6 @@ module SermepaWebTpv
7
7
  merchant_parameters_hash['Ds_Order']
8
8
  end
9
9
 
10
-
11
10
  def valid?
12
11
  params['Ds_Signature'] == signature
13
12
  end
@@ -17,7 +16,7 @@ module SermepaWebTpv
17
16
  end
18
17
 
19
18
  def signature
20
- Signature.new(self).signature
19
+ Signature.new(self).signature.gsub!(/[+\/]/, '+' => '-', '/' => '_')
21
20
  end
22
21
 
23
22
  def merchant_parameters
@@ -26,7 +25,7 @@ module SermepaWebTpv
26
25
 
27
26
  def merchant_paramters_json
28
27
  @merchant_paramters_json ||=
29
- Base64.urlsafe_decode64(merchant_parameters)
28
+ Base64.urlsafe_decode64(merchant_parameters.split("\n").join(''))
30
29
  end
31
30
 
32
31
  def merchant_parameters_hash
@@ -1,3 +1,3 @@
1
1
  module SermepaWebTpv
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,97 +1,126 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sermepa_web_tpv
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Ricard Forniol Agustí
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2015-12-02 00:00:00.000000000 Z
12
+ date: 2016-01-23 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: rails
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
- - - ">="
19
+ - - ! '>='
18
20
  - !ruby/object:Gem::Version
19
21
  version: '0'
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
- - - ">="
27
+ - - ! '>='
25
28
  - !ruby/object:Gem::Version
26
29
  version: '0'
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: ruby-mcrypt
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
- - - ">="
35
+ - - ! '>='
32
36
  - !ruby/object:Gem::Version
33
37
  version: '0'
34
38
  type: :runtime
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
- - - ">="
43
+ - - ! '>='
39
44
  - !ruby/object:Gem::Version
40
45
  version: '0'
41
46
  - !ruby/object:Gem::Dependency
42
47
  name: sqlite3
43
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
44
50
  requirements:
45
- - - ">="
51
+ - - ! '>='
46
52
  - !ruby/object:Gem::Version
47
53
  version: '0'
48
54
  type: :development
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
51
58
  requirements:
52
- - - ">="
59
+ - - ! '>='
53
60
  - !ruby/object:Gem::Version
54
61
  version: '0'
55
62
  - !ruby/object:Gem::Dependency
56
63
  name: rspec-rails
57
64
  requirement: !ruby/object:Gem::Requirement
65
+ none: false
58
66
  requirements:
59
- - - ">="
67
+ - - ! '>='
60
68
  - !ruby/object:Gem::Version
61
69
  version: '0'
62
70
  type: :development
63
71
  prerelease: false
64
72
  version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
65
74
  requirements:
66
- - - ">="
75
+ - - ! '>='
67
76
  - !ruby/object:Gem::Version
68
77
  version: '0'
69
78
  - !ruby/object:Gem::Dependency
70
79
  name: fuubar
71
80
  requirement: !ruby/object:Gem::Requirement
81
+ none: false
72
82
  requirements:
73
- - - ">="
83
+ - - ! '>='
74
84
  - !ruby/object:Gem::Version
75
85
  version: '0'
76
86
  type: :development
77
87
  prerelease: false
78
88
  version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
79
90
  requirements:
80
- - - ">="
91
+ - - ! '>='
81
92
  - !ruby/object:Gem::Version
82
93
  version: '0'
83
94
  - !ruby/object:Gem::Dependency
84
95
  name: nyan-cat-formatter
85
96
  requirement: !ruby/object:Gem::Requirement
97
+ none: false
86
98
  requirements:
87
- - - ">="
99
+ - - ! '>='
88
100
  - !ruby/object:Gem::Version
89
101
  version: '0'
90
102
  type: :development
91
103
  prerelease: false
92
104
  version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
93
106
  requirements:
94
- - - ">="
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ - !ruby/object:Gem::Dependency
111
+ name: pry-debugger
112
+ requirement: !ruby/object:Gem::Requirement
113
+ none: false
114
+ requirements:
115
+ - - ! '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ! '>='
95
124
  - !ruby/object:Gem::Version
96
125
  version: '0'
97
126
  description: Simple rails engine to add payments to your web application using sermepa
@@ -102,38 +131,39 @@ executables: []
102
131
  extensions: []
103
132
  extra_rdoc_files: []
104
133
  files:
105
- - MIT-LICENSE
106
- - README.md
107
- - Rakefile
108
- - lib/sermepa_web_tpv.rb
109
134
  - lib/sermepa_web_tpv/persistence/active_record.rb
110
135
  - lib/sermepa_web_tpv/railtie.rb
111
136
  - lib/sermepa_web_tpv/request.rb
112
137
  - lib/sermepa_web_tpv/response.rb
113
138
  - lib/sermepa_web_tpv/signature.rb
114
139
  - lib/sermepa_web_tpv/version.rb
140
+ - lib/sermepa_web_tpv.rb
115
141
  - lib/tasks/sermepa_web_tpv.rake
142
+ - MIT-LICENSE
143
+ - Rakefile
144
+ - README.md
116
145
  homepage: http://github.com/ritxi/sermepa_web_tpv
117
146
  licenses: []
118
- metadata: {}
119
147
  post_install_message:
120
148
  rdoc_options: []
121
149
  require_paths:
122
150
  - lib
123
151
  required_ruby_version: !ruby/object:Gem::Requirement
152
+ none: false
124
153
  requirements:
125
- - - ">="
154
+ - - ! '>='
126
155
  - !ruby/object:Gem::Version
127
156
  version: '0'
128
157
  required_rubygems_version: !ruby/object:Gem::Requirement
158
+ none: false
129
159
  requirements:
130
- - - ">="
160
+ - - ! '>='
131
161
  - !ruby/object:Gem::Version
132
162
  version: '0'
133
163
  requirements: []
134
164
  rubyforge_project:
135
- rubygems_version: 2.4.5
165
+ rubygems_version: 1.8.23
136
166
  signing_key:
137
- specification_version: 4
167
+ specification_version: 3
138
168
  summary: Add simple web tpv from sermepa to your rails application
139
169
  test_files: []
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: 622e53c3960c8bc16dc42117a39a42e468219b9d
4
- data.tar.gz: e16987f374bbacedf3fd3c67293cb39a0e1b8155
5
- SHA512:
6
- metadata.gz: 69c1e1d346a063659226d151082b2a4064e17e6c427a2cb65e998140d5905205385b091f277f0c7bad3478218ea5bff62bb439a99e2a48a6e3ab99e332315334
7
- data.tar.gz: 8259b81ec1be69155aad04818666259a6e88de88316a16cf655e8daebc12eb8581a79b959f0ba2d862ad095ad93416bfc96657afd914c3071167b6e7daf53734