wepay-rails 0.1.22 → 0.1.23

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.22
1
+ 0.1.23
@@ -15,7 +15,9 @@ module WepayRails
15
15
  "#{k.to_s}=#{v}"
16
16
  end.join('&')
17
17
 
18
- "#{@base_uri}/v2/oauth2/authorize?#{query}"
18
+ auth_base_uri = Rails.env.production? ? "https://api.wepay.com" : "https://stage.wepay.com"
19
+
20
+ "#{auth_base_uri}/v2/oauth2/authorize?#{query}"
19
21
  end
20
22
 
21
23
  def redirect_to_wepay_for_auth(redirect_uri, scope)
data/lib/wepay-rails.rb CHANGED
@@ -4,7 +4,7 @@ module WepayRails
4
4
  require 'helpers/controller_helpers'
5
5
  class Gateway
6
6
  include HTTParty
7
- base_uri Rails.env.production? ? "https://api.wepay.com" : "https://stage.wepay.com"
7
+ base_uri Rails.env.production? ? "https://wepayapi.com/v2" : "https://stage.wepayapi.com/v2"
8
8
 
9
9
  attr_accessor :wepay_auth_code
10
10
 
@@ -19,7 +19,7 @@ module WepayRails
19
19
 
20
20
  def wepay_user
21
21
  File.open('/tmp/wepay.log', 'a') {|f| f.write("Wepay_user: #{wepay_auth_header.inspect}") }
22
- response = self.class.get("/v2/user", {:headers => wepay_auth_header})
22
+ response = self.class.get("user", {:headers => wepay_auth_header})
23
23
  JSON.parse(response.body)
24
24
  end
25
25
  end
data/wepay-rails.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{wepay-rails}
8
- s.version = "0.1.22"
8
+ s.version = "0.1.23"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Adam Medeiros"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wepay-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.22
4
+ version: 0.1.23
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -14,7 +14,7 @@ default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: httparty
17
- requirement: &2151871660 !ruby/object:Gem::Requirement
17
+ requirement: &2151872000 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: '0'
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *2151871660
25
+ version_requirements: *2151872000
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: shoulda
28
- requirement: &2151869120 !ruby/object:Gem::Requirement
28
+ requirement: &2151869360 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -33,7 +33,7 @@ dependencies:
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
- version_requirements: *2151869120
36
+ version_requirements: *2151869360
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: bundler
39
39
  requirement: &2151866700 !ruby/object:Gem::Requirement
@@ -47,7 +47,7 @@ dependencies:
47
47
  version_requirements: *2151866700
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: jeweler
50
- requirement: &2151865100 !ruby/object:Gem::Requirement
50
+ requirement: &2151865080 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ~>
@@ -55,10 +55,10 @@ dependencies:
55
55
  version: 1.6.4
56
56
  type: :development
57
57
  prerelease: false
58
- version_requirements: *2151865100
58
+ version_requirements: *2151865080
59
59
  - !ruby/object:Gem::Dependency
60
60
  name: rcov
61
- requirement: &2151863820 !ruby/object:Gem::Requirement
61
+ requirement: &2151863620 !ruby/object:Gem::Requirement
62
62
  none: false
63
63
  requirements:
64
64
  - - ! '>='
@@ -66,7 +66,7 @@ dependencies:
66
66
  version: '0'
67
67
  type: :development
68
68
  prerelease: false
69
- version_requirements: *2151863820
69
+ version_requirements: *2151863620
70
70
  description: Rails gem that interfaces with the WePay API
71
71
  email: adammede@gmail.com
72
72
  executables: []
@@ -106,7 +106,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
106
106
  version: '0'
107
107
  segments:
108
108
  - 0
109
- hash: 1612886507653110876
109
+ hash: 4232558844581746746
110
110
  required_rubygems_version: !ruby/object:Gem::Requirement
111
111
  none: false
112
112
  requirements: