ogone-rails 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,27 +1,66 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
- activesupport (3.2.13)
5
- i18n (= 0.6.1)
6
- multi_json (~> 1.0)
7
- git (1.2.5)
8
- i18n (0.6.1)
9
- jeweler (1.8.4)
4
+ activesupport (4.0.0)
5
+ i18n (~> 0.6, >= 0.6.4)
6
+ minitest (~> 4.2)
7
+ multi_json (~> 1.3)
8
+ thread_safe (~> 0.1)
9
+ tzinfo (~> 0.3.37)
10
+ addressable (2.3.5)
11
+ atomic (1.1.13)
12
+ builder (3.2.2)
13
+ faraday (0.8.8)
14
+ multipart-post (~> 1.2.0)
15
+ git (1.2.6)
16
+ github_api (0.10.1)
17
+ addressable
18
+ faraday (~> 0.8.1)
19
+ hashie (>= 1.2)
20
+ multi_json (~> 1.4)
21
+ nokogiri (~> 1.5.2)
22
+ oauth2
23
+ hashie (2.0.5)
24
+ highline (1.6.19)
25
+ httpauth (0.2.0)
26
+ i18n (0.6.5)
27
+ jeweler (1.8.7)
28
+ builder
10
29
  bundler (~> 1.0)
11
30
  git (>= 1.2.5)
31
+ github_api (= 0.10.1)
32
+ highline (>= 1.6.15)
33
+ nokogiri (= 1.5.10)
12
34
  rake
13
35
  rdoc
14
36
  json (1.8.0)
15
- multi_json (1.7.6)
16
- rake (10.0.4)
37
+ jwt (0.1.8)
38
+ multi_json (>= 1.5)
39
+ minitest (4.7.5)
40
+ multi_json (1.7.9)
41
+ multi_xml (0.5.5)
42
+ multipart-post (1.2.0)
43
+ nokogiri (1.5.10)
44
+ oauth2 (0.9.2)
45
+ faraday (~> 0.8)
46
+ httpauth (~> 0.2)
47
+ jwt (~> 0.1.4)
48
+ multi_json (~> 1.0)
49
+ multi_xml (~> 0.5)
50
+ rack (~> 1.2)
51
+ rack (1.5.2)
52
+ rake (10.1.0)
17
53
  rdoc (3.12.2)
18
54
  json (~> 1.4)
19
55
  shoulda (3.5.0)
20
56
  shoulda-context (~> 1.0, >= 1.0.1)
21
57
  shoulda-matchers (>= 1.4.1, < 3.0)
22
- shoulda-context (1.1.2)
23
- shoulda-matchers (2.1.0)
58
+ shoulda-context (1.1.5)
59
+ shoulda-matchers (2.3.0)
24
60
  activesupport (>= 3.0.0)
61
+ thread_safe (0.1.2)
62
+ atomic
63
+ tzinfo (0.3.37)
25
64
 
26
65
  PLATFORMS
27
66
  ruby
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.7
1
+ 0.1.8
@@ -4,7 +4,7 @@ module OgoneRails
4
4
  attr_reader :form_tag, :form_fields
5
5
 
6
6
  def initialize
7
- @form_fields = ""
7
+ @form_fields = {}
8
8
  end
9
9
 
10
10
  def get_form_tag action = "", options = {}
@@ -18,7 +18,16 @@ module OgoneRails
18
18
  end
19
19
 
20
20
  def add_input name, value
21
- @form_fields << "\t<input type='hidden' name='#{name}' value='#{value}' />\n"
21
+ @form_fields[name] = value
22
22
  end
23
+
24
+ def form_fields
25
+ fields = ""
26
+ @form_fields.each do |key, value|
27
+ fields << "\t<input type='hidden' name='#{key}' value='#{value}' />\n"
28
+ end
29
+ fields
30
+ end
31
+
23
32
  end
24
33
  end
@@ -33,6 +33,10 @@ module OgoneRails
33
33
  add_ogone_parameter('language', OgoneRails::language)
34
34
 
35
35
  options_index = {
36
+ # Override default params
37
+ :currency => 'currency',
38
+ :pspid => 'PSPID',
39
+ :language => 'language',
36
40
  # General params
37
41
  :order_id => 'orderID',
38
42
  :amount => 'amount',
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.7"
8
+ s.version = "0.1.8"
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 = "2013-07-05"
12
+ s.date = "2013-09-02"
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.7
4
+ version: 0.1.8
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: 2013-07-05 00:00:00.000000000 Z
12
+ date: 2013-09-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -139,7 +139,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
139
139
  version: '0'
140
140
  segments:
141
141
  - 0
142
- hash: -3212866031273555520
142
+ hash: -2308513819150102254
143
143
  required_rubygems_version: !ruby/object:Gem::Requirement
144
144
  none: false
145
145
  requirements: