six-updater 0.15.6 → 0.15.7
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +5 -5
- data/bin/six-updater +28 -0
- data/lib/six/updater.rb +1 -1
- metadata +67 -39
data/Rakefile
CHANGED
@@ -12,22 +12,22 @@ require 'rake/testtask'
|
|
12
12
|
|
13
13
|
spec = Gem::Specification.new do |s|
|
14
14
|
s.name = 'six-updater'
|
15
|
-
s.version = '0.15.
|
15
|
+
s.version = '0.15.7'
|
16
16
|
s.has_rdoc = true
|
17
17
|
s.extra_rdoc_files = ['README', 'LICENSE']
|
18
18
|
s.summary = 'Your summary here'
|
19
19
|
s.description = s.summary
|
20
20
|
s.author = 'Sickboy'
|
21
21
|
s.email = 'sb@dev-heaven.net'
|
22
|
-
s.add_dependency('
|
23
|
-
s.add_dependency('six-rsync', '>= 0.3.4')
|
22
|
+
s.add_dependency('win32-api', '= 1.4.6')
|
24
23
|
s.add_dependency('win32-process', '>= 0.6.0')
|
25
|
-
s.add_dependency('win32-api', '= 1.4.5')
|
26
24
|
s.add_dependency('win32-shortcut', '>= 0.2.3')
|
27
|
-
|
25
|
+
s.add_dependency('log4r', '>= 1.1.2')
|
26
|
+
s.add_dependency('six-rsync', '>= 0.3.4')
|
28
27
|
s.files = %w(LICENSE README Rakefile) + Dir.glob("{bin,spec}/**/*") + Dir.glob("lib/*/**/*.rb")
|
29
28
|
s.require_path = "lib"
|
30
29
|
s.bindir = "bin"
|
30
|
+
s.executables = ['six-updater']
|
31
31
|
end
|
32
32
|
|
33
33
|
Rake::GemPackageTask.new(spec) do |p|
|
data/bin/six-updater
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
#!/usr/bin/ruby
|
2
|
+
# encoding: utf-8
|
3
|
+
|
4
|
+
gem 'six-updater'
|
5
|
+
|
6
|
+
begin
|
7
|
+
load 'six/updater-app.rb'
|
8
|
+
rescue
|
9
|
+
err = "ERROR: #{$!}"
|
10
|
+
puts err
|
11
|
+
begin
|
12
|
+
require 'fileutils'
|
13
|
+
dpath = Dir.pwd
|
14
|
+
unless File.exists?(File.join(Dir.pwd, "legacy.txt"))
|
15
|
+
if ENV['APPDATA']
|
16
|
+
if ENV['APPDATA'].size > 0
|
17
|
+
dpath = File.join(ENV['APPDATA'], 'Six-Updater') if File.directory?(ENV['APPDATA'])
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
path = File.join(dpath, "logs")
|
22
|
+
FileUtils.mkdir_p path unless File.exists?(path)
|
23
|
+
File.open(File.join(path, "six-updater-error.log"), 'w') {|f| f.puts err}
|
24
|
+
rescue
|
25
|
+
puts "ERROR: #{$!}"
|
26
|
+
end
|
27
|
+
sleep 10
|
28
|
+
end
|
data/lib/six/updater.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: six-updater
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 15
|
8
|
+
- 7
|
9
|
+
version: 0.15.7
|
5
10
|
platform: ruby
|
6
11
|
authors:
|
7
12
|
- Sickboy
|
@@ -9,63 +14,83 @@ autorequire:
|
|
9
14
|
bindir: bin
|
10
15
|
cert_chain: []
|
11
16
|
|
12
|
-
date: 2010-
|
17
|
+
date: 2010-04-04 00:00:00 +02:00
|
13
18
|
default_executable:
|
14
19
|
dependencies:
|
15
20
|
- !ruby/object:Gem::Dependency
|
16
|
-
name:
|
17
|
-
|
18
|
-
|
19
|
-
version_requirements: !ruby/object:Gem::Requirement
|
21
|
+
name: win32-api
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
20
24
|
requirements:
|
21
|
-
- - "
|
25
|
+
- - "="
|
22
26
|
- !ruby/object:Gem::Version
|
23
|
-
|
24
|
-
|
25
|
-
-
|
26
|
-
|
27
|
+
segments:
|
28
|
+
- 1
|
29
|
+
- 4
|
30
|
+
- 6
|
31
|
+
version: 1.4.6
|
27
32
|
type: :runtime
|
28
|
-
|
29
|
-
version_requirements: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 0.3.4
|
34
|
-
version:
|
33
|
+
version_requirements: *id001
|
35
34
|
- !ruby/object:Gem::Dependency
|
36
35
|
name: win32-process
|
37
|
-
|
38
|
-
|
39
|
-
version_requirements: !ruby/object:Gem::Requirement
|
36
|
+
prerelease: false
|
37
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
40
38
|
requirements:
|
41
39
|
- - ">="
|
42
40
|
- !ruby/object:Gem::Version
|
41
|
+
segments:
|
42
|
+
- 0
|
43
|
+
- 6
|
44
|
+
- 0
|
43
45
|
version: 0.6.0
|
44
|
-
version:
|
45
|
-
- !ruby/object:Gem::Dependency
|
46
|
-
name: win32-api
|
47
46
|
type: :runtime
|
48
|
-
|
49
|
-
|
47
|
+
version_requirements: *id002
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
name: win32-shortcut
|
50
|
+
prerelease: false
|
51
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
50
52
|
requirements:
|
51
|
-
- - "
|
53
|
+
- - ">="
|
52
54
|
- !ruby/object:Gem::Version
|
53
|
-
|
54
|
-
|
55
|
+
segments:
|
56
|
+
- 0
|
57
|
+
- 2
|
58
|
+
- 3
|
59
|
+
version: 0.2.3
|
60
|
+
type: :runtime
|
61
|
+
version_requirements: *id003
|
55
62
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
63
|
+
name: log4r
|
64
|
+
prerelease: false
|
65
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - ">="
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
segments:
|
70
|
+
- 1
|
71
|
+
- 1
|
72
|
+
- 2
|
73
|
+
version: 1.1.2
|
57
74
|
type: :runtime
|
58
|
-
|
59
|
-
|
75
|
+
version_requirements: *id004
|
76
|
+
- !ruby/object:Gem::Dependency
|
77
|
+
name: six-rsync
|
78
|
+
prerelease: false
|
79
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
60
80
|
requirements:
|
61
81
|
- - ">="
|
62
82
|
- !ruby/object:Gem::Version
|
63
|
-
|
64
|
-
|
83
|
+
segments:
|
84
|
+
- 0
|
85
|
+
- 3
|
86
|
+
- 4
|
87
|
+
version: 0.3.4
|
88
|
+
type: :runtime
|
89
|
+
version_requirements: *id005
|
65
90
|
description: Your summary here
|
66
91
|
email: sb@dev-heaven.net
|
67
|
-
executables:
|
68
|
-
|
92
|
+
executables:
|
93
|
+
- six-updater
|
69
94
|
extensions: []
|
70
95
|
|
71
96
|
extra_rdoc_files:
|
@@ -75,6 +100,7 @@ files:
|
|
75
100
|
- LICENSE
|
76
101
|
- README
|
77
102
|
- Rakefile
|
103
|
+
- bin/six-updater
|
78
104
|
- lib/six/updater/gitrepo.rb
|
79
105
|
- lib/six/updater/mod.rb
|
80
106
|
- lib/six/updater/options.rb
|
@@ -94,18 +120,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
94
120
|
requirements:
|
95
121
|
- - ">="
|
96
122
|
- !ruby/object:Gem::Version
|
123
|
+
segments:
|
124
|
+
- 0
|
97
125
|
version: "0"
|
98
|
-
version:
|
99
126
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
100
127
|
requirements:
|
101
128
|
- - ">="
|
102
129
|
- !ruby/object:Gem::Version
|
130
|
+
segments:
|
131
|
+
- 0
|
103
132
|
version: "0"
|
104
|
-
version:
|
105
133
|
requirements: []
|
106
134
|
|
107
135
|
rubyforge_project:
|
108
|
-
rubygems_version: 1.3.
|
136
|
+
rubygems_version: 1.3.6
|
109
137
|
signing_key:
|
110
138
|
specification_version: 3
|
111
139
|
summary: Your summary here
|