nsisam 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/nsisam/fake_client.rb +4 -0
- data/nsisam.gemspec +1 -1
- data/spec/fake_client_spec.rb +5 -5
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.7.
|
1
|
+
0.7.2
|
data/lib/nsisam/fake_client.rb
CHANGED
data/nsisam.gemspec
CHANGED
data/spec/fake_client_spec.rb
CHANGED
@@ -68,29 +68,29 @@ describe "NSISam::FakeClient" do
|
|
68
68
|
it "stored by #store in a dict with file and filename" do
|
69
69
|
data = {file: Base64.encode64('a file'), filename: 'dumb.txt'}
|
70
70
|
response = @nsisam.store(data)
|
71
|
-
request = Net::HTTP.get_response(URI.parse(
|
71
|
+
request = Net::HTTP.get_response(URI.parse(@nsisam.download_link_for_file(response.key)))
|
72
72
|
request.body.should == "a file"
|
73
73
|
end
|
74
74
|
|
75
75
|
it "should update the hosted file when the file is updated through #store" do
|
76
76
|
data = {file: Base64.encode64('a file'), filename: 'dumb.txt'}
|
77
77
|
response = @nsisam.store(data)
|
78
|
-
request = Net::HTTP.get_response(URI.parse(
|
78
|
+
request = Net::HTTP.get_response(URI.parse(@nsisam.download_link_for_file(response.key)))
|
79
79
|
request.body.should == "a file"
|
80
80
|
|
81
81
|
data = {file: Base64.encode64('another file'), filename: 'dumb.txt'}
|
82
82
|
response = @nsisam.store(data)
|
83
|
-
request = Net::HTTP.get_response(URI.parse(
|
83
|
+
request = Net::HTTP.get_response(URI.parse(@nsisam.download_link_for_file(response.key)))
|
84
84
|
request.body.should == "another file"
|
85
85
|
end
|
86
86
|
|
87
87
|
it "should update the hosted file when the file is updated through #store_file" do
|
88
88
|
response = @nsisam.store_file('a file', 'dumb.txt')
|
89
|
-
request = Net::HTTP.get_response(URI.parse(
|
89
|
+
request = Net::HTTP.get_response(URI.parse(@nsisam.download_link_for_file(response.key)))
|
90
90
|
request.body.should == "a file"
|
91
91
|
|
92
92
|
response = @nsisam.update_file(response.key, 'another file', 'dumb.txt')
|
93
|
-
request = Net::HTTP.get_response(URI.parse(
|
93
|
+
request = Net::HTTP.get_response(URI.parse(@nsisam.download_link_for_file(response.key)))
|
94
94
|
request.body.should == "another file"
|
95
95
|
end
|
96
96
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nsisam
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -188,7 +188,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
188
188
|
version: '0'
|
189
189
|
segments:
|
190
190
|
- 0
|
191
|
-
hash: -
|
191
|
+
hash: -333567177505630667
|
192
192
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
193
193
|
none: false
|
194
194
|
requirements:
|