soapy_cake 1.22.0 → 1.22.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 56f71b18325d9c37c28fa1eb52a36785b29cbde1
4
- data.tar.gz: 489dfd14ad0e7fe93571ae955544830dced450c1
3
+ metadata.gz: 491621f952c57a8d9f52076f6166166c71c4e7a0
4
+ data.tar.gz: b7309f77d46d9ed03daf6f320fd32c64d2d97ffd
5
5
  SHA512:
6
- metadata.gz: ea22778f46a5c0097f0b182c1f84cff5c509694011dabde1c2794f505a713fa5abae06efe7009c479e81fb4e90cfef16962bb2ea181da0f2dbb4df98a60331d2
7
- data.tar.gz: 0ce89c5f006bc80e3daafd7a46cecba01ced9fef6a61afc33a617dd2d820b68b67be0c7e6990ac35a1e829f078dc04750be186ede15c2fbbbf67a554824d17d8
6
+ metadata.gz: 2b96544d7e713cb1ceccc4073a7246b4cb3fe6e2d2ab4bf9ebcee12e710ce3a70b09c6c8a5258d3a1911a8d10bd7b8a20078ae5519727477f1e5385eb8886f6b
7
+ data.tar.gz: d866495514cd196bd4e8735c8e5240b7ebff496d4989a2ca718adc9d075dbb53b7dfe1dde2e6c7c6dd1738f3ced68eb9525eba227d739750f5cb7defa8b27773
data/README.md CHANGED
@@ -23,8 +23,9 @@ Or install it yourself as:
23
23
 
24
24
  ## Usage Examples
25
25
 
26
- First we assume that you set the `CAKE_DOMAIN`, `CAKE_API_KEY` and `CAKE_TIME_ZONE`
27
- environment variables.
26
+ First we assume that you set the `CAKE_DOMAIN`, `CAKE_API_KEY` and
27
+ `CAKE_TIME_ZONE` environment variables. To enable the ADD, EDIT and ADDEDIT API
28
+ endpoints, `CAKE_WRITE_ENABLED=yes` should also be set.
28
29
 
29
30
  Export all advertisers:
30
31
 
@@ -41,8 +42,8 @@ SoapyCake::Admin.new.affiliate_summary(
41
42
  )
42
43
  ```
43
44
 
44
- If you are interested in how we map methods to api endpoints take a look
45
- at [api_versions.yml](api_versions.yml).
45
+ If you are interested in how we map methods to api endpoints take a look at
46
+ [api.yml](api.yml).
46
47
 
47
48
  ## Time/Date Handling
48
49
  - Define `CAKE_TIME_ZONE`
@@ -16,6 +16,10 @@ module SoapyCake
16
16
  opts[:xml_response] == true
17
17
  end
18
18
 
19
+ def read_only?
20
+ !write_enabled
21
+ end
22
+
19
23
  protected
20
24
 
21
25
  attr_reader :domain, :api_key, :time_converter, :opts, :logger, :retry_count, :write_enabled
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module SoapyCake
3
- VERSION = '1.22.0'
3
+ VERSION = '1.22.1'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soapy_cake
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.22.0
4
+ version: 1.22.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ad2games GmbH