papapi 0.1.3 → 0.1.4

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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e6ff7d063ff6147bed37b8652bcdad046f5428bb
4
- data.tar.gz: 72c586f84d3207c56d7384116e0313a255a156f2
3
+ metadata.gz: 2c8e995d668f62a23e76fa95e9f740c5c4f0d8e3
4
+ data.tar.gz: f87a0ee261450ede573fe5dbb9870d1ed4cf2365
5
5
  SHA512:
6
- metadata.gz: df4b2d2f3b52a64bbd9cfaa70d90426bba176f1fce6e02e9a92e291ad6e0b858d47973bf94cb7b3177ed3a86aa851f502a03eb5a0039d1ea4249a428ef54bfc3
7
- data.tar.gz: 1b6045999985870c10d4b8b90481e1af76fe551c364d030cbc65024508112ea4fd2203057aedcc1cbfeaf91ab0e13c9467bc5bbe2c7ac2869b035d7280ca248f
6
+ metadata.gz: e9669f4810272f175454660820f97365717844cc0bf8b180b8d604a841270949a62a59b461bf29acacb8002b3987874ba489f8de8471448efe84d68deb82ed7c
7
+ data.tar.gz: 35f5a6e8e6d058cae5d99e9a958c1cfb7bce03b26f22ccbf1450631749e0dec7d8d32a7a5abe11162175e981606efd1f3598b46b661594e7020b9a3ba9108169
@@ -1,6 +1,7 @@
1
1
  module Papapi
2
2
  require_relative 'grid_request'
3
3
  require_relative 'multi_request'
4
+ require_relative 'affiliate'
4
5
  class Affiliate::Commission
5
6
 
6
7
  def initialize(session)
@@ -1,3 +1,3 @@
1
1
  module Papapi
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
@@ -0,0 +1,12 @@
1
+ require 'papapi'
2
+ require 'spec_helper'
3
+
4
+ RSpec.describe Papapi::Affiliate::Commission do
5
+ it "#load" do
6
+ session = Papapi::Session.new(script_url).login(affiliate_login, affiliate_password, Papapi::Session::AFFILIATE)
7
+ affiliate = Papapi::Affiliate.new(session)
8
+ affiliate.load()
9
+ expect(affiliate.id).to eq('11111111')
10
+ expect(affiliate[:username]).to eq('affiliate@example.com')
11
+ end
12
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: papapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Nizovtsev
@@ -81,6 +81,7 @@ files:
81
81
  - lib/papapi/version.rb
82
82
  - papapi.gemspec
83
83
  - spec/affiliate_commission_spec.rb
84
+ - spec/affiliate_spec.rb
84
85
  - spec/form_request_spec.rb
85
86
  - spec/grid_request_spec.rb
86
87
  - spec/helpers/settings.rb
@@ -114,6 +115,7 @@ specification_version: 4
114
115
  summary: A client for the Post Affiliate Pro API
115
116
  test_files:
116
117
  - spec/affiliate_commission_spec.rb
118
+ - spec/affiliate_spec.rb
117
119
  - spec/form_request_spec.rb
118
120
  - spec/grid_request_spec.rb
119
121
  - spec/helpers/settings.rb