papapi 0.1.2 → 0.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.
- checksums.yaml +4 -4
- data/lib/papapi/affiliate.rb +2 -2
- data/lib/papapi/version.rb +1 -1
- metadata +1 -3
- data/spec/affiliate.rb +0 -12
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e6ff7d063ff6147bed37b8652bcdad046f5428bb
|
|
4
|
+
data.tar.gz: 72c586f84d3207c56d7384116e0313a255a156f2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: df4b2d2f3b52a64bbd9cfaa70d90426bba176f1fce6e02e9a92e291ad6e0b858d47973bf94cb7b3177ed3a86aa851f502a03eb5a0039d1ea4249a428ef54bfc3
|
|
7
|
+
data.tar.gz: 1b6045999985870c10d4b8b90481e1af76fe551c364d030cbc65024508112ea4fd2203057aedcc1cbfeaf91ab0e13c9467bc5bbe2c7ac2869b035d7280ca248f
|
data/lib/papapi/affiliate.rb
CHANGED
|
@@ -10,7 +10,7 @@ module Papapi
|
|
|
10
10
|
end
|
|
11
11
|
|
|
12
12
|
def load
|
|
13
|
-
|
|
13
|
+
request = Papapi::FormRequest.new('Pap_Affiliates_Profile_PersonalDetailsForm', 'load', @session)
|
|
14
14
|
@response = request.send
|
|
15
15
|
self
|
|
16
16
|
end
|
|
@@ -20,7 +20,7 @@ module Papapi
|
|
|
20
20
|
end
|
|
21
21
|
|
|
22
22
|
def [] (key)
|
|
23
|
-
|
|
23
|
+
@response[key.to_sym]
|
|
24
24
|
end
|
|
25
25
|
|
|
26
26
|
end
|
data/lib/papapi/version.rb
CHANGED
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.
|
|
4
|
+
version: 0.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dmitry Nizovtsev
|
|
@@ -80,7 +80,6 @@ files:
|
|
|
80
80
|
- lib/papapi/session.rb
|
|
81
81
|
- lib/papapi/version.rb
|
|
82
82
|
- papapi.gemspec
|
|
83
|
-
- spec/affiliate.rb
|
|
84
83
|
- spec/affiliate_commission_spec.rb
|
|
85
84
|
- spec/form_request_spec.rb
|
|
86
85
|
- spec/grid_request_spec.rb
|
|
@@ -114,7 +113,6 @@ signing_key:
|
|
|
114
113
|
specification_version: 4
|
|
115
114
|
summary: A client for the Post Affiliate Pro API
|
|
116
115
|
test_files:
|
|
117
|
-
- spec/affiliate.rb
|
|
118
116
|
- spec/affiliate_commission_spec.rb
|
|
119
117
|
- spec/form_request_spec.rb
|
|
120
118
|
- spec/grid_request_spec.rb
|
data/spec/affiliate.rb
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
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 be eql('11111111')
|
|
10
|
-
expect(affiliate[:username]).to be eql('affiliate@example.com')
|
|
11
|
-
end
|
|
12
|
-
end
|