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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3edd2e23d1f92a60d78428691fec6a7d7496b306
4
- data.tar.gz: c3b879f523fc99539e444a6f50a16fc484152205
3
+ metadata.gz: 86f63585ec16cb19ffaa8f4e646cbe24838e589f
4
+ data.tar.gz: d0d6d66eeae6ee89c502dbb2b76c5cb3c4f85bbe
5
5
  SHA512:
6
- metadata.gz: 0e3009c58a14482b185a2359a68f90c90e6754c6babcf3db2077c0a491244c25443aba8b96659097e9ff5224de555378af9a7685c5d6118f146afe992901e223
7
- data.tar.gz: 40a6886b9e548e7e6fe1fa69d4893bef923a07a101b66aae5aa1dba79430990d791741bce19f8a1361358aa8b9b7dfd336cbee04681df9a109dfb6a83cc2485d
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.
@@ -3,7 +3,7 @@ require "bigdecimal"
3
3
  module BaseCRM
4
4
  class Coercion
5
5
  def self.to_decimal_value(value)
6
- BigDecimal.new((value || 0), 15)
6
+ BigDecimal((value || 0), 15)
7
7
  end
8
8
 
9
9
  def self.to_string(value)
@@ -1,3 +1,3 @@
1
1
  module BaseCRM
2
- VERSION = "1.3.5"
2
+ VERSION = "1.3.6"
3
3
  end
@@ -1,7 +1,7 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :associated_contact, class: BaseCRM::AssociatedContact do
3
3
  # transient attributes, required in url
4
- deal_id nil
4
+ deal_id { nil }
5
5
 
6
6
  role { "involved" }
7
7
 
@@ -1,6 +1,6 @@
1
1
  require 'securerandom'
2
2
 
3
- FactoryGirl.define do
3
+ FactoryBot.define do
4
4
  factory :call, class: BaseCRM::Call do
5
5
 
6
6
  summary { "Schedule another call." }
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :contact, class: BaseCRM::Contact do
3
3
 
4
4
  description { "I know him via Tom" }
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :deal, class: BaseCRM::Deal do
3
3
 
4
4
  currency { "EUR" }
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :deal_source, class: BaseCRM::DealSource do
3
3
 
4
4
  name { Faker::Name.name }
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :deal_unqualified_reason, class: BaseCRM::DealUnqualifiedReason do
3
3
 
4
4
  name { Faker::Name.name }
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :lead, class: BaseCRM::Lead do
3
3
 
4
4
  description { "I know him via Tom" }
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :lead_source, class: BaseCRM::LeadSource do
3
3
 
4
4
  name { Faker::Name.name }
@@ -1,7 +1,7 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :line_item, class: BaseCRM::LineItem do
3
3
  # transient attributes, required in url
4
- order_id nil
4
+ order_id { nil }
5
5
 
6
6
  product_id { 5 }
7
7
  value { 1599.99 }
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :loss_reason, class: BaseCRM::LossReason do
3
3
 
4
4
  name { Faker::Name.name }
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :note, class: BaseCRM::Note do
3
3
 
4
4
  content { "Highly important." }
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :order, class: BaseCRM::Order do
3
3
 
4
4
  deal_id { 5 }
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :product, class: BaseCRM::Product do
3
3
 
4
4
  name { Faker::Name.name }
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :source, class: BaseCRM::Source do
3
3
 
4
4
  name { Faker::Name.name }
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :tag, class: BaseCRM::Tag do
3
3
 
4
4
  name { Faker::Name.name }
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :task, class: BaseCRM::Task do
3
3
 
4
4
  content { "Contact Tom" }
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :text_message, class: BaseCRM::TextMessage do
3
3
 
4
4
 
data/spec/spec_helper.rb CHANGED
@@ -1,10 +1,10 @@
1
1
  require 'rspec/collection_matchers'
2
- require 'factory_girl'
2
+ require 'factory_bot'
3
3
  require 'faker'
4
4
 
5
5
  require 'basecrm'
6
6
 
7
- module FactoryGirl
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
- FactoryGirl.find_definitions
18
+ FactoryBot.find_definitions
19
19
 
20
20
  RSpec.configure do |config|
21
- config.include FactoryGirl::Syntax::Methods
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 ||= FactoryGirl.create(: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
- FactoryGirl::SyntaxRunner.send(:include, ClientHelpers)
23
+ FactoryBot::SyntaxRunner.send(:include, ClientHelpers)
@@ -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.new("1.1", 15)) }
9
- it { expect(BaseCRM::Coercion.to_decimal_value("1.11")).to eql(BigDecimal.new("1.11", 15)) }
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
@@ -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.new("1.1", 15)) }
10
- it { expect(BaseCRM::Coercion.to_decimal_value("1.11")).to eql(BigDecimal.new("1.11", 15)) }
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.5
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: 2018-10-09 00:00:00.000000000 Z
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: factory_girl
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.8'
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.8'
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.3
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