granicus-platform-api 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- granicus-platform-api (0.1.6)
4
+ granicus-platform-api (0.1.7)
5
5
  hashie (~> 1.0.0)
6
6
  savon (~> 0.9.2)
7
7
 
@@ -288,6 +288,11 @@ module GranicusPlatformAPI
288
288
  call_soap_method(:get_clip,'//ns5:GetClipResponse/clip',{ 'ClipID' => clip_id })
289
289
  end
290
290
 
291
+ # update a clip
292
+ def update_clip(clip)
293
+ call_soap_method(:update_clip,'//ns4:UpdateClipResponse',{ 'clip' => clip })
294
+ end
295
+
291
296
  # return the requested clip
292
297
  def get_clip_by_uid(clip_uid)
293
298
  call_soap_method(:get_clip_by_uid,'//ns5:GetClipByUIDResponse/clip',{ 'ClipUID' => clip_uid })
@@ -1,3 +1,3 @@
1
1
  module GranicusPlatformAPI
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
3
3
  end
@@ -149,6 +149,17 @@ describe GranicusPlatformAPI, "::Client Clip Methods" do
149
149
  clip = client.get_clip CLIP_ID
150
150
  clip.ID.should == CLIP_ID
151
151
  end
152
+
153
+ it "should update the given clip" do
154
+ clip = client.get_clip CLIP_ID
155
+ name = clip.Name
156
+ clip.Name = 'this is my test name'
157
+ client.update_clip clip
158
+ clip2 = client.get_clip CLIP_ID
159
+ clip2.Name.should == 'this is my test name'
160
+ clip2.Name = name
161
+ client.update_clip clip2
162
+ end
152
163
  it "should get the requested clip by UID" do
153
164
  clip = client.get_clip_by_uid CLIP_UID
154
165
  clip.UID.should == CLIP_UID
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.1.7
4
+ version: 0.1.8
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: 2011-07-04 00:00:00.000000000Z
12
+ date: 2011-07-06 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &2156479600 !ruby/object:Gem::Requirement
16
+ requirement: &2169536920 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '2.6'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *2156479600
24
+ version_requirements: *2169536920
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: simplecov
27
- requirement: &2156479100 !ruby/object:Gem::Requirement
27
+ requirement: &2169536420 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 0.4.0
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *2156479100
35
+ version_requirements: *2169536420
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: hashie
38
- requirement: &2156478640 !ruby/object:Gem::Requirement
38
+ requirement: &2169535960 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 1.0.0
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *2156478640
46
+ version_requirements: *2169535960
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: savon
49
- requirement: &2156478180 !ruby/object:Gem::Requirement
49
+ requirement: &2169535500 !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: *2156478180
57
+ version_requirements: *2169535500
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: savon
60
- requirement: &2156477720 !ruby/object:Gem::Requirement
60
+ requirement: &2169535040 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: 0.9.2
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *2156477720
68
+ version_requirements: *2169535040
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: hashie
71
- requirement: &2156477260 !ruby/object:Gem::Requirement
71
+ requirement: &2169534580 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ~>
@@ -76,7 +76,7 @@ dependencies:
76
76
  version: 1.0.0
77
77
  type: :runtime
78
78
  prerelease: false
79
- version_requirements: *2156477260
79
+ version_requirements: *2169534580
80
80
  description: Wrapper for the Granicus Open Platform API v1.x
81
81
  email: javier@granicus.com
82
82
  executables: []