pin_up 0.2.0 → 0.3.0

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.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MzFmZTFlNTIxOWExMjAyNjFlN2RhZmFjMDU1ZTFjYjQzMmU4YTgyMQ==
4
+ YmM4OTcyZDIwNzMyMDYwNDJmZDMxYzNlODE4ZmQ3MjgyYWMxZGIxYg==
5
5
  data.tar.gz: !binary |-
6
- OTYzYTQwYzZhZWE5MDljNTg4OGU0ZDljOTVkZWZlOWUyYjUxMzcyNA==
6
+ YTJmM2MyZGE3ZWI0N2ZhNTJmYjVjMDc2NzA2ZjBmYjlhYzM0ZjE0MQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- OWYwMTZjNmRjNjhlYjA4NTY2ZTY5MTkzMDNjYzlhNjk3ZWNlM2Q3MzZlMzFh
10
- NWJkZmQxYTkyMmZiYzkzNzM1YzhhNzk4NTBhOWY3NTQzYWMyYmY3MWMxNzA4
11
- ZDhlZmIwMzU2ZTVkYWI2ZDRmZDM3MzNhM2E0MGU3MWI5MjIzMWI=
9
+ NWE2Nzc2NmMxZGVjYmNkODA1OTRlMjA0M2E1ZDdjNGQ1MjYwZmIwMDIzNjQ3
10
+ M2MyNGU2ZTk3OTE4N2Q2N2UwNDhkNjI3MGU1NjExMjk0NjcxNmEzNThmN2Ex
11
+ YjBkYmM0OTdjYTc5ZmE4YTkzMGE4YTk0OWFmNWY2MmY4NjNmMjI=
12
12
  data.tar.gz: !binary |-
13
- NzYyNzk2YjIxMjMwODFhMDM4NTczOGU5NDFjYzYzM2NiZjVkZjg5OTU5ZDAz
14
- MjE5YzkyMmMxZDkwMjZiMzY5MzI3NDMxMjc3NzY1ODJjNzAyYmVmZjEwMjRl
15
- Yzc0ZDgxMTZhNTAxYTViMDhlYzMzYzExMWM2ZTVlMzYwNGI2ZjI=
13
+ YmIxNDI2NWM4OTc0ZjBlYTQ4NjEwZWExNmU1Njc1NjIyOWY2Mjk5MjFjODEx
14
+ YTYwYzI1MWVmOWZmZTlmZDJjZWM2NDcyMGFjZjU3N2UzMWM0YjhiMDkwYjMw
15
+ MWE3NDgzMWFhOWY2ZTc2MjM4ZDJiMDQxNWU4OWYwMTRhNjYxZTM=
data/README.md CHANGED
@@ -109,7 +109,7 @@ Only use this method if you're comfortable sending card details to your server -
109
109
 
110
110
  * Validate a response before it gets sent to Pin (eg. Update customer)
111
111
  * Pagination
112
- # Better error handling (for 4** responses)
112
+ * Better error handling (for 4** responses)
113
113
 
114
114
  ## Contributing to pin_up
115
115
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.3.0
data/pin_up.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "pin_up"
8
- s.version = "0.2.0"
8
+ s.version = "0.3.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Daniel Nitsikopoulos"]
data/spec/base_spec.rb CHANGED
@@ -2,7 +2,7 @@ require 'spec_helper'
2
2
 
3
3
  describe "Base", :vcr, class: Pin::Base do
4
4
  before(:each) do
5
- @test_pin = Pin::Base.new("W_VrFld7oc9BnC4pOdQxmw", :test)
5
+ @test_pin = Pin::Base.new(ENV["PIN_SECRET"], :test)
6
6
  end
7
7
 
8
8
  it "should set key correctly" do
data/spec/cards_spec.rb CHANGED
@@ -2,7 +2,7 @@ require 'spec_helper'
2
2
 
3
3
  describe "Card", :vcr, class: Pin::Card do
4
4
  before(:each) do
5
- Pin::Base.new("W_VrFld7oc9BnC4pOdQxmw", :test)
5
+ Pin::Base.new(ENV["PIN_SECRET"], :test)
6
6
  end
7
7
 
8
8
  it "should create a card and respond with the card detail from pin" do
data/spec/charges_spec.rb CHANGED
@@ -2,7 +2,7 @@ require 'spec_helper'
2
2
 
3
3
  describe "Charge", :vcr, class: Pin::Charges do
4
4
  before(:each) do
5
- Pin::Base.new("W_VrFld7oc9BnC4pOdQxmw", :test)
5
+ Pin::Base.new(ENV["PIN_SECRET"], :test)
6
6
  end
7
7
 
8
8
  it "should list charges in Pin" do
@@ -3,7 +3,7 @@ require 'spec_helper'
3
3
 
4
4
  describe "Customer", :vcr, class: Pin::Customer do
5
5
  before(:each) do
6
- Pin::Base.new("W_VrFld7oc9BnC4pOdQxmw", :test)
6
+ Pin::Base.new(ENV["PIN_SECRET"], :test)
7
7
  end
8
8
 
9
9
  it "should list customers" do
data/spec/refund_spec.rb CHANGED
@@ -3,7 +3,7 @@ require 'spec_helper'
3
3
 
4
4
  describe "Refund", :vcr, class: Pin::Refund do
5
5
  before(:each) do
6
- Pin::Base.new("W_VrFld7oc9BnC4pOdQxmw", :test)
6
+ Pin::Base.new(ENV["PIN_SECRET"], :test)
7
7
  end
8
8
 
9
9
  it "should list all refunds made to a charge given a token" do
data/spec/spec_helper.rb CHANGED
@@ -9,6 +9,7 @@ require 'vcr'
9
9
  require "net/https"
10
10
  require "uri"
11
11
 
12
+ ENV.update YAML.load(File.read(File.expand_path("../test_data.yml", __FILE__)))
12
13
  #gem
13
14
  require 'pin_up'
14
15
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pin_up
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Nitsikopoulos