ogone-rails 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,14 +1,14 @@
1
1
  source "http://rubygems.org"
2
2
  # Add dependencies required to use your gem here.
3
3
  # Example:
4
- # gem "activesupport", ">= 2.3.5"
4
+ gem "activesupport"
5
5
 
6
6
  # Add dependencies to develop your gem here.
7
7
  # Include everything needed to run rake, tests, features, etc.
8
8
  group :development do
9
9
  gem "shoulda", ">= 0"
10
10
  gem "rdoc", "~> 3.12"
11
- gem "bundler", "~> 1.1.3"
11
+ gem "bundler"#, "~> 1.1.3"
12
12
  gem "jeweler", "~> 1.8.3"
13
13
  gem "rcov", ">= 0"
14
14
  end
@@ -1,24 +1,41 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
+ activesupport (3.2.11)
5
+ i18n (~> 0.6)
6
+ multi_json (~> 1.0)
7
+ bourne (1.1.2)
8
+ mocha (= 0.10.5)
4
9
  git (1.2.5)
5
- jeweler (1.8.3)
10
+ i18n (0.6.1)
11
+ jeweler (1.8.4)
6
12
  bundler (~> 1.0)
7
13
  git (>= 1.2.5)
8
14
  rake
9
15
  rdoc
10
- json (1.6.6)
11
- rake (0.9.2.2)
16
+ json (1.7.6)
17
+ metaclass (0.0.1)
18
+ mocha (0.10.5)
19
+ metaclass (~> 0.0.1)
20
+ multi_json (1.5.0)
21
+ rake (10.0.3)
12
22
  rcov (0.9.11)
13
23
  rdoc (3.12)
14
24
  json (~> 1.4)
15
- shoulda (2.11.3)
25
+ shoulda (3.3.2)
26
+ shoulda-context (~> 1.0.1)
27
+ shoulda-matchers (~> 1.4.1)
28
+ shoulda-context (1.0.2)
29
+ shoulda-matchers (1.4.2)
30
+ activesupport (>= 3.0.0)
31
+ bourne (~> 1.1.2)
16
32
 
17
33
  PLATFORMS
18
34
  ruby
19
35
 
20
36
  DEPENDENCIES
21
- bundler (~> 1.1.3)
37
+ activesupport
38
+ bundler
22
39
  jeweler (~> 1.8.3)
23
40
  rcov
24
41
  rdoc (~> 3.12)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3
1
+ 0.1.4
@@ -16,13 +16,12 @@ module OgoneRails
16
16
 
17
17
  class MissingConfiguration < NameError; end
18
18
 
19
- def load!
19
+ def self.load!
20
20
  load_config DEFAULT_CONFIG
21
21
  end
22
22
 
23
- def load_config config_path
23
+ def self.load_config config_path
24
24
  exists = config_path && File.exists?(config_path)
25
- return false if !exists
26
25
  raise MissingConfiguration, "Could not find the #{ config_path } configuration file" unless exists
27
26
 
28
27
  # load ogone configuration
@@ -72,7 +72,7 @@ module OgoneRails
72
72
 
73
73
  # shasign
74
74
  @form.add_input('SHASign', @hash.generate_sha_in)
75
-
75
+
76
76
  # get form_fields
77
77
  @form.form_fields
78
78
  end
@@ -89,8 +89,14 @@ module OgoneRails
89
89
 
90
90
  # helper method to add params to Form and Hash
91
91
  def add_ogone_parameter name, value
92
+
93
+ # transliterate if available
94
+ value = ActiveSupport::Inflector.transliterate("#{value}")
95
+
92
96
  @form.add_input(name, value)
93
97
  @hash.add_parameter(name.to_s, value)
94
98
  end
95
99
  end
96
- end
100
+ end
101
+
102
+
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "ogone-rails"
8
- s.version = "0.1.3"
8
+ s.version = "0.1.4"
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-13"
12
+ s.date = "2013-01-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 = [
@@ -53,22 +53,25 @@ Gem::Specification.new do |s|
53
53
  s.specification_version = 3
54
54
 
55
55
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
56
+ s.add_runtime_dependency(%q<activesupport>, [">= 0"])
56
57
  s.add_development_dependency(%q<shoulda>, [">= 0"])
57
58
  s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
58
- s.add_development_dependency(%q<bundler>, ["~> 1.1.3"])
59
+ s.add_development_dependency(%q<bundler>, [">= 0"])
59
60
  s.add_development_dependency(%q<jeweler>, ["~> 1.8.3"])
60
61
  s.add_development_dependency(%q<rcov>, [">= 0"])
61
62
  else
63
+ s.add_dependency(%q<activesupport>, [">= 0"])
62
64
  s.add_dependency(%q<shoulda>, [">= 0"])
63
65
  s.add_dependency(%q<rdoc>, ["~> 3.12"])
64
- s.add_dependency(%q<bundler>, ["~> 1.1.3"])
66
+ s.add_dependency(%q<bundler>, [">= 0"])
65
67
  s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
66
68
  s.add_dependency(%q<rcov>, [">= 0"])
67
69
  end
68
70
  else
71
+ s.add_dependency(%q<activesupport>, [">= 0"])
69
72
  s.add_dependency(%q<shoulda>, [">= 0"])
70
73
  s.add_dependency(%q<rdoc>, ["~> 3.12"])
71
- s.add_dependency(%q<bundler>, ["~> 1.1.3"])
74
+ s.add_dependency(%q<bundler>, [">= 0"])
72
75
  s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
73
76
  s.add_dependency(%q<rcov>, [">= 0"])
74
77
  end
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.3
4
+ version: 0.1.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,8 +9,24 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-13 00:00:00.000000000 Z
12
+ date: 2013-01-10 00:00:00.000000000 Z
13
13
  dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: activesupport
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
14
30
  - !ruby/object:Gem::Dependency
15
31
  name: shoulda
16
32
  requirement: !ruby/object:Gem::Requirement
@@ -48,17 +64,17 @@ dependencies:
48
64
  requirement: !ruby/object:Gem::Requirement
49
65
  none: false
50
66
  requirements:
51
- - - ~>
67
+ - - ! '>='
52
68
  - !ruby/object:Gem::Version
53
- version: 1.1.3
69
+ version: '0'
54
70
  type: :development
55
71
  prerelease: false
56
72
  version_requirements: !ruby/object:Gem::Requirement
57
73
  none: false
58
74
  requirements:
59
- - - ~>
75
+ - - ! '>='
60
76
  - !ruby/object:Gem::Version
61
- version: 1.1.3
77
+ version: '0'
62
78
  - !ruby/object:Gem::Dependency
63
79
  name: jeweler
64
80
  requirement: !ruby/object:Gem::Requirement
@@ -139,7 +155,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
139
155
  version: '0'
140
156
  segments:
141
157
  - 0
142
- hash: 448932477420404322
158
+ hash: 2933906333629932876
143
159
  required_rubygems_version: !ruby/object:Gem::Requirement
144
160
  none: false
145
161
  requirements: