basecrm 0.1.2 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (101) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +2 -2
  3. data/README.md +273 -17
  4. data/lib/basecrm.rb +185 -1
  5. data/lib/basecrm/configuration.rb +59 -0
  6. data/lib/basecrm/envelope.rb +7 -0
  7. data/lib/basecrm/errors.rb +65 -0
  8. data/lib/basecrm/http_client.rb +91 -0
  9. data/lib/basecrm/middlewares/oauth_bearer_token.rb +18 -0
  10. data/lib/basecrm/middlewares/raise_error.rb +31 -0
  11. data/lib/basecrm/model.rb +6 -0
  12. data/lib/basecrm/models/account.rb +31 -0
  13. data/lib/basecrm/models/address.rb +22 -0
  14. data/lib/basecrm/models/associated_contact.rb +19 -0
  15. data/lib/basecrm/models/contact.rb +88 -0
  16. data/lib/basecrm/models/deal.rb +58 -0
  17. data/lib/basecrm/models/lead.rb +79 -0
  18. data/lib/basecrm/models/loss_reason.rb +22 -0
  19. data/lib/basecrm/models/note.rb +28 -0
  20. data/lib/basecrm/models/pipeline.rb +19 -0
  21. data/lib/basecrm/models/source.rb +22 -0
  22. data/lib/basecrm/models/stage.rb +34 -0
  23. data/lib/basecrm/models/tag.rb +25 -0
  24. data/lib/basecrm/models/task.rb +46 -0
  25. data/lib/basecrm/models/user.rb +31 -0
  26. data/lib/basecrm/paginated_resource.rb +32 -0
  27. data/lib/basecrm/services/accounts_service.rb +33 -0
  28. data/lib/basecrm/services/associated_contacts_service.rb +91 -0
  29. data/lib/basecrm/services/contacts_service.rb +138 -0
  30. data/lib/basecrm/services/deals_service.rb +137 -0
  31. data/lib/basecrm/services/leads_service.rb +140 -0
  32. data/lib/basecrm/services/loss_reasons_service.rb +133 -0
  33. data/lib/basecrm/services/notes_service.rb +134 -0
  34. data/lib/basecrm/services/pipelines_service.rb +50 -0
  35. data/lib/basecrm/services/sources_service.rb +133 -0
  36. data/lib/basecrm/services/stages_service.rb +52 -0
  37. data/lib/basecrm/services/tags_service.rb +132 -0
  38. data/lib/basecrm/services/tasks_service.rb +141 -0
  39. data/lib/basecrm/services/users_service.rb +83 -0
  40. data/lib/basecrm/version.rb +3 -0
  41. data/spec/factories/associated_contact.rb +14 -0
  42. data/spec/factories/contact.rb +27 -0
  43. data/spec/factories/deal.rb +17 -0
  44. data/spec/factories/lead.rb +26 -0
  45. data/spec/factories/loss_reason.rb +11 -0
  46. data/spec/factories/note.rb +13 -0
  47. data/spec/factories/source.rb +11 -0
  48. data/spec/factories/tag.rb +12 -0
  49. data/spec/factories/task.rb +15 -0
  50. data/spec/services/accounts_service_spec.rb +16 -0
  51. data/spec/services/associated_contacts_service_spec.rb +43 -0
  52. data/spec/services/contacts_service_spec.rb +58 -0
  53. data/spec/services/deals_service_spec.rb +58 -0
  54. data/spec/services/leads_service_spec.rb +58 -0
  55. data/spec/services/loss_reasons_service_spec.rb +58 -0
  56. data/spec/services/notes_service_spec.rb +58 -0
  57. data/spec/services/pipelines_service_spec.rb +23 -0
  58. data/spec/services/sources_service_spec.rb +58 -0
  59. data/spec/services/stages_service_spec.rb +23 -0
  60. data/spec/services/tags_service_spec.rb +58 -0
  61. data/spec/services/tasks_service_spec.rb +58 -0
  62. data/spec/services/users_service_spec.rb +39 -0
  63. data/spec/spec_helper.rb +24 -12
  64. data/spec/support/client_helpers.rb +19 -0
  65. metadata +160 -71
  66. data/.gitignore +0 -20
  67. data/.rspec +0 -2
  68. data/.travis.yml +0 -6
  69. data/Gemfile +0 -4
  70. data/Rakefile +0 -8
  71. data/basecrm.gemspec +0 -23
  72. data/lib/base_crm.rb +0 -24
  73. data/lib/base_crm/account.rb +0 -11
  74. data/lib/base_crm/api_client_ext.rb +0 -6
  75. data/lib/base_crm/config.rb +0 -21
  76. data/lib/base_crm/contact.rb +0 -44
  77. data/lib/base_crm/custom_fieldable.rb +0 -32
  78. data/lib/base_crm/deal.rb +0 -50
  79. data/lib/base_crm/forecasting.rb +0 -12
  80. data/lib/base_crm/lead.rb +0 -36
  81. data/lib/base_crm/note.rb +0 -15
  82. data/lib/base_crm/noteable.rb +0 -15
  83. data/lib/base_crm/related_object_scope.rb +0 -35
  84. data/lib/base_crm/resource.rb +0 -14
  85. data/lib/base_crm/session.rb +0 -48
  86. data/lib/base_crm/source.rb +0 -14
  87. data/lib/base_crm/task.rb +0 -16
  88. data/lib/base_crm/taskable.rb +0 -15
  89. data/lib/base_crm/version.rb +0 -3
  90. data/spec/base_crm/account_spec.rb +0 -20
  91. data/spec/base_crm/contact_spec.rb +0 -92
  92. data/spec/base_crm/deal_spec.rb +0 -138
  93. data/spec/base_crm/forecasting_spec.rb +0 -34
  94. data/spec/base_crm/lead_spec.rb +0 -63
  95. data/spec/base_crm/note_spec.rb +0 -20
  96. data/spec/base_crm/resource_mixin_spec.rb +0 -26
  97. data/spec/base_crm/session_spec.rb +0 -97
  98. data/spec/base_crm/source_spec.rb +0 -20
  99. data/spec/base_crm/task_spec.rb +0 -21
  100. data/spec/support/noteable_shared_examples.rb +0 -64
  101. data/spec/support/taskable_shared_examples.rb +0 -69
