soapy_cake 2.2.5 → 2.2.6

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
  SHA256:
3
- metadata.gz: eb3bcbb80c4153edac27b6d2369ec411cb5aef99a3b23296d080847eb3292f51
4
- data.tar.gz: 19e63f665281cdb7c2cacee1dcff97e131faad35890f69aa3011910fe4e6c8ce
3
+ metadata.gz: 461859e423b3ccbde017b5d8e82e11eb8ec296efb027e433959b599e1d0bc7d5
4
+ data.tar.gz: 490b1c070be1195cb83b711ce3b9509c26994310b6f8827f7b439542dbfbf08d
5
5
  SHA512:
6
- metadata.gz: 054ed6a30bbc79ea7b7c0c5e9eefaec5cb298377b98567f82776036393a2c348b72ade2c5927f0128ce4dc40744da1da120ae0f09ba636921251494e83ec6e58
7
- data.tar.gz: b8ca98057e6e01ad4329ed9397c44b4c0394f06cbd2616f52f656259775761778e1cef50be61bcb1530d4614d33a1e2fc20866d5adb1da6a55cd1c2c73bc0157
6
+ metadata.gz: 379278cf411f584d3e5a86a6aef9bb33ac026b9b405d84d9e09a6d7e5e6eb7e29b7ceacfecefe6408a3b758103e8189af597d7e5cbb0b9f2a0a4e15a1c422d86
7
+ data.tar.gz: 1dd33e5f76bae5a23a3a3cdbd7aa926eefb6ab91cc6a3a7bb5208a6daae8e006cebb1ced08be1cdd2004049b447fe2a41c7dfb0891bb9848b72384f89c2ba4f1
@@ -0,0 +1,64 @@
1
+ version: 2
2
+ jobs:
3
+ setup:
4
+ docker: &docker
5
+ - image: circleci/ruby:2.5.1-node
6
+ environment:
7
+ BUNDLE_PATH: vendor/bundle
8
+
9
+ steps:
10
+ - checkout
11
+
12
+ - run:
13
+ name: Check if Ruby versions match
14
+ command: test "$(ruby -v | grep -oP '\d\.\d\.\d')" = "$(cat .ruby-version)"
15
+
16
+ - run:
17
+ name: Install dependencies
18
+ command: bundle install --jobs=4 --retry=3
19
+
20
+ - persist_to_workspace:
21
+ root: .
22
+ paths:
23
+ - .
24
+
25
+ lint:
26
+ docker: *docker
27
+ steps:
28
+ - attach_workspace:
29
+ at: .
30
+
31
+ - run: bundle exec rake rubocop
32
+
33
+ test:
34
+ docker: *docker
35
+ steps:
36
+ - attach_workspace:
37
+ at: .
38
+
39
+ - run:
40
+ name: run tests
41
+ command: |
42
+ mkdir /tmp/test-results
43
+
44
+ bundle exec rspec --format progress \
45
+ --format RspecJunitFormatter \
46
+ --out /tmp/test-results/rspec.xml \
47
+ --format progress
48
+
49
+ - run: bundle exec codeclimate-test-reporter
50
+
51
+ - store_test_results:
52
+ path: /tmp/test-results
53
+
54
+ workflows:
55
+ version: 2
56
+ lint-and-test:
57
+ jobs:
58
+ - setup
59
+ - lint:
60
+ requires:
61
+ - setup
62
+ - test:
63
+ requires:
64
+ - setup
data/Gemfile CHANGED
@@ -6,6 +6,7 @@ gemspec
6
6
 
7
7
  group :development, :test do
8
8
  gem 'codeclimate-test-reporter', require: false
9
+ gem 'rspec_junit_formatter'
9
10
  gem 'rubocop-ci', git: 'https://github.com/ad2games/rubocop-ci'
10
11
  gem 'simplecov'
11
12
  end
data/README.md CHANGED
@@ -1,8 +1,7 @@
1
1
  # SoapyCake
