aeolus-image 0.5.1 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +3 -0
- data/Rakefile +12 -31
- data/lib/aeolus_image/model/factory/base.rb +12 -0
- metadata +85 -9
data/README.md
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
[![Build
|
2
|
+
Status](https://secure.travis-ci.org/aeolusproject/aeolus-image-rubygem.png)](http://travis-ci.org/aeolusproject/aeolus-image-rubygem)
|
3
|
+
|
1
4
|
# aeolus-image-rubygem #
|
2
5
|
**aeolus-image-rubygem** is a Ruby library used by [Conductor](https://github.com/aeolusproject/conductor) to connect with Image Factory and Image Warehouse.
|
3
6
|
|
data/Rakefile
CHANGED
@@ -19,34 +19,9 @@ require 'rubygems/package_task'
|
|
19
19
|
require 'rdoc/task'
|
20
20
|
require 'rake/testtask'
|
21
21
|
require 'rspec/core/rake_task'
|
22
|
-
require './rake/rpmtask'
|
23
22
|
|
24
|
-
|
25
|
-
|
26
|
-
RPM_SPEC_IN = "rubygem-aeolus-image.spec.in"
|
27
|
-
PKG_VERSION = "0.5.1"
|
28
|
-
|
29
|
-
spec = Gem::Specification.new do |s|
|
30
|
-
s.name = 'aeolus-image'
|
31
|
-
s.version = PKG_VERSION
|
32
|
-
s.platform = Gem::Platform::RUBY
|
33
|
-
s.authors = 'Jason Guiditta, Martyn Taylor'
|
34
|
-
s.email = 'jguiditt@redhat.com, mtaylor@redhat.com'
|
35
|
-
s.license = 'ASL 2.0'
|
36
|
-
s.homepage = "https://github.com/aeolusproject/aeolus-image-rubygem"
|
37
|
-
s.summary = 'Ruby Client for Image Warehouse and Image Factory for the Aeolus cloud suite'
|
38
|
-
s.description = "aeolus-image is a Ruby library used by Conductor to connect with Image Factory and Image Warehouse."
|
39
|
-
|
40
|
-
s.files = Dir["lib/**/*.rb","README.md","COPYING","Rakefile","rake/rpmtask.rb"]
|
41
|
-
s.test_files = Dir["spec/**/*.*",".rspec","examples/aeolus-cli"]
|
42
|
-
s.require_path = "lib"
|
43
|
-
s.add_dependency('activeresource')
|
44
|
-
s.add_dependency('nokogiri')
|
45
|
-
s.add_dependency('oauth')
|
46
|
-
s.add_dependency('rest-client')
|
47
|
-
|
48
|
-
s.add_development_dependency('rspec', '>=1.3.0')
|
49
|
-
end
|
23
|
+
PKG_VERSION = "0.7.0"
|
24
|
+
spec = eval(File.read('aeolus-image.gemspec'))
|
50
25
|
|
51
26
|
Gem::PackageTask.new(spec) do |p|
|
52
27
|
p.gem_spec = spec
|
@@ -71,8 +46,14 @@ RSpec::Core::RakeTask.new do |t|
|
|
71
46
|
t.pattern = FileList['spec/**/*.rb']
|
72
47
|
end
|
73
48
|
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
49
|
+
if File.exist?('/etc/rpm/macros.dist')
|
50
|
+
require './rake/rpmtask'
|
51
|
+
RPMBUILD_DIR = "#{File.expand_path('~')}/rpmbuild"
|
52
|
+
RPM_SPEC = "rubygem-aeolus-image.spec"
|
53
|
+
RPM_SPEC_IN = "rubygem-aeolus-image.spec.in"
|
54
|
+
Rake::RpmTask.new(RPM_SPEC, {:suffix => '.in', :pkg_version => PKG_VERSION}) do |rpm|
|
55
|
+
rpm.need_tar = true
|
56
|
+
rpm.package_files.include("lib/*")
|
57
|
+
rpm.topdir = "#{RPMBUILD_DIR}"
|
58
|
+
end
|
78
59
|
end
|
@@ -69,6 +69,18 @@ module Aeolus
|
|
69
69
|
end
|
70
70
|
end
|
71
71
|
|
72
|
+
def initialize(attributes = {}, persisted = nil)
|
73
|
+
# The !! operator is required to set modified_persisted to false when
|
74
|
+
# persisted == nil && attributes[:id] == nil
|
75
|
+
modified_persisted = (persisted.nil? && attributes[:id]) ? true : !!persisted
|
76
|
+
|
77
|
+
if ActiveResource::VERSION::MAJOR >= 3 && ActiveResource::VERSION::MINOR >= 1
|
78
|
+
super(attributes, modified_persisted)
|
79
|
+
else
|
80
|
+
super(attributes)
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
72
84
|
## Instance Methods: (modifying the ActiveRecord::CustomMethods).
|
73
85
|
## This modification is same as defined in above method
|
74
86
|
def get(method_name, options = {})
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aeolus-image
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 3
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 0.
|
8
|
+
- 7
|
9
|
+
- 0
|
10
|
+
version: 0.7.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jason Guiditta, Martyn Taylor
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-
|
18
|
+
date: 2012-12-03 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: activeresource
|
@@ -51,12 +51,14 @@ dependencies:
|
|
51
51
|
requirement: &id003 !ruby/object:Gem::Requirement
|
52
52
|
none: false
|
53
53
|
requirements:
|
54
|
-
- - "
|
54
|
+
- - "="
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
hash:
|
56
|
+
hash: 7
|
57
57
|
segments:
|
58
58
|
- 0
|
59
|
-
|
59
|
+
- 4
|
60
|
+
- 4
|
61
|
+
version: 0.4.4
|
60
62
|
type: :runtime
|
61
63
|
version_requirements: *id003
|
62
64
|
- !ruby/object:Gem::Dependency
|
@@ -89,8 +91,82 @@ dependencies:
|
|
89
91
|
version: 1.3.0
|
90
92
|
type: :development
|
91
93
|
version_requirements: *id005
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: rake
|
96
|
+
prerelease: false
|
97
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
98
|
+
none: false
|
99
|
+
requirements:
|
100
|
+
- - ">="
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
hash: 3
|
103
|
+
segments:
|
104
|
+
- 0
|
105
|
+
version: "0"
|
106
|
+
type: :development
|
107
|
+
version_requirements: *id006
|
108
|
+
- !ruby/object:Gem::Dependency
|
109
|
+
name: vcr
|
110
|
+
prerelease: false
|
111
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
112
|
+
none: false
|
113
|
+
requirements:
|
114
|
+
- - ~>
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
hash: 25
|
117
|
+
segments:
|
118
|
+
- 1
|
119
|
+
- 11
|
120
|
+
version: "1.11"
|
121
|
+
type: :development
|
122
|
+
version_requirements: *id007
|
123
|
+
- !ruby/object:Gem::Dependency
|
124
|
+
name: webmock
|
125
|
+
prerelease: false
|
126
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
127
|
+
none: false
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
hash: 3
|
132
|
+
segments:
|
133
|
+
- 0
|
134
|
+
version: "0"
|
135
|
+
type: :development
|
136
|
+
version_requirements: *id008
|
137
|
+
- !ruby/object:Gem::Dependency
|
138
|
+
name: timecop
|
139
|
+
prerelease: false
|
140
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
141
|
+
none: false
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
hash: 3
|
146
|
+
segments:
|
147
|
+
- 0
|
148
|
+
version: "0"
|
149
|
+
type: :development
|
150
|
+
version_requirements: *id009
|
151
|
+
- !ruby/object:Gem::Dependency
|
152
|
+
name: rdoc
|
153
|
+
prerelease: false
|
154
|
+
requirement: &id010 !ruby/object:Gem::Requirement
|
155
|
+
none: false
|
156
|
+
requirements:
|
157
|
+
- - ">="
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
hash: 39
|
160
|
+
segments:
|
161
|
+
- 3
|
162
|
+
- 8
|
163
|
+
- 0
|
164
|
+
version: 3.8.0
|
165
|
+
type: :development
|
166
|
+
version_requirements: *id010
|
92
167
|
description: aeolus-image is a Ruby library used by Conductor to connect with Image Factory and Image Warehouse.
|
93
|
-
email:
|
168
|
+
email:
|
169
|
+
- jguiditt@redhat.com, mtaylor@redhat.com
|
94
170
|
executables: []
|
95
171
|
|
96
172
|
extensions: []
|