pin-payments 1.2.1 → 1.3

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.
@@ -21,12 +21,12 @@ module Pin
21
21
  end
22
22
 
23
23
  def to_s
24
- "#@code #@error #@description"
24
+ "#{@code} #{@error} #{@description}"
25
25
  end
26
26
  end
27
27
 
28
28
  class << self
29
- attr_reader :publishable_key, :js_url, :auth
29
+ attr_reader :publishable_key, :base_url, :js_url, :auth
30
30
 
31
31
  def setup(options)
32
32
  raise ArgumentError, "Pin.setup wants an options hash" unless Hash === options
@@ -46,6 +46,7 @@ module Pin
46
46
  end
47
47
 
48
48
  @js_url = "#{uri}/pin.js"
49
+ @base_url = "#{uri}/1"
49
50
  Pin::Base.base_uri "#{uri}/1"
50
51
  end
51
52
  end
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = 'pin-payments'
7
- s.version = '1.2.1'
7
+ s.version = '1.3'
8
8
  s.date = '2013-08-15'
9
9
  s.summary = "Pin Payments API wrapper"
10
10
  s.description = "A wrapper for the Pin Payments (https://pin.net.au/) API"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pin-payments
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: '1.3'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: