six-rsync 0.3.6 → 0.3.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/Rakefile +2 -2
  2. data/lib/six/rsync-app.rb +15 -11
  3. data/lib/six/rsync.rb +1 -1
  4. metadata +3 -3
data/Rakefile CHANGED
@@ -12,7 +12,7 @@ require 'rake/testtask'
12
12
 
13
13
  spec = Gem::Specification.new do |s|
14
14
  s.name = 'six-rsync'
15
- s.version = '0.3.6'
15
+ s.version = '0.3.7'
16
16
  s.has_rdoc = true
17
17
  s.extra_rdoc_files = ['README', 'LICENSE']
18
18
  s.summary = 'Your summary here'
@@ -20,7 +20,7 @@ spec = Gem::Specification.new do |s|
20
20
  s.author = 'Sickboy'
21
21
  s.email = 'sb@dev-heaven.net'
22
22
  # s.executables = ['your_executable_here']
23
- s.add_dependency('log4r', '= 1.1.2')
23
+ s.add_dependency('log4r', '>= 1.1.2')
24
24
  s.files = %w(LICENSE README Rakefile) + Dir.glob("{bin,spec}/**/*") + Dir.glob("lib/*/**/*.rb")
25
25
  s.require_path = "lib"
26
26
  s.bindir = "bin"
data/lib/six/rsync-app.rb CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  # TODO: Cleanup mess
4
4
 
5
- gem 'log4r', '= 1.1.2'
5
+ gem 'log4r', '>= 1.1.2'
6
6
  require 'log4r'
7
7
  require 'six/rsync'
8
8
  require 'six/rsync/options'
@@ -90,18 +90,22 @@ module Six
90
90
  end
91
91
  end
92
92
 
93
- parse_options
93
+ unless defined?(Ocra)
94
+ parse_options
94
95
 
95
- unless ARGV[0]
96
- logger.error "No folder argument given!"
97
- Process.exit
98
- end
96
+ if ARGV.empty?
97
+ logger.error "No folder argument given!"
98
+ Process.exit
99
+ end
99
100
 
100
101
 
101
- #app = App.new(ARGV[0])
102
- @@options.each do |option|
103
- App.send option, ARGV[0]
104
- end
105
- end
102
+ #app = App.new(ARGV[0])
103
+ ARGV.each do |arg|
104
+ @@options.each do |option|
105
+ App.send option, arg
106
+ end
107
+ end
108
+ end
109
+ end
106
110
  end
107
111
  end
data/lib/six/rsync.rb CHANGED
@@ -30,7 +30,7 @@ module Six
30
30
  end
31
31
 
32
32
  module Rsync
33
- VERSION = '0.3.6'
33
+ VERSION = '0.3.7'
34
34
  TOOLS_PATH = File.join(BASE_PATH, 'tools')
35
35
 
36
36
  FOLDER = /(.*)\/(.*)/
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: six-rsync
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 0.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sickboy
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-02-23 00:00:00 +01:00
12
+ date: 2010-03-02 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -18,7 +18,7 @@ dependencies:
18
18
  version_requirement:
19
19
  version_requirements: !ruby/object:Gem::Requirement
20
20
  requirements:
21
- - - "="
21
+ - - ">="
22
22
  - !ruby/object:Gem::Version
23
23
  version: 1.1.2
24
24
  version: