paddle 2.1.3 → 2.1.4

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
  SHA256:
3
- metadata.gz: 457fd5bd63d3324da10687d2796e4582e2693021ab8a6fa7bfeddbfa7b47dda0
4
- data.tar.gz: 38ef8f0c9baf2ddc2515d1a3a1c9a032e5c3a8788299052762e4741f1f81e236
3
+ metadata.gz: 18ca722e2dfa03afa07ccc605919184d6f13ebb594c163c5f4ea0ff2bb4ab242
4
+ data.tar.gz: d4d42ff9ab6370b90ecc965a26a936fcabffd455f98d88a1bc43ed39779e6f91
5
5
  SHA512:
6
- metadata.gz: c2c14b85b564116f6b5c3d771b010b4fefa66ef9e899960c6bd3fc9e0919a9e864b398d73106318e62c2bb8c4684a8a2f5b211ff9e6ec67fcdfd337b1b6465a8
7
- data.tar.gz: c604c94ac7770198ed78f57318327efcbf293d68a127bfdfcb419a4aa52aa7ee4db8ac7542df3d9045b662d5a5b6a3cbea9aa3f02be7559b8e04232db6eb6c33
6
+ metadata.gz: 9a33e4d7f8462e8c4a987d6bc621b920e29b6aada8cc1076f204e38f9cac69fa733dfed1f12e5447ec4dd148db25b0a0fd01ef39641534dc2ba7466b95416451
7
+ data.tar.gz: 697890a2b7465aa1b563fef5e4a388792dbe4325e22582fa16d8b727b5dab2d49702fd90859bbdd056709cba7ad16977706ef463965b1d51ebf35c7a1216c46b
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- paddle (2.1.3)
4
+ paddle (2.1.4)
5
5
  faraday (~> 2.0)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -33,6 +33,11 @@ Paddle.configure do |config|
33
33
  end
34
34
  ```
35
35
 
36
+ ### Caveats
37
+
38
+ The Paddle API doesn't take `nil` values for optional parameters. If you want to
39
+ remove a value, you'll need to pass `"null"` instead.
40
+
36
41
  ### Products
37
42
 
38
43
  ```ruby
@@ -119,6 +124,7 @@ Paddle::Discount.update(id: "dsc_abc123", description: "An updated description")
119
124
  # https://developer.paddle.com/api-reference/customers/list-customers
120
125
  Paddle::Customer.list
121
126
  Paddle::Customer.list(status: "active")
127
+ Paddle::Customer.list(email: "me@mydomain.com")
122
128
 
123
129
  # Create a customer
124
130
  # https://developer.paddle.com/api-reference/customers/create-customer
@@ -14,7 +14,7 @@ module Paddle
14
14
  end
15
15
 
16
16
  def environment=(env)
17
- env = env.to_sym
17
+ env = env.nil? ? :production : env.to_sym
18
18
  unless [:development, :sandbox, :production].include?(env)
19
19
  raise ArgumentError, "#{env.inspect} is not a valid environment"
20
20
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Paddle
4
- VERSION = "2.1.3"
4
+ VERSION = "2.1.4"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paddle
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.3
4
+ version: 2.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dean Perry
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-11-05 00:00:00.000000000 Z
11
+ date: 2024-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -24,7 +24,7 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '2.0'
27
- description:
27
+ description:
28
28
  email:
29
29
  - dean@deanpcmad.com
30
30
  executables: []
@@ -93,7 +93,7 @@ licenses: []
93
93
  metadata:
94
94
  homepage_uri: https://github.com/deanpcmad/paddle
95
95
  source_code_uri: https://github.com/deanpcmad/paddle
96
- post_install_message:
96
+ post_install_message:
97
97
  rdoc_options: []
98
98
  require_paths:
99
99
  - lib
@@ -108,8 +108,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
108
108
  - !ruby/object:Gem::Version
109
109
  version: '0'
110
110
  requirements: []
111
- rubygems_version: 3.4.21
112
- signing_key:
111
+ rubygems_version: 3.4.22
112
+ signing_key:
113
113
  specification_version: 4
114
114
  summary: Ruby library for the Paddle Billing & Classic APIs
115
115
  test_files: []