studio_api 3.1.2 → 3.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.1.2
1
+ 3.1.3
@@ -41,6 +41,7 @@ module StudioApi
41
41
  end
42
42
  end
43
43
  tree["lvm"]["volumes"] = tree["lvm"]["volumes"]["volume"] if tree["lvm"] && tree["lvm"]["volumes"]
44
+ Firewall.studio_connection = studio_connection
44
45
  Configuration.new tree
45
46
  end
46
47
 
@@ -53,6 +54,7 @@ module StudioApi
53
54
  end
54
55
 
55
56
  class Firewall < ActiveResource::Base
57
+ extend StudioResource
56
58
  def to_xml(options={})
57
59
  if enabled == "false"
58
60
  "<firewall><enabled>false</enabled></firewall>"
@@ -239,6 +241,7 @@ module StudioApi
239
241
  def configuration
240
242
  request_str = "/appliances/#{id.to_i}/configuration"
241
243
  response = GenericRequest.new(self.class.studio_connection).get request_str
244
+ Configuration.studio_connection = self.class.studio_connection
242
245
  Configuration.parse response
243
246
  end
244
247
 
@@ -25,6 +25,12 @@ module StudioApi
25
25
  @studio_connection
26
26
  end
27
27
 
28
+ # hooks when module extend and ActiveResource based class
29
+ # @param (ActiveResource::Base) extended class
30
+ def self.extended(base)
31
+ base.format = :xml #fix ARes 3.1 default ( json )
32
+ end
33
+
28
34
  # Takes information from connection and sets it to ActiveResource::Base.
29
35
  # Also take care properly of prefix as it need to join path from site with
30
36
  # api prefix like appliance/:appliance_id .
@@ -1,9 +1,21 @@
1
+ -------------------------------------------------------------------
2
+ Wed Aug 17 12:59:00 UTC 2011 - jreidinger@novell.com
3
+
4
+ - rails 3.1 fixes:
5
+ -- fix forced prefix in rails 3.1
6
+ -- fix rails 3.1 default for activeResource ( json ) - force xml
7
+ format
8
+ - 3.1.3
9
+
10
+ -------------------------------------------------------------------
1
11
  Mon Jul 18 11:33:38 CEST 2011 Flavio Castelli <flavio@castelli.name>
2
12
 
3
13
  - ensure the timeout value is properly set.
4
14
  See https://github.com/jreidinger/studio_api/issues/3
5
15
  for more details.
16
+ - 3.1.2
6
17
 
18
+ -------------------------------------------------------------------
7
19
  Fri May 14:30:55 CEST 2011 Flavio Castelli <flavio@castelli.name>
8
20
 
9
21
  - code refactorying of the unit tests
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: studio_api
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
5
- prerelease:
4
+ prerelease: false
6
5
  segments:
7
6
  - 3
8
7
  - 1
9
- - 2
10
- version: 3.1.2
8
+ - 3
9
+ version: 3.1.3
11
10
  platform: ruby
12
11
  authors:
13
12
  - Josef Reidinger
@@ -15,18 +14,16 @@ autorequire:
15
14
  bindir: bin
16
15
  cert_chain: []
17
16
 
18
- date: 2011-07-18 00:00:00 +02:00
17
+ date: 2011-08-17 00:00:00 +02:00
19
18
  default_executable:
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
21
  name: activeresource
23
22
  prerelease: false
24
23
  requirement: &id001 !ruby/object:Gem::Requirement
25
- none: false
26
24
  requirements:
27
25
  - - ">="
28
26
  - !ruby/object:Gem::Version
29
- hash: 19
30
27
  segments:
31
28
  - 2
32
29
  - 3
@@ -38,11 +35,9 @@ dependencies:
38
35
  name: xml-simple
39
36
  prerelease: false
40
37
  requirement: &id002 !ruby/object:Gem::Requirement
41
- none: false
42
38
  requirements:
43
39
  - - ">="
44
40
  - !ruby/object:Gem::Version
45
- hash: 23
46
41
  segments:
47
42
  - 1
48
43
  - 0
@@ -54,11 +49,9 @@ dependencies:
54
49
  name: yard
55
50
  prerelease: false
56
51
  requirement: &id003 !ruby/object:Gem::Requirement
57
- none: false
58
52
  requirements:
59
53
  - - ">="
60
54
  - !ruby/object:Gem::Version
61
- hash: 3
62
55
  segments:
63
56
  - 0
64
57
  version: "0"
@@ -103,52 +96,6 @@ files:
103
96
  - lib/studio_api/util.rb
104
97
  - rubygem-studio_api.changes
105
98
  - rubygem-studio_api.spec.template
106
- - test/appliance_test.rb
107
- - test/build_test.rb
108
- - test/connection_test.rb
109
- - test/file_test.rb
110
- - test/gallery_test.rb
111
- - test/generic_request_test.rb
112
- - test/repository_test.rb
113
- - test/resource_test.rb
114
- - test/responses/api_version.xml
115
- - test/responses/appliance.xml
116
- - test/responses/appliances.xml
117
- - test/responses/build.xml
118
- - test/responses/builds.xml
119
- - test/responses/configuration.xml
120
- - test/responses/file.xml
121
- - test/responses/files.xml
122
- - test/responses/gallery.xml
123
- - test/responses/gallery_appliance.xml
124
- - test/responses/gpg_key.xml
125
- - test/responses/gpg_keys.xml
126
- - test/responses/manifest.xml
127
- - test/responses/repositories.xml
128
- - test/responses/repository.xml
129
- - test/responses/rpm.xml
130
- - test/responses/rpms.xml
131
- - test/responses/running_build.xml
132
- - test/responses/running_build_image_already_exists.xml
133
- - test/responses/running_builds.xml
134
- - test/responses/software.xml
135
- - test/responses/software_fake_response.xml
136
- - test/responses/software_installed.xml
137
- - test/responses/software_search.xml
138
- - test/responses/status-broken.xml
139
- - test/responses/status.xml
140
- - test/responses/template_sets.xml
141
- - test/responses/testdrive.xml
142
- - test/responses/testdrives.xml
143
- - test/responses/users_0.xml
144
- - test/responses/users_1.xml
145
- - test/responses/users_2.xml
146
- - test/responses/versions.xml
147
- - test/rpm_test.rb
148
- - test/running_build_test.rb
149
- - test/template_set_test.rb
150
- - test/test_helper.rb
151
- - test/testdrive_test.rb
152
99
  has_rdoc: true
153
100
  homepage: http://github.com/jreidinger/studio_api
154
101
  licenses:
@@ -162,20 +109,16 @@ rdoc_options:
162
109
  require_paths:
163
110
  - lib
164
111
  required_ruby_version: !ruby/object:Gem::Requirement
165
- none: false
166
112
  requirements:
167
113
  - - ">="
168
114
  - !ruby/object:Gem::Version
169
- hash: 3
170
115
  segments:
171
116
  - 0
172
117
  version: "0"
173
118
  required_rubygems_version: !ruby/object:Gem::Requirement
174
- none: false
175
119
  requirements:
176
120
  - - ">="
177
121
  - !ruby/object:Gem::Version
178
- hash: 23
179
122
  segments:
180
123
  - 1
181
124
  - 3
@@ -184,7 +127,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
184
127
  requirements: []
185
128
 
186
129
  rubyforge_project: studio_api
187
- rubygems_version: 1.5.2
130
+ rubygems_version: 1.3.6
188
131
  signing_key:
189
132
  specification_version: 3
190
133
  summary: Intuitive ruby bindings to Studio Api Interface.