ogone-rails 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -11,4 +11,4 @@ group :development do
11
11
  gem "bundler", "~> 1.1.3"
12
12
  gem "jeweler", "~> 1.8.3"
13
13
  gem "rcov", ">= 0"
14
- end
14
+ end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
@@ -4,6 +4,9 @@ module OgoneRails
4
4
 
5
5
  def initialize request
6
6
  @request = request.GET
7
+ # clear empty keys
8
+ @request.delete_if { |k,v| v.empty? }
9
+
7
10
  @params = {}
8
11
  get_params
9
12
  end
@@ -19,14 +19,17 @@ module OgoneRails
19
19
  Digest::SHA1.hexdigest(@sha_in_phrase).upcase
20
20
  end
21
21
 
22
- def generate_sha_out
23
-
22
+ def get_string
23
+ string = ""
24
+ @params.each do |key, value|
25
+ string << "#{key}=#{value}"
26
+ end
24
27
  end
25
28
 
26
- # unused since Module transformed to Class
27
- def reset
28
- @sha_in_phrase = ""
29
- @params = {}
30
- end
29
+ #-D unused since Module transformed to Class
30
+ #-D def reset
31
+ #-D @sha_in_phrase = ""
32
+ #-D @params = {}
33
+ #-D end
31
34
  end
32
35
  end
data/ogone-rails.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "ogone-rails"
8
- s.version = "0.1.1"
8
+ s.version = "0.1.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Robin Houdmeyers"]
12
- s.date = "2012-10-29"
12
+ s.date = "2012-12-11"
13
13
  s.description = "Add Ogone payments functionality to your Rails application"
14
14
  s.email = "houdmeyers@gmail.com"
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ogone-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-29 00:00:00.000000000 Z
12
+ date: 2012-12-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: shoulda
@@ -139,7 +139,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
139
139
  version: '0'
140
140
  segments:
141
141
  - 0
142
- hash: -3027188611616973303
142
+ hash: -718371390523835808
143
143
  required_rubygems_version: !ruby/object:Gem::Requirement
144
144
  none: false
145
145
  requirements: