zoomus 0.2.1 → 0.3.0
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 +4 -4
- data/CHANGELOG +0 -3
- data/Gemfile +2 -2
- data/README.md +3 -1
- data/lib/zoomus/actions/meeting.rb +12 -0
- data/lib/zoomus/actions/user.rb +6 -0
- data/spec/fixtures/user_update.json +4 -0
- data/spec/lib/zoomus/actions/user/update_spec.rb +50 -0
- data/zoomus.gemspec +5 -4
- metadata +18 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0515a085865efb6843fa47701916fe0138e973fe
|
4
|
+
data.tar.gz: c3512939bfd0a3b07623b802508e14e66e397d8a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: acc21d65981e956576b83361ee153f17acdc138aa70483128b312ba5daf99051738050c799e30b00538fc6cf42138f10590c1d0567eece2c6ddd2f2db91d510a
|
7
|
+
data.tar.gz: b0a882bd459878beb09c0e41eb1b4a4fd9590e258ad89dcfe1340e6012626dd7ff31abeadaa614528bc0ecc7b244645b53244f9ab030e0f6a31a3dab0eaf65e2
|
data/CHANGELOG
CHANGED
@@ -6,6 +6,3 @@ Version 0.2.0 (May 2013)
|
|
6
6
|
- Added support for Time objects as datetime parameters (from, to).
|
7
7
|
- Added configuration block Zoomus.configure.
|
8
8
|
- Deprecated Zoomus.new(:api_key => 'xxx', :api_secret => 'xxx') shortcut.
|
9
|
-
|
10
|
-
Version 0.2.1 (Feb 2014)
|
11
|
-
- Added /user/delete action.
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -29,6 +29,18 @@ module Zoomus
|
|
29
29
|
Utils.parse_response self.class.post("/meeting/delete", :query => options)
|
30
30
|
end
|
31
31
|
|
32
|
+
def meeting_end(*args)
|
33
|
+
options = Utils.extract_options!(args)
|
34
|
+
Utils.require_params([:id, :host_id], options)
|
35
|
+
Utils.parse_response self.class.post("/meeting/end", :query => options)
|
36
|
+
end
|
37
|
+
|
38
|
+
def meeting_get(*args)
|
39
|
+
options = Utils.extract_options!(args)
|
40
|
+
Utils.require_params([:id, :host_id], options)
|
41
|
+
Utils.parse_response self.class.post("/meeting/get", :query => options)
|
42
|
+
end
|
43
|
+
|
32
44
|
Utils.define_bang_methods(self)
|
33
45
|
|
34
46
|
end
|
data/lib/zoomus/actions/user.rb
CHANGED
@@ -25,6 +25,12 @@ module Zoomus
|
|
25
25
|
Utils.parse_response self.class.post('/user/custcreate', :query => options)
|
26
26
|
end
|
27
27
|
|
28
|
+
def user_update(*args)
|
29
|
+
options = Utils.extract_options!(args)
|
30
|
+
Utils.require_params([:id], options)
|
31
|
+
Utils.parse_response self.class.post('/user/update', :query => options)
|
32
|
+
end
|
33
|
+
|
28
34
|
Utils.define_bang_methods(self)
|
29
35
|
|
30
36
|
end
|
@@ -0,0 +1,50 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Zoomus::Actions::User do
|
4
|
+
|
5
|
+
before :all do
|
6
|
+
@zc = zoomus_client
|
7
|
+
@args = {:id => "eIimBAXqSrWOcB_EOIXTog",
|
8
|
+
:first_name => "Bar",
|
9
|
+
:last_name => "Foo"}
|
10
|
+
end
|
11
|
+
|
12
|
+
describe "#user_update action" do
|
13
|
+
before :each do
|
14
|
+
stub_request(
|
15
|
+
:post,
|
16
|
+
zoomus_url("/user/update")
|
17
|
+
).to_return(:body => json_response("user_update"))
|
18
|
+
end
|
19
|
+
|
20
|
+
it "requires id param" do
|
21
|
+
expect{@zc.user_update(filter_key(@args, :id))}.to raise_error(ArgumentError)
|
22
|
+
end
|
23
|
+
|
24
|
+
it "returns a hash" do
|
25
|
+
expect(@zc.user_update(@args)).to be_kind_of(Hash)
|
26
|
+
end
|
27
|
+
|
28
|
+
it "returns id and updated_at" do
|
29
|
+
res = @zc.user_update(@args)
|
30
|
+
|
31
|
+
expect(res["id"]).to eq(@args[:id])
|
32
|
+
expect(res).to have_key("updated_at")
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
describe "#user_update! action" do
|
37
|
+
before :each do
|
38
|
+
stub_request(
|
39
|
+
:post,
|
40
|
+
zoomus_url("/user/update")
|
41
|
+
).to_return(:body => json_response("error"))
|
42
|
+
end
|
43
|
+
|
44
|
+
it "raises Zoomus::Error exception" do
|
45
|
+
expect {
|
46
|
+
@zc.user_update!(@args)
|
47
|
+
}.to raise_error(Zoomus::Error)
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
data/zoomus.gemspec
CHANGED
@@ -1,20 +1,21 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
|
3
3
|
Gem::Specification.new do |gem|
|
4
|
-
|
5
|
-
gem.add_dependency '
|
4
|
+
|
5
|
+
gem.add_dependency 'httparty', '0.13.3'
|
6
|
+
gem.add_dependency 'json', '1.8.2'
|
6
7
|
|
7
8
|
gem.authors = ['Maxim Colls']
|
8
9
|
gem.email = ['collsmaxim@gmail.com']
|
9
10
|
gem.description = %q{A Ruby wrapper for zoom.us API v1}
|
10
11
|
gem.summary = %q{zoom.us API wrapper}
|
11
12
|
gem.homepage = 'https://github.com/mllocs/zoomus'
|
13
|
+
gem.licenses = ['MIT']
|
12
14
|
|
13
15
|
gem.files = `git ls-files`.split($\)
|
14
16
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
15
17
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
16
18
|
gem.name = 'zoomus'
|
17
19
|
gem.require_paths = ['lib']
|
18
|
-
gem.version = '0.
|
19
|
-
gem.licenses = ['MIT']
|
20
|
+
gem.version = '0.3.0'
|
20
21
|
end
|
metadata
CHANGED
@@ -1,43 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zoomus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Maxim Colls
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-02-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - '
|
17
|
+
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 0.13.3
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - '
|
24
|
+
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 0.13.3
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: json
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - '
|
31
|
+
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 1.8.2
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - '
|
38
|
+
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 1.8.2
|
41
41
|
description: A Ruby wrapper for zoom.us API v1
|
42
42
|
email:
|
43
43
|
- collsmaxim@gmail.com
|
@@ -45,7 +45,7 @@ executables: []
|
|
45
45
|
extensions: []
|
46
46
|
extra_rdoc_files: []
|
47
47
|
files:
|
48
|
-
- .gitignore
|
48
|
+
- ".gitignore"
|
49
49
|
- CHANGELOG
|
50
50
|
- Gemfile
|
51
51
|
- LICENSE
|
@@ -70,6 +70,7 @@ files:
|
|
70
70
|
- spec/fixtures/user_custcreate.json
|
71
71
|
- spec/fixtures/user_delete.json
|
72
72
|
- spec/fixtures/user_list.json
|
73
|
+
- spec/fixtures/user_update.json
|
73
74
|
- spec/lib/zoomus/actions/meeting/create_spec.rb
|
74
75
|
- spec/lib/zoomus/actions/meeting/delete_spec.rb
|
75
76
|
- spec/lib/zoomus/actions/meeting/list_spec.rb
|
@@ -80,6 +81,7 @@ files:
|
|
80
81
|
- spec/lib/zoomus/actions/user/custcreate_spec.rb
|
81
82
|
- spec/lib/zoomus/actions/user/delete_spec.rb
|
82
83
|
- spec/lib/zoomus/actions/user/list_spec.rb
|
84
|
+
- spec/lib/zoomus/actions/user/update_spec.rb
|
83
85
|
- spec/lib/zoomus/client_spec.rb
|
84
86
|
- spec/lib/zoomus/utils_spec.rb
|
85
87
|
- spec/spec_helper.rb
|
@@ -94,17 +96,17 @@ require_paths:
|
|
94
96
|
- lib
|
95
97
|
required_ruby_version: !ruby/object:Gem::Requirement
|
96
98
|
requirements:
|
97
|
-
- -
|
99
|
+
- - ">="
|
98
100
|
- !ruby/object:Gem::Version
|
99
101
|
version: '0'
|
100
102
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
101
103
|
requirements:
|
102
|
-
- -
|
104
|
+
- - ">="
|
103
105
|
- !ruby/object:Gem::Version
|
104
106
|
version: '0'
|
105
107
|
requirements: []
|
106
108
|
rubyforge_project:
|
107
|
-
rubygems_version: 2.
|
109
|
+
rubygems_version: 2.2.2
|
108
110
|
signing_key:
|
109
111
|
specification_version: 4
|
110
112
|
summary: zoom.us API wrapper
|
@@ -120,6 +122,7 @@ test_files:
|
|
120
122
|
- spec/fixtures/user_custcreate.json
|
121
123
|
- spec/fixtures/user_delete.json
|
122
124
|
- spec/fixtures/user_list.json
|
125
|
+
- spec/fixtures/user_update.json
|
123
126
|
- spec/lib/zoomus/actions/meeting/create_spec.rb
|
124
127
|
- spec/lib/zoomus/actions/meeting/delete_spec.rb
|
125
128
|
- spec/lib/zoomus/actions/meeting/list_spec.rb
|
@@ -130,6 +133,7 @@ test_files:
|
|
130
133
|
- spec/lib/zoomus/actions/user/custcreate_spec.rb
|
131
134
|
- spec/lib/zoomus/actions/user/delete_spec.rb
|
132
135
|
- spec/lib/zoomus/actions/user/list_spec.rb
|
136
|
+
- spec/lib/zoomus/actions/user/update_spec.rb
|
133
137
|
- spec/lib/zoomus/client_spec.rb
|
134
138
|
- spec/lib/zoomus/utils_spec.rb
|
135
139
|
- spec/spec_helper.rb
|