fog-local 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fog/local/models/file.rb +1 -1
- data/lib/fog/local/version.rb +1 -1
- data/tests/local/models/file_tests.rb +11 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e7569fa5ae2ee41c45358a28ddb0400a7b9f3224ecda75e03493bd7db059f308
|
4
|
+
data.tar.gz: 37b5d624939ad7da579bef36f4751ecb74fb829aeade62f6b41b2fdc12f20ced
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d15633fba2df0006079c9e6e1c51eb72862561b29d57f051045996b754e8378ad24e1d2f100132dcd2063b5bc18baceffafb68162638894584fc2dbfb47c619
|
7
|
+
data.tar.gz: ed7462cf6ce37d131afa6406bfbb87db8394c573a1fb45dc496420cdbcf2dacc6aee01cc10f54e10ad819ee71a9d63a1f69a82960c5b55b42ab40ae50c073b12
|
data/lib/fog/local/version.rb
CHANGED
@@ -41,6 +41,17 @@ Shindo.tests('Storage[:local] | file', ["local"]) do
|
|
41
41
|
directory = connection.directories.new(:key => 'my directory')
|
42
42
|
file = directory.files.new(:key => 'my file.txt')
|
43
43
|
|
44
|
+
file.public_url
|
45
|
+
end
|
46
|
+
|
47
|
+
tests('when key has safe characters').
|
48
|
+
returns('http://example.com/files/my/directory/my/file.txt') do
|
49
|
+
@options[:endpoint] = 'http://example.com/files'
|
50
|
+
|
51
|
+
connection = Fog::Local::Storage.new(@options)
|
52
|
+
directory = connection.directories.new(:key => 'my/directory')
|
53
|
+
file = directory.files.new(:key => 'my/file.txt')
|
54
|
+
|
44
55
|
file.public_url
|
45
56
|
end
|
46
57
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fog-local
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wesley Beary
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2022-01-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|