clickmeetings 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +12 -0
  3. data/.rspec +2 -0
  4. data/.travis.yml +5 -0
  5. data/Gemfile +5 -0
  6. data/LICENSE.txt +21 -0
  7. data/README.md +41 -0
  8. data/Rakefile +6 -0
  9. data/bin/console +11 -0
  10. data/bin/setup +8 -0
  11. data/clickmeetings.gemspec +31 -0
  12. data/lib/.DS_Store +0 -0
  13. data/lib/clickmeetings.rb +46 -0
  14. data/lib/clickmeetings/.DS_Store +0 -0
  15. data/lib/clickmeetings/client.rb +64 -0
  16. data/lib/clickmeetings/config.rb +11 -0
  17. data/lib/clickmeetings/engine.rb +12 -0
  18. data/lib/clickmeetings/exceptions.rb +19 -0
  19. data/lib/clickmeetings/model.rb +138 -0
  20. data/lib/clickmeetings/models/open_api/.keep +0 -0
  21. data/lib/clickmeetings/models/privatelabel/account.rb +37 -0
  22. data/lib/clickmeetings/models/privatelabel/conference.rb +63 -0
  23. data/lib/clickmeetings/models/privatelabel/profile.rb +23 -0
  24. data/lib/clickmeetings/version.rb +3 -0
  25. data/spec/clickmeetings_spec.rb +7 -0
  26. data/spec/client_spec.rb +37 -0
  27. data/spec/fixtures/delete_accounts_1_conferences_1.json +1 -0
  28. data/spec/fixtures/delete_models_1.json +1 -0
  29. data/spec/fixtures/get_accounts_1_conferences.json +1 -0
  30. data/spec/fixtures/get_accounts_1_conferences_1.json +1 -0
  31. data/spec/fixtures/get_client.json +31 -0
  32. data/spec/fixtures/get_models.json +1 -0
  33. data/spec/fixtures/get_models_1.json +1 -0
  34. data/spec/fixtures/post_accounts_1_conferences.json +1 -0
  35. data/spec/fixtures/post_models.json +1 -0
  36. data/spec/fixtures/put_accounts_1_conferences_1.json +1 -0
  37. data/spec/fixtures/put_accounts_1_disable.json +1 -0
  38. data/spec/fixtures/put_accounts_1_enable.json +1 -0
  39. data/spec/fixtures/put_models_1.json +1 -0
  40. data/spec/helpers/fixtures_helpers.rb +11 -0
  41. data/spec/helpers/webmock_helpers.rb +20 -0
  42. data/spec/model_spec.rb +84 -0
  43. data/spec/models/privatelabel/account_spec.rb +38 -0
  44. data/spec/models/privatelabel/conference_spec.rb +144 -0
  45. data/spec/models/privatelabel/profile_spec.rb +19 -0
  46. data/spec/shared_examples/conferences_examples.rb +6 -0
  47. data/spec/spec_helper.rb +19 -0
  48. metadata +263 -0
