basecrm 1.3.8 → 1.3.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -0
- data/lib/basecrm/services/deals_service.rb +1 -1
- data/lib/basecrm/version.rb +1 -1
- data/spec/factories/contact.rb +2 -2
- data/spec/factories/deal_source.rb +1 -1
- data/spec/factories/deal_unqualified_reason.rb +1 -1
- data/spec/factories/lead.rb +2 -2
- data/spec/factories/lead_source.rb +1 -1
- data/spec/factories/loss_reason.rb +1 -1
- data/spec/factories/source.rb +1 -1
- data/spec/factories/tag.rb +1 -1
- data/spec/spec_helper.rb +1 -0
- metadata +36 -36
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: afa9bee39abea53bd2f89300e5e50cb638021d64b31372c0de31f8658f52a21b
|
4
|
+
data.tar.gz: e2f9681713ab28c138f64355ea069f95774b705cb85466ff26b69874bd2a7200
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 43f0e183a4f134c48347cbad9866ea8dd7f59f9cbf7df06c185f9e22279c630673d9889a2efb10367564c6241914f38144cf6f322484ff9c244dca87dfb43786
|
7
|
+
data.tar.gz: 431333dce4e47268eb3f43d41b2206bb7befdadf60f7ca4dc152fa32c56b4cfeab18284876a81fa17bdfcc6450108c033693be823277a3adaa328dd949e57202
|
data/README.md
CHANGED
@@ -483,6 +483,12 @@ Actions:
|
|
483
483
|
## Bug Reports
|
484
484
|
Report [here](https://github.com/zendesk/basecrm-ruby/issues).
|
485
485
|
|
486
|
+
## Releasing new version of gem
|
487
|
+
|
488
|
+
1. Update version [lib/basecrm/version.rb](lib/basecrm/version.rb) and [VERSION](VERSION) and push to `master`
|
489
|
+
2. Create new GitHub release with tag name starting with `v` and the version, for example `v1.0.0`
|
490
|
+
3. Gem will be automatically built and pushed to rubygems.org with GitHub Action
|
491
|
+
|
486
492
|
## Copyright and license
|
487
493
|
|
488
494
|
Copyright 2013 Zendesk
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
module BaseCRM
|
4
4
|
class DealsService
|
5
|
-
OPTS_KEYS_TO_PERSIST = Set[:contact_id, :currency, :custom_fields, :hot, :loss_reason_id, :name, :owner_id, :source_id, :stage_id, :tags, :value, :last_stage_change_at, :estimated_close_date, :customized_win_likelihood]
|
5
|
+
OPTS_KEYS_TO_PERSIST = Set[:contact_id, :currency, :custom_fields, :hot, :loss_reason_id, :unqualified_reason_id, :name, :owner_id, :source_id, :stage_id, :tags, :value, :last_stage_change_at, :estimated_close_date, :customized_win_likelihood]
|
6
6
|
|
7
7
|
def initialize(client)
|
8
8
|
@client = client
|
data/lib/basecrm/version.rb
CHANGED
data/spec/factories/contact.rb
CHANGED
@@ -2,7 +2,7 @@ FactoryBot.define do
|
|
2
2
|
factory :contact, class: BaseCRM::Contact do
|
3
3
|
|
4
4
|
description { "I know him via Tom" }
|
5
|
-
email { "mark@
|
5
|
+
email { "mark#{SecureRandom.hex}@example.com" }
|
6
6
|
facebook { "mjohnson" }
|
7
7
|
fax { "+44-208-1234567" }
|
8
8
|
first_name { Faker::Name.first_name }
|
@@ -17,7 +17,7 @@ FactoryBot.define do
|
|
17
17
|
tags { ["important"] }
|
18
18
|
title { "CEO" }
|
19
19
|
twitter { "mjohnson" }
|
20
|
-
website { "www.
|
20
|
+
website { "www.example.com" }
|
21
21
|
|
22
22
|
|
23
23
|
to_create do |contact|
|
data/spec/factories/lead.rb
CHANGED
@@ -2,7 +2,7 @@ FactoryBot.define do
|
|
2
2
|
factory :lead, class: BaseCRM::Lead do
|
3
3
|
|
4
4
|
description { "I know him via Tom" }
|
5
|
-
email { "mark@
|
5
|
+
email { "mark#{SecureRandom.hex}@example.com" }
|
6
6
|
facebook { "mjohnson" }
|
7
7
|
fax { "+44-208-1234567" }
|
8
8
|
first_name { Faker::Name.first_name }
|
@@ -16,7 +16,7 @@ FactoryBot.define do
|
|
16
16
|
tags { ["important"] }
|
17
17
|
title { "CEO" }
|
18
18
|
twitter { "mjohnson" }
|
19
|
-
website { "www.
|
19
|
+
website { "www.example.com" }
|
20
20
|
|
21
21
|
|
22
22
|
to_create do |lead|
|
data/spec/factories/source.rb
CHANGED
data/spec/factories/tag.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: basecrm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zendesk
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-03-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -267,54 +267,54 @@ signing_key:
|
|
267
267
|
specification_version: 4
|
268
268
|
summary: Zendesk Sell Official API V2 library client for ruby
|
269
269
|
test_files:
|
270
|
+
- spec/factories/lead_source.rb
|
271
|
+
- spec/factories/call.rb
|
272
|
+
- spec/factories/note.rb
|
273
|
+
- spec/factories/tag.rb
|
270
274
|
- spec/factories/associated_contact.rb
|
275
|
+
- spec/factories/task.rb
|
271
276
|
- spec/factories/lead.rb
|
272
|
-
- spec/factories/lead_source.rb
|
273
277
|
- spec/factories/product.rb
|
274
|
-
- spec/factories/
|
275
|
-
- spec/factories/tag.rb
|
278
|
+
- spec/factories/loss_reason.rb
|
276
279
|
- spec/factories/source.rb
|
280
|
+
- spec/factories/contact.rb
|
281
|
+
- spec/factories/lead_unqualified_reason.rb
|
277
282
|
- spec/factories/text_message.rb
|
278
283
|
- spec/factories/order.rb
|
279
|
-
- spec/factories/lead_unqualified_reason.rb
|
280
|
-
- spec/factories/task.rb
|
281
284
|
- spec/factories/deal.rb
|
282
|
-
- spec/factories/note.rb
|
283
|
-
- spec/factories/loss_reason.rb
|
284
|
-
- spec/factories/deal_source.rb
|
285
285
|
- spec/factories/deal_unqualified_reason.rb
|
286
|
-
- spec/factories/
|
287
|
-
- spec/factories/
|
288
|
-
- spec/
|
289
|
-
- spec/
|
290
|
-
- spec/
|
291
|
-
- spec/
|
292
|
-
- spec/
|
286
|
+
- spec/factories/deal_source.rb
|
287
|
+
- spec/factories/line_item.rb
|
288
|
+
- spec/basecrm/sync_spec.rb
|
289
|
+
- spec/support/client_helpers.rb
|
290
|
+
- spec/utils/coercion_spec.rb
|
291
|
+
- spec/utils/coercion.rb
|
292
|
+
- spec/spec_helper.rb
|
293
|
+
- spec/middlewares/raise_error_spec.rb
|
293
294
|
- spec/services/deals_service_spec.rb
|
294
|
-
- spec/services/associated_contacts_service_spec.rb
|
295
|
-
- spec/services/leads_service_spec.rb
|
296
|
-
- spec/services/orders_service_spec.rb
|
297
|
-
- spec/services/notes_service_spec.rb
|
298
295
|
- spec/services/sync_service_spec.rb
|
299
|
-
- spec/services/stages_service_spec.rb
|
300
|
-
- spec/services/deal_sources_service_spec.rb
|
301
|
-
- spec/services/users_service_spec.rb
|
302
296
|
- spec/services/loss_reasons_service_spec.rb
|
297
|
+
- spec/services/stages_service_spec.rb
|
303
298
|
- spec/services/products_service_spec.rb
|
304
|
-
- spec/services/lead_sources_service_spec.rb
|
305
299
|
- spec/services/tasks_service_spec.rb
|
306
|
-
- spec/services/
|
307
|
-
- spec/services/
|
300
|
+
- spec/services/notes_service_spec.rb
|
301
|
+
- spec/services/lead_unqualified_reasons_service_spec.rb
|
302
|
+
- spec/services/deal_sources_service_spec.rb
|
303
|
+
- spec/services/visit_outcomes_service_spec.rb
|
308
304
|
- spec/services/pipelines_service_spec.rb
|
309
|
-
- spec/services/
|
305
|
+
- spec/services/sources_service_spec.rb
|
306
|
+
- spec/services/lead_sources_service_spec.rb
|
307
|
+
- spec/services/tags_service_spec.rb
|
308
|
+
- spec/services/contacts_service_spec.rb
|
309
|
+
- spec/services/associated_contacts_service_spec.rb
|
310
310
|
- spec/services/deal_unqualified_reasons_service_spec.rb
|
311
|
+
- spec/services/orders_service_spec.rb
|
312
|
+
- spec/services/calls_service_spec.rb
|
311
313
|
- spec/services/visits_service_spec.rb
|
312
|
-
- spec/services/
|
313
|
-
- spec/services/
|
314
|
-
- spec/
|
315
|
-
- spec/
|
314
|
+
- spec/services/text_messages_service_spec.rb
|
315
|
+
- spec/services/accounts_service_spec.rb
|
316
|
+
- spec/services/line_items_service_spec.rb
|
317
|
+
- spec/services/call_outcomes_service_spec.rb
|
318
|
+
- spec/services/users_service_spec.rb
|
319
|
+
- spec/services/leads_service_spec.rb
|
316
320
|
- spec/models/sync_meta_spec.rb
|
317
|
-
- spec/basecrm/sync_spec.rb
|
318
|
-
- spec/support/client_helpers.rb
|
319
|
-
- spec/utils/coercion_spec.rb
|
320
|
-
- spec/utils/coercion.rb
|