chartmogul-ruby 4.3.0 → 4.4.0

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: 187a659678960cf3ea88e2b4e71fd04bb871616a83b6c32335edd61763f5fb27
4
- data.tar.gz: 24560d0af68c270766d9313cdef508bd6a5b50697f12d05669bf89f95d380d8d
3
+ metadata.gz: 73feaf0740f7b93fac1afbb843b14da2ae8795926e55a595b306c97fb789c973
4
+ data.tar.gz: 4860d36f85289bf32be3f47a7f43de1c8b07c3d679b3c3ed96d4f1d64a6da0e7
5
5
  SHA512:
6
- metadata.gz: fece8a4dbe09c3f5b245f5dce87caefb1722a61035c7c490700f3eb8265d65dbb40dbcf5a40fabf397a616f5bb9334e9e01acd2ea08f17da5ab8d5a1c217a030
7
- data.tar.gz: d3d6771c0768bd32c4567c44d06514fa7301dde6ac6fd635ae07762cd09a95c29615fe55a1615c7bd8dac90f2384d7d43f6b5832d24ace87e8b6cccd2d88655f
6
+ metadata.gz: 55a5b492825b56014b4a7f6db1779c4bb3401c33c97fc7b4e6d825e64d673104ca4becb816bc692f2c56b41804d6a408ab088edacb83e9ccc4b3824597cfa0bf
7
+ data.tar.gz: ef3babd9e379fa95fe43a0b1d746a081eb61b7c65058f7e82560d0493cd9521c33d542ac1c9e0b1165a36a22bfe30b892bff25c7fe029e9e2cf1790a2d650f8d
@@ -9,7 +9,7 @@ jobs:
9
9
  runs-on: ubuntu-latest
10
10
  strategy:
11
11
  matrix:
12
- ruby-version: [2.7, 3.0, 3.1, 3.2]
12
+ ruby-version: [2.7, 3.0, 3.1, 3.2, 3.3, head]
13
13
  steps:
14
14
  - uses: actions/checkout@v2
15
15
  - name: Set up Ruby ${{ matrix.ruby-version }}
@@ -36,6 +36,8 @@ jobs:
36
36
  chmod +x ./cc-test-reporter
37
37
  ./cc-test-reporter before-build
38
38
  - name: Run tests
39
+ env:
40
+ CC_TEST_REPORTER_ID: 'enable JSON output for SimpleCov'
39
41
  run: bundle exec rake
40
42
  - name: Send Report to Code Climate
41
43
  env:
data/changelog.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # chartmogul-ruby Change Log
2
2
 
3
+ ## Version 4.4.0 - October 24, 2024
4
+ - Adds support for unmerging customers
5
+
3
6
  ## Version 4.3.0 - March 25, 2024
