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.
Files changed (3) hide show
  1. data/lib/fc/version.rb +1 -1
  2. data/lib/manage/item.rb +6 -1
  3. metadata +3 -3
@@ -1,3 +1,3 @@
1
1
  module FC
2
- VERSION = "0.3.11"
2
+ VERSION = "0.3.12"
3
3
  end
@@ -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
- path = (storage.path+name).gsub('//', '/') unless name.index(storage.path) == 0
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.11
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: -2994617914936702479
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: -2994617914936702479
193
+ hash: -2800763299588068596
194
194
  requirements: []
195
195
  rubyforge_project:
196
196
  rubygems_version: 1.8.24