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 ADDED
@@ -0,0 +1,16 @@
1
+ before_install:
2
+ - gem install bundler
3
+
4
+ rvm:
5
+ - 1.9.2
6
+ - 1.9.3
7
+ - 2.0.0
8
+ - ruby-head
9
+
10
+ notifications:
11
+ webhooks:
12
+ urls:
13
+ - https://hook.ap01.aws.af.cm/travisci
14
+ on_success: always
15
+ on_failure: always
16
+ on_start: false
data/Gemfile CHANGED
@@ -1,4 +1,3 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- # Specify your gem's dependencies in omnistore.gemspec
4
3
  gemspec
data/README.md CHANGED
@@ -20,6 +20,10 @@ Or install it yourself as:
20
20
 
21
21
  TODO: Write usage instructions here
22
22
 
23
+ ## Code Status
24
+
25
+ * [![Build Status](https://travis-ci.org/arukoh/omnistore.png?branch=master)](https://travis-ci.org/arukoh/omnistore)
26
+
23
27
  ## Contributing
24
28
 
25
29
  1. Fork it
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(expand(path), 'wb') do |f|
59
+ open(expanded_path, 'wb') do |f|
58
60
  f.write(data.read(size)) until data.eof?
59
61
  end
60
62
  ensure
@@ -1,3 +1,3 @@
1
1
  module OmniStore
2
- VERSION = "0.0.18"
2
+ VERSION = "0.0.19"
3
3
  end
data/spec/spec_helper.rb CHANGED
@@ -2,7 +2,7 @@
2
2
  $:.unshift(File.dirname(__FILE__) + '/../lib')
3
3
 
4
4
  require 'rubygems'
5
- require 'rspec'
5
+ require 'bundler/setup'
6
6
  require 'tempfile'
7
7
  require 'aws-sdk'
8
8
  require 'omnistore'
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.18
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-02-05 00:00:00.000000000 Z
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: -527908049
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: -527908049
136
+ hash: 245416335
136
137
  requirements: []
137
138
  rubyforge_project:
138
- rubygems_version: 1.8.24
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