ogone-rails 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Gemfile CHANGED
@@ -9,6 +9,6 @@ group :development do
9
9
  gem "shoulda", ">= 0"
10
10
  gem "rdoc", "~> 3.12"
11
11
  gem "bundler"#, "~> 1.1.3"
12
- gem "jeweler", git: "git@github.com:emilsoman/jeweler.git"
12
+ gem "jeweler"#, git: "git@github.com:emilsoman/jeweler.git"
13
13
  # gem "rcov", ">= 0"
14
14
  end
data/Gemfile.lock CHANGED
@@ -1,64 +1,27 @@
1
- GIT
2
- remote: git@github.com:emilsoman/jeweler.git
3
- revision: be5ddc35db350e2f0180f165a3129e2833a93072
4
- specs:
5
- jeweler (1.8.4)
6
- bundler (~> 1.0)
7
- git (>= 1.2.5)
8
- github_api (>= 0.8.1)
9
- highline (>= 1.6.15)
10
- rake
11
- rdoc
12
-
13
1
  GEM
14
2
  remote: http://rubygems.org/
15
3
  specs:
16
- activesupport (3.2.11)
17
- i18n (~> 0.6)
4
+ activesupport (3.2.13)
5
+ i18n (= 0.6.1)
18
6
  multi_json (~> 1.0)
19
- bourne (1.1.2)
20
- mocha (= 0.10.5)
21
- faraday (0.8.7)
22
- multipart-post (~> 1.1)
23
7
  git (1.2.5)
24
- github_api (0.9.6)
25
- faraday (~> 0.8.1)
26
- hashie (>= 1.2)
27
- multi_json (~> 1.4)
28
- nokogiri (~> 1.5.2)
29
- oauth2
30
- hashie (2.0.3)
31
- highline (1.6.16)
32
- httpauth (0.2.0)
33
8
  i18n (0.6.1)
34
- json (1.7.6)
35
- jwt (0.1.8)
36
- multi_json (>= 1.5)
37
- metaclass (0.0.1)
38
- mocha (0.10.5)
39
- metaclass (~> 0.0.1)
40
- multi_json (1.5.0)
41
- multi_xml (0.5.3)
42
- multipart-post (1.2.0)
43
- nokogiri (1.5.9)
44
- oauth2 (0.9.1)
45
- faraday (~> 0.8)
46
- httpauth (~> 0.1)
47
- jwt (~> 0.1.4)
48
- multi_json (~> 1.0)
49
- multi_xml (~> 0.5)
50
- rack (~> 1.2)
51
- rack (1.5.2)
9
+ jeweler (1.8.4)
10
+ bundler (~> 1.0)
11
+ git (>= 1.2.5)
12
+ rake
13
+ rdoc
14
+ json (1.8.0)
15
+ multi_json (1.7.6)
52
16
  rake (10.0.4)
53
- rdoc (3.12)
17
+ rdoc (3.12.2)
54
18
  json (~> 1.4)
55
- shoulda (3.3.2)
56
- shoulda-context (~> 1.0.1)
57
- shoulda-matchers (~> 1.4.1)
58
- shoulda-context (1.0.2)
59
- shoulda-matchers (1.4.2)
19
+ shoulda (3.5.0)
20
+ shoulda-context (~> 1.0, >= 1.0.1)
21
+ shoulda-matchers (>= 1.4.1, < 3.0)
22
+ shoulda-context (1.1.2)
23
+ shoulda-matchers (2.1.0)
60
24
  activesupport (>= 3.0.0)
61
- bourne (~> 1.1.2)
62
25
 
63
26
  PLATFORMS
64
27
  ruby
@@ -66,6 +29,6 @@ PLATFORMS
66
29
  DEPENDENCIES
67
30
  activesupport
68
31
  bundler
69
- jeweler!
32
+ jeweler
70
33
  rdoc (~> 3.12)
71
34
  shoulda
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.6
1
+ 0.1.7
data/lib/ogone-rails.rb CHANGED
@@ -11,8 +11,8 @@ require 'ogone-rails/check-auth'
11
11
 
12
12
 
13
13
  module OgoneRails
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')
14
+ ASSET_ROOT = File.expand_path((defined?(Rails) && Rails.root.to_s.length > 0) ? Rails.root : ENV['RAILS_ROOT'] || '.') unless defined?(ASSET_ROOT)
15
+ DEFAULT_CONFIG = File.join( ASSET_ROOT, 'config', 'ogone.yml')
16
16
 
17
17
  class MissingConfiguration < NameError; end
18
18
 
@@ -20,12 +20,15 @@ module OgoneRails
20
20
  load_config DEFAULT_CONFIG
21
21
  end
22
22
 
23
- def self.load_config config_path
23
+ def self.load_config config_path
24
24
  exists = config_path && File.exists?(config_path)
25
25
  raise MissingConfiguration, "Could not find the #{ config_path } configuration file" unless exists
26
26
 
27
+ # deprecated RAILS_ENV won't get hurt this way
28
+ environment = Rails.env.split('=').last
29
+
27
30
  # load ogone configuration
28
- config = YAML.load_file(DEFAULT_CONFIG)[Rails.env].symbolize_keys
31
+ config = YAML.load_file(DEFAULT_CONFIG)[environment].symbolize_keys
29
32
  OgoneRails::config (config)