2
- [![Code Climate](https://codeclimate.com/github/ad2games/soapy_cake.png)](https://codeclimate.com/github/ad2games/soapy_cake)
3
- [![Test Coverage](https://codeclimate.com/github/ad2games/soapy_cake/coverage.png)](https://codeclimate.com/github/ad2games/soapy_cake)
2
+ [![Maintainability](https://api.codeclimate.com/v1/badges/506ccd1a270e86f6b2bb/maintainability)](https://codeclimate.com/github/ad2games/soapy_cake/maintainability)
3
+ [![Test Coverage](https://api.codeclimate.com/v1/badges/506ccd1a270e86f6b2bb/test_coverage)](https://codeclimate.com/github/ad2games/soapy_cake/test_coverage)
4
4
  [![Gem Version](http://img.shields.io/gem/v/soapy_cake.svg)](http://rubygems.org/gems/soapy_cake)
5
- [![Dependency Status](http://img.shields.io/gemnasium/ad2games/soapy_cake.svg)](https://gemnasium.com/ad2games/soapy_cake)
6
5
  [![Circle CI](https://circleci.com/gh/ad2games/soapy_cake.png?style=shield&circle-token=aac691804f58acd8e96db632f8133e3c6155f123)](https://circleci.com/gh/ad2games/soapy_cake)
7
6
 
8
7
  Simple client library for [cake](http://getcake.com).
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'soapy_cake/request_mass_conversion_insert'
4
-
5
3
  module SoapyCake
6
4
  class AdminTrack < Client
7
5
  include Helper
@@ -23,7 +21,7 @@ module SoapyCake
23
21
  campaign_id creative_id total_to_insert
24
22
  ])
25
23
 
26
- run RequestMassConversionInsert.new(:admin, :track, :mass_conversion_insert, opts)
24
+ run Request.new(:admin, :track, :mass_conversion_insert, opts)
27
25
  end
28
26
 
29
27
  def update_conversion(opts)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SoapyCake
4
- VERSION = '2.2.5'
4
+ VERSION = '2.2.6'
5
5
  end
@@ -4,10 +4,10 @@ http_interactions:
4
4
  method: post
5
5
  uri: https://cake-partner-domain.com/api/2/track.asmx
6
6
  body:
7
- encoding: ASCII-8BIT
7
+ encoding: UTF-8
8
8
  string: |
9
9
  <?xml version="1.0"?>
10
- <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:cake="http://cakemarketing.com/api/1/">
10
+ <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:cake="http://cakemarketing.com/api/2/">
11
11
  <env:Header/>
12
12
  <env:Body>
13
13
  <cake:MassConversionInsert>
@@ -39,6 +39,14 @@ http_interactions:
39
39
  code: 200
40
40
  message: OK
41
41
  headers:
42
+ Access-Control-Allow-Credentials:
43
+ - 'true'
44
+ Access-Control-Allow-Headers:
45
+ - Origin, X-Requested-With, Content-Type, Accept
46
+ Access-Control-Allow-Methods:
47
+ - POST,GET,OPTIONS,PUT,DELETE
48
+ Access-Control-Max-Age:
49
+ - '1728000'
42
50
  Cache-Control:
43
51
  - private, max-age=0
44
52
  Content-Length:
@@ -46,7 +54,7 @@ http_interactions:
46
54
  Content-Type:
47
55
  - application/soap+xml; charset=utf-8
48
56
  Date:
49
- - Mon, 24 Jul 2017 19:42:39 GMT
57
+ - Thu, 30 Aug 2018 15:39:26 GMT
50
58
  X-Aspnet-Version:
51
59
  - 4.0.30319
52
60
  X-Powered-By:
@@ -57,8 +65,8 @@ http_interactions:
57
65
  encoding: UTF-8
58
66
  string: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
59
67
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><MassConversionInsertResponse
60
- xmlns="http://cakemarketing.com/api/1/"><MassConversionInsertResult><success>true</success><message>Conversions
68
+ xmlns="http://cakemarketing.com/api/2/"><MassConversionInsertResult><success>true</success><message>Conversions
61
69
  Inserted</message></MassConversionInsertResult></MassConversionInsertResponse></soap:Body></soap:Envelope>
62
70
  http_version:
63
- recorded_at: Mon, 24 Jul 2017 19:42:40 GMT
64
- recorded_with: VCR 3.0.3
71
+ recorded_at: Thu, 30 Aug 2018 15:39:27 GMT
72
+ recorded_with: VCR 4.0.0
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soapy_cake
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.5
4
+ version: 2.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - ad2games GmbH
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-06 00:00:00.000000000 Z
11
+ date: 2018-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -185,6 +185,7 @@ executables: []
185
185
  extensions: []
186
186
  extra_rdoc_files: []
187
187
  files:
188
+ - ".circleci/config.yml"
188
189
  - ".gitignore"
189
190
  - ".rspec"
190
191
  - ".rubocop_todo.yml"
@@ -194,7 +195,6 @@ files:
194
195
  - README.md
195
196
  - Rakefile
196
197
  - api.yml
197
- - circle.yml
198
198
  - lib/soapy_cake.rb
199
199
  - lib/soapy_cake/admin.rb
200
200
  - lib/soapy_cake/admin_addedit.rb
@@ -208,7 +208,6 @@ files:
208
208
  - lib/soapy_cake/helper.rb
209
209
  - lib/soapy_cake/modification_type.rb
210
210
  - lib/soapy_cake/request.rb
211
- - lib/soapy_cake/request_mass_conversion_insert.rb
212
211
  - lib/soapy_cake/response.rb
213
212
  - lib/soapy_cake/response_value.rb
214
213
  - lib/soapy_cake/time_converter.rb
data/circle.yml DELETED
@@ -1,8 +0,0 @@
1
- dependencies:
2
- post:
3
- - bundle update
4
- test:
5
- pre:
6
- - bundle exec rake rubocop
7
- post:
8
- - bundle exec codeclimate-test-reporter
@@ -1,16 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module SoapyCake
4
- class RequestMassConversionInsert < Request
5
- private
6
-
7
- # There is a bug in MassConversionInsert version 2 API in cake,
8
- # in which xmlns is still using version 1.
9
- def xml_namespaces
10
- {
11
- 'xmlns:env' => 'http://www.w3.org/2003/05/soap-envelope',
12
- 'xmlns:cake' => 'http://cakemarketing.com/api/1/'
13
- }
14
- end
15
- end
16
- end