ogone-rails 0.0.4 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.DS_Store +0 -0
- data/README.md +107 -45
- data/VERSION +1 -1
- data/lib/.DS_Store +0 -0
- data/lib/generators/.DS_Store +0 -0
- data/lib/generators/ogone/.DS_Store +0 -0
- data/lib/generators/ogone/config_generator.rb +46 -0
- data/lib/generators/ogone/templates/ogone.rb +4 -0
- data/lib/generators/ogone/templates/ogone.yml +23 -0
- data/lib/ogone-rails.rb +1 -0
- data/lib/ogone-rails/config.rb +4 -4
- data/lib/ogone-rails/form.rb +23 -0
- data/lib/ogone-rails/helpers.rb +73 -152
- data/lib/rails/.DS_Store +0 -0
- data/ogone-rails.gemspec +12 -3
- metadata +48 -14
data/.DS_Store
ADDED
Binary file
|
data/README.md
CHANGED
@@ -10,65 +10,127 @@ A Ruby gem to simplify the use of [Ogone](http://www.ogone.com) online payments
|
|
10
10
|
|
11
11
|
### Installation
|
12
12
|
gem install ogone-rails
|
13
|
+
# or include in a gemfile
|
14
|
+
gem 'ogone-rails'
|
13
15
|
|
14
16
|
### Configuration
|
15
|
-
Define:
|
17
|
+
Define ogone parameters in a yaml config file:
|
18
|
+
|
19
|
+
# config/ogone.yml
|
20
|
+
development:
|
21
|
+
pspid: "hoetmaaiers"
|
22
|
+
sha_in: "0123456789abcdefghijklmnopqrstuv"
|
23
|
+
sha_out: "vutsrqponmlkjihgfedcba9876543210"
|
24
|
+
currency: "EUR"
|
25
|
+
language: "nl_NL"
|
26
|
+
mode: 'test'
|
27
|
+
production:
|
28
|
+
pspid: "hoetmaaiers"
|
29
|
+
sha_in: "0123456789abcdefghijklmnopqrstuv"
|
30
|
+
sha_out: "vutsrqponmlkjihgfedcba9876543210"
|
31
|
+
currency: "EUR"
|
32
|
+
language: "nl_NL"
|
33
|
+
mode: 'live'
|
34
|
+
|
35
|
+
Configure ogone-rails in an initializer:
|
36
|
+
|
37
|
+
# initializers/ogone.rb
|
38
|
+
ogone_config = YAML.load_file('config/ogone.yml')[Rails.env].symbolize_keys
|
39
|
+
OgoneRails::config (ogone_config)
|
40
|
+
|
41
|
+
|
42
|
+
#### Parameters
|
43
|
+
__required__
|
16
44
|
|
17
45
|
* PSPID
|
18
46
|
* sha_in
|
19
47
|
* sha_out
|
20
|
-
* currency | default: "EUR"
|
21
|
-
* language | default: "nl_NL"
|
22
|
-
* test | default = "live"
|
23
|
-
|
24
48
|
|
49
|
+
__optional__
|
25
50
|
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
:pspid => "myPSPID",
|
30
|
-
:sha_in => "0123456789abcdefghijklmnopqrstuv",
|
31
|
-
:sha_out => "vutsrqponmlkjihgfedcba9876543210",
|
32
|
-
:mode => "test""
|
33
|
-
})
|
51
|
+
* currency, _default: "EUR"_
|
52
|
+
* language, _default: "nl_NL"_
|
53
|
+
* mode, _default = "live"_
|
34
54
|
|
35
55
|
|
36
56
|
|
37
57
|
### Helpers
|
38
|
-
|
58
|
+
|
59
|
+
#### New syntax
|
60
|
+
|
61
|
+
Generate an **ogone_form** whith the new syntax.
|
62
|
+
|
63
|
+
|
64
|
+
**Full example**
|
65
|
+
|
66
|
+
ogone_form_tag({:id => "form"}) do
|
67
|
+
form_content = ogone_fields({
|
68
|
+
:parameter => value
|
69
|
+
...
|
70
|
+
})
|
71
|
+
|
72
|
+
# add custom submit
|
73
|
+
form_content << '<input type="submit" value="pay now" />'
|
74
|
+
end
|
75
|
+
|
76
|
+
**ogone_form_tag** example
|
77
|
+
|
78
|
+
ogone_form_tag({ :html_attribute => "value" }) do
|
79
|
+
...
|
80
|
+
# everything in here must be in one variable
|
81
|
+
form_content = "…"
|
82
|
+
form_content << "…"
|
83
|
+
...
|
84
|
+
end
|
85
|
+
|
86
|
+
**ogone_fields** example
|
87
|
+
|
88
|
+
Generate hidden input fields with ogone parameters.
|
89
|
+
|
90
|
+
|
91
|
+
ogone_fields({
|
92
|
+
:parameter => "value",
|
93
|
+
...
|
94
|
+
}
|
95
|
+
|
96
|
+
#### Parameters
|
97
|
+
|
98
|
+
ogone_fields_options = {
|
99
|
+
# General parameters
|
100
|
+
:order_id => 'orderID',
|
101
|
+
:amount => 'amount',
|
102
|
+
:customer_name => 'CN',
|
103
|
+
:customer_email => 'EMAIL',
|
104
|
+
:customer_address => 'owneraddress',
|
105
|
+
:customer_zip => 'ownerZIP',
|
106
|
+
:customer_city => 'ownertown',
|
107
|
+
:customer_country => 'ownercty',
|
108
|
+
:customer_phone => 'ownertelno',
|
109
|
+
# Feedback url's
|
110
|
+
:accept_url => 'accepturl',
|
111
|
+
:decline_url => 'declineurl',
|
112
|
+
:exception_url => 'exceptionurl',
|
113
|
+
:cancel_url => 'cancelurl',
|
114
|
+
# Look and feel
|
115
|
+
:title => 'TITLE',
|
116
|
+
:bg_color => 'BGCOLOR',
|
117
|
+
:text_color => 'TXTCOLOR',
|
118
|
+
:table_bg_color => 'TBLBGCOLOR',
|
119
|
+
:table_text_color => 'TBLTXTCOLOR',
|
120
|
+
:button_bg_color => 'BUTTONBGCOLOR',
|
121
|
+
:button_text_color => 'BUTTONTXTCOLOR',
|
122
|
+
:font_family => 'FONTTYPE',
|
123
|
+
:logo => 'LOGO'
|
124
|
+
}
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
####No worry, old syntax is still enabled...
|
129
|
+
|
39
130
|
|
40
131
|
ogone_form({
|
41
|
-
|
42
|
-
|
43
|
-
:amount => 299.99,
|
44
|
-
:customer_name => "Jan Janssen",
|
45
|
-
:customer_email => "jan@email.com",
|
46
|
-
:customer_address => "highstreet 101",
|
47
|
-
:customer_zip => "1000",
|
48
|
-
:customer_city => "Brussel",
|
49
|
-
:customer_country => "Belgium",
|
50
|
-
:customer_phone => "0412345678",
|
51
|
-
|
52
|
-
# feedback url's
|
53
|
-
:accept_url => "www.example.com/ogone/accept",
|
54
|
-
:decline_url => "www.example.com/ogone/decline",
|
55
|
-
:exception_url => "www.example.com/ogone/exception",
|
56
|
-
:cancel_url => "www.example.com/ogone/cancel",
|
57
|
-
|
58
|
-
# look and feel
|
59
|
-
:title => "lorem ipsum",
|
60
|
-
:bg_color => "FFFFFF",
|
61
|
-
:text_color => "000000",
|
62
|
-
:table_bg_color => "000000",
|
63
|
-
:table_text_color => "000000",
|
64
|
-
:button_bg_color => "CCCCCC",
|
65
|
-
:button_text_color => "000000",
|
66
|
-
:font_family => "Helvetica",
|
67
|
-
:logo => "www.example.com/images/logo.png",
|
68
|
-
|
69
|
-
# default ogone parameter
|
70
|
-
'PARAM' => "example"
|
71
|
-
})
|
132
|
+
:paramater => "value"
|
133
|
+
}, { :html_attribute => "" })
|
72
134
|
|
73
135
|
### Check Ogone feedback
|
74
136
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0
|
1
|
+
0.1.0
|
data/lib/.DS_Store
ADDED
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,46 @@
|
|
1
|
+
require "rails/generators/base"
|
2
|
+
|
3
|
+
module Ogone
|
4
|
+
class ConfigGenerator < Rails::Generators::Base
|
5
|
+
source_root File.expand_path("../templates", __FILE__)
|
6
|
+
|
7
|
+
desc "generate yaml and initializer config for ogone-rails.gem usage"
|
8
|
+
|
9
|
+
def copy_files
|
10
|
+
say_status "", "time to put configuration files in place... \n", :blue
|
11
|
+
copy_file "ogone.yml", "config/ogone.yml"
|
12
|
+
copy_file "ogone.rb", "config/initializers/ogone.rb"
|
13
|
+
end
|
14
|
+
|
15
|
+
def print_manual
|
16
|
+
say_status "OK", "...configuration files are in place.", :green
|
17
|
+
say "\nNow it's time to change the example documentation in 'config/ogone.yml' to your ogone details.", :bold
|
18
|
+
say "More information can be found on https://github.com/robinhoudmeyers/ogone-rails or http://www.ogone.com.\n"
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
|
24
|
+
# def yaml_config
|
25
|
+
# # create settings directory
|
26
|
+
# settings_path = File.join(::Rails.root.to_s, "config/settings")
|
27
|
+
# unless File.directory?(settings_path)
|
28
|
+
# p "CREATING 'config/settings/ directory ..."
|
29
|
+
# Dir.mkdir(settings_path)
|
30
|
+
# end
|
31
|
+
#
|
32
|
+
# # # write yaml file
|
33
|
+
# p "WRITING yaml.config..."
|
34
|
+
#
|
35
|
+
# # create a configuration file
|
36
|
+
# snap_up_yaml_original = File.join(File.dirname(__FILE__), '../../..', 'install', 'snap_up.yml')
|
37
|
+
# snap_up_yaml_filepath = File.join(::Rails.root.to_s, 'config/settings', 'snap_up.yml')
|
38
|
+
#
|
39
|
+
#
|
40
|
+
#
|
41
|
+
# if FileUtils.cp_r snap_up_yaml_original, snap_up_yaml_filepath
|
42
|
+
# puts "A configuration file has been CREATED at #{ snap_up_yaml_filepath }"
|
43
|
+
# else
|
44
|
+
# puts "Can't create #{ snap_up_yaml_filepath }"
|
45
|
+
# end
|
46
|
+
# end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
development:
|
2
|
+
pspid: "example"
|
3
|
+
sha_in: "0123456789abcdefghijklmnopqrstuv"
|
4
|
+
sha_out: "vutsrqponmlkjihgfedcba9876543210"
|
5
|
+
currency: "EUR"
|
6
|
+
language: "nl_NL"
|
7
|
+
mode: 'test'
|
8
|
+
|
9
|
+
test:
|
10
|
+
pspid: "example"
|
11
|
+
sha_in: "0123456789abcdefghijklmnopqrstuv"
|
12
|
+
sha_out: "vutsrqponmlkjihgfedcba9876543210"
|
13
|
+
currency: "EUR"
|
14
|
+
language: "nl_NL"
|
15
|
+
mode: 'test'
|
16
|
+
|
17
|
+
production:
|
18
|
+
pspid: "example"
|
19
|
+
sha_in: "0123456789abcdefghijklmnopqrstuv"
|
20
|
+
sha_out: "vutsrqponmlkjihgfedcba9876543210"
|
21
|
+
currency: "EUR"
|
22
|
+
language: "nl_NL"
|
23
|
+
mode: 'live'
|
data/lib/ogone-rails.rb
CHANGED
data/lib/ogone-rails/config.rb
CHANGED
@@ -51,7 +51,7 @@ module OgoneRails
|
|
51
51
|
@language = "nl_NL"
|
52
52
|
@mode = "live"
|
53
53
|
|
54
|
-
def config c
|
54
|
+
def config c
|
55
55
|
|
56
56
|
c.each do |key, value|
|
57
57
|
case key
|
@@ -62,11 +62,11 @@ module OgoneRails
|
|
62
62
|
when :sha_out
|
63
63
|
@sha_out = value
|
64
64
|
when :currency
|
65
|
-
@currency = value
|
65
|
+
@currency = value unless value.nil?
|
66
66
|
when :language
|
67
|
-
@language = value
|
67
|
+
@language = value unless value.nil?
|
68
68
|
when :mode
|
69
|
-
@mode = value
|
69
|
+
@mode = value unless value.nil?
|
70
70
|
end
|
71
71
|
end
|
72
72
|
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module OgoneRails
|
2
|
+
class Form
|
3
|
+
attr_reader :form_tag, :form_fields
|
4
|
+
|
5
|
+
def initialize
|
6
|
+
@form_fields = ""
|
7
|
+
end
|
8
|
+
|
9
|
+
def get_form_tag action = "", options = {}
|
10
|
+
# parse form atributes
|
11
|
+
form_attributes = ""
|
12
|
+
options.each do |key, value|
|
13
|
+
form_attributes << "#{key}=\"#{value}\" "
|
14
|
+
end
|
15
|
+
|
16
|
+
@form_tag = "<form method='post' action='#{action}' #{ form_attributes }>\n"
|
17
|
+
end
|
18
|
+
|
19
|
+
def add_input name, value
|
20
|
+
@form_fields << "\t<input type='hidden' name='#{name}' value='#{value}' />\n"
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
data/lib/ogone-rails/helpers.rb
CHANGED
@@ -3,173 +3,94 @@ module OgoneRails
|
|
3
3
|
module Helpers
|
4
4
|
extend self
|
5
5
|
|
6
|
-
|
7
|
-
|
6
|
+
@hash
|
7
|
+
@form
|
8
|
+
|
9
|
+
def ogone_form_tag options={}
|
8
10
|
OgoneRails::mode == "live" ? action = OgoneRails::LIVE_SERVICE_URL : action = OgoneRails::TEST_SERVICE_URL
|
9
11
|
|
10
|
-
form = Form.new
|
11
|
-
hash = StringToHash.new
|
12
|
+
@form = Form.new
|
12
13
|
|
13
|
-
|
14
|
-
# hash.reset
|
15
|
-
# pspid
|
16
|
-
form.add_input('PSPID', OgoneRails::pspid)
|
17
|
-
hash.add_parameter 'PSPID', OgoneRails::pspid
|
18
|
-
# currency
|
19
|
-
form.add_input('currency', OgoneRails::currency)
|
20
|
-
hash.add_parameter 'currency', OgoneRails::currency
|
21
|
-
# language
|
22
|
-
form.add_input('language', OgoneRails::language)
|
23
|
-
hash.add_parameter 'language', OgoneRails::language
|
14
|
+
form_content = yield(form_content)
|
24
15
|
|
16
|
+
output = @form.get_form_tag(action, options)
|
17
|
+
output << form_content
|
18
|
+
output << "\n</form>"#.html_safe
|
25
19
|
|
20
|
+
# block.methods
|
21
|
+
output.html_safe
|
22
|
+
end
|
23
|
+
|
24
|
+
|
25
|
+
def ogone_fields options = {}
|
26
|
+
@form = Form.new
|
27
|
+
@hash = StringToHash.new
|
26
28
|
|
27
|
-
#
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
# General
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
when :customer_country
|
66
|
-
form.add_input('ownercty', value)
|
67
|
-
hash.add_parameter 'ownercty', value
|
68
|
-
|
69
|
-
when :customer_phone
|
70
|
-
form.add_input('ownertelno', value)
|
71
|
-
hash.add_parameter 'ownertelno', value
|
72
|
-
|
73
|
-
|
74
|
-
# --------------
|
75
|
-
# Feedback url's
|
76
|
-
|
77
|
-
when :accept_url
|
78
|
-
form.add_input('accepturl', value)
|
79
|
-
hash.add_parameter 'accepturl', value
|
80
|
-
|
81
|
-
when :decline_url
|
82
|
-
form.add_input('declineurl', value)
|
83
|
-
hash.add_parameter 'declineurl', value
|
84
|
-
|
85
|
-
when :exception_url
|
86
|
-
form.add_input('exceptionurl', value)
|
87
|
-
hash.add_parameter 'exceptionurl', value
|
88
|
-
|
89
|
-
when :cancel_url
|
90
|
-
form.add_input('cancelurl', value)
|
91
|
-
hash.add_parameter 'cancelurl', value
|
92
|
-
|
93
|
-
|
94
|
-
# --------------
|
95
|
-
# Look and feel
|
96
|
-
|
97
|
-
when :title
|
98
|
-
form.add_input('TITLE', value)
|
99
|
-
hash.add_parameter 'TITLE', value
|
100
|
-
|
101
|
-
when :bg_color
|
102
|
-
form.add_input('BGCOLOR', value)
|
103
|
-
hash.add_parameter 'BGCOLOR', value
|
104
|
-
|
105
|
-
|
106
|
-
when :text_color
|
107
|
-
form.add_input('TXTCOLOR', value)
|
108
|
-
hash.add_parameter 'TXTCOLOR', value
|
109
|
-
|
110
|
-
|
111
|
-
when :table_bg_color
|
112
|
-
form.add_input('TBLBGCOLOR', value)
|
113
|
-
hash.add_parameter 'TBLBGCOLOR', value
|
114
|
-
|
115
|
-
when :table_text_color
|
116
|
-
form.add_input('TBLTXTCOLOR', value)
|
117
|
-
hash.add_parameter 'TBLTXTCOLOR', value
|
118
|
-
|
119
|
-
|
120
|
-
when :button_bg_color
|
121
|
-
form.add_input('BUTTONBGCOLOR', value)
|
122
|
-
hash.add_parameter 'BUTTONBGCOLOR', value
|
123
|
-
|
124
|
-
|
125
|
-
when :button_text_color
|
126
|
-
form.add_input('BUTTONTXTCOLOR', value)
|
127
|
-
hash.add_parameter 'BUTTONTXTCOLOR', value
|
128
|
-
|
129
|
-
|
130
|
-
when :font_family
|
131
|
-
form.add_input('FONTTYPE', value)
|
132
|
-
hash.add_parameter 'FONTTYPE', value
|
133
|
-
|
134
|
-
when :logo
|
135
|
-
form.add_input('LOGO', value)
|
136
|
-
hash.add_parameter 'LOGO', value
|
137
|
-
|
138
|
-
|
29
|
+
# Required values
|
30
|
+
add_ogone_parameter('PSPID', OgoneRails::pspid)
|
31
|
+
add_ogone_parameter('currency', OgoneRails::currency)
|
32
|
+
add_ogone_parameter('language', OgoneRails::language)
|
33
|
+
|
34
|
+
options_index = {
|
35
|
+
# General params
|
36
|
+
:order_id => 'orderID',
|
37
|
+
:amount => 'amount',
|
38
|
+
:customer_name => 'CN',
|
39
|
+
:customer_email => 'EMAIL',
|
40
|
+
:customer_address => 'owneraddress',
|
41
|
+
:customer_zip => 'ownerZIP',
|
42
|
+
:customer_city => 'ownertown',
|
43
|
+
:customer_country => 'ownercty',
|
44
|
+
:customer_phone => 'ownertelno',
|
45
|
+
# Feedback url's
|
46
|
+
:accept_url => 'accepturl',
|
47
|
+
:decline_url => 'declineurl',
|
48
|
+
:exception_url => 'exceptionurl',
|
49
|
+
:cancel_url => 'cancelurl',
|
50
|
+
# Look and feel
|
51
|
+
:title => 'TITLE',
|
52
|
+
:bg_color => 'BGCOLOR',
|
53
|
+
:text_color => 'TXTCOLOR',
|
54
|
+
:table_bg_color => 'TBLBGCOLOR',
|
55
|
+
:table_text_color => 'TBLTXTCOLOR',
|
56
|
+
:button_bg_color => 'BUTTONBGCOLOR',
|
57
|
+
:button_text_color => 'BUTTONTXTCOLOR',
|
58
|
+
:font_family => 'FONTTYPE',
|
59
|
+
:logo => 'LOGO'
|
60
|
+
}
|
61
|
+
|
62
|
+
options.each do |option, value|
|
63
|
+
if options_index.key?(option)
|
64
|
+
# ogone param
|
65
|
+
value = (value.to_f * 100).to_i if option == :amount # amount in cents
|
66
|
+
add_ogone_parameter(options_index[option], value)
|
139
67
|
else
|
140
|
-
|
141
|
-
|
68
|
+
# custom param
|
69
|
+
add_ogone_parameter(option.to_s, value)
|
142
70
|
end
|
143
71
|
end
|
144
72
|
|
145
73
|
# shasign
|
146
|
-
|
147
|
-
form.add_input('sha_phrase', hash.sha_in_phrase)
|
74
|
+
@form.add_input('SHASign', @hash.generate_sha_in)
|
148
75
|
|
149
|
-
|
150
|
-
|
151
|
-
form.get_form
|
76
|
+
# get form_fields
|
77
|
+
@form.form_fields
|
152
78
|
end
|
153
|
-
end
|
154
|
-
|
155
|
-
|
156
|
-
private
|
157
|
-
|
158
|
-
class Form
|
159
|
-
def initialize action
|
160
|
-
@form = ""
|
161
|
-
@form << "<form method='post' action='#{action}'>\n"
|
162
|
-
end
|
163
79
|
|
164
|
-
|
165
|
-
|
80
|
+
# to support old method
|
81
|
+
def ogone_form options={}, html={}
|
82
|
+
ogone_form_tag(html) do
|
83
|
+
output = ogone_fields(options)
|
84
|
+
output << "\t<input type='submit' value='ga verder naar ogones' id='submit2' name='submit2'>\n"
|
166
85
|
end
|
167
|
-
|
86
|
+
end
|
168
87
|
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
88
|
+
private
|
89
|
+
|
90
|
+
# helper method to add params to Form and Hash
|
91
|
+
def add_ogone_parameter name, value
|
92
|
+
@form.add_input(name, value)
|
93
|
+
@hash.add_parameter(name.to_s, value)
|
173
94
|
end
|
174
|
-
|
95
|
+
end
|
175
96
|
end
|
data/lib/rails/.DS_Store
ADDED
Binary file
|
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.0
|
8
|
+
s.version = "0.1.0"
|
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-
|
12
|
+
s.date = "2012-10-10"
|
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 = [
|
@@ -17,6 +17,7 @@ Gem::Specification.new do |s|
|
|
17
17
|
"README.md"
|
18
18
|
]
|
19
19
|
s.files = [
|
20
|
+
".DS_Store",
|
20
21
|
".document",
|
21
22
|
"Gemfile",
|
22
23
|
"Gemfile.lock",
|
@@ -24,12 +25,20 @@ Gem::Specification.new do |s|
|
|
24
25
|
"README.md",
|
25
26
|
"Rakefile",
|
26
27
|
"VERSION",
|
28
|
+
"lib/.DS_Store",
|
29
|
+
"lib/generators/.DS_Store",
|
30
|
+
"lib/generators/ogone/.DS_Store",
|
31
|
+
"lib/generators/ogone/config_generator.rb",
|
32
|
+
"lib/generators/ogone/templates/ogone.rb",
|
33
|
+
"lib/generators/ogone/templates/ogone.yml",
|
27
34
|
"lib/ogone-rails.rb",
|
28
35
|
"lib/ogone-rails/check-auth.rb",
|
29
36
|
"lib/ogone-rails/config.rb",
|
37
|
+
"lib/ogone-rails/form.rb",
|
30
38
|
"lib/ogone-rails/helpers.rb",
|
31
39
|
"lib/ogone-rails/rails.rb",
|
32
40
|
"lib/ogone-rails/string-to-hash.rb",
|
41
|
+
"lib/rails/.DS_Store",
|
33
42
|
"ogone-rails.gemspec",
|
34
43
|
"test/helper.rb",
|
35
44
|
"test/test_ogone-rails.rb"
|
@@ -37,7 +46,7 @@ Gem::Specification.new do |s|
|
|
37
46
|
s.homepage = "http://github.com/robinhoudmeyers/ogone-rails"
|
38
47
|
s.licenses = ["MIT"]
|
39
48
|
s.require_paths = ["lib"]
|
40
|
-
s.rubygems_version = "1.8.
|
49
|
+
s.rubygems_version = "1.8.24"
|
41
50
|
s.summary = "Ogone usable in Rails"
|
42
51
|
|
43
52
|
if s.respond_to? :specification_version then
|
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.0
|
4
|
+
version: 0.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-10-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: shoulda
|
16
|
-
requirement:
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,15 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
25
30
|
- !ruby/object:Gem::Dependency
|
26
31
|
name: rdoc
|
27
|
-
requirement:
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
28
33
|
none: false
|
29
34
|
requirements:
|
30
35
|
- - ~>
|
@@ -32,10 +37,15 @@ dependencies:
|
|
32
37
|
version: '3.12'
|
33
38
|
type: :development
|
34
39
|
prerelease: false
|
35
|
-
version_requirements:
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '3.12'
|
36
46
|
- !ruby/object:Gem::Dependency
|
37
47
|
name: bundler
|
38
|
-
requirement:
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
39
49
|
none: false
|
40
50
|
requirements:
|
41
51
|
- - ~>
|
@@ -43,10 +53,15 @@ dependencies:
|
|
43
53
|
version: 1.1.3
|
44
54
|
type: :development
|
45
55
|
prerelease: false
|
46
|
-
version_requirements:
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 1.1.3
|
47
62
|
- !ruby/object:Gem::Dependency
|
48
63
|
name: jeweler
|
49
|
-
requirement:
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
50
65
|
none: false
|
51
66
|
requirements:
|
52
67
|
- - ~>
|
@@ -54,10 +69,15 @@ dependencies:
|
|
54
69
|
version: 1.8.3
|
55
70
|
type: :development
|
56
71
|
prerelease: false
|
57
|
-
version_requirements:
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ~>
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: 1.8.3
|
58
78
|
- !ruby/object:Gem::Dependency
|
59
79
|
name: rcov
|
60
|
-
requirement:
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
61
81
|
none: false
|
62
82
|
requirements:
|
63
83
|
- - ! '>='
|
@@ -65,7 +85,12 @@ dependencies:
|
|
65
85
|
version: '0'
|
66
86
|
type: :development
|
67
87
|
prerelease: false
|
68
|
-
version_requirements:
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
69
94
|
description: Add Ogone payments functionality to your Rails application
|
70
95
|
email: houdmeyers@gmail.com
|
71
96
|
executables: []
|
@@ -74,6 +99,7 @@ extra_rdoc_files:
|
|
74
99
|
- LICENSE.txt
|
75
100
|
- README.md
|
76
101
|
files:
|
102
|
+
- .DS_Store
|
77
103
|
- .document
|
78
104
|
- Gemfile
|
79
105
|
- Gemfile.lock
|
@@ -81,12 +107,20 @@ files:
|
|
81
107
|
- README.md
|
82
108
|
- Rakefile
|
83
109
|
- VERSION
|
110
|
+
- lib/.DS_Store
|
111
|
+
- lib/generators/.DS_Store
|
112
|
+
- lib/generators/ogone/.DS_Store
|
113
|
+
- lib/generators/ogone/config_generator.rb
|
114
|
+
- lib/generators/ogone/templates/ogone.rb
|
115
|
+
- lib/generators/ogone/templates/ogone.yml
|
84
116
|
- lib/ogone-rails.rb
|
85
117
|
- lib/ogone-rails/check-auth.rb
|
86
118
|
- lib/ogone-rails/config.rb
|
119
|
+
- lib/ogone-rails/form.rb
|
87
120
|
- lib/ogone-rails/helpers.rb
|
88
121
|
- lib/ogone-rails/rails.rb
|
89
122
|
- lib/ogone-rails/string-to-hash.rb
|
123
|
+
- lib/rails/.DS_Store
|
90
124
|
- ogone-rails.gemspec
|
91
125
|
- test/helper.rb
|
92
126
|
- test/test_ogone-rails.rb
|
@@ -105,7 +139,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
105
139
|
version: '0'
|
106
140
|
segments:
|
107
141
|
- 0
|
108
|
-
hash:
|
142
|
+
hash: 3997629917588372855
|
109
143
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
110
144
|
none: false
|
111
145
|
requirements:
|
@@ -114,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
114
148
|
version: '0'
|
115
149
|
requirements: []
|
116
150
|
rubyforge_project:
|
117
|
-
rubygems_version: 1.8.
|
151
|
+
rubygems_version: 1.8.24
|
118
152
|
signing_key:
|
119
153
|
specification_version: 3
|
120
154
|
summary: Ogone usable in Rails
|