@@ -0,0 +1,23 @@
1
+ require 'spec_helper'
2
+
3
+ describe BaseCRM::PipelinesService do
4
+ describe 'Responds to' do
5
+ subject { client.pipelines }
6
+
7
+ it { should respond_to :all }
8
+ it { should respond_to :where }
9
+
10
+ end
11
+
12
+ describe :all do
13
+ it "returns a PaginatedResource" do
14
+ expect(client.pipelines.all()).to be_instance_of BaseCRM::PaginatedResource
15
+ end
16
+ end
17
+
18
+ describe :where do
19
+ it "returns an array" do
20
+ expect(client.pipelines.where(page: 1)).to be_an Array
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,58 @@
1
+ require 'spec_helper'
2
+
3
+ describe BaseCRM::SourcesService do
4
+ describe 'Responds to' do
5
+ subject { client.sources }
6
+
7
+ it { should respond_to :all }
8
+ it { should respond_to :create }
9
+ it { should respond_to :destroy }
10
+ it { should respond_to :find }
11
+ it { should respond_to :update }
12
+ it { should respond_to :where }
13
+
14
+ end
15
+
16
+ describe :all do
17
+ it "returns a PaginatedResource" do
18
+ expect(client.sources.all()).to be_instance_of BaseCRM::PaginatedResource
19
+ end
20
+ end
21
+
22
+ describe :where do
23
+ it "returns an array" do
24
+ expect(client.sources.where(page: 1)).to be_an Array
25
+ end
26
+ end
27
+
28
+ describe :create do
29
+ it "returns instance of Source class" do
30
+ @source = build(:source)
31
+ expect(client.sources.create(@source)).to be_instance_of BaseCRM::Source
32
+ end
33
+ end
34
+
35
+ describe :find do
36
+ before :each do
37
+ @source = create(:source)
38
+ end
39
+
40
+ it "returns an instance of Source class" do
41
+ expect(client.sources.find(@source.id)).to be_instance_of BaseCRM::Source
42
+ end
43
+ end
44
+
45
+ describe :update do
46
+ it "returns an updated instance of Source class" do
47
+ @source = create(:source)
48
+ expect(client.sources.update(@source)).to be_instance_of BaseCRM::Source
49
+ end
50
+ end
51
+
52
+ describe :destroy do
53
+ it "returns true on success" do
54
+ @source = create(:source)
55
+ expect(client.sources.destroy(@source.id)).to be_truthy
56
+ end
57
+ end
58
+ end
@@ -0,0 +1,23 @@
1
+ require 'spec_helper'
2
+
3
+ describe BaseCRM::StagesService do
4
+ describe 'Responds to' do
5
+ subject { client.stages }
6
+
7
+ it { should respond_to :all }
8
+ it { should respond_to :where }
9
+
10
+ end
11
+
12
+ describe :all do
13
+ it "returns a PaginatedResource" do
14
+ expect(client.stages.all()).to be_instance_of BaseCRM::PaginatedResource
15
+ end
16
+ end
17
+
18
+ describe :where do
19
+ it "returns an array" do
20
+ expect(client.stages.where(page: 1)).to be_an Array
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,58 @@
1
+ require 'spec_helper'
2
+
3
+ describe BaseCRM::TagsService do
4
+ describe 'Responds to' do
5
+ subject { client.tags }
6
+
7
+ it { should respond_to :all }
8
+ it { should respond_to :create }
9
+ it { should respond_to :destroy }
10
+ it { should respond_to :find }
11
+ it { should respond_to :update }
12
+ it { should respond_to :where }
13
+
14
+ end
15
+
16
+ describe :all do
17
+ it "returns a PaginatedResource" do
18
+ expect(client.tags.all()).to be_instance_of BaseCRM::PaginatedResource
19
+ end
20
+ end
21
+
22
+ describe :where do
23
+ it "returns an array" do
24
+ expect(client.tags.where(page: 1)).to be_an Array
25
+ end
26
+ end
27
+
28
+ describe :create do
29
+ it "returns instance of Tag class" do
30
+ @tag = build(:tag)
31
+ expect(client.tags.create(@tag)).to be_instance_of BaseCRM::Tag
32
+ end
33
+ end
34
+
35
+ describe :find do
36
+ before :each do
37
+ @tag = create(:tag)
38
+ end
39
+
40
+ it "returns an instance of Tag class" do
41
+ expect(client.tags.find(@tag.id)).to be_instance_of BaseCRM::Tag
42
+ end
43
+ end
44
+
45
+ describe :update do
46
+ it "returns an updated instance of Tag class" do
47
+ @tag = create(:tag)
48
+ expect(client.tags.update(@tag)).to be_instance_of BaseCRM::Tag
49
+ end
50
+ end
51
+
52
+ describe :destroy do
53
+ it "returns true on success" do
54
+ @tag = create(:tag)
55
+ expect(client.tags.destroy(@tag.id)).to be_truthy
56
+ end
57
+ end
58
+ end
@@ -0,0 +1,58 @@
1
+ require 'spec_helper'
2
+
3
+ describe BaseCRM::TasksService do
4
+ describe 'Responds to' do
5
+ subject { client.tasks }
6
+
7
+ it { should respond_to :all }
8
+ it { should respond_to :create }
9
+ it { should respond_to :destroy }
10
+ it { should respond_to :find }
11
+ it { should respond_to :update }
12
+ it { should respond_to :where }
13
+
14
+ end
15
+
16
+ describe :all do
17
+ it "returns a PaginatedResource" do
18
+ expect(client.tasks.all()).to be_instance_of BaseCRM::PaginatedResource
19
+ end
20
+ end
21
+
22
+ describe :where do
23
+ it "returns an array" do
24
+ expect(client.tasks.where(page: 1)).to be_an Array
25
+ end
26
+ end
27
+
28
+ describe :create do
29
+ it "returns instance of Task class" do
30
+ @task = build(:task)
31
+ expect(client.tasks.create(@task)).to be_instance_of BaseCRM::Task
32
+ end
33
+ end
34
+
35
+ describe :find do
36
+ before :each do
37
+ @task = create(:task)
38
+ end
39
+
40
+ it "returns an instance of Task class" do
41
+ expect(client.tasks.find(@task.id)).to be_instance_of BaseCRM::Task
42
+ end
43
+ end
44
+
45
+ describe :update do
46
+ it "returns an updated instance of Task class" do
47
+ @task = create(:task)
48
+ expect(client.tasks.update(@task)).to be_instance_of BaseCRM::Task
49
+ end
50
+ end
51
+
52
+ describe :destroy do
53
+ it "returns true on success" do
54
+ @task = create(:task)
55
+ expect(client.tasks.destroy(@task.id)).to be_truthy
56
+ end
57
+ end
58
+ end
@@ -0,0 +1,39 @@
1
+ require 'spec_helper'
2
+
3
+ describe BaseCRM::UsersService do
4
+ describe 'Responds to' do
5
+ subject { client.users }
6
+
7
+ it { should respond_to :all }
8
+ it { should respond_to :find }
9
+ it { should respond_to :self }
10
+ it { should respond_to :where }
11
+
12
+ end
13
+
14
+ describe :all do
15
+ it "returns a PaginatedResource" do
16
+ expect(client.users.all()).to be_instance_of BaseCRM::PaginatedResource
17
+ end
18
+ end
19
+
20
+ describe :where do
21
+ it "returns an array" do
22
+ expect(client.users.where(page: 1)).to be_an Array
23
+ end
24
+ end
25
+
26
+ describe :find do
27
+
28
+ it "returns an instance of User class" do
29
+ user = client.users.self
30
+ expect(client.users.find(user.id)).to be_instance_of BaseCRM::User
31
+ end
32
+ end
33
+
34
+ describe :self do
35
+ it "returns instance of User class" do
36
+ expect(client.users.self).to be_instance_of BaseCRM::User
37
+ end
38
+ end
39
+ end
data/spec/spec_helper.rb CHANGED
@@ -1,19 +1,31 @@
1
- # This file was generated by the `rspec --init` command. Conventionally, all
2
- # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
3
- # Require this file using `require "spec_helper.rb"` to ensure that it is only
4
- # loaded once.
5
- #
6
- # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
1
+ require 'rspec/collection_matchers'
2
+ require 'factory_girl'
3
+ require 'faker'
7
4
 
