ruby-atmos-pure 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +12 -4
- data/lib/atmos/store.rb +2 -2
- data/lib/atmos/version.rb +2 -2
- data/test/credentials.rb +13 -1
- data/test/test_store.rb +7 -0
- metadata +4 -4
data/Rakefile
CHANGED
@@ -79,13 +79,20 @@ Rake::GemPackageTask.new(nokogiri_spec) { |pkg| }
|
|
79
79
|
Rake::GemPackageTask.new(rexml_spec) { |pkg| }
|
80
80
|
|
81
81
|
desc 'install, require both gems'
|
82
|
-
task :
|
82
|
+
task :installtest do
|
83
83
|
sh "sudo gem i pkg/#{rexml_spec.name}-#{rexml_spec.version}.gem"
|
84
|
-
sh "ruby
|
84
|
+
sh "ruby test/require_test.rb"
|
85
|
+
sh "sudo gem uninstall #{rexml_spec.name} -x"
|
85
86
|
sh "sudo gem i pkg/#{nokogiri_spec.name}-#{nokogiri_spec.version}.gem"
|
86
87
|
sh "ruby test/require_test.rb"
|
87
88
|
end
|
88
89
|
|
90
|
+
desc 'install, require both gems'
|
91
|
+
task :install do
|
92
|
+
sh "sudo gem i pkg/#{rexml_spec.name}-#{rexml_spec.version}.gem"
|
93
|
+
sh "sudo gem i pkg/#{nokogiri_spec.name}-#{nokogiri_spec.version}.gem"
|
94
|
+
end
|
95
|
+
|
89
96
|
desc 'uninstall both gems'
|
90
97
|
task :uninstall do
|
91
98
|
sh "sudo gem uninstall #{nokogiri_spec.name} -x"
|
@@ -97,7 +104,8 @@ desc 'reinstall both gems'
|
|
97
104
|
task :reinstall => [:uninstall, :install]
|
98
105
|
|
99
106
|
desc 'push to rubygems.org'
|
100
|
-
task :push => [:
|
107
|
+
task :push => [:installtest] do
|
101
108
|
sh "gem push pkg/#{rexml_spec.name}-#{rexml_spec.version}.gem"
|
102
109
|
sh "gem push pkg/#{nokogiri_spec.name}-#{nokogiri_spec.version}.gem"
|
103
|
-
end
|
110
|
+
end
|
111
|
+
|
data/lib/atmos/store.rb
CHANGED
@@ -203,13 +203,13 @@ module Atmos
|
|
203
203
|
response = @request.do(:list_objects, 'x-emc-include-meta' => 0, 'x-emc-tags' => tag)
|
204
204
|
|
205
205
|
Atmos::Parser::response_get_array(response, '//xmlns:ObjectID').each do |idxml|
|
206
|
-
yield Atmos::Object.new(self, idxml)
|
206
|
+
yield Atmos::Object.new(self, :get, :id => idxml)
|
207
207
|
end
|
208
208
|
end
|
209
209
|
|
210
210
|
|
211
211
|
#
|
212
|
-
# Returns the version of the Atmos server authenticated to as a string.
|
212
|
+
# Returns the version of the Atmos server authenticated to, as a string.
|
213
213
|
#
|
214
214
|
def server_version
|
215
215
|
@server_version
|
data/lib/atmos/version.rb
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
module Atmos
|
2
2
|
|
3
3
|
# Version number of this library.
|
4
|
-
VERSION = "1.0.
|
4
|
+
VERSION = "1.0.5"
|
5
5
|
|
6
6
|
# Array of version strings this library has been tested against.
|
7
|
-
SUPPORTED_VERSIONS = ["1.2.7", "1.3.4", "1.4.0", "1.4.1", "2.0.1"].freeze
|
7
|
+
SUPPORTED_VERSIONS = ["1.2.7", "1.3.4", "1.4.0", "1.4.1", "1.4.2","2.0.1"].freeze
|
8
8
|
|
9
9
|
# The logger used by the entire gem.
|
10
10
|
LOG = Log4r::Logger.get('atmos')
|
data/test/credentials.rb
CHANGED
@@ -5,7 +5,7 @@ module Atmos
|
|
5
5
|
@use_proxy = false
|
6
6
|
@proxy = 'http://127.0.0.1:3128'
|
7
7
|
@store = nil
|
8
|
-
@server = :
|
8
|
+
@server = :flintstones
|
9
9
|
@servers =
|
10
10
|
{:alma => {
|
11
11
|
:url => 'https://10.5.113.71',
|
@@ -19,6 +19,18 @@ module Atmos
|
|
19
19
|
:other_user => nil,
|
20
20
|
:other_group => nil,
|
21
21
|
},
|
22
|
+
:flintstones => {
|
23
|
+
:url => 'https://10.6.149.73',
|
24
|
+
:redirect_url=> nil,
|
25
|
+
:version => '1.4.2',
|
26
|
+
:default_tag => 'atmos-ruby',
|
27
|
+
:tenant => 'd492c5b4414943e182355c5a491b81fe',
|
28
|
+
:user => 'dragaf-test-main',
|
29
|
+
:group => 'other',
|
30
|
+
:secret => 'Cv7T7n/pXUCfkx9OlKsmTKBxAUw=',
|
31
|
+
:other_user => 'dragaf-test-other',
|
32
|
+
:other_group => 'grouptest',
|
33
|
+
},
|
22
34
|
:atmosonline => {
|
23
35
|
:url => 'https://accesspoint.atmosonline.com',
|
24
36
|
:redirect_url=> 'http://accesspoint.atmosonline.com',
|
data/test/test_store.rb
CHANGED
@@ -92,6 +92,8 @@ class AtmosStoreTest < Test::Unit::TestCase
|
|
92
92
|
ctag = "ruby-atmos-curseword#{$$}"
|
93
93
|
obj = @s.create(:listable_metadata => {ctag => true})
|
94
94
|
@cleanup.push(obj)
|
95
|
+
obj.update("there's just too much confusion")
|
96
|
+
assert_equal("there's just too much confusion", obj.data)
|
95
97
|
|
96
98
|
@s.each_listable_tag do |tag|
|
97
99
|
i += 1
|
@@ -113,11 +115,16 @@ class AtmosStoreTest < Test::Unit::TestCase
|
|
113
115
|
for i in (1...10)
|
114
116
|
obj = @s.create(:listable_metadata => {tag => true})
|
115
117
|
@cleanup.push(obj)
|
118
|
+
obj.update("there's just too much confusion")
|
119
|
+
assert_equal("there's just too much confusion", obj.data)
|
116
120
|
end
|
117
121
|
|
118
122
|
i = 0
|
119
123
|
@s.each_object_with_listable_tag(tag) do |obj|
|
120
124
|
i += 1
|
125
|
+
assert_equal("there's just too much confusion", obj.data)
|
126
|
+
obj.update("i can't get no relief")
|
127
|
+
assert_equal("i can't get no relief", obj.data)
|
121
128
|
end
|
122
129
|
assert_equal(9, i)
|
123
130
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-atmos-pure
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 29
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 5
|
10
|
+
version: 1.0.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Fleur Dragan
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-01-
|
18
|
+
date: 2012-01-09 00:00:00 -08:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|