studio_api 3.0.0 → 3.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README +3 -1
- data/Rakefile +4 -3
- data/VERSION +1 -1
- data/lib/studio_api/appliance.rb +1 -0
- metadata +14 -13
data/README
CHANGED
@@ -37,7 +37,9 @@ for ActiveResource error handling.
|
|
37
37
|
puts "Created appliance #{appliance.inspect}"
|
38
38
|
|
39
39
|
#add own rpm built agains SLED11_SP1
|
40
|
-
|
40
|
+
File.open("/home/jreidinger/rpms/kezboard-1.0-1.60.noarch.rpm") do |file|
|
41
|
+
StudioApi::Rpm.upload file, "SLED11_SP1"
|
42
|
+
end
|
41
43
|
# and choose it in appliance ( and of course add repository with own rpms)
|
42
44
|
appliance.add_user_repository
|
43
45
|
appliance.add_package "kezboard", :version => "1.0-1.60"
|
data/Rakefile
CHANGED
@@ -25,8 +25,8 @@ begin
|
|
25
25
|
require 'jeweler'
|
26
26
|
Jeweler::Tasks.new do |s|
|
27
27
|
s.name = %q{studio_api}
|
28
|
-
s.summary = %q{Studio Api Interface.}
|
29
|
-
s.description = %q{Studio Api makes it easier to use Studio via API.
|
28
|
+
s.summary = %q{Intuitive ruby bindings to Studio Api Interface.}
|
29
|
+
s.description = %q{Studio Api makes it easier to use SuSE Studio (http://susestudio.com) via API.
|
30
30
|
Instead of adapting each ActiveResource to its behavior and
|
31
31
|
manually adding multipart file upload it wrapp in in Active
|
32
32
|
Resource like interface. It is possible to define credentials
|
@@ -42,7 +42,8 @@ begin
|
|
42
42
|
s.authors = ["Josef Reidinger"]
|
43
43
|
s.email = %q{jreidinger@suse.cz}
|
44
44
|
s.homepage = "http://github.com/jreidinger/studio_api"
|
45
|
-
s.
|
45
|
+
s.license = ["GPLv2","The Ruby License"]
|
46
|
+
s.add_dependency "activeresource", ">= 2.3.8"
|
46
47
|
s.add_dependency "xml-simple", ">= 1.0.0"
|
47
48
|
s.platform = Gem::Platform::RUBY
|
48
49
|
end
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.2
|
data/lib/studio_api/appliance.rb
CHANGED
@@ -317,6 +317,7 @@ module StudioApi
|
|
317
317
|
request_str = Util.add_options request_str, options, false
|
318
318
|
response = GenericRequest.new(self.class.studio_connection).get request_str
|
319
319
|
attrs = XmlSimple.xml_in response
|
320
|
+
return [] unless attrs["repository"]
|
320
321
|
res = []
|
321
322
|
attrs["repository"].each do |repo|
|
322
323
|
options = { "repository_id" => repo["id"].to_i }
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: studio_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 3
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 3
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 3.0.
|
9
|
+
- 2
|
10
|
+
version: 3.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Josef Reidinger
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-04-06 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -26,12 +26,12 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
hash:
|
29
|
+
hash: 19
|
30
30
|
segments:
|
31
|
-
-
|
31
|
+
- 2
|
32
32
|
- 3
|
33
33
|
- 8
|
34
|
-
version:
|
34
|
+
version: 2.3.8
|
35
35
|
type: :runtime
|
36
36
|
version_requirements: *id001
|
37
37
|
- !ruby/object:Gem::Dependency
|
@@ -51,7 +51,7 @@ dependencies:
|
|
51
51
|
type: :runtime
|
52
52
|
version_requirements: *id002
|
53
53
|
description: |-
|
54
|
-
Studio Api makes it easier to use Studio via API.
|
54
|
+
Studio Api makes it easier to use SuSE Studio (http://susestudio.com) via API.
|
55
55
|
Instead of adapting each ActiveResource to its behavior and
|
56
56
|
manually adding multipart file upload it wrapp in in Active
|
57
57
|
Resource like interface. It is possible to define credentials
|
@@ -125,8 +125,9 @@ files:
|
|
125
125
|
- test/responses/repositories.xml
|
126
126
|
has_rdoc: true
|
127
127
|
homepage: http://github.com/jreidinger/studio_api
|
128
|
-
licenses:
|
129
|
-
|
128
|
+
licenses:
|
129
|
+
- - GPLv2
|
130
|
+
- The Ruby License
|
130
131
|
post_install_message:
|
131
132
|
rdoc_options:
|
132
133
|
- --line-numbers
|
@@ -155,10 +156,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
155
156
|
requirements: []
|
156
157
|
|
157
158
|
rubyforge_project:
|
158
|
-
rubygems_version: 1.
|
159
|
+
rubygems_version: 1.5.2
|
159
160
|
signing_key:
|
160
161
|
specification_version: 3
|
161
|
-
summary: Studio Api Interface.
|
162
|
+
summary: Intuitive ruby bindings to Studio Api Interface.
|
162
163
|
test_files:
|
163
164
|
- test/running_build_test.rb
|
164
165
|
- test/resource_test.rb
|