omnistore 0.0.21 → 0.0.22

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/.travis.yml CHANGED
@@ -2,10 +2,8 @@ before_install:
2
2
  - gem install bundler
3
3
 
4
4
  rvm:
5
- - 1.9.2
6
5
  - 1.9.3
7
6
  - 2.0.0
8
- - ruby-head
9
7
 
10
8
  notifications:
11
9
  webhooks:
@@ -65,16 +65,21 @@ module OmniStore
65
65
  end
66
66
 
67
67
  def move(src, dest, other = self, options = {})
68
+ force = options[:force]
69
+ opts = options.dup
70
+ opts.delete_if {|k, v| !FileUtils.have_option?(:mv, k)}
68
71
  src_path = expand(src)
69
72
  dest_path = expand(dest, other.dir)
70
- FileUtils.mkdir_p(File.dirname(dest_path)) if options[:force]
71
- FileUtils.mv(src_path, dest_path, options)
73
+ FileUtils.mkdir_p(File.dirname(dest_path)) if force
74
+ FileUtils.mv(src_path, dest_path, opts)
72
75
  end
73
76
 
74
77
  def copy(src, dest, other = self, options = {})
78
+ opts = options.dup
79
+ opts.delete_if {|k, v| !FileUtils.have_option?(:copy, k)}
75
80
  src_path = expand(src)
76
81
  dest_path = expand(dest, other.dir)
77
- FileUtils.copy(src_path, dest_path, options)
82
+ FileUtils.copy(src_path, dest_path, opts)
78
83
  end
79
84
 
80
85
  private
@@ -1,3 +1,3 @@
1
1
  module OmniStore
2
- VERSION = "0.0.21"
2
+ VERSION = "0.0.22"
3
3
  end
data/omnistore.gemspec CHANGED
@@ -14,6 +14,7 @@ Gem::Specification.new do |gem|
14
14
  gem.name = "omnistore"
15
15
  gem.require_paths = ["lib"]
16
16
  gem.version = OmniStore::VERSION
17
+ gem.license = 'MIT'
17
18
 
18
19
  gem.add_dependency "aws-sdk", ">=1.6.0"
19
20
  gem.add_dependency "activesupport"
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.21
4
+ version: 0.0.22
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: 2013-07-17 00:00:00.000000000 Z
12
+ date: 2014-02-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aws-sdk
@@ -111,7 +111,8 @@ files:
111
111
  - spec/omnistore_spec.rb
112
112
  - spec/spec_helper.rb
113
113
  homepage: https://github.com/arukoh/omnistore
114
- licenses: []
114
+ licenses:
115
+ - MIT
115
116
  post_install_message:
116
117
  rdoc_options: []
117
118
  require_paths:
@@ -124,7 +125,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
124
125
  version: '0'
125
126
  segments:
126
127
  - 0
127
- hash: 3900111
128
+ hash: -243006579
128
129
  required_rubygems_version: !ruby/object:Gem::Requirement
129
130
  none: false
130
131
  requirements:
@@ -133,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
133
134
  version: '0'
134
135
  segments:
135
136
  - 0
136
- hash: 3900111
137
+ hash: -243006579
137
138
  requirements: []
138
139
  rubyforge_project:
139
140
  rubygems_version: 1.8.25