omnistore 0.0.18 → 0.0.19
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 +16 -0
- data/Gemfile +0 -1
- data/README.md +4 -0
- data/Rakefile +11 -0
- data/lib/omnistore/storage/local/mountpoint.rb +3 -1
- data/lib/omnistore/version.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +6 -5
data/.travis.yml
ADDED
data/Gemfile
CHANGED
data/README.md
CHANGED
data/Rakefile
CHANGED
@@ -1,6 +1,17 @@
|
|
1
1
|
#!/usr/bin/env rake
|
2
2
|
$:.push File.expand_path("../lib", __FILE__)
|
3
3
|
|
4
|
+
require 'rubygems'
|
5
|
+
begin
|
6
|
+
require 'bundler/setup'
|
7
|
+
rescue LoadError
|
8
|
+
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
9
|
+
end
|
10
|
+
|
11
|
+
require 'bundler'
|
12
|
+
Bundler::GemHelper.install_tasks
|
13
|
+
|
14
|
+
require 'rake'
|
4
15
|
require "bundler/gem_tasks"
|
5
16
|
require 'rspec/core/rake_task'
|
6
17
|
require "omnistore/version"
|
@@ -53,8 +53,10 @@ module OmniStore
|
|
53
53
|
opts = convert_args_to_options_hash(options_or_data, options)
|
54
54
|
size = opts[:chunk_size] || MEGABYTE
|
55
55
|
data = convert_data_to_io_obj(opts)
|
56
|
+
expanded_path = expand(path)
|
57
|
+
FileUtils.mkdir_p(File.dirname(expanded_path)) if options[:force]
|
56
58
|
begin
|
57
|
-
open(
|
59
|
+
open(expanded_path, 'wb') do |f|
|
58
60
|
f.write(data.read(size)) until data.eof?
|
59
61
|
end
|
60
62
|
ensure
|
data/lib/omnistore/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
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.
|
4
|
+
version: 0.0.19
|
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-
|
12
|
+
date: 2013-05-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: aws-sdk
|
@@ -84,6 +84,7 @@ extra_rdoc_files: []
|
|
84
84
|
files:
|
85
85
|
- .gitignore
|
86
86
|
- .rspec
|
87
|
+
- .travis.yml
|
87
88
|
- Gemfile
|
88
89
|
- LICENSE
|
89
90
|
- README.md
|
@@ -123,7 +124,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
123
124
|
version: '0'
|
124
125
|
segments:
|
125
126
|
- 0
|
126
|
-
hash:
|
127
|
+
hash: 245416335
|
127
128
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
128
129
|
none: false
|
129
130
|
requirements:
|
@@ -132,10 +133,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
132
133
|
version: '0'
|
133
134
|
segments:
|
134
135
|
- 0
|
135
|
-
hash:
|
136
|
+
hash: 245416335
|
136
137
|
requirements: []
|
137
138
|
rubyforge_project:
|
138
|
-
rubygems_version: 1.8.
|
139
|
+
rubygems_version: 1.8.25
|
139
140
|
signing_key:
|
140
141
|
specification_version: 3
|
141
142
|
summary: Providers a single point of entry for storage
|