filecluster 0.3.11 → 0.3.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/fc/version.rb +1 -1
- data/lib/manage/item.rb +6 -1
- metadata +3 -3
data/lib/fc/version.rb
CHANGED
data/lib/manage/item.rb
CHANGED
@@ -66,7 +66,12 @@ def item_add_local
|
|
66
66
|
puts "Policy #{ARGV[4]} not found." unless policy
|
67
67
|
|
68
68
|
if policy && storage
|
69
|
-
|
69
|
+
if name.index(storage.path) == 0
|
70
|
+
path = name
|
71
|
+
name = name.sub(storage.path, '/').gsub('//', '/')
|
72
|
+
else
|
73
|
+
path = (storage.path+name).gsub('//', '/')
|
74
|
+
end
|
70
75
|
begin
|
71
76
|
item = FC::Item.create_from_local(path, name, policy, :tag => 'fc-manage-add-local', :replace => true)
|
72
77
|
item_storage = item.get_item_storages.first
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: filecluster
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.12
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -181,7 +181,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
181
181
|
version: '0'
|
182
182
|
segments:
|
183
183
|
- 0
|
184
|
-
hash: -
|
184
|
+
hash: -2800763299588068596
|
185
185
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
186
186
|
none: false
|
187
187
|
requirements:
|
@@ -190,7 +190,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
190
190
|
version: '0'
|
191
191
|
segments:
|
192
192
|
- 0
|
193
|
-
hash: -
|
193
|
+
hash: -2800763299588068596
|
194
194
|
requirements: []
|
195
195
|
rubyforge_project:
|
196
196
|
rubygems_version: 1.8.24
|