8
- require "base_crm"
9
- require "simplecov"
5
+ require 'basecrm'
10
6
 
11
- SimpleCov.start do
12
- add_filter '/spec'
7
+ module FactoryGirl
8
+ module Strategy
9
+ class Create
10
+ def result(evaluation)
11
+ evaluation.create(evaluation.object)
12
+ end
13
+ end
14
+ end
13
15
  end
14
16
 
17
+ Dir[File.join(__dir__, "/support/**/*.rb")].each { |f| require f }
18
+ FactoryGirl.find_definitions
19
+
15
20
  RSpec.configure do |config|
16
- end
21
+ config.include FactoryGirl::Syntax::Methods
17
22
 
18
- Dir.glob("#{File.dirname(__FILE__)}/support/*.rb").each { |f| require f }
23
+ config.expect_with :rspec do |expectations|
24
+ # It makes the `description` and `failure_message` of custom matchers include text for helper methods
25
+ expectations.include_chain_clauses_in_custom_matcher_descriptions = true
26
+ end
19
27
 
28
+ config.order = :random
29
+
30
+ config.raise_errors_for_deprecations!
31
+ end
@@ -0,0 +1,19 @@
1
+ module ClientHelpers
2
+ def client
3
+ @client ||= BaseCRM::Client.new(access_token: access_token)
4
+ end
5
+
6
+ def access_token
7
+ @access_token ||= ENV.fetch("BASECRM_ACCESS_TOKEN") { raise '"BASECRM_ACCESS_TOKEN" has not been found.' }
8
+ end
9
+
10
+ def contact
11
+ @contact ||= FactoryGirl.create(:contact)
12
+ end
13
+ end
14
+
15
+ RSpec.configure do |config|
16
+ include ClientHelpers
17
+ end
18
+
19
+ FactoryGirl::SyntaxRunner.send(:include, ClientHelpers)
metadata CHANGED
@@ -1,120 +1,198 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: basecrm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
- - Marcin Bunsch
7
+ - BaseCRM developers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-09 00:00:00.000000000 Z
11
+ date: 2015-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: api_client
14
+ name: faraday
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '0.9'
17
20
  - - ">="
