ogone-rails 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/.DS_Store +0 -0
- data/lib/ogone-rails.rb +3 -3
- data/ogone-rails.gemspec +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fcb9fedd57ff1c8ff42f71feb232030344c2b823
|
4
|
+
data.tar.gz: ab8be2ddad3c74aac0f41ae26b3d7283c9a82cda
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4651d574183d34f6308ec5f4ae9827f7af2dbc861f2618d24e3497dfa6c5f375961dacc6f8b7c51bb5f6293d488cc1bea098a9e2b09f283f259a90341d7f3cc5
|
7
|
+
data.tar.gz: 7be884d5efb396c1f4f44d9d6fdad9d07d8357fc0fd298fcd3376c269b42d2d1a5daf51ef5cc1158a5fbc07e0ab1d92c7a63d0e5df99d51fa2428ecd396b32b1
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.6
|
data/lib/.DS_Store
CHANGED
Binary file
|
data/lib/ogone-rails.rb
CHANGED
@@ -11,8 +11,8 @@ require 'ogone-rails/check-auth'
|
|
11
11
|
|
12
12
|
|
13
13
|
module OgoneRails
|
14
|
-
|
15
|
-
DEFAULT_CONFIG = File.join(
|
14
|
+
APP_ROOT = File.expand_path((defined?(Rails) && Rails.root.to_s.length > 0) ? Rails.root : ENV['RAILS_ROOT'] || '.') unless defined?(APP_ROOT)
|
15
|
+
DEFAULT_CONFIG = File.join( APP_ROOT, 'config', 'ogone.yml')
|
16
16
|
|
17
17
|
class MissingConfiguration < NameError; end
|
18
18
|
|
@@ -25,7 +25,7 @@ module OgoneRails
|
|
25
25
|
raise MissingConfiguration, "Could not find the #{ config_path } configuration file" unless exists
|
26
26
|
|
27
27
|
# load ogone configuration
|
28
|
-
config = YAML.load_file(
|
28
|
+
config = YAML.load_file(DEFAULT_CONFIG)[Rails.env].symbolize_keys
|
29
29
|
OgoneRails::config (config)
|
30
30
|
end
|
31
31
|
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.
|
8
|
+
s.version = "0.1.6"
|
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-
|
12
|
+
s.date = "2013-06-07"
|
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,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ogone-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robin Houdmeyers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-06-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|