hasoffersv3 0.2.6 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/.travis.yml +1 -1
- data/CHANGELOG.md +13 -0
- data/README.md +36 -3
- data/hasoffersv3.gemspec +4 -4
- data/lib/hasoffersv3/advertiser.rb +9 -11
- data/lib/hasoffersv3/advertiser_billing.rb +18 -20
- data/lib/hasoffersv3/advertiser_user.rb +2 -4
- data/lib/hasoffersv3/affiliate.rb +21 -23
- data/lib/hasoffersv3/affiliate_billing.rb +19 -21
- data/lib/hasoffersv3/affiliate_offer.rb +27 -27
- data/lib/hasoffersv3/application.rb +2 -4
- data/lib/hasoffersv3/base.rb +53 -38
- data/lib/hasoffersv3/client.rb +1 -1
- data/lib/hasoffersv3/configuration.rb +1 -0
- data/lib/hasoffersv3/conversion.rb +8 -15
- data/lib/hasoffersv3/employee.rb +17 -0
- data/lib/hasoffersv3/offer.rb +52 -54
- data/lib/hasoffersv3/offer_pixel.rb +22 -0
- data/lib/hasoffersv3/raw_log.rb +14 -16
- data/lib/hasoffersv3/report.rb +7 -21
- data/lib/hasoffersv3/version.rb +1 -1
- data/lib/hasoffersv3.rb +8 -3
- data/spec/lib/advertiser_billing_spec.rb +5 -4
- data/spec/lib/advertiser_spec.rb +1 -1
- data/spec/lib/advertiser_user_spec.rb +1 -1
- data/spec/lib/affiliate_billing_spec.rb +1 -1
- data/spec/lib/affiliate_offer_spec.rb +1 -1
- data/spec/lib/affiliate_spec.rb +1 -1
- data/spec/lib/conversion_spec.rb +3 -8
- data/spec/lib/employee_spec.rb +47 -0
- data/spec/lib/hasoffersv3_spec.rb +9 -1
- data/spec/lib/offer_pixel_spec.rb +76 -0
- data/spec/lib/offer_spec.rb +1 -1
- data/spec/lib/raw_log_spec.rb +1 -1
- data/spec/lib/report_spec.rb +5 -15
- metadata +8 -7
- data/.ruby-gemset +0 -1
- data/lib/hasoffersv3/adapter.rb +0 -30
- data/spec/lib/adapter_spec.rb +0 -20
data/lib/hasoffersv3/offer.rb
CHANGED
@@ -1,59 +1,57 @@
|
|
1
1
|
class HasOffersV3
|
2
2
|
class Offer < Base
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
post_request 'getTierPayouts', params
|
56
|
-
end
|
3
|
+
def find_all(params = {})
|
4
|
+
post_request 'findAll', params
|
5
|
+
end
|
6
|
+
|
7
|
+
def find_all_by_ids(params = {})
|
8
|
+
requires! params, [:ids]
|
9
|
+
post_request 'findAllByIds', params
|
10
|
+
end
|
11
|
+
|
12
|
+
def find_all_ids_by_advertiser_id(params = {})
|
13
|
+
requires! params, [:advertiser_id]
|
14
|
+
post_request 'findAllIdsByAdvertiserId', params
|
15
|
+
end
|
16
|
+
|
17
|
+
def find_all_ids_by_affiliate_id(params = {})
|
18
|
+
requires! params, [:affiliate_id]
|
19
|
+
post_request 'findAllIdsByAffiliateId', params
|
20
|
+
end
|
21
|
+
|
22
|
+
def find_by_id(params = {})
|
23
|
+
requires! params, [:id]
|
24
|
+
post_request 'findById', params
|
25
|
+
end
|
26
|
+
|
27
|
+
def get_groups(params = {})
|
28
|
+
requires! params, [:id]
|
29
|
+
post_request 'getGroups', params
|
30
|
+
end
|
31
|
+
|
32
|
+
def get_approved_affiliate_ids(params = {})
|
33
|
+
requires! params, [:id]
|
34
|
+
post_request 'getApprovedAffiliateIds', params
|
35
|
+
end
|
36
|
+
|
37
|
+
def set_payout(params = {})
|
38
|
+
requires! params, [:id, :affiliate_id]
|
39
|
+
post_request 'setPayout', params
|
40
|
+
end
|
41
|
+
|
42
|
+
def remove_payout(params = {})
|
43
|
+
requires! params, [:id, :affiliate_id]
|
44
|
+
post_request 'removePayout', params
|
45
|
+
end
|
46
|
+
|
47
|
+
def generate_tracking_link(params = {})
|
48
|
+
requires! params, [:offer_id, :affiliate_id]
|
49
|
+
post_request 'generateTrackingLink', params
|
50
|
+
end
|
51
|
+
|
52
|
+
def get_tier_payouts(params = {})
|
53
|
+
requires! params, [:id]
|
54
|
+
post_request 'getTierPayouts', params
|
57
55
|
end
|
58
56
|
end
|
59
57
|
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
class HasOffersV3
|
2
|
+
class OfferPixel < Base
|
3
|
+
def find_all(params = {})
|
4
|
+
post_request 'findAll', params
|
5
|
+
end
|
6
|
+
|
7
|
+
def find_all_by_ids(params = {})
|
8
|
+
requires! params, [:ids]
|
9
|
+
post_request 'findAllByIds', params
|
10
|
+
end
|
11
|
+
|
12
|
+
def find_by_id(params = {})
|
13
|
+
requires! params, [:id]
|
14
|
+
post_request 'findById', params
|
15
|
+
end
|
16
|
+
|
17
|
+
def get_allowed_types(params = {})
|
18
|
+
requires! params, [:offer_id]
|
19
|
+
post_request 'getAllowedTypes', params
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
data/lib/hasoffersv3/raw_log.rb
CHANGED
@@ -1,24 +1,22 @@
|
|
1
1
|
class HasOffersV3
|
2
2
|
class RawLog < Base
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
end
|
3
|
+
def get_download_link(params = {})
|
4
|
+
requires! params, [:log_type, :log_filename]
|
5
|
+
get_request 'getDownloadLink', params
|
6
|
+
end
|
8
7
|
|
9
|
-
|
10
|
-
|
11
|
-
|
8
|
+
def get_log_expirations
|
9
|
+
get_request 'getLogExpirations'
|
10
|
+
end
|
12
11
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
12
|
+
def list_date_dirs(params = {})
|
13
|
+
requires! params, [:log_type]
|
14
|
+
get_request 'listDateDirs', params
|
15
|
+
end
|
17
16
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
end
|
17
|
+
def list_logs(params = {})
|
18
|
+
requires! params, [:log_type, :date_dir]
|
19
|
+
get_request 'listLogs', params
|
22
20
|
end
|
23
21
|
end
|
24
22
|
end
|
data/lib/hasoffersv3/report.rb
CHANGED
@@ -1,27 +1,13 @@
|
|
1
1
|
class HasOffersV3
|
2
2
|
class Report < Base
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
get_conversions params, &block
|
9
|
-
end
|
10
|
-
|
11
|
-
def get_conversions(params = {}, &block)
|
12
|
-
# TODO: This *should* be a GET request, however, if we use that here we get: "The requested URL's length exceeds the capacity limit for this server."
|
13
|
-
# because the number of affiliate_ids we pass in is too high.
|
14
|
-
post_request 'getConversions', params, &block
|
15
|
-
end
|
16
|
-
|
17
|
-
def getModSummaryLogs(params = {}, &block)
|
18
|
-
deprecation 'getModSummaryLogs', 'get_mod_summary_logs'
|
19
|
-
get_mod_summary_logs params, &block
|
20
|
-
end
|
3
|
+
def get_conversions(params = {}, &block)
|
4
|
+
# TODO: This *should* be a GET request, however, if we use that here we get: "The requested URL's length exceeds the capacity limit for this server."
|
5
|
+
# because the number of affiliate_ids we pass in is too high.
|
6
|
+
post_request 'getConversions', params, &block
|
7
|
+
end
|
21
8
|
|
22
|
-
|
23
|
-
|
24
|
-
end
|
9
|
+
def get_mod_summary_logs(params = {}, &block)
|
10
|
+
get_request 'getModSummaryLogs', params, &block
|
25
11
|
end
|
26
12
|
end
|
27
13
|
end
|
data/lib/hasoffersv3/version.rb
CHANGED
data/lib/hasoffersv3.rb
CHANGED
@@ -3,14 +3,13 @@ require 'json'
|
|
3
3
|
|
4
4
|
require 'hasoffersv3/client'
|
5
5
|
|
6
|
-
%w!base affiliate response conversion raw_log report configuration advertiser advertiser_user offer application!.each do |file|
|
6
|
+
%w!base affiliate response conversion raw_log report configuration advertiser advertiser_user offer offer_pixel employee application!.each do |file|
|
7
7
|
require "hasoffersv3/#{file}"
|
8
8
|
end
|
9
9
|
|
10
10
|
require 'hasoffersv3/advertiser_billing'
|
11
11
|
require 'hasoffersv3/affiliate_offer'
|
12
12
|
require 'hasoffersv3/affiliate_billing'
|
13
|
-
require 'hasoffersv3/adapter'
|
14
13
|
|
15
14
|
class HasOffersV3
|
16
15
|
|
@@ -22,7 +21,9 @@ class HasOffersV3
|
|
22
21
|
affiliate_offers: HasOffersV3::AffiliateOffer,
|
23
22
|
affiliate_billing: HasOffersV3::AffiliateBilling,
|
24
23
|
conversions: HasOffersV3::Conversion,
|
24
|
+
employee: HasOffersV3::Employee,
|
25
25
|
offers: HasOffersV3::Offer,
|
26
|
+
offer_pixels: HasOffersV3::OfferPixel,
|
26
27
|
raw_logs: HasOffersV3::RawLog,
|
27
28
|
reports: HasOffersV3::Report,
|
28
29
|
application: HasOffersV3::Application
|
@@ -60,9 +61,13 @@ class HasOffersV3
|
|
60
61
|
@configuration = ::HasOffersV3::Configuration.new options
|
61
62
|
end
|
62
63
|
|
64
|
+
def client
|
65
|
+
::HasOffersV3::Client.new(@configuration)
|
66
|
+
end
|
67
|
+
|
63
68
|
API_TARGETS.each do |name, target|
|
64
69
|
define_method name do
|
65
|
-
|
70
|
+
target.new(client)
|
66
71
|
end
|
67
72
|
end
|
68
73
|
|
@@ -9,7 +9,7 @@ describe HasOffersV3::AdvertiserBilling do
|
|
9
9
|
it 'makes a proper request call' do
|
10
10
|
stub_call
|
11
11
|
response = subject.find_all_invoices
|
12
|
-
a_request(:post, url).with(body: hash_including({'Method' => 'findAllInvoices'})).
|
12
|
+
expect(a_request(:post, url).with(body: hash_including({'Method' => 'findAllInvoices'}))).to have_been_made
|
13
13
|
validate_call response
|
14
14
|
end
|
15
15
|
end
|
@@ -19,10 +19,11 @@ describe HasOffersV3::AdvertiserBilling do
|
|
19
19
|
it 'makes a proper request call' do
|
20
20
|
stub_call
|
21
21
|
response = subject.create_invoice(data: {advertiser_id: 1, start_date: '2014-10-01', end_date: '2014-10-30'})
|
22
|
-
a_request(:post, url).with(body: hash_including({
|
22
|
+
req = a_request(:post, url).with(body: hash_including({
|
23
23
|
'Method' => 'createInvoice',
|
24
24
|
'data' => {'advertiser_id' => '1', 'start_date' => '2014-10-01', 'end_date' => '2014-10-30'}
|
25
|
-
}))
|
25
|
+
}))
|
26
|
+
expect(req).to have_been_made
|
26
27
|
validate_call response
|
27
28
|
end
|
28
29
|
end
|
@@ -39,7 +40,7 @@ describe HasOffersV3::AdvertiserBilling do
|
|
39
40
|
it 'makes a proper request call' do
|
40
41
|
stub_call
|
41
42
|
response = subject.find_invoice_by_id(id: '1')
|
42
|
-
a_request(:post, url).with(body: hash_including({'Method' => 'findInvoiceById', 'id' => '1'})).
|
43
|
+
expect(a_request(:post, url).with(body: hash_including({'Method' => 'findInvoiceById', 'id' => '1'}))).to have_been_made
|
43
44
|
validate_call response
|
44
45
|
end
|
45
46
|
end
|
data/spec/lib/advertiser_spec.rb
CHANGED
data/spec/lib/affiliate_spec.rb
CHANGED
data/spec/lib/conversion_spec.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
describe HasOffersV3::Conversion do
|
4
|
-
subject { HasOffersV3::Conversion }
|
4
|
+
subject { HasOffersV3::Conversion.new }
|
5
5
|
|
6
6
|
let(:url) { Regexp.new api_url('Conversion') }
|
7
7
|
|
@@ -35,19 +35,14 @@ describe HasOffersV3::Conversion do
|
|
35
35
|
|
36
36
|
describe '.findAll' do
|
37
37
|
it 'should make a proper request call' do
|
38
|
-
response = subject.
|
38
|
+
response = subject.find_all
|
39
39
|
expect(a_request(:get, url).with(query: hash_including({'Method' => 'findAll'}))).to have_been_made
|
40
40
|
validate_call response
|
41
41
|
end
|
42
42
|
|
43
|
-
it 'should show a deprecation warning' do
|
44
|
-
expect(subject).to receive(:deprecation).with('findAll', 'find_all')
|
45
|
-
subject.findAll
|
46
|
-
end
|
47
|
-
|
48
43
|
it 'should call find_all method' do
|
49
44
|
expect(subject).to receive(:find_all).with({test: 1})
|
50
|
-
subject.
|
45
|
+
subject.find_all test: 1
|
51
46
|
end
|
52
47
|
end
|
53
48
|
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe HasOffersV3::Employee do
|
4
|
+
subject { HasOffersV3::Employee.new }
|
5
|
+
|
6
|
+
let(:url) { api_url 'Employee' }
|
7
|
+
|
8
|
+
before(:each) do |example|
|
9
|
+
stub_call unless example.metadata[:no_stub]
|
10
|
+
end
|
11
|
+
|
12
|
+
describe '.find_all' do
|
13
|
+
it 'should make a proper request call' do
|
14
|
+
response = subject.find_all
|
15
|
+
expect(a_request(:post, url).with(body: hash_including({'Method' => 'findAll'}))).to have_been_made
|
16
|
+
validate_call response
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
describe '.find_all_by_ids' do
|
21
|
+
it 'should make a proper request call' do
|
22
|
+
response = subject.find_all_by_ids ids: [1]
|
23
|
+
expect(a_request(:post, url).with(body: hash_including({'Method' => 'findAllByIds'}))).to have_been_made
|
24
|
+
validate_call response
|
25
|
+
end
|
26
|
+
|
27
|
+
context 'when there is no id' do
|
28
|
+
it 'should raise exception' do
|
29
|
+
expect { subject.find_all_by_ids }.to raise_error ArgumentError
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
describe '.find_by_id' do
|
35
|
+
it 'should make a proper request call' do
|
36
|
+
response = subject.find_by_id id: 1
|
37
|
+
expect(a_request(:post, url).with(body: hash_including({'Method' => 'findById', 'id' => '1'}))).to have_been_made
|
38
|
+
validate_call response
|
39
|
+
end
|
40
|
+
|
41
|
+
context 'when there is no id' do
|
42
|
+
it 'should raise exception' do
|
43
|
+
expect { subject.find_by_id }.to raise_error ArgumentError
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
@@ -14,6 +14,12 @@ describe HasOffersV3 do
|
|
14
14
|
subject = HasOffersV3.new
|
15
15
|
expect(subject.configuration).to_not eq(HasOffersV3.configuration)
|
16
16
|
end
|
17
|
+
|
18
|
+
it 'should use params instead of default' do
|
19
|
+
subject = HasOffersV3.new(host: 'example.com')
|
20
|
+
expect(subject.configuration.host).to eq('example.com')
|
21
|
+
expect(subject.configuration.host).to_not eq(HasOffersV3::Configuration::DEFAULTS[:host])
|
22
|
+
end
|
17
23
|
end
|
18
24
|
|
19
25
|
context 'api' do
|
@@ -21,7 +27,9 @@ describe HasOffersV3 do
|
|
21
27
|
|
22
28
|
describe '#offers' do
|
23
29
|
it 'should get offers for current connection' do
|
24
|
-
|
30
|
+
offer = double('HasOffersV3::Offer')
|
31
|
+
expect(HasOffersV3::Offer).to receive(:new).and_return(offer)
|
32
|
+
expect(offer).to receive(:find_all)
|
25
33
|
subject.offers.find_all
|
26
34
|
end
|
27
35
|
end
|
@@ -0,0 +1,76 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe HasOffersV3::OfferPixel do
|
4
|
+
subject { HasOffersV3::OfferPixel.new }
|
5
|
+
|
6
|
+
let(:url) { api_url 'OfferPixel' }
|
7
|
+
|
8
|
+
describe '.find_all' do
|
9
|
+
it 'should make a proper request call' do
|
10
|
+
stub_call
|
11
|
+
response = subject.find_all
|
12
|
+
expect(a_request(:post, url).with(body: hash_including({'Method' => 'findAll'}))).to have_been_made
|
13
|
+
validate_call response
|
14
|
+
end
|
15
|
+
|
16
|
+
it 'should contain filters by type and modified' do
|
17
|
+
stub_call
|
18
|
+
response = subject.find_all(filters: {type: 'url', modified: {'GREATER_THAN' => '2015-01-01+00:00'}})
|
19
|
+
expect(a_request(:post, url).with(body: hash_including({'Method' => 'findAll', filters: { type: 'url', modified: {'GREATER_THAN' => '2015-01-01+00:00'} }}))).to have_been_made
|
20
|
+
validate_call response
|
21
|
+
end
|
22
|
+
|
23
|
+
it 'should sort by modified' do
|
24
|
+
stub_call
|
25
|
+
response = subject.find_all(sort: {modified: 'asc'})
|
26
|
+
expect(a_request(:post, url).with(body: hash_including({'Method' => 'findAll', sort: {modified: 'asc'}}))).to have_been_made
|
27
|
+
validate_call response
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
describe '.find_all_by_ids' do
|
32
|
+
it 'should make a proper request call' do
|
33
|
+
stub_call
|
34
|
+
response = subject.find_all_by_ids ids: [1]
|
35
|
+
expect(a_request(:post, url).with(body: hash_including({'Method' => 'findAllByIds'}))).to have_been_made
|
36
|
+
validate_call response
|
37
|
+
end
|
38
|
+
|
39
|
+
context 'when there is no id' do
|
40
|
+
it 'should raise exception' do
|
41
|
+
expect { subject.find_all_by_ids }.to raise_error ArgumentError
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
describe '.find_by_id' do
|
47
|
+
it 'should make a proper request call' do
|
48
|
+
stub_call
|
49
|
+
response = subject.find_by_id id: [1]
|
50
|
+
expect(a_request(:post, url).with(body: hash_including({'Method' => 'findById'}))).to have_been_made
|
51
|
+
validate_call response
|
52
|
+
end
|
53
|
+
|
54
|
+
context 'when there is no id' do
|
55
|
+
it 'should raise exception' do
|
56
|
+
expect { subject.find_by_id }.to raise_error ArgumentError
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
describe '.get_allowed_types' do
|
62
|
+
it 'should make a proper request call' do
|
63
|
+
stub_call
|
64
|
+
response = subject.get_allowed_types offer_id: [1]
|
65
|
+
expect(a_request(:post, url).with(body: hash_including({'Method' => 'getAllowedTypes'}))).to have_been_made
|
66
|
+
validate_call response
|
67
|
+
end
|
68
|
+
|
69
|
+
context 'when there is no offer_id' do
|
70
|
+
it 'should raise exception' do
|
71
|
+
expect { subject.get_allowed_types }.to raise_error ArgumentError
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
end
|
data/spec/lib/offer_spec.rb
CHANGED
data/spec/lib/raw_log_spec.rb
CHANGED
data/spec/lib/report_spec.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
describe HasOffersV3::Report do
|
4
|
-
subject { HasOffersV3::Report }
|
4
|
+
subject { HasOffersV3::Report.new }
|
5
5
|
let(:url) { api_url 'Report' }
|
6
6
|
|
7
7
|
describe '.get_conversions' do
|
@@ -18,19 +18,14 @@ describe HasOffersV3::Report do
|
|
18
18
|
before(:each) { stub_call }
|
19
19
|
|
20
20
|
it 'should make a proper request call' do
|
21
|
-
response = subject.
|
21
|
+
response = subject.get_conversions
|
22
22
|
expect(a_request(:post, url).with(body: hash_including({'Method' => 'getConversions'}))).to have_been_made
|
23
23
|
validate_call response
|
24
24
|
end
|
25
25
|
|
26
|
-
it 'should show a deprecation warning' do
|
27
|
-
expect(subject).to receive(:deprecation).with('getConversions', 'get_conversions')
|
28
|
-
subject.getConversions
|
29
|
-
end
|
30
|
-
|
31
26
|
it 'should call find_all method' do
|
32
27
|
expect(subject).to receive(:get_conversions).with({test: 1})
|
33
|
-
subject.
|
28
|
+
subject.get_conversions test: 1
|
34
29
|
end
|
35
30
|
end
|
36
31
|
|
@@ -52,19 +47,14 @@ describe HasOffersV3::Report do
|
|
52
47
|
before(:each) { stub_call :get }
|
53
48
|
|
54
49
|
it 'should make a proper request call' do
|
55
|
-
response = subject.
|
50
|
+
response = subject.get_mod_summary_logs
|
56
51
|
expect(a_request(:get, url).with(query: hash_including({'Method' => 'getModSummaryLogs'}))).to have_been_made
|
57
52
|
validate_call response
|
58
53
|
end
|
59
54
|
|
60
|
-
it 'should show a deprecation warning' do
|
61
|
-
expect(subject).to receive(:deprecation).with('getModSummaryLogs', 'get_mod_summary_logs')
|
62
|
-
subject.getModSummaryLogs
|
63
|
-
end
|
64
|
-
|
65
55
|
it 'should call find_all method' do
|
66
56
|
expect(subject).to receive(:get_mod_summary_logs).with({test: 1})
|
67
|
-
subject.
|
57
|
+
subject.get_mod_summary_logs test: 1
|
68
58
|
end
|
69
59
|
|
70
60
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hasoffersv3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Maximilian Seifert
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2016-01-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -91,7 +91,6 @@ extra_rdoc_files: []
|
|
91
91
|
files:
|
92
92
|
- ".gitignore"
|
93
93
|
- ".rspec"
|
94
|
-
- ".ruby-gemset"
|
95
94
|
- ".ruby-version"
|
96
95
|
- ".travis.yml"
|
97
96
|
- CHANGELOG.md
|
@@ -101,7 +100,6 @@ files:
|
|
101
100
|
- Rakefile
|
102
101
|
- hasoffersv3.gemspec
|
103
102
|
- lib/hasoffersv3.rb
|
104
|
-
- lib/hasoffersv3/adapter.rb
|
105
103
|
- lib/hasoffersv3/advertiser.rb
|
106
104
|
- lib/hasoffersv3/advertiser_billing.rb
|
107
105
|
- lib/hasoffersv3/advertiser_user.rb
|
@@ -113,13 +111,14 @@ files:
|
|
113
111
|
- lib/hasoffersv3/client.rb
|
114
112
|
- lib/hasoffersv3/configuration.rb
|
115
113
|
- lib/hasoffersv3/conversion.rb
|
114
|
+
- lib/hasoffersv3/employee.rb
|
116
115
|
- lib/hasoffersv3/offer.rb
|
116
|
+
- lib/hasoffersv3/offer_pixel.rb
|
117
117
|
- lib/hasoffersv3/raw_log.rb
|
118
118
|
- lib/hasoffersv3/report.rb
|
119
119
|
- lib/hasoffersv3/response.rb
|
120
120
|
- lib/hasoffersv3/testing.rb
|
121
121
|
- lib/hasoffersv3/version.rb
|
122
|
-
- spec/lib/adapter_spec.rb
|
123
122
|
- spec/lib/advertiser_billing_spec.rb
|
124
123
|
- spec/lib/advertiser_spec.rb
|
125
124
|
- spec/lib/advertiser_user_spec.rb
|
@@ -130,7 +129,9 @@ files:
|
|
130
129
|
- spec/lib/base_spec.rb
|
131
130
|
- spec/lib/client_spec.rb
|
132
131
|
- spec/lib/conversion_spec.rb
|
132
|
+
- spec/lib/employee_spec.rb
|
133
133
|
- spec/lib/hasoffersv3_spec.rb
|
134
|
+
- spec/lib/offer_pixel_spec.rb
|
134
135
|
- spec/lib/offer_spec.rb
|
135
136
|
- spec/lib/raw_log_spec.rb
|
136
137
|
- spec/lib/report_spec.rb
|
@@ -160,7 +161,6 @@ signing_key:
|
|
160
161
|
specification_version: 4
|
161
162
|
summary: REST Client for the HasOffers API, version 3.
|
162
163
|
test_files:
|
163
|
-
- spec/lib/adapter_spec.rb
|
164
164
|
- spec/lib/advertiser_billing_spec.rb
|
165
165
|
- spec/lib/advertiser_spec.rb
|
166
166
|
- spec/lib/advertiser_user_spec.rb
|
@@ -171,9 +171,10 @@ test_files:
|
|
171
171
|
- spec/lib/base_spec.rb
|
172
172
|
- spec/lib/client_spec.rb
|
173
173
|
- spec/lib/conversion_spec.rb
|
174
|
+
- spec/lib/employee_spec.rb
|
174
175
|
- spec/lib/hasoffersv3_spec.rb
|
176
|
+
- spec/lib/offer_pixel_spec.rb
|
175
177
|
- spec/lib/offer_spec.rb
|
176
178
|
- spec/lib/raw_log_spec.rb
|
177
179
|
- spec/lib/report_spec.rb
|
178
180
|
- spec/spec_helper.rb
|
179
|
-
has_rdoc:
|