18
21
  - !ruby/object:Gem::Version
19
- version: 0.4.2
22
+ version: 0.9.0
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '0.9'
24
30
  - - ">="
25
31
  - !ruby/object:Gem::Version
26
- version: 0.4.2
32
+ version: 0.9.0
33
+ - !ruby/object:Gem::Dependency
34
+ name: json
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '1.7'
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: 1.7.7
43
+ type: :runtime
44
+ prerelease: false
45
+ version_requirements: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - "~>"
48
+ - !ruby/object:Gem::Version
49
+ version: '1.7'
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: 1.7.7
27
53
  - !ruby/object:Gem::Dependency
28
54
  name: rspec
29
55
  requirement: !ruby/object:Gem::Requirement
30
56
  requirements:
31
57
  - - "~>"
32
58
  - !ruby/object:Gem::Version
33
- version: 2.14.1
59
+ version: '3.2'
34
60
  type: :development
35
61
  prerelease: false
36
62
  version_requirements: !ruby/object:Gem::Requirement
37
63
  requirements:
38
64
  - - "~>"
39
65
  - !ruby/object:Gem::Version
40
- version: 2.14.1
66
+ version: '3.2'
41
67
  - !ruby/object:Gem::Dependency
42
- name: simplecov
68
+ name: rspec-collection_matchers
43
69
  requirement: !ruby/object:Gem::Requirement
