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 +4 -4
- data/lib/papapi/affiliate_commission.rb +1 -0
- data/lib/papapi/version.rb +1 -1
- data/spec/affiliate_spec.rb +12 -0
- metadata +3 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2c8e995d668f62a23e76fa95e9f740c5c4f0d8e3
|
|
4
|
+
data.tar.gz: f87a0ee261450ede573fe5dbb9870d1ed4cf2365
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e9669f4810272f175454660820f97365717844cc0bf8b180b8d604a841270949a62a59b461bf29acacb8002b3987874ba489f8de8471448efe84d68deb82ed7c
|
|
7
|
+
data.tar.gz: 35f5a6e8e6d058cae5d99e9a958c1cfb7bce03b26f22ccbf1450631749e0dec7d8d32a7a5abe11162175e981606efd1f3598b46b661594e7020b9a3ba9108169
|
data/lib/papapi/version.rb
CHANGED
|
@@ -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.
|
|
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
|