papapi 0.1.9 → 0.1.10

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: aa63660fb9abf83517ec33f84a2cfbad2e144c7d
4
- data.tar.gz: b5e866c31eefbff40681bac79180690d6bd938a6
3
+ metadata.gz: 9e340cd02bf0881173b2760ee41995df685f5e52
4
+ data.tar.gz: 16fbc3eb08b9b5be8a23017fad05653523d0bd45
5
5
  SHA512:
6
- metadata.gz: 5e6187b9c602bec37e666fbac72aa6324c092573bfe7ad1adcfbf440e0e55e712eaeed93f9647680a04828ebeae0b8609a9bb2a86c04b2773ffe0d2cd9eda3be
7
- data.tar.gz: ad890652669491ec1d0edcb97511c8d5b8b9cec9b461fb6881c2433d16a3993ab165198214259f39043a4168b938f9e2681b5b48eccfb1a2ada80a76081e2dc1
6
+ metadata.gz: f8e669263d6cf2ad4200f3086df3309f92c82ca5049b50c82cb70c12fe6498081c4300edb2ce01f594a80ac2353be1f1ad39de56a48438f78d410dfbc6bd0bd2
7
+ data.tar.gz: fb5b77fc05d2751e3af9b8104fc111649296ec497b7260815f9fe844f99b4f56322783945800b793470fffc969880d22c7d83c64368c786e786610d85c2dc876
@@ -108,8 +108,9 @@ module Papapi
108
108
  response = request.send
109
109
  if response.count > 0
110
110
  user = response[0]
111
+ p user['id']
111
112
  affiliate = Papapi::Affiliate.new(@session)
112
- affiliate.id = user['userid']
113
+ affiliate.id = user['userid'] || user['id']
113
114
  affiliate.load
114
115
  return affiliate
115
116
  end
@@ -1,3 +1,3 @@
1
1
  module Papapi
2
- VERSION = "0.1.9"
2
+ VERSION = "0.1.10"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: papapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Nizovtsev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-22 00:00:00.000000000 Z
11
+ date: 2018-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -110,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
110
110
  version: '0'
111
111
  requirements: []
112
112
  rubyforge_project:
113
- rubygems_version: 2.4.5
113
+ rubygems_version: 2.5.1
114
114
  signing_key:
115
115
  specification_version: 4
116
116
  summary: A client for the Post Affiliate Pro API