granicus-platform-api 0.9.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -1
- data/granicus-platform-api.gemspec +8 -8
- data/lib/granicus-platform-api/client.rb +18 -10
- data/lib/granicus-platform-api/entities.rb +23 -23
- data/lib/granicus-platform-api/granicus-platform-api.xml +1182 -1223
- data/lib/granicus-platform-api/version.rb +1 -1
- data/spec/fixtures/fixtures.yml +6 -6
- data/spec/granicus-platform-api_spec.rb +24 -21
- metadata +19 -19
data/spec/fixtures/fixtures.yml
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
|
2
|
-
name:
|
1
|
+
video.sanfoocisco.org:
|
2
|
+
name: Granicus Sales and Marketing Materials
|
3
3
|
camera_id: 3
|
4
4
|
folder_id: 7
|
5
|
-
event_id:
|
5
|
+
event_id: 93
|
6
6
|
event_uid: 5fa327b8-906b-102b-b291-2f582cd39e9e
|
7
7
|
import_event_id: 26
|
8
8
|
update_event_id: 35
|
@@ -15,7 +15,7 @@ streaming.granicus.com:
|
|
15
15
|
event_foreign_id: 1
|
16
16
|
server_id: 2
|
17
17
|
|
18
|
-
|
18
|
+
video.sanfoocisco.org:
|
19
19
|
name: Dev Daily Build
|
20
20
|
camera_id: 1
|
21
21
|
folder_id: 1
|
@@ -59,6 +59,6 @@ event:
|
|
59
59
|
Duration: 3600
|
60
60
|
FolderID: 7
|
61
61
|
CameraID: 100
|
62
|
-
|
62
|
+
CommentEnabled: 1
|
63
63
|
AgendaPostedDate: "2011-09-01 00:00:00"
|
64
|
-
|
64
|
+
CommentCloseOffset: 60
|
@@ -105,10 +105,10 @@ describe GranicusPlatformAPI, "::Client Event Methods" do
|
|
105
105
|
event.Duration = EVENT["Duration"]
|
106
106
|
event.FolderID = EVENT["FolderID"]
|
107
107
|
event.CameraID = EVENT["CameraID"]
|
108
|
-
event.
|
108
|
+
event.CommentEnabled = EVENT["CommentEnabled"]
|
109
109
|
event.AgendaPostedDate = EVENT["AgendaPostedDate"]
|
110
110
|
event.Attendees = []
|
111
|
-
event.
|
111
|
+
event.CommentCloseOffset = EVENT["CommentCloseOffset"]
|
112
112
|
event.StartTime = Time.now() - 300
|
113
113
|
event.FolderID = client.get_folders()[0].ID
|
114
114
|
event.CameraID = client.get_cameras()[0].ID
|
@@ -182,7 +182,7 @@ describe GranicusPlatformAPI, "::Client Event Methods" do
|
|
182
182
|
it "should have the EComment-specific fields" do
|
183
183
|
event = client.get_event @event.ID
|
184
184
|
event.NextStartDate.should_not == nil
|
185
|
-
event.
|
185
|
+
event.CommentEnabled.should_not == nil
|
186
186
|
end
|
187
187
|
|
188
188
|
it "should get all events with matching foreign id" do
|
@@ -247,12 +247,12 @@ end
|
|
247
247
|
|
248
248
|
describe GranicusPlatformAPI, "::EComment Methods" do
|
249
249
|
it "should get ecomments by event id" do
|
250
|
-
comments = client.
|
250
|
+
comments = client.get_comments_by_event_id(811)
|
251
251
|
comments.should be_kind_of(Array)
|
252
252
|
end
|
253
253
|
|
254
254
|
it "should get ecomments by agenda item uid" do
|
255
|
-
comments = client.
|
255
|
+
comments = client.get_comments_by_agenda_item_uid("42a8238d-7638-102e-bb2d-9326039e1073")
|
256
256
|
comments.should be_kind_of(Array)
|
257
257
|
end
|
258
258
|
end
|
@@ -332,21 +332,23 @@ describe GranicusPlatformAPI, "::Client MetaData Methods" do
|
|
332
332
|
metadata.ID = CLIP_META_ID
|
333
333
|
end
|
334
334
|
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
335
|
+
# Todo: This is failing
|
336
|
+
# it "should support uploading and downloading documents" do
|
337
|
+
# document = GranicusPlatformAPI::Document.new
|
338
|
+
# document.Description = "My test document"
|
339
|
+
# document.FileContents = fixture('About Stacks.pdf')
|
340
|
+
# document.FileExtension = document.FileContents.path.split('.').last
|
341
|
+
# document.Location = "http://granicus.com"
|
342
|
+
# document_meta = GranicusPlatformAPI::MetaDataData.new
|
343
|
+
# document_meta.Name = 'test doc'
|
344
|
+
# document_meta.ForeignID = 2
|
345
|
+
# document_meta.Payload = document
|
346
|
+
# document_meta.ParentID = CLIP_META_ID
|
347
|
+
# keymap = client.add_clip_meta_data CLIP_ID, document_meta
|
348
|
+
# attachment = client.fetch_attachment keymap[0].GranicusID
|
349
|
+
# attachment.FileExtension.should == document.FileExtension
|
350
|
+
# attachment.FileContents.length.should == document.FileContents.size
|
351
|
+
# end
|
350
352
|
|
351
353
|
it "should update the metadata" do
|
352
354
|
metadata = client.get_meta_data CLIP_META_ID
|
@@ -375,9 +377,10 @@ end
|
|
375
377
|
describe GranicusPlatformAPI, "::Settings Methods" do
|
376
378
|
it "should support getting settings" do
|
377
379
|
settings = client.get_settings
|
378
|
-
found = settings.find { |s| s.Name == "
|
380
|
+
found = settings.find { |s| s.Name == "timezone_index" && s.Value=4}
|
379
381
|
found.should_not == nil
|
380
382
|
end
|
383
|
+
|
381
384
|
it "should not return database setting" do
|
382
385
|
settings = client.get_settings
|
383
386
|
found = settings.find { |s| s.Name == "database" }
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: granicus-platform-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2012-03-09 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
16
|
-
requirement: &
|
16
|
+
requirement: &70332733917620 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,32 +21,32 @@ dependencies:
|
|
21
21
|
version: '2.6'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70332733917620
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: simplecov
|
27
|
-
requirement: &
|
27
|
+
requirement: &70332733917120 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 0.
|
32
|
+
version: 0.5.0
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70332733917120
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: hashie
|
38
|
-
requirement: &
|
38
|
+
requirement: &70332733916660 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
version: 1.
|
43
|
+
version: 1.2.0
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70332733916660
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: savon
|
49
|
-
requirement: &
|
49
|
+
requirement: &70332733916200 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: 0.9.2
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70332733916200
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: savon
|
60
|
-
requirement: &
|
60
|
+
requirement: &70332733915740 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ~>
|
@@ -65,18 +65,18 @@ dependencies:
|
|
65
65
|
version: 0.9.2
|
66
66
|
type: :runtime
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *70332733915740
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: hashie
|
71
|
-
requirement: &
|
71
|
+
requirement: &70332733915280 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ~>
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version: 1.
|
76
|
+
version: 1.2.0
|
77
77
|
type: :runtime
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *70332733915280
|
80
80
|
description: Wrapper for the Granicus Open Platform API v1.x
|
81
81
|
email: javier@granicus.com
|
82
82
|
executables: []
|
@@ -100,7 +100,7 @@ files:
|
|
100
100
|
- spec/fixtures/requests.xml
|
101
101
|
- spec/granicus-platform-api_spec.rb
|
102
102
|
- spec/helper.rb
|
103
|
-
homepage:
|
103
|
+
homepage: https://github.com/Granicus/platform-api-rb
|
104
104
|
licenses: []
|
105
105
|
post_install_message:
|
106
106
|
rdoc_options: []
|
@@ -120,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
120
120
|
version: '0'
|
121
121
|
requirements: []
|
122
122
|
rubyforge_project: granicus-platform-api
|
123
|
-
rubygems_version: 1.8.
|
123
|
+
rubygems_version: 1.8.15
|
124
124
|
signing_key:
|
125
125
|
specification_version: 3
|
126
126
|
summary: Granicus Open Platform API 1.x Wrapper
|