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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ace86b32daf827a102ee89fdf376030f5f7eecfd9e7a4311f51afab5a39f862f
4
- data.tar.gz: 8d5d2b5222e0d12ad92f7f59c483f89b99f4e852909b4966767f93be86e2109a
3
+ metadata.gz: afa9bee39abea53bd2f89300e5e50cb638021d64b31372c0de31f8658f52a21b
4
+ data.tar.gz: e2f9681713ab28c138f64355ea069f95774b705cb85466ff26b69874bd2a7200
5
5
  SHA512:
6
- metadata.gz: cd8e4346fe4cad4d0cdab9e0b6ee1f7ef36537939259dd381c3f65f0b8e52fcfc2bcd9b4c54410d5f4c537e743669f22b67350d3b33c5b2c0e1ced09ac98be90
7
- data.tar.gz: f2cbebc01aa6cd103a0aef1930e5328f8be7103b90a7021cbc08500521495de48695eea0a74adde753beb8547a51921b74ddb99bfa0cb652088aee400bda54cb
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
@@ -1,3 +1,3 @@
1
1
  module BaseCRM
2
- VERSION = "1.3.8"
2
+ VERSION = "1.3.9"
3
3
  end
@@ -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@designservices.com" }
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.designservices.com" }
20
+ website { "www.example.com" }
21
21
 
22
22
 
23
23
  to_create do |contact|
@@ -1,7 +1,7 @@
1
1
  FactoryBot.define do
2
2
  factory :deal_source, class: BaseCRM::DealSource do
3
3
 
4
- name { Faker::Name.name }
4
+ name { "source#{SecureRandom.hex}" }
5
5
 
6
6
 
7
7
  to_create do |deal_source|
@@ -1,7 +1,7 @@
1
1
  FactoryBot.define do
2
2
  factory :deal_unqualified_reason, class: BaseCRM::DealUnqualifiedReason do
3
3
 
4
- name { Faker::Name.name }
4
+ name { "unqualified_reason#{SecureRandom.hex}" }
5
5
 
6
6
 
7
7
  to_create do |deal_unqualified_reason|
@@ -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@designservices.com" }
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.designservices.com" }
19
+ website { "www.example.com" }
20
20
 
21
21
 
22
22
  to_create do |lead|
@@ -1,7 +1,7 @@
1
1
  FactoryBot.define do
2
2
  factory :lead_source, class: BaseCRM::LeadSource do
3
3
 
4
- name { Faker::Name.name }
4
+ name { "source#{SecureRandom.hex}" }
5
5
 
6
6
 
7
7
  to_create do |lead_source|
@@ -1,7 +1,7 @@
1
1
  FactoryBot.define do
2
2
  factory :loss_reason, class: BaseCRM::LossReason do
3
3
 
4
- name { Faker::Name.name }
4
+ name { "loss_reason#{Time.now.to_i}" }
5
5
 
6
6
 
7
7
  to_create do |loss_reason|
@@ -1,7 +1,7 @@
1
1
  FactoryBot.define do
2
2
  factory :source, class: BaseCRM::Source do
3
3
 
4
- name { Faker::Name.name }
4
+ name { "source#{SecureRandom.hex}" }
5
5
 
6
6
 
7
7
  to_create do |source|
@@ -1,7 +1,7 @@
1
1
  FactoryBot.define do
2
2
  factory :tag, class: BaseCRM::Tag do
3
3
 
4
- name { Faker::Name.name }
4
+ name { "tag#{SecureRandom.hex}" }
5
5
 
6
6
  resource_type { :contact }
7
7
 
data/spec/spec_helper.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  require 'rspec/collection_matchers'
2
2
  require 'factory_bot'
3
3
  require 'faker'
4
+ require 'securerandom'
4
5
 
5
6
  require 'basecrm'
6
7
 
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.8
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: 2020-05-11 00:00:00.000000000 Z
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/line_item.rb
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/contact.rb
287
- - spec/factories/call.rb
288
- - spec/services/call_outcomes_service_spec.rb
289
- - spec/services/contacts_service_spec.rb
290
- - spec/services/visit_outcomes_service_spec.rb
291
- - spec/services/lead_unqualified_reasons_service_spec.rb
292
- - spec/services/line_items_service_spec.rb
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/calls_service_spec.rb
307
- - spec/services/text_messages_service_spec.rb
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/accounts_service_spec.rb
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/tags_service_spec.rb
313
- - spec/services/sources_service_spec.rb
314
- - spec/spec_helper.rb
315
- - spec/middlewares/raise_error_spec.rb
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