44
70
  requirements:
45
- - - ">="
71
+ - - "~>"
46
72
  - !ruby/object:Gem::Version
47
- version: '0'
73
+ version: '1.1'
48
74
  type: :development
49
75
  prerelease: false
50
76
  version_requirements: !ruby/object:Gem::Requirement
51
77
  requirements:
52
- - - ">="
78
+ - - "~>"
53
79
  - !ruby/object:Gem::Version
54
- version: '0'
80
+ version: '1.1'
55
81
  - !ruby/object:Gem::Dependency
56
- name: rake
82
+ name: fuubar
57
83
  requirement: !ruby/object:Gem::Requirement
58
84
  requirements:
59
- - - ">="
85
+ - - "~>"
60
86
  - !ruby/object:Gem::Version
61
- version: '0'
87
+ version: '2.0'
62
88
  type: :development
63
89
  prerelease: false
64
90
  version_requirements: !ruby/object:Gem::Requirement
65
91
  requirements:
66
- - - ">="
92
+ - - "~>"
93
+ - !ruby/object:Gem::Version
94
+ version: '2.0'
95
+ - !ruby/object:Gem::Dependency
96
+ name: factory_girl
97
+ requirement: !ruby/object:Gem::Requirement
98
+ requirements:
99
+ - - "~>"
100
+ - !ruby/object:Gem::Version
101
+ version: '4.5'
102
+ type: :development
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ requirements:
106
+ - - "~>"
107
+ - !ruby/object:Gem::Version
108
+ version: '4.5'
109
+ - !ruby/object:Gem::Dependency
110
+ name: faker
111
+ requirement: !ruby/object:Gem::Requirement
112
+ requirements:
113
+ - - "~>"
114
+ - !ruby/object:Gem::Version
115
+ version: '1.4'
116
+ type: :development
117
+ prerelease: false
118
+ version_requirements: !ruby/object:Gem::Requirement
119
+ requirements:
120
+ - - "~>"
67
121
  - !ruby/object:Gem::Version
68
- version: '0'
69
- description: Base CRM API Client
122
+ version: '1.4'
123
+ description: BaseCRM Official API V2 library client for ruby
70
124
  email:
71
- - marcin@getbase.com
125
+ - developers@getbase.com
72
126
  executables: []
73
127
  extensions: []
74
128
  extra_rdoc_files: []
75
129
  files:
76
- - ".gitignore"
77
- - ".rspec"
78
- - ".travis.yml"
79
- - Gemfile
80
130
  - LICENSE
81
131
  - README.md
82
- - Rakefile
83
- - basecrm.gemspec
84
- - lib/base_crm.rb
85
- - lib/base_crm/account.rb
86
- - lib/base_crm/api_client_ext.rb
87
- - lib/base_crm/config.rb
88
- - lib/base_crm/contact.rb
89
- - lib/base_crm/custom_fieldable.rb
90
- - lib/base_crm/deal.rb
91
- - lib/base_crm/forecasting.rb
92
- - lib/base_crm/lead.rb
93
- - lib/base_crm/note.rb
94
- - lib/base_crm/noteable.rb
95
- - lib/base_crm/related_object_scope.rb
96
- - lib/base_crm/resource.rb
97
- - lib/base_crm/session.rb
98
- - lib/base_crm/source.rb
99
- - lib/base_crm/task.rb
100
- - lib/base_crm/taskable.rb
101
- - lib/base_crm/version.rb
102
132
  - lib/basecrm.rb
103
- - spec/base_crm/account_spec.rb
104
- - spec/base_crm/contact_spec.rb
105
- - spec/base_crm/deal_spec.rb
106
- - spec/base_crm/forecasting_spec.rb
107
- - spec/base_crm/lead_spec.rb
108
- - spec/base_crm/note_spec.rb
109
- - spec/base_crm/resource_mixin_spec.rb
110
- - spec/base_crm/session_spec.rb
111
- - spec/base_crm/source_spec.rb
112
- - spec/base_crm/task_spec.rb
133
+ - lib/basecrm/configuration.rb
134
+ - lib/basecrm/envelope.rb
135
+ - lib/basecrm/errors.rb
136
+ - lib/basecrm/http_client.rb
137
+ - lib/basecrm/middlewares/oauth_bearer_token.rb
138
+ - lib/basecrm/middlewares/raise_error.rb
139
+ - lib/basecrm/model.rb
140
+ - lib/basecrm/models/account.rb
141
+ - lib/basecrm/models/address.rb
142
+ - lib/basecrm/models/associated_contact.rb
143
+ - lib/basecrm/models/contact.rb
144
+ - lib/basecrm/models/deal.rb
145
+ - lib/basecrm/models/lead.rb
146
+ - lib/basecrm/models/loss_reason.rb
147
+ - lib/basecrm/models/note.rb
148
+ - lib/basecrm/models/pipeline.rb
149
+ - lib/basecrm/models/source.rb
150
+ - lib/basecrm/models/stage.rb
151
+ - lib/basecrm/models/tag.rb
152
+ - lib/basecrm/models/task.rb
153
+ - lib/basecrm/models/user.rb
154
+ - lib/basecrm/paginated_resource.rb
155
+ - lib/basecrm/services/accounts_service.rb
156
+ - lib/basecrm/services/associated_contacts_service.rb
157
+ - lib/basecrm/services/contacts_service.rb
158
+ - lib/basecrm/services/deals_service.rb
159
+ - lib/basecrm/services/leads_service.rb
160
+ - lib/basecrm/services/loss_reasons_service.rb
161
+ - lib/basecrm/services/notes_service.rb
162
+ - lib/basecrm/services/pipelines_service.rb
163
+ - lib/basecrm/services/sources_service.rb
164
+ - lib/basecrm/services/stages_service.rb
165
+ - lib/basecrm/services/tags_service.rb
166
+ - lib/basecrm/services/tasks_service.rb
167
+ - lib/basecrm/services/users_service.rb
168
+ - lib/basecrm/version.rb
169
+ - spec/factories/associated_contact.rb
170
+ - spec/factories/contact.rb
171
+ - spec/factories/deal.rb
172
+ - spec/factories/lead.rb
173
+ - spec/factories/loss_reason.rb
174
+ - spec/factories/note.rb
175
+ - spec/factories/source.rb
176
+ - spec/factories/tag.rb
177
+ - spec/factories/task.rb
178
+ - spec/services/accounts_service_spec.rb
179
+ - spec/services/associated_contacts_service_spec.rb
180
+ - spec/services/contacts_service_spec.rb
181
+ - spec/services/deals_service_spec.rb
182
+ - spec/services/leads_service_spec.rb
183
+ - spec/services/loss_reasons_service_spec.rb
184
+ - spec/services/notes_service_spec.rb
185
+ - spec/services/pipelines_service_spec.rb
186
+ - spec/services/sources_service_spec.rb
187
+ - spec/services/stages_service_spec.rb
188
+ - spec/services/tags_service_spec.rb
189
+ - spec/services/tasks_service_spec.rb
190
+ - spec/services/users_service_spec.rb
113
191
  - spec/spec_helper.rb