30
33
  end
31
34
  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.6"
8
+ s.version = "0.1.7"
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-06-07"
12
+ s.date = "2013-07-05"
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 = [
@@ -46,11 +46,11 @@ Gem::Specification.new do |s|
46
46
  s.homepage = "http://github.com/robinhoudmeyers/ogone-rails"
47
47
  s.licenses = ["MIT"]
48
48
  s.require_paths = ["lib"]
49
- s.rubygems_version = "2.0.3"
49
+ s.rubygems_version = "1.8.25"
50
50
  s.summary = "Ogone usable in Rails"
51
51
 
52
52
  if s.respond_to? :specification_version then
53
- s.specification_version = 4
53
+ s.specification_version = 3
54
54
 
55
55
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
56
56
  s.add_runtime_dependency(%q<activesupport>, [">= 0"])
metadata CHANGED
@@ -1,46 +1,52 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ogone-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Robin Houdmeyers
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2013-06-07 00:00:00.000000000 Z
12
+ date: 2013-07-05 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: activesupport
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
- - - '>='
19
+ - - ! '>='
18
20
  - !ruby/object:Gem::Version
19
21
  version: '0'
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
- - - '>='
27
+ - - ! '>='
25
28
  - !ruby/object:Gem::Version
26
29
  version: '0'
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: shoulda
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
- - - '>='
35
+ - - ! '>='
32
36
  - !ruby/object:Gem::Version
33
37
  version: '0'
34
38
  type: :development
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
- - - '>='
43
+ - - ! '>='
39
44
  - !ruby/object:Gem::Version
40
45
  version: '0'
41
46
  - !ruby/object:Gem::Dependency
42
47
  name: rdoc
43
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
44
50
  requirements:
45
51
  - - ~>
46
52
  - !ruby/object:Gem::Version
@@ -48,6 +54,7 @@ dependencies:
48
54
  type: :development
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
51
58
  requirements:
52
59
  - - ~>
53
60
  - !ruby/object:Gem::Version
@@ -55,29 +62,33 @@ dependencies:
55
62
  - !ruby/object:Gem::Dependency
56
63
  name: bundler
57
64
  requirement: !ruby/object:Gem::Requirement
65
+ none: false
58
66
  requirements:
59
- - - '>='
67
+ - - ! '>='
60
68
  - !ruby/object:Gem::Version
61
69
  version: '0'
62
70
  type: :development
63
71
  prerelease: false
64
72
  version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
65
74
  requirements:
66
- - - '>='
75
+ - - ! '>='
67
76
  - !ruby/object:Gem::Version
68
77
  version: '0'
69
78
  - !ruby/object:Gem::Dependency
70
79
  name: jeweler
71
80
  requirement: !ruby/object:Gem::Requirement
81
+ none: false
72
82
  requirements:
73
- - - '>='
83
+ - - ! '>='
74
84
  - !ruby/object:Gem::Version
75
85
  version: '0'
76
86
  type: :development
77
87
  prerelease: false
78
88
  version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
79
90
  requirements:
80
- - - '>='
91
+ - - ! '>='
81
92
  - !ruby/object:Gem::Version
82
93
  version: '0'
83
94
  description: Add Ogone payments functionality to your Rails application
@@ -116,25 +127,29 @@ files:
116
127
  homepage: http://github.com/robinhoudmeyers/ogone-rails
117
128
  licenses:
118
129
  - MIT
119
- metadata: {}
120
130
  post_install_message:
121
131
  rdoc_options: []
122
132
  require_paths:
123
133
  - lib
124
134
  required_ruby_version: !ruby/object:Gem::Requirement
135
+ none: false
125
136
  requirements:
126
- - - '>='
137
+ - - ! '>='
127
138
  - !ruby/object:Gem::Version
128
139
  version: '0'
140
+ segments:
141
+ - 0
142
+ hash: -3212866031273555520
129
143
  required_rubygems_version: !ruby/object:Gem::Requirement
144
+ none: false
130
145
  requirements:
131
- - - '>='
146
+ - - ! '>='
132
147
  - !ruby/object:Gem::Version
133
148
  version: '0'
134
149
  requirements: []
135
150
  rubyforge_project:
136
- rubygems_version: 2.0.3
151
+ rubygems_version: 1.8.25
137
152
  signing_key:
138
- specification_version: 4
153
+ specification_version: 3
139
154
  summary: Ogone usable in Rails
140
155
  test_files: []
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: fcb9fedd57ff1c8ff42f71feb232030344c2b823
4
- data.tar.gz: ab8be2ddad3c74aac0f41ae26b3d7283c9a82cda
5
- SHA512:
6
- metadata.gz: 4651d574183d34f6308ec5f4ae9827f7af2dbc861f2618d24e3497dfa6c5f375961dacc6f8b7c51bb5f6293d488cc1bea098a9e2b09f283f259a90341d7f3cc5
7
- data.tar.gz: 7be884d5efb396c1f4f44d9d6fdad9d07d8357fc0fd298fcd3376c269b42d2d1a5daf51ef5cc1158a5fbc07e0ab1d92c7a63d0e5df99d51fa2428ecd396b32b1