six-updater-web 0.17.0 → 0.17.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +3 -2
- data/bin/six-get +1 -0
- data/bin/six-updater-web +1 -0
- data/bin/six-updater-web-rake +1 -0
- data/lib/six-updater-web/app/controllers/main_controller.rb +7 -0
- data/lib/six-updater-web/app/views/main/userconfig.haml +11 -0
- data/lib/six-updater-web/common.rb +1 -1
- data/lib/six-updater-web/config/boot.rb +2 -0
- data/lib/six-updater-web/config/environment.rb +1 -1
- data/lib/six-updater-web/config/six-updater-web.rb +1 -1
- data/lib/six-updater-web/init.rb +11 -3
- metadata +31 -15
data/Rakefile
CHANGED
@@ -7,7 +7,7 @@ require 'rake/testtask'
|
|
7
7
|
|
8
8
|
spec = Gem::Specification.new do |s|
|
9
9
|
s.name = 'six-updater-web'
|
10
|
-
s.version = '0.17.
|
10
|
+
s.version = '0.17.1'
|
11
11
|
s.has_rdoc = false
|
12
12
|
#s.extra_rdoc_files = ['README', 'LICENSE']
|
13
13
|
s.summary = 'Your summary here'
|
@@ -18,10 +18,11 @@ spec = Gem::Specification.new do |s|
|
|
18
18
|
s.require_path = "lib"
|
19
19
|
s.bindir = "bin"
|
20
20
|
s.executables = ['six-updater-web', 'six-updater-web-rake', 'six-get']
|
21
|
+
s.add_dependency('faster_require', '>= 0.5.2')
|
21
22
|
s.add_dependency('uuidtools', '>= 2.0.0')
|
22
23
|
s.add_dependency('six-updater', '>= 0.17.0')
|
23
24
|
s.add_dependency('rails', '2.3.8')
|
24
|
-
s.add_dependency('haml', '3.0.
|
25
|
+
s.add_dependency('haml', '3.0.10')
|
25
26
|
s.add_dependency('RedCloth', '>= 4.2.2')
|
26
27
|
end
|
27
28
|
|
data/bin/six-get
CHANGED
data/bin/six-updater-web
CHANGED
data/bin/six-updater-web-rake
CHANGED
@@ -1,4 +1,11 @@
|
|
1
1
|
class MainController < ApplicationController
|
2
|
+
def userconfig
|
3
|
+
path = File.join(Appsetting.new.real_path, "Userconfig").gsub("\\", "/")
|
4
|
+
@userconfigs = Dir.chdir(path) { Dir["**/*"].reject {|e| File.directory?(e) || File.dirname(e)[/_[0-9]*$/]} }
|
5
|
+
cfg = params["options"] && params["options"]["userconfig"] ? params["options"]["userconfig"] : @userconfigs[0]
|
6
|
+
@userconfig = File.open(File.join(path, cfg)) {|a| a.readlines }
|
7
|
+
end
|
8
|
+
|
2
9
|
def index
|
3
10
|
@msg = []
|
4
11
|
@skip, @install, @check, @disabled = [], [], [], []
|
@@ -0,0 +1,11 @@
|
|
1
|
+
- form_tag do
|
2
|
+
= select( "options", "userconfig", @userconfigs, {:selected => "#{params["options"]["userconfig"] if params["options"]}"})
|
3
|
+
= submit_tag "Change"
|
4
|
+
|
5
|
+
- form_tag do
|
6
|
+
%textarea{:name => "options[content]", :cols => "120", :rows => "50"}
|
7
|
+
= @userconfig.map{|a| Iconv.new("utf-8//IGNORE//TRANSLIT", "utf-8").iconv(a + ' ')[0..-2]}.join("")
|
8
|
+
= submit_tag "Save"
|
9
|
+
|
10
|
+
|
11
|
+
|
@@ -1,6 +1,8 @@
|
|
1
1
|
# Don't change this file!
|
2
2
|
# Configure your app in config/environment.rb and config/environments/*.rb
|
3
3
|
|
4
|
+
begin; require 'faster_require'; rescue LoadError; end if RUBY_PLATFORM =~ /cygwin|mingw|win32/
|
5
|
+
|
4
6
|
RAILS_ROOT = "#{File.dirname(__FILE__)}/.." unless defined?(RAILS_ROOT)
|
5
7
|
|
6
8
|
module Rails
|
@@ -48,7 +48,7 @@ Rails::Initializer.run do |config|
|
|
48
48
|
# Specify gems that this application depends on and have them installed with rake gems:install
|
49
49
|
# config.gem "hpricot", :version => '0.6', :source => "http://code.whytheluckystiff.net"
|
50
50
|
config.gem "sqlite3-ruby", :lib => "sqlite3"
|
51
|
-
config.gem "haml", :version => "3.0.
|
51
|
+
config.gem "haml", :version => "3.0.10"
|
52
52
|
|
53
53
|
# config.gem "aws-s3", :lib => "aws/s3"
|
54
54
|
|
data/lib/six-updater-web/init.rb
CHANGED
@@ -74,10 +74,18 @@ unless done
|
|
74
74
|
puts "Something went wrong processing plugin_schema_migrations. #{e.class} #{e.message}: #{e.backtrace.join("\n")}"
|
75
75
|
end
|
76
76
|
=end
|
77
|
-
|
78
|
-
|
79
|
-
|
77
|
+
ver = File.join(SixUpdaterWeb::DATA_PATH, "version-web")
|
78
|
+
version = File.exists?(ver) ? File.open(ver) {|f| f.read } : nil
|
79
|
+
version.chomp! if version
|
80
|
+
if SixUpdaterWeb::VERSION != version
|
81
|
+
puts "Checking for required Database migrations..."
|
82
|
+
Dir.chdir(File.dirname(__FILE__)) do
|
83
|
+
system "ruby -rubygems \"_rake.rb\" db:migrate"
|
84
|
+
end
|
85
|
+
else
|
86
|
+
puts "Skipping database migrations, current version equal to previous"
|
80
87
|
end
|
88
|
+
File.open(ver, 'w') {|f| f.puts SixUpdaterWeb::VERSION }
|
81
89
|
end
|
82
90
|
|
83
91
|
# Check for required data updates?
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 17
|
8
|
-
-
|
9
|
-
version: 0.17.
|
8
|
+
- 1
|
9
|
+
version: 0.17.1
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Sickboy
|
@@ -14,13 +14,28 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-06-
|
17
|
+
date: 2010-06-09 00:00:00 +02:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
|
-
name:
|
21
|
+
name: faster_require
|
22
22
|
prerelease: false
|
23
23
|
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
25
|
+
requirements:
|
26
|
+
- - ">="
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
segments:
|
29
|
+
- 0
|
30
|
+
- 5
|
31
|
+
- 2
|
32
|
+
version: 0.5.2
|
33
|
+
type: :runtime
|
34
|
+
version_requirements: *id001
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: uuidtools
|
37
|
+
prerelease: false
|
38
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
24
39
|
none: false
|
25
40
|
requirements:
|
26
41
|
- - ">="
|
@@ -31,11 +46,11 @@ dependencies:
|
|
31
46
|
- 0
|
32
47
|
version: 2.0.0
|
33
48
|
type: :runtime
|
34
|
-
version_requirements: *
|
49
|
+
version_requirements: *id002
|
35
50
|
- !ruby/object:Gem::Dependency
|
36
51
|
name: six-updater
|
37
52
|
prerelease: false
|
38
|
-
requirement: &
|
53
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
39
54
|
none: false
|
40
55
|
requirements:
|
41
56
|
- - ">="
|
@@ -46,11 +61,11 @@ dependencies:
|
|
46
61
|
- 0
|
47
62
|
version: 0.17.0
|
48
63
|
type: :runtime
|
49
|
-
version_requirements: *
|
64
|
+
version_requirements: *id003
|
50
65
|
- !ruby/object:Gem::Dependency
|
51
66
|
name: rails
|
52
67
|
prerelease: false
|
53
|
-
requirement: &
|
68
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
54
69
|
none: false
|
55
70
|
requirements:
|
56
71
|
- - "="
|
@@ -61,11 +76,11 @@ dependencies:
|
|
61
76
|
- 8
|
62
77
|
version: 2.3.8
|
63
78
|
type: :runtime
|
64
|
-
version_requirements: *
|
79
|
+
version_requirements: *id004
|
65
80
|
- !ruby/object:Gem::Dependency
|
66
81
|
name: haml
|
67
82
|
prerelease: false
|
68
|
-
requirement: &
|
83
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
69
84
|
none: false
|
70
85
|
requirements:
|
71
86
|
- - "="
|
@@ -73,14 +88,14 @@ dependencies:
|
|
73
88
|
segments:
|
74
89
|
- 3
|
75
90
|
- 0
|
76
|
-
-
|
77
|
-
version: 3.0.
|
91
|
+
- 10
|
92
|
+
version: 3.0.10
|
78
93
|
type: :runtime
|
79
|
-
version_requirements: *
|
94
|
+
version_requirements: *id005
|
80
95
|
- !ruby/object:Gem::Dependency
|
81
96
|
name: RedCloth
|
82
97
|
prerelease: false
|
83
|
-
requirement: &
|
98
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
84
99
|
none: false
|
85
100
|
requirements:
|
86
101
|
- - ">="
|
@@ -91,7 +106,7 @@ dependencies:
|
|
91
106
|
- 2
|
92
107
|
version: 4.2.2
|
93
108
|
type: :runtime
|
94
|
-
version_requirements: *
|
109
|
+
version_requirements: *id006
|
95
110
|
description: Your summary here
|
96
111
|
email: sb@dev-heaven.net
|
97
112
|
executables:
|
@@ -165,6 +180,7 @@ files:
|
|
165
180
|
- lib/six-updater-web/app/views/main/reset.erb
|
166
181
|
- lib/six-updater-web/app/views/main/reset_act.haml
|
167
182
|
- lib/six-updater-web/app/views/main/test.rjs
|
183
|
+
- lib/six-updater-web/app/views/main/userconfig.haml
|
168
184
|
- lib/six-updater-web/app/views/main/_check.haml
|
169
185
|
- lib/six-updater-web/app/views/main/_test.haml
|
170
186
|
- lib/six-updater-web/app/views/mods/imp.haml
|