114
- - spec/support/noteable_shared_examples.rb
115
- - spec/support/taskable_shared_examples.rb
116
- homepage: https://github.com/basecrm/basecrm
117
- licenses: []
192
+ - spec/support/client_helpers.rb
193
+ homepage: https://github.com/basecrm/basecrm-ruby
194
+ licenses:
195
+ - MIT
118
196
  metadata: {}
119
197
  post_install_message:
120
198
  rdoc_options: []
@@ -135,19 +213,30 @@ rubyforge_project:
135
213
  rubygems_version: 2.2.2
136
214
  signing_key:
137
215
  specification_version: 4
138
- summary: Base CRM API Client
216
+ summary: BaseCRM Official API V2 library client for ruby
139
217
  test_files:
140
- - spec/base_crm/account_spec.rb
141
- - spec/base_crm/contact_spec.rb
142
- - spec/base_crm/deal_spec.rb
143
- - spec/base_crm/forecasting_spec.rb
144
- - spec/base_crm/lead_spec.rb
145
- - spec/base_crm/note_spec.rb
146
- - spec/base_crm/resource_mixin_spec.rb
147
- - spec/base_crm/session_spec.rb
148
- - spec/base_crm/source_spec.rb
149
- - spec/base_crm/task_spec.rb
218
+ - spec/factories/associated_contact.rb
219
+ - spec/factories/contact.rb
220
+ - spec/factories/deal.rb
221
+ - spec/factories/lead.rb
222
+ - spec/factories/loss_reason.rb
223
+ - spec/factories/note.rb
224
+ - spec/factories/source.rb
225
+ - spec/factories/tag.rb
226
+ - spec/factories/task.rb
227
+ - spec/services/accounts_service_spec.rb
228
+ - spec/services/associated_contacts_service_spec.rb
229
+ - spec/services/contacts_service_spec.rb
230
+ - spec/services/deals_service_spec.rb
231
+ - spec/services/leads_service_spec.rb
232
+ - spec/services/loss_reasons_service_spec.rb
233
+ - spec/services/notes_service_spec.rb
234
+ - spec/services/pipelines_service_spec.rb
235
+ - spec/services/sources_service_spec.rb
236
+ - spec/services/stages_service_spec.rb
237
+ - spec/services/tags_service_spec.rb
238
+ - spec/services/tasks_service_spec.rb
239
+ - spec/services/users_service_spec.rb
150
240
  - spec/spec_helper.rb
151
- - spec/support/noteable_shared_examples.rb
152
- - spec/support/taskable_shared_examples.rb
241
+ - spec/support/client_helpers.rb
153
242
  has_rdoc: