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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bb7b535b460dd19762cecf6a09a4d6a85c6687b9
4
- data.tar.gz: 14e64d442c7e33eabafaa710788fd67c7e19efe7
3
+ metadata.gz: e6ff7d063ff6147bed37b8652bcdad046f5428bb
4
+ data.tar.gz: 72c586f84d3207c56d7384116e0313a255a156f2
5
5
  SHA512:
6
- metadata.gz: 1d95f4bc72e02c583a9ab36fdde1f64f38f72d811916766ee2c3eb304754e98e4796d80c3de541ed89d0a5fc308089dad756e842081cf54f4cec4e05e4d3fa47
7
- data.tar.gz: dfe9b08521ffce7a24a31ab616c0098a96e21a70749805f82debdefda27dc40cd3ebf2212b4bdbb318698bde808e2f7a2cd08cdfde82fe0a12c6bb73f11c1a97
6
+ metadata.gz: df4b2d2f3b52a64bbd9cfaa70d90426bba176f1fce6e02e9a92e291ad6e0b858d47973bf94cb7b3177ed3a86aa851f502a03eb5a0039d1ea4249a428ef54bfc3
7
+ data.tar.gz: 1b6045999985870c10d4b8b90481e1af76fe551c364d030cbc65024508112ea4fd2203057aedcc1cbfeaf91ab0e13c9467bc5bbe2c7ac2869b035d7280ca248f
@@ -10,7 +10,7 @@ module Papapi
10
10
  end
11
11
 
12
12
  def load
13
- data = Papapi::FormRequest.new('Pap_Affiliates_Profile_PersonalDetailsForm', 'load', affiliate_session)
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
- fields[key.to_sym]
23
+ @response[key.to_sym]
24
24
  end
25
25
 
26
26
  end
@@ -1,3 +1,3 @@
1
1
  module Papapi
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  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.2
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