4
7
  - Adds support for Opportunities (https://dev.chartmogul.com/reference/opportunities)
5
8
 
@@ -27,17 +27,18 @@ Gem::Specification.new do |spec|
27
27
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
28
28
  spec.require_paths = ['lib']
29
29
 
30
- spec.add_dependency 'faraday', '~> 2.7'
30
+ spec.add_dependency 'faraday', '~> 2.8'
31
31
  spec.add_dependency 'faraday-retry', '~> 2.2'
32
32
 
33
+ # Higher versions break ruby 2.7 support.
33
34
  spec.add_development_dependency 'bundler', '~> 2'
34
- spec.add_development_dependency 'pry', '~> 0.14.2'
35
- spec.add_development_dependency 'rake', '~> 13.0'
36
- spec.add_development_dependency 'rspec', '~> 3.0'
37
- spec.add_development_dependency 'rubocop', '0.79'
38
- spec.add_development_dependency 'rubocop-rspec', '~> 1.38'
39
- spec.add_development_dependency 'rubocop-thread_safety', '~> 0.3.4'
40
- spec.add_development_dependency 'simplecov', '~> 0.17.1'
41
- spec.add_development_dependency 'vcr', '~> 5.1'
42
- spec.add_development_dependency 'webmock', '~> 3.8'
35
+ spec.add_development_dependency 'pry'
36
+ spec.add_development_dependency 'rake'
37
+ spec.add_development_dependency 'rspec'
38
+ spec.add_development_dependency 'rubocop', '= 1.56.3'
39
+ spec.add_development_dependency 'rubocop-rspec', '~> 2.9'
40
+ spec.add_development_dependency 'rubocop-thread_safety', '~> 0.5.1'
41
+ spec.add_development_dependency 'simplecov', '~> 0.21'
42
+ spec.add_development_dependency 'vcr'
43
+ spec.add_development_dependency 'webmock'
43
44
  end
@@ -66,6 +66,17 @@ module ChartMogul
66
66
  true
67
67
  end
68
68
 
69
+ def self.unmerge!(customer_uuid:, data_source_uuid:, external_id:, move_to_new_customer: [])
70
+ options = {
71
+ customer_uuid: customer_uuid,
72
+ data_source_uuid: data_source_uuid,
73
+ external_id: external_id,
74
+ move_to_new_customer: move_to_new_customer
75
+ }
76
+ custom!(:post, '/v1/customers/unmerges', options)
77
+ true
78
+ end
79
+
69
80
  def subscriptions(options = {})
70
81
  @subscriptions ||= ChartMogul::Subscription.all(uuid, options)
71
82
  end
@@ -150,6 +161,15 @@ module ChartMogul
150
161
  true
151
162
  end
152
163
 
164
+ def unmerge!(data_source_uuid:, external_id:, move_to_new_customer: [])
165
+ self.class.unmerge!(
166
+ customer_uuid: uuid,
167
+ data_source_uuid: data_source_uuid,
168
+ external_id: external_id,
169
+ move_to_new_customer: move_to_new_customer
170
+ )
171
+ end
172
+
153
173
  private
154
174
 
155
175
  def tags=(tags)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ChartMogul
4
- VERSION = '4.3.0'
4
+ VERSION = '4.4.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chartmogul-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.3.0
4
+ version: 4.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Petr Kopac
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-03-25 00:00:00.000000000 Z
11
+ date: 2024-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2.7'
19
+ version: '2.8'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '2.7'
26
+ version: '2.8'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: faraday-retry
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -56,128 +56,128 @@ dependencies:
56
56
  name: pry
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: 0.14.2
61
+ version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: 0.14.2
68
+ version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rake
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: '13.0'
75
+ version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
- version: '13.0'
82
+ version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rspec
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "~>"
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
- version: '3.0'
89
+ version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - "~>"
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
- version: '3.0'
96
+ version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rubocop
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - '='
102
102
  - !ruby/object:Gem::Version
103
- version: '0.79'
103
+ version: 1.56.3
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - '='
109
109
  - !ruby/object:Gem::Version
110
- version: '0.79'
110
+ version: 1.56.3
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rubocop-rspec
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: '1.38'
117
+ version: '2.9'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: '1.38'
124
+ version: '2.9'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: rubocop-thread_safety
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: 0.3.4
131
+ version: 0.5.1
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: 0.3.4
138
+ version: 0.5.1
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: simplecov
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
143
  - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: 0.17.1
145
+ version: '0.21'
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - "~>"
151
151
  - !ruby/object:Gem::Version
152
- version: 0.17.1
152
+ version: '0.21'
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: vcr
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - "~>"
157
+ - - ">="
158
158
  - !ruby/object:Gem::Version
159
- version: '5.1'
159
+ version: '0'
160
160
  type: :development
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
- - - "~>"
164
+ - - ">="
165
165
  - !ruby/object:Gem::Version
166
- version: '5.1'
166
+ version: '0'
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: webmock
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
- - - "~>"
171
+ - - ">="
172
172
  - !ruby/object:Gem::Version
173
- version: '3.8'
173
+ version: '0'
174
174
  type: :development
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
- - - "~>"
178
+ - - ">="
179
179
  - !ruby/object:Gem::Version
180
- version: '3.8'
180
+ version: '0'
181
181
  description: Official Ruby client for ChartMogul's API
182
182
  email:
183
183
  - petr@chartmogul.com
@@ -290,8 +290,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
290
290
  - !ruby/object:Gem::Version
291
291
  version: '0'
292
292
  requirements: []
293
- rubygems_version: 3.1.4
294
- signing_key:
293
+ rubygems_version: 3.2.3
294
+ signing_key:
295
295
  specification_version: 4
296
296
  summary: Chartmogul API Ruby Client
297
297
  test_files: []