omnistore 0.0.22 → 0.0.23

Sign up to get free protection for your applications and to get access to all the features.
@@ -75,10 +75,12 @@ module OmniStore
75
75
  end
76
76
 
77
77
  def copy(src, dest, other = self, options = {})
78
+ force = options[:force]
78
79
  opts = options.dup
79
80
  opts.delete_if {|k, v| !FileUtils.have_option?(:copy, k)}
80
81
  src_path = expand(src)
81
82
  dest_path = expand(dest, other.dir)
83
+ FileUtils.mkdir_p(File.dirname(dest_path)) if force
82
84
  FileUtils.copy(src_path, dest_path, opts)
83
85
  end
84
86
 
@@ -1,3 +1,3 @@
1
1
  module OmniStore
2
- VERSION = "0.0.22"
2
+ VERSION = "0.0.23"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omnistore
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.22
4
+ version: 0.0.23
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-02-13 00:00:00.000000000 Z
12
+ date: 2014-05-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aws-sdk
@@ -125,7 +125,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
125
125
  version: '0'
126
126
  segments:
127
127
  - 0
128
- hash: -243006579
128
+ hash: 266300413
129
129
  required_rubygems_version: !ruby/object:Gem::Requirement
130
130
  none: false
131
131
  requirements:
@@ -134,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
134
134
  version: '0'
135
135
  segments:
136
136
  - 0
137
- hash: -243006579
137
+ hash: 266300413
138
138
  requirements: []
139
139
  rubyforge_project:
140
140
  rubygems_version: 1.8.25