amorail 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/amorail.gemspec +1 -1
- data/lib/amorail.rb +2 -0
- data/lib/amorail/client.rb +2 -0
- data/lib/amorail/config.rb +2 -0
- data/lib/amorail/entities/company.rb +2 -0
- data/lib/amorail/entities/contact.rb +2 -0
- data/lib/amorail/entities/contact_link.rb +2 -0
- data/lib/amorail/entities/elementable.rb +4 -2
- data/lib/amorail/entities/lead.rb +2 -0
- data/lib/amorail/entities/leadable.rb +2 -0
- data/lib/amorail/entities/note.rb +2 -0
- data/lib/amorail/entities/task.rb +2 -0
- data/lib/amorail/entities/webhook.rb +2 -0
- data/lib/amorail/entity.rb +2 -0
- data/lib/amorail/entity/finders.rb +2 -0
- data/lib/amorail/entity/params.rb +2 -0
- data/lib/amorail/entity/persistence.rb +2 -0
- data/lib/amorail/exceptions.rb +2 -0
- data/lib/amorail/property.rb +2 -0
- data/lib/amorail/railtie.rb +2 -0
- data/lib/amorail/version.rb +3 -1
- data/lib/tasks/amorail.rake +2 -0
- data/spec/client_spec.rb +2 -0
- data/spec/company_spec.rb +2 -0
- data/spec/contact_link_spec.rb +2 -0
- data/spec/contact_spec.rb +2 -0
- data/spec/entity_spec.rb +2 -0
- data/spec/helpers/webmock_helpers.rb +2 -0
- data/spec/lead_spec.rb +2 -0
- data/spec/my_contact_spec.rb +2 -0
- data/spec/note_spec.rb +2 -0
- data/spec/property_spec.rb +2 -0
- data/spec/spec_helper.rb +2 -0
- data/spec/support/elementable_example.rb +2 -0
- data/spec/support/entity_class_example.rb +2 -0
- data/spec/support/leadable_example.rb +2 -0
- data/spec/support/my_contact.rb +2 -0
- data/spec/support/my_entity.rb +2 -0
- data/spec/task_spec.rb +2 -0
- data/spec/webhook_spec.rb +2 -0
- metadata +5 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6047ec19aa4839d30b29fc1cb9ee38079a04812b2ed6547d2e24e1e8ed16a57d
|
4
|
+
data.tar.gz: 64bfbcd2f8574b70c420a274bd8707533b4f4334020d180fda7acb85cdcee509
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55fc29183cff4df2db947a76ceae748d289ebab1f1e88310e7c13234dd75886c87e9f68c41b782ba251be69f2226f386501974108ce2cc00fdc656e1ccdfe059
|
7
|
+
data.tar.gz: da64fc02f0bc506319bd543e7b35cb5dfdd3b112cc04458f25904c5d9ece1bc38df8d659ca1d705e17fcea8e7cd82e954c7f4642048fb2ed627a03c0f1802b8c
|
data/amorail.gemspec
CHANGED
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
|
|
25
25
|
spec.add_development_dependency "pry"
|
26
26
|
spec.add_development_dependency "shoulda-matchers", "~> 2.0"
|
27
27
|
spec.add_development_dependency "rubocop", "~> 0.49"
|
28
|
-
spec.add_dependency "anyway_config", "
|
28
|
+
spec.add_dependency "anyway_config", ">= 1.0"
|
29
29
|
spec.add_dependency "faraday"
|
30
30
|
spec.add_dependency "faraday_middleware"
|
31
31
|
spec.add_dependency 'activemodel'
|
data/lib/amorail.rb
CHANGED
data/lib/amorail/client.rb
CHANGED
data/lib/amorail/config.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Amorail
|
2
4
|
# Provides common functionallity for entities
|
3
5
|
# that can be attached to another objects.
|
@@ -6,9 +8,9 @@ module Amorail
|
|
6
8
|
|
7
9
|
ELEMENT_TYPES = {
|
8
10
|
contact: 1,
|
9
|
-
lead:
|
11
|
+
lead: 2,
|
10
12
|
company: 3,
|
11
|
-
task:
|
13
|
+
task: 4
|
12
14
|
}.freeze
|
13
15
|
|
14
16
|
included do
|
data/lib/amorail/entity.rb
CHANGED
data/lib/amorail/exceptions.rb
CHANGED
data/lib/amorail/property.rb
CHANGED
data/lib/amorail/railtie.rb
CHANGED
data/lib/amorail/version.rb
CHANGED
data/lib/tasks/amorail.rake
CHANGED
data/spec/client_spec.rb
CHANGED
data/spec/company_spec.rb
CHANGED
data/spec/contact_link_spec.rb
CHANGED
data/spec/contact_spec.rb
CHANGED
data/spec/entity_spec.rb
CHANGED
data/spec/lead_spec.rb
CHANGED
data/spec/my_contact_spec.rb
CHANGED
data/spec/note_spec.rb
CHANGED
data/spec/property_spec.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
data/spec/support/my_contact.rb
CHANGED
data/spec/support/my_entity.rb
CHANGED
data/spec/task_spec.rb
CHANGED
data/spec/webhook_spec.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: amorail
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- alekseenkoss
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2019-11-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -113,22 +113,16 @@ dependencies:
|
|
113
113
|
name: anyway_config
|
114
114
|
requirement: !ruby/object:Gem::Requirement
|
115
115
|
requirements:
|
116
|
-
- - "~>"
|
117
|
-
- !ruby/object:Gem::Version
|
118
|
-
version: '0'
|
119
116
|
- - ">="
|
120
117
|
- !ruby/object:Gem::Version
|
121
|
-
version: '0
|
118
|
+
version: '1.0'
|
122
119
|
type: :runtime
|
123
120
|
prerelease: false
|
124
121
|
version_requirements: !ruby/object:Gem::Requirement
|
125
122
|
requirements:
|
126
|
-
- - "~>"
|
127
|
-
- !ruby/object:Gem::Version
|
128
|
-
version: '0'
|
129
123
|
- - ">="
|
130
124
|
- !ruby/object:Gem::Version
|
131
|
-
version: '0
|
125
|
+
version: '1.0'
|
132
126
|
- !ruby/object:Gem::Dependency
|
133
127
|
name: faraday
|
134
128
|
requirement: !ruby/object:Gem::Requirement
|
@@ -276,8 +270,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
276
270
|
- !ruby/object:Gem::Version
|
277
271
|
version: '0'
|
278
272
|
requirements: []
|
279
|
-
|
280
|
-
rubygems_version: 2.7.7
|
273
|
+
rubygems_version: 3.0.4
|
281
274
|
signing_key:
|
282
275
|
specification_version: 4
|
283
276
|
summary: Ruby API client for AmoCRM
|