synaptic4r 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/synaptic4r/request.rb +1 -1
- data/synaptic4r.gemspec +7 -7
- metadata +6 -6
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.9
|
data/lib/synaptic4r/request.rb
CHANGED
@@ -282,7 +282,7 @@ module Synaptic4r
|
|
282
282
|
exp = (args[:lifetime].nil? ? 5 : args[:lifetime].to_i)*60 + Time.now.to_i
|
283
283
|
res = /.*(\/rest.*)/.match(url).captures.first
|
284
284
|
user = headers['x-emc-uid']
|
285
|
-
@sign = "GET\n" + "#{res}\n#{user}\n#{exp}"
|
285
|
+
@sign = "GET\n" + "#{res.downcase}\n#{user}\n#{exp}"
|
286
286
|
digest = OpenSSL::HMAC.digest(OpenSSL::Digest.new('sha1'), Base64.decode64(key), sign)
|
287
287
|
signature = Base64.encode64(digest.to_s())
|
288
288
|
@url = "#{url}?uid=#{URI.encode(user, esc)}&expires=#{exp}&signature=#{URI.encode(signature, esc)}"
|
data/synaptic4r.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{synaptic4r}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.9"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["troystribling-att"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-06-08}
|
13
13
|
s.default_executable = %q{synrest}
|
14
14
|
s.email = %q{troy.stribling@usi.com}
|
15
15
|
s.executables = ["synrest"]
|
@@ -49,13 +49,13 @@ Gem::Specification.new do |s|
|
|
49
49
|
s.rubygems_version = %q{1.3.5}
|
50
50
|
s.summary = %q{CLI and Ruby REST Client for ATT Synaptic Storage}
|
51
51
|
s.test_files = [
|
52
|
-
"test/
|
53
|
-
"test/get_test.rb",
|
54
|
-
"test/create_file_messages.rb",
|
55
|
-
"test/mock.rb",
|
56
|
-
"test/matchers.rb",
|
52
|
+
"test/matchers.rb",
|
57
53
|
"test/create_dir_messages.rb",
|
54
|
+
"test/create_file_messages.rb",
|
55
|
+
"test/get_test.rb",
|
58
56
|
"test/get_messages.rb",
|
57
|
+
"test/mock.rb",
|
58
|
+
"test/create_dir_test.rb",
|
59
59
|
"test/create_file_test.rb",
|
60
60
|
"test/helper.rb"
|
61
61
|
]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: synaptic4r
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- troystribling-att
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-
|
12
|
+
date: 2010-06-08 00:00:00 -07:00
|
13
13
|
default_executable: synrest
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -85,12 +85,12 @@ signing_key:
|
|
85
85
|
specification_version: 3
|
86
86
|
summary: CLI and Ruby REST Client for ATT Synaptic Storage
|
87
87
|
test_files:
|
88
|
-
- test/create_dir_test.rb
|
89
|
-
- test/get_test.rb
|
90
|
-
- test/create_file_messages.rb
|
91
|
-
- test/mock.rb
|
92
88
|
- test/matchers.rb
|
93
89
|
- test/create_dir_messages.rb
|
90
|
+
- test/create_file_messages.rb
|
91
|
+
- test/get_test.rb
|
94
92
|
- test/get_messages.rb
|
93
|
+
- test/mock.rb
|
94
|
+
- test/create_dir_test.rb
|
95
95
|
- test/create_file_test.rb
|
96
96
|
- test/helper.rb
|