amorail 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +16 -0
- data/.hound.yml +2 -0
- data/.rubocop.yml +18 -0
- data/.travis.yml +7 -0
- data/Gemfile +5 -0
- data/LICENSE.txt +22 -0
- data/README.md +33 -0
- data/Rakefile +8 -0
- data/amorail.gemspec +32 -0
- data/lib/amorail/client.rb +81 -0
- data/lib/amorail/config.rb +11 -0
- data/lib/amorail/custom_fields.rb +109 -0
- data/lib/amorail/engine.rb +11 -0
- data/lib/amorail/entities/company.rb +20 -0
- data/lib/amorail/entities/contact.rb +14 -0
- data/lib/amorail/entities/lead.rb +9 -0
- data/lib/amorail/entities/task.rb +46 -0
- data/lib/amorail/entity.rb +263 -0
- data/lib/amorail/exceptions.rb +26 -0
- data/lib/amorail/version.rb +3 -0
- data/lib/amorail.rb +35 -0
- data/lib/tasks/amorail.rake +8 -0
- data/spec/client_spec.rb +23 -0
- data/spec/company_spec.rb +63 -0
- data/spec/contact_spec.rb +104 -0
- data/spec/custom_class_spec.rb +42 -0
- data/spec/entity_spec.rb +51 -0
- data/spec/fixtures/account_response.json +322 -0
- data/spec/fixtures/amorail_test.yml +3 -0
- data/spec/fixtures/contact_create.json +13 -0
- data/spec/fixtures/contact_find.json +38 -0
- data/spec/fixtures/contact_update.json +5 -0
- data/spec/helpers/webmock_helpers.rb +64 -0
- data/spec/lead_spec.rb +28 -0
- data/spec/spec_helper.rb +17 -0
- data/spec/task_spec.rb +52 -0
- metadata +257 -0
metadata
ADDED
@@ -0,0 +1,257 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: amorail
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.4
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- alekseenkoss
|
8
|
+
- palkan
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2015-04-21 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: bundler
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - "~>"
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: '1.7'
|
21
|
+
type: :development
|
22
|
+
prerelease: false
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - "~>"
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: '1.7'
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: rake
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - "~>"
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '10.0'
|
35
|
+
type: :development
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - "~>"
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '10.0'
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: rspec
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - ">="
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '0'
|
49
|
+
type: :development
|
50
|
+
prerelease: false
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - ">="
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0'
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: webmock
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - ">="
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '0'
|
63
|
+
type: :development
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - ">="
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: pry
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
77
|
+
type: :development
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - ">="
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '0'
|
84
|
+
- !ruby/object:Gem::Dependency
|
85
|
+
name: shoulda-matchers
|
86
|
+
requirement: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
88
|
+
- - ">="
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: '0'
|
91
|
+
type: :development
|
92
|
+
prerelease: false
|
93
|
+
version_requirements: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - ">="
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: '0'
|
98
|
+
- !ruby/object:Gem::Dependency
|
99
|
+
name: anyway_config
|
100
|
+
requirement: !ruby/object:Gem::Requirement
|
101
|
+
requirements:
|
102
|
+
- - "~>"
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: '0'
|
105
|
+
- - ">="
|
106
|
+
- !ruby/object:Gem::Version
|
107
|
+
version: '0.3'
|
108
|
+
type: :runtime
|
109
|
+
prerelease: false
|
110
|
+
version_requirements: !ruby/object:Gem::Requirement
|
111
|
+
requirements:
|
112
|
+
- - "~>"
|
113
|
+
- !ruby/object:Gem::Version
|
114
|
+
version: '0'
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0.3'
|
118
|
+
- !ruby/object:Gem::Dependency
|
119
|
+
name: faraday
|
120
|
+
requirement: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
type: :runtime
|
126
|
+
prerelease: false
|
127
|
+
version_requirements: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
- !ruby/object:Gem::Dependency
|
133
|
+
name: faraday_middleware
|
134
|
+
requirement: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
type: :runtime
|
140
|
+
prerelease: false
|
141
|
+
version_requirements: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
- !ruby/object:Gem::Dependency
|
147
|
+
name: activemodel
|
148
|
+
requirement: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
type: :runtime
|
154
|
+
prerelease: false
|
155
|
+
version_requirements: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ">="
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
- !ruby/object:Gem::Dependency
|
161
|
+
name: json
|
162
|
+
requirement: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
167
|
+
type: :runtime
|
168
|
+
prerelease: false
|
169
|
+
version_requirements: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ">="
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
description: Ruby API client for AmoCRM. You can integrate your system with it.
|
175
|
+
email:
|
176
|
+
- alekseenkoss@gmail.com
|
177
|
+
- dementiev.vm@gmail.com
|
178
|
+
executables: []
|
179
|
+
extensions: []
|
180
|
+
extra_rdoc_files: []
|
181
|
+
files:
|
182
|
+
- ".gitignore"
|
183
|
+
- ".hound.yml"
|
184
|
+
- ".rubocop.yml"
|
185
|
+
- ".travis.yml"
|
186
|
+
- Gemfile
|
187
|
+
- LICENSE.txt
|
188
|
+
- README.md
|
189
|
+
- Rakefile
|
190
|
+
- amorail.gemspec
|
191
|
+
- lib/amorail.rb
|
192
|
+
- lib/amorail/client.rb
|
193
|
+
- lib/amorail/config.rb
|
194
|
+
- lib/amorail/custom_fields.rb
|
195
|
+
- lib/amorail/engine.rb
|
196
|
+
- lib/amorail/entities/company.rb
|
197
|
+
- lib/amorail/entities/contact.rb
|
198
|
+
- lib/amorail/entities/lead.rb
|
199
|
+
- lib/amorail/entities/task.rb
|
200
|
+
- lib/amorail/entity.rb
|
201
|
+
- lib/amorail/exceptions.rb
|
202
|
+
- lib/amorail/version.rb
|
203
|
+
- lib/tasks/amorail.rake
|
204
|
+
- spec/client_spec.rb
|
205
|
+
- spec/company_spec.rb
|
206
|
+
- spec/contact_spec.rb
|
207
|
+
- spec/custom_class_spec.rb
|
208
|
+
- spec/entity_spec.rb
|
209
|
+
- spec/fixtures/account_response.json
|
210
|
+
- spec/fixtures/amorail_test.yml
|
211
|
+
- spec/fixtures/contact_create.json
|
212
|
+
- spec/fixtures/contact_find.json
|
213
|
+
- spec/fixtures/contact_update.json
|
214
|
+
- spec/helpers/webmock_helpers.rb
|
215
|
+
- spec/lead_spec.rb
|
216
|
+
- spec/spec_helper.rb
|
217
|
+
- spec/task_spec.rb
|
218
|
+
homepage: ''
|
219
|
+
licenses:
|
220
|
+
- MIT
|
221
|
+
metadata: {}
|
222
|
+
post_install_message:
|
223
|
+
rdoc_options: []
|
224
|
+
require_paths:
|
225
|
+
- lib
|
226
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
227
|
+
requirements:
|
228
|
+
- - ">="
|
229
|
+
- !ruby/object:Gem::Version
|
230
|
+
version: '0'
|
231
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
232
|
+
requirements:
|
233
|
+
- - ">="
|
234
|
+
- !ruby/object:Gem::Version
|
235
|
+
version: '0'
|
236
|
+
requirements: []
|
237
|
+
rubyforge_project:
|
238
|
+
rubygems_version: 2.2.2
|
239
|
+
signing_key:
|
240
|
+
specification_version: 4
|
241
|
+
summary: Ruby API client for AmoCRM
|
242
|
+
test_files:
|
243
|
+
- spec/client_spec.rb
|
244
|
+
- spec/company_spec.rb
|
245
|
+
- spec/contact_spec.rb
|
246
|
+
- spec/custom_class_spec.rb
|
247
|
+
- spec/entity_spec.rb
|
248
|
+
- spec/fixtures/account_response.json
|
249
|
+
- spec/fixtures/amorail_test.yml
|
250
|
+
- spec/fixtures/contact_create.json
|
251
|
+
- spec/fixtures/contact_find.json
|
252
|
+
- spec/fixtures/contact_update.json
|
253
|
+
- spec/helpers/webmock_helpers.rb
|
254
|
+
- spec/lead_spec.rb
|
255
|
+
- spec/spec_helper.rb
|
256
|
+
- spec/task_spec.rb
|
257
|
+
has_rdoc:
|