basecrm 1.3.5 → 1.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/basecrm/models/contact.rb +1 -1
- data/lib/basecrm/utils/coercion.rb +1 -1
- data/lib/basecrm/version.rb +1 -1
- data/spec/factories/associated_contact.rb +2 -2
- data/spec/factories/call.rb +1 -1
- data/spec/factories/contact.rb +1 -1
- data/spec/factories/deal.rb +1 -1
- data/spec/factories/deal_source.rb +1 -1
- data/spec/factories/deal_unqualified_reason.rb +1 -1
- data/spec/factories/lead.rb +1 -1
- data/spec/factories/lead_source.rb +1 -1
- data/spec/factories/line_item.rb +2 -2
- data/spec/factories/loss_reason.rb +1 -1
- data/spec/factories/note.rb +1 -1
- data/spec/factories/order.rb +1 -1
- data/spec/factories/product.rb +1 -1
- data/spec/factories/source.rb +1 -1
- data/spec/factories/tag.rb +1 -1
- data/spec/factories/task.rb +1 -1
- data/spec/factories/text_message.rb +1 -1
- data/spec/spec_helper.rb +4 -4
- data/spec/support/client_helpers.rb +2 -2
- data/spec/utils/coercion.rb +2 -2
- data/spec/utils/coercion_spec.rb +2 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86f63585ec16cb19ffaa8f4e646cbe24838e589f
|
4
|
+
data.tar.gz: d0d6d66eeae6ee89c502dbb2b76c5cb3c4f85bbe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48b579f1744c409b3c8eee14e50985b875614334964d13dcecf50c3f8fbc69d02dcaabf186e351c39864e77c7aa769ea1f9df3aacc18fc1813dd62fcaa3a18f1
|
7
|
+
data.tar.gz: 8249e1c323f38018d6459e5c0c452c74c79a07bf857c23825171730a854a9c7e1ca09e293662ba308e0694f6d34d465530009a104e0e98a46077884580f34369
|
@@ -22,7 +22,7 @@ module BaseCRM
|
|
22
22
|
# @return [Integer] The unique identifier of the organization the contact belongs to. The field will be set only if the contact is an individual.
|
23
23
|
# attr_accessor :contact_id
|
24
24
|
# @!attribute [rw] custom_fields
|
25
|
-
# @return [Hash] Custom fields are a key-value pair attached to a contact. See more at [Custom Fields](/docs/rest/articles/requests#custom_fields).
|
25
|
+
# @return [Hash] Custom fields are a key-value pair attached to a contact. See more at [Custom Fields](/docs/rest/articles/requests#custom_fields). Note! You need to set Filterable on from Settings -> Contacts to be able to search by custom fields
|
26
26
|
# attr_accessor :custom_fields
|
27
27
|
# @!attribute [rw] customer_status
|
28
28
|
# @return [String] The customer status of the contact.
|
data/lib/basecrm/version.rb
CHANGED
data/spec/factories/call.rb
CHANGED
data/spec/factories/contact.rb
CHANGED
data/spec/factories/deal.rb
CHANGED
data/spec/factories/lead.rb
CHANGED
data/spec/factories/line_item.rb
CHANGED
data/spec/factories/note.rb
CHANGED
data/spec/factories/order.rb
CHANGED
data/spec/factories/product.rb
CHANGED
data/spec/factories/source.rb
CHANGED
data/spec/factories/tag.rb
CHANGED
data/spec/factories/task.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
require 'rspec/collection_matchers'
|
2
|
-
require '
|
2
|
+
require 'factory_bot'
|
3
3
|
require 'faker'
|
4
4
|
|
5
5
|
require 'basecrm'
|
6
6
|
|
7
|
-
module
|
7
|
+
module FactoryBot
|
8
8
|
module Strategy
|
9
9
|
class Create
|
10
10
|
def result(evaluation)
|
@@ -15,10 +15,10 @@ module FactoryGirl
|
|
15
15
|
end
|
16
16
|
|
17
17
|
Dir[File.join(__dir__, "/support/**/*.rb")].each { |f| require f }
|
18
|
-
|
18
|
+
FactoryBot.find_definitions
|
19
19
|
|
20
20
|
RSpec.configure do |config|
|
21
|
-
config.include
|
21
|
+
config.include FactoryBot::Syntax::Methods
|
22
22
|
|
23
23
|
config.expect_with :rspec do |expectations|
|
24
24
|
# It makes the `description` and `failure_message` of custom matchers include text for helper methods
|
@@ -12,7 +12,7 @@ module ClientHelpers
|
|
12
12
|
end
|
13
13
|
|
14
14
|
def contact
|
15
|
-
@contact ||=
|
15
|
+
@contact ||= FactoryBot.create(:contact)
|
16
16
|
end
|
17
17
|
end
|
18
18
|
|
@@ -20,4 +20,4 @@ RSpec.configure do |config|
|
|
20
20
|
include ClientHelpers
|
21
21
|
end
|
22
22
|
|
23
|
-
|
23
|
+
FactoryBot::SyntaxRunner.send(:include, ClientHelpers)
|
data/spec/utils/coercion.rb
CHANGED
@@ -5,7 +5,7 @@ describe BaseCRM::Coercion do
|
|
5
5
|
it { expect(BaseCRM::Coercion.to_decimal_value(0)).to eql(0) }
|
6
6
|
it { expect(BaseCRM::Coercion.to_decimal_value("0")).to eql(0) }
|
7
7
|
it { expect(BaseCRM::Coercion.to_decimal_value(nil)).to eql(0) }
|
8
|
-
it { expect(BaseCRM::Coercion.to_decimal_value(1.1)).to eql(BigDecimal
|
9
|
-
it { expect(BaseCRM::Coercion.to_decimal_value("1.11")).to eql(BigDecimal
|
8
|
+
it { expect(BaseCRM::Coercion.to_decimal_value(1.1)).to eql(BigDecimal("1.1", 15)) }
|
9
|
+
it { expect(BaseCRM::Coercion.to_decimal_value("1.11")).to eql(BigDecimal("1.11", 15)) }
|
10
10
|
end
|
11
11
|
end
|
data/spec/utils/coercion_spec.rb
CHANGED
@@ -6,8 +6,8 @@ describe BaseCRM::Coercion do
|
|
6
6
|
it { expect(BaseCRM::Coercion.to_decimal_value(0)).to eql(0) }
|
7
7
|
it { expect(BaseCRM::Coercion.to_decimal_value("0")).to eql(0) }
|
8
8
|
it { expect(BaseCRM::Coercion.to_decimal_value(nil)).to eql(0) }
|
9
|
-
it { expect(BaseCRM::Coercion.to_decimal_value(1.1)).to eql(BigDecimal
|
10
|
-
it { expect(BaseCRM::Coercion.to_decimal_value("1.11")).to eql(BigDecimal
|
9
|
+
it { expect(BaseCRM::Coercion.to_decimal_value(1.1)).to eql(BigDecimal("1.1", 15)) }
|
10
|
+
it { expect(BaseCRM::Coercion.to_decimal_value("1.11")).to eql(BigDecimal("1.11", 15)) }
|
11
11
|
end
|
12
12
|
|
13
13
|
describe "to_string" do
|
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.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- BaseCRM developers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-02-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -87,19 +87,19 @@ dependencies:
|
|
87
87
|
- !ruby/object:Gem::Version
|
88
88
|
version: '2.0'
|
89
89
|
- !ruby/object:Gem::Dependency
|
90
|
-
name:
|
90
|
+
name: factory_bot
|
91
91
|
requirement: !ruby/object:Gem::Requirement
|
92
92
|
requirements:
|
93
93
|
- - "~>"
|
94
94
|
- !ruby/object:Gem::Version
|
95
|
-
version: '4.
|
95
|
+
version: '4.11'
|
96
96
|
type: :development
|
97
97
|
prerelease: false
|
98
98
|
version_requirements: !ruby/object:Gem::Requirement
|
99
99
|
requirements:
|
100
100
|
- - "~>"
|
101
101
|
- !ruby/object:Gem::Version
|
102
|
-
version: '4.
|
102
|
+
version: '4.11'
|
103
103
|
- !ruby/object:Gem::Dependency
|
104
104
|
name: faker
|
105
105
|
requirement: !ruby/object:Gem::Requirement
|
@@ -263,7 +263,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
263
263
|
version: '0'
|
264
264
|
requirements: []
|
265
265
|
rubyforge_project:
|
266
|
-
rubygems_version: 2.5.2
|
266
|
+
rubygems_version: 2.5.2
|
267
267
|
signing_key:
|
268
268
|
specification_version: 4
|
269
269
|
summary: BaseCRM Official API V2 library client for ruby
|