shrine-webdav 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a85890b4392e10416afddd86f6fff9937f419fa1
4
- data.tar.gz: 6dff08b328828f2e3c19fea330d581890e5e25a7
3
+ metadata.gz: cd2b1d205b1bf8156e9e2012af459a4006ca6b3c
4
+ data.tar.gz: e933550a6bf5b00dd2913f2c6452a9b07c36b53a
5
5
  SHA512:
6
- metadata.gz: e0e940c56d1c5dd7c656330b8b6f03b44ae0f366654219220aa7d21df0647ddf02f70cf7010ff6008fdc6ea09009b355996f43405c9065b5ab953be02d258a2b
7
- data.tar.gz: abbdc485a158fb4e55cac16b9ca021c6cf802a9bbce8e55686c6d13cf3e387dabbd82cc27aa3074e55caa41959de70a22743e87fd0ffe256a2dda0f3ec7e6ac7
6
+ metadata.gz: c3ecbce7d30601bab187544f8654be9cb7599a80ae9f1e7bac60d79035b34359e2a001df306686c30ce070490b4f6972b6b1209f7d97f164ff3c683157a1533a
7
+ data.tar.gz: 516e0c8ebeba3067e1e0b5903e76512d19dee824f8ab97e640a5a4181c2e90c27da32c8ae19a3fcf1ece159e3a9e92ab23a7ed4b72897eeffd5ff213b9b72430
@@ -43,8 +43,10 @@ class Shrine
43
43
 
44
44
  def mkpath_to_file(path_to_file)
45
45
  last_slash = path_to_file.rindex('/')
46
- path = path_to_file[0..last_slash]
47
- mkpath(path)
46
+ if last_slash
47
+ path = path_to_file[0..last_slash]
48
+ mkpath(path)
49
+ end
48
50
  end
49
51
 
50
52
  def mkpath(path)
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
 
4
4
  Gem::Specification.new do |spec|
5
5
  spec.name = 'shrine-webdav'
6
- spec.version = '0.1.1'
6
+ spec.version = '0.1.2'
7
7
  spec.authors = ['Ivan Kushmantsev']
8
8
  spec.email = ['i.kushmantsev@fun-box.ru']
9
9
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shrine-webdav
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Kushmantsev
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-06-01 00:00:00.000000000 Z
11
+ date: 2017-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: shrine
@@ -129,7 +129,7 @@ files:
129
129
  - LICENSE.txt
130
130
  - README.md
131
131
  - Rakefile
132
- - lib/shrine/webdav.rb
132
+ - lib/shrine/storage/webdav.rb
133
133
  - shrine-webdav.gemspec
134
134
  homepage: https://github.com/funbox/shrine-webdav
135
135
  licenses: