astrails-paypal_adaptive 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.4
1
+ 0.1.5
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{astrails-paypal_adaptive}
8
- s.version = "0.1.4"
8
+ s.version = "0.1.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Tommy Chheng", "Ross Hale", "Boris Nadion"]
12
- s.date = %q{2011-03-03}
12
+ s.date = %q{2011-11-13}
13
13
  s.description = %q{Lightweight wrapper for Paypal's Adaptive Payments API.}
14
14
  s.email = %q{boris@astrails.com}
15
15
  s.extra_rdoc_files = [
@@ -48,16 +48,8 @@ Gem::Specification.new do |s|
48
48
  ]
49
49
  s.homepage = %q{http://github.com/astrails/paypal_adaptive}
50
50
  s.require_paths = ["lib"]
51
- s.rubygems_version = %q{1.5.3}
51
+ s.rubygems_version = %q{1.6.2}
52
52
  s.summary = %q{initial import}
53
- s.test_files = [
54
- "test/create_account_test.rb",
55
- "test/helper.rb",
56
- "test/pay_request_schema_test.rb",
57
- "test/pay_request_test.rb",
58
- "test/payment_details_test.rb",
59
- "test/preapproval_test.rb"
60
- ]
61
53
 
62
54
  if s.respond_to? :specification_version then
63
55
  s.specification_version = 3
@@ -1,3 +1,5 @@
1
+ require 'erb'
2
+
1
3
  module PaypalAdaptive
2
4
  class Config
3
5
  PAYPAL_BASE_URL_MAPPING = {
@@ -26,7 +28,7 @@ module PaypalAdaptive
26
28
  end
27
29
 
28
30
  def load(rails_env)
29
- config= YAML.load_file(@config_filepath)[rails_env]
31
+ config = YAML.load(ERB.new(File.new(@config_filepath).read).result)[rails_env]
30
32
 
31
33
  if config["retain_requests_for_test"] == true
32
34
  @retain_requests_for_test = true
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: astrails-paypal_adaptive
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 4
10
- version: 0.1.4
9
+ - 5
10
+ version: 0.1.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tommy Chheng
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2011-03-03 00:00:00 +02:00
20
+ date: 2011-11-13 00:00:00 +02:00
21
21
  default_executable:
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency
@@ -116,14 +116,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
116
116
  requirements: []
117
117
 
118
118
  rubyforge_project:
119
- rubygems_version: 1.5.3
119
+ rubygems_version: 1.6.2
120
120
  signing_key:
121
121
  specification_version: 3
122
122
  summary: initial import
123
- test_files:
124
- - test/create_account_test.rb
125
- - test/helper.rb
126
- - test/pay_request_schema_test.rb
127
- - test/pay_request_test.rb
128
- - test/payment_details_test.rb
129
- - test/preapproval_test.rb
123
+ test_files: []
124
+