@@ -0,0 +1,19 @@
1
+ require "spec_helper"
2
+
3
+ describe Clickmeetings::PrivateLabel::Profile do
4
+ context '#get' do
5
+ subject { described_class.get }
6
+
7
+ before(:each) { mock_api(:get, 'client') }
8
+
9
+ specify { expect(subject).to be_an_instance_of described_class }
10
+
11
+ it "returns correct values", :aggregate_failures do
12
+ expect(subject.id).to eq 10
13
+ expect(subject.name).to eq "Any Second"
14
+ expect(subject.email).to eq "test@anysecond.com"
15
+ expect(subject.phone).to be_nil
16
+ expect(subject.packages.count).to eq 4
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,6 @@
1
+ shared_examples 'conferences list' do
2
+ it "responds with array of conferences object", :aggregate_failures do
3
+ expect(subject).to be_instance_of Array
4
+ expect(subject.first).to be_instance_of Clickmeetings::PrivateLabel::Conference
5
+ end
6
+ end
@@ -0,0 +1,19 @@
1
+ $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
2
+
3
+ require 'rspec'
4
+ require 'clickmeetings'
5
+ require 'pry-byebug'
6
+ require 'webmock/rspec'
7
+
8
+ Dir[File.expand_path("../support/**/*.rb", __FILE__)].each { |f| require f }
9
+ Dir[File.expand_path("../helpers/**/*.rb", __FILE__)].each { |f| require f }
10
+ Dir[File.expand_path("../shared_examples/**/*.rb", __FILE__)].each { |f| require f }
11
+
12
+
13
+ RSpec.configure do |config|
14
+ config.mock_with :rspec
15
+ include ClickmeetingWebMock
16
+ include FixturesHelpers
17
+
18
+ config.example_status_persistence_file_path = File.expand_path("../../examples.txt", __FILE__)
19
+ end
metadata ADDED
@@ -0,0 +1,263 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: clickmeetings
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.2
5
+ platform: ruby
6
+ authors:
7
+ - Sergei Alekseenko
8
+ - Makar Ermokhin
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2016-11-09 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.12'
21
+ type: :development
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - "~>"
26
+ - !ruby/object:Gem::Version
27
+ version: '1.12'
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: '3.0'
49
+ type: :development
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - "~>"
54
+ - !ruby/object:Gem::Version
55
+ version: '3.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: '2'
63
+ type: :development
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - "~>"
68
+ - !ruby/object:Gem::Version
69
+ version: '2'
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.10'
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - "~>"
82
+ - !ruby/object:Gem::Version
83
+ version: '0.10'
84
+ - !ruby/object:Gem::Dependency
85
+ name: anyway_config
86
+ requirement: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - "~>"
89
+ - !ruby/object:Gem::Version
90
+ version: '0'
91
+ - - ">="
92
+ - !ruby/object:Gem::Version
93
+ version: '0.3'
94
+ type: :runtime
95
+ prerelease: false
96
+ version_requirements: !ruby/object:Gem::Requirement
97
+ requirements:
98
+ - - "~>"
99
+ - !ruby/object:Gem::Version
100
+ version: '0'
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0.3'
104
+ - !ruby/object:Gem::Dependency
105
+ name: faraday
106
+ requirement: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '0.9'
111
+ type: :runtime
112
+ prerelease: false
113
+ version_requirements: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '0.9'
118
+ - !ruby/object:Gem::Dependency
119
+ name: faraday_middleware
120
+ requirement: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '0.10'
125
+ type: :runtime
126
+ prerelease: false
127
+ version_requirements: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '0.10'
132
+ - !ruby/object:Gem::Dependency
133
+ name: activemodel
134
+ requirement: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: '4.1'
139
+ type: :runtime
140
+ prerelease: false
141
+ version_requirements: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: '4.1'
146
+ - !ruby/object:Gem::Dependency
147
+ name: json
148
+ requirement: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: '1.0'
153
+ type: :runtime
154
+ prerelease: false
155
+ version_requirements: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: '1.0'
160
+ description: Simple REST API client for ClickMeetings Private Label API
161
+ email:
162
+ - alekseenkoss@gmail.com
163
+ - ermak95@gmail.com
164
+ executables:
165
+ - console
166
+ - setup
167
+ extensions: []
168
+ extra_rdoc_files: []
169
+ files:
170
+ - ".gitignore"
171
+ - ".rspec"
172
+ - ".travis.yml"
173
+ - Gemfile
174
+ - LICENSE.txt
175
+ - README.md
176
+ - Rakefile
177
+ - bin/console
178
+ - bin/setup
179
+ - clickmeetings.gemspec
180
+ - lib/.DS_Store
181
+ - lib/clickmeetings.rb
182
+ - lib/clickmeetings/.DS_Store
183
+ - lib/clickmeetings/client.rb
184
+ - lib/clickmeetings/config.rb
185
+ - lib/clickmeetings/engine.rb
186
+ - lib/clickmeetings/exceptions.rb
187
+ - lib/clickmeetings/model.rb
188
+ - lib/clickmeetings/models/open_api/.keep
189
+ - lib/clickmeetings/models/privatelabel/account.rb
190
+ - lib/clickmeetings/models/privatelabel/conference.rb
191
+ - lib/clickmeetings/models/privatelabel/profile.rb
192
+ - lib/clickmeetings/version.rb
193
+ - spec/clickmeetings_spec.rb
194
+ - spec/client_spec.rb
195
+ - spec/fixtures/delete_accounts_1_conferences_1.json
196
+ - spec/fixtures/delete_models_1.json
197
+ - spec/fixtures/get_accounts_1_conferences.json
198
+ - spec/fixtures/get_accounts_1_conferences_1.json
199
+ - spec/fixtures/get_client.json
200
+ - spec/fixtures/get_models.json
201
+ - spec/fixtures/get_models_1.json
202
+ - spec/fixtures/post_accounts_1_conferences.json
203
+ - spec/fixtures/post_models.json
204
+ - spec/fixtures/put_accounts_1_conferences_1.json
205
+ - spec/fixtures/put_accounts_1_disable.json
206
+ - spec/fixtures/put_accounts_1_enable.json
207
+ - spec/fixtures/put_models_1.json
208
+ - spec/helpers/fixtures_helpers.rb
209
+ - spec/helpers/webmock_helpers.rb
210
+ - spec/model_spec.rb
211
+ - spec/models/privatelabel/account_spec.rb
212
+ - spec/models/privatelabel/conference_spec.rb
213
+ - spec/models/privatelabel/profile_spec.rb
214
+ - spec/shared_examples/conferences_examples.rb
215
+ - spec/spec_helper.rb
216
+ homepage: https://github.com/teachbase/clickmeetings
217
+ licenses:
218
+ - MIT
219
+ metadata: {}
220
+ post_install_message:
221
+ rdoc_options: []
222
+ require_paths:
223
+ - lib
224
+ required_ruby_version: !ruby/object:Gem::Requirement
225
+ requirements:
226
+ - - ">="
227
+ - !ruby/object:Gem::Version
228
+ version: '0'
229
+ required_rubygems_version: !ruby/object:Gem::Requirement
230
+ requirements:
231
+ - - ">="
232
+ - !ruby/object:Gem::Version
233
+ version: '0'
234
+ requirements: []
235
+ rubyforge_project:
236
+ rubygems_version: 2.4.5
237
+ signing_key:
238
+ specification_version: 4
239
+ summary: Simple REST API client for ClickMeetings Private Label API
240
+ test_files:
241
+ - spec/clickmeetings_spec.rb
242
+ - spec/client_spec.rb
243
+ - spec/fixtures/delete_accounts_1_conferences_1.json
244
+ - spec/fixtures/delete_models_1.json
245
+ - spec/fixtures/get_accounts_1_conferences.json
246
+ - spec/fixtures/get_accounts_1_conferences_1.json
247
+ - spec/fixtures/get_client.json
248
+ - spec/fixtures/get_models.json
249
+ - spec/fixtures/get_models_1.json
250
+ - spec/fixtures/post_accounts_1_conferences.json
251
+ - spec/fixtures/post_models.json
252
+ - spec/fixtures/put_accounts_1_conferences_1.json
253
+ - spec/fixtures/put_accounts_1_disable.json
254
+ - spec/fixtures/put_accounts_1_enable.json
255
+ - spec/fixtures/put_models_1.json
256
+ - spec/helpers/fixtures_helpers.rb
257
+ - spec/helpers/webmock_helpers.rb
258
+ - spec/model_spec.rb
259
+ - spec/models/privatelabel/account_spec.rb
260
+ - spec/models/privatelabel/conference_spec.rb
261
+ - spec/models/privatelabel/profile_spec.rb
262
+ - spec/shared_examples/conferences_examples.rb
263
+ - spec/spec_helper.rb