rdiff-simple 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5c825887d493c7851822dffc3b6bfa3a43a154de
4
- data.tar.gz: 70a97690e5c7269f0ecd545c7f79cf83e1488208
3
+ metadata.gz: aa27efa43fb364a936e0b75dd3ce7bd01b3014c3
4
+ data.tar.gz: 271e401b093dd2f34d6b19d7b805a90410ba03ae
5
5
  SHA512:
6
- metadata.gz: e3fec5ba89ca40b6feb9410b3115f880e0fc2d7674c27dfbe8593aa122fb4e12d241dd31bb4d4fce5319f16b2976688e422deb33409385dc9d2a400edebd3b9a
7
- data.tar.gz: 6696fcfa338d681185b0abbac97e252137c8375bfd94453ccf4c8c7af7eb6bb2cb5eec9507271abc36d9267207c854574c0f707d49708c79e0e114ba7b9c0d63
6
+ metadata.gz: e9d2d05267877f3fa4f0e9f8db32e9bab91556b5c3a9bc539bbc20753c5beec597bfcb929fce03e2e0d0663688410d1e679ea6094dfee3f6478f535cc249e470
7
+ data.tar.gz: 620e43cf09efee1dadb5c96bb84a5752967ac5e818700f2dc155cc7bbf3df96f8cab2248cec10d36ec2d12221e42a96122f15b80185e64500e33de330c13d5d4
data/README.md CHANGED
@@ -18,34 +18,20 @@ A simple wrapper around rdiff-backup
18
18
  $ gem install rdiff-simple
19
19
  ```
20
20
 
21
- ## Quick Start
21
+ ## Usage
22
22
 
23
23
  In your file:
24
24
 
25
25
  ```ruby
26
26
  require 'rdiff_simple'
27
27
 
28
- backup = RdiffSimple::RdiffBackup.new
29
- backup.execute('/source', '/destination', :print_statistics, exclude: '/source/private')
28
+ rdiff = RdiffSimple::RdiffBackup.new
29
+ rdiff.backup('/source', '/destination', :print_statistics, exclude: '/source/private')
30
+ rdiff.verify('/destination')
30
31
  ```
31
32
 
32
- ## Usage
33
-
34
- Arguments Order is:
35
-
36
- - `source`
37
- - `destination`
38
- - `flag options like --exclude-other-filesystems`
39
- - `hash arguments like --exclude /usr/bin`
40
-
41
- All multi-word symbols should be converted to underscores: `--exclude-other-filesystems` becomes `:exclude_other_filesystems`.
42
-
43
- The `execute` method will return the exit code from rdiff-backup. In order to get the output from rdiff-backup pass in a [`Logger`][logger] to [`RdiffBackup.new`][new].
44
-
45
33
  ## License
46
34
 
47
35
  Released under the MIT License. See the [LICENSE][] file for further details.
48
36
 
49
37
  [license]: LICENSE.txt
50
- [logger]: http://www.ruby-doc.org/stdlib-2.0.0/libdoc/logger/rdoc/Logger.html
51
- [new]: http://rubydoc.info/github/ketiko/rdiff-simple/master/RdiffSimple/RdiffBackup#initialize-instance_method
data/Rakefile CHANGED
@@ -1,8 +1,7 @@
1
+ require 'bundler/setup'
1
2
  require 'bundler/gem_tasks'
2
3
  require 'rspec/core/rake_task'
3
4
 
4
- Bundler.require(:default)
5
-
6
5
  RSpec::Core::RakeTask.new(:spec)
7
6
 
8
7
  task :default => :spec
@@ -1,7 +1,3 @@
1
- require 'logger'
2
- require 'open3'
3
- require 'active_support/core_ext'
4
1
  require 'rdiff_simple/version'
5
- require 'rdiff_simple/options_parser'
6
2
  require 'rdiff_simple/rdiff_backup'
7
3
 
@@ -1,3 +1,6 @@
1
+ require 'active_support/core_ext/array/extract_options'
2
+ require 'active_support/core_ext/string/inflections'
3
+
1
4
  module RdiffSimple
2
5
  class OptionsParser
3
6
  def self.parse(*args)
@@ -1,3 +1,7 @@
1
+ require 'logger'
2
+ require 'open3'
3
+ require_relative 'options_parser'
4
+
1
5
  module RdiffSimple
2
6
  class RdiffBackup
3
7
  attr_accessor :logger
@@ -1,3 +1,3 @@
1
1
  module RdiffSimple
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdiff-simple
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Hansen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-06 00:00:00.000000000 Z
11
+ date: 2013-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport