netzke_config 0.2.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/netzke_config.rb +19 -10
- data/netzke_config.gemspec +2 -2
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.3.0
|
data/lib/netzke_config.rb
CHANGED
@@ -32,7 +32,8 @@ class NetzkeConfig < Thor::Group
|
|
32
32
|
|
33
33
|
GITHUB = 'http://github.com'
|
34
34
|
|
35
|
-
def main
|
35
|
+
def main
|
36
|
+
@application_dir = Dir.pwd
|
36
37
|
load_config_file
|
37
38
|
setup_defaults
|
38
39
|
define_modules
|
@@ -42,7 +43,7 @@ class NetzkeConfig < Thor::Group
|
|
42
43
|
end
|
43
44
|
|
44
45
|
protected
|
45
|
-
attr_accessor :modules_config, :module_specifications, :default_module_specs
|
46
|
+
attr_accessor :modules_config, :module_specifications, :default_module_specs, :application_dir
|
46
47
|
|
47
48
|
def load_config_file
|
48
49
|
@default_module_specs = ""
|
@@ -165,10 +166,15 @@ class NetzkeConfig < Thor::Group
|
|
165
166
|
end
|
166
167
|
|
167
168
|
def config_netzke_plugin module_name
|
168
|
-
inside
|
169
|
-
|
170
|
-
|
171
|
-
|
169
|
+
inside application_dir do
|
170
|
+
inside 'vendor/plugins' do
|
171
|
+
module_src = local_module_src(module_name)
|
172
|
+
if !force_links? && File.exist?(module_name)
|
173
|
+
say "File or link vendor/plugins/#{module_name} already exists", :yellow
|
174
|
+
end
|
175
|
+
run "rm -rf #{module_name}" if force_links?
|
176
|
+
run "ln -s #{module_src} #{module_name}"
|
177
|
+
end
|
172
178
|
end
|
173
179
|
end
|
174
180
|
|
@@ -187,9 +193,12 @@ class NetzkeConfig < Thor::Group
|
|
187
193
|
return
|
188
194
|
end
|
189
195
|
end
|
190
|
-
|
191
|
-
|
192
|
-
|
196
|
+
|
197
|
+
inside application_dir do
|
198
|
+
inside 'public' do
|
199
|
+
run "rm -f extjs" if force_links?
|
200
|
+
run "ln -s #{extjs_dir} extjs"
|
201
|
+
end
|
193
202
|
end
|
194
203
|
end
|
195
204
|
|
@@ -227,7 +236,7 @@ class NetzkeConfig < Thor::Group
|
|
227
236
|
end
|
228
237
|
|
229
238
|
def local_module_src module_name
|
230
|
-
"#{
|
239
|
+
"#{location}/#{module_name}"
|
231
240
|
end
|
232
241
|
|
233
242
|
end
|
data/netzke_config.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{netzke_config}
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.3.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Kristian Mandrup"]
|
12
|
-
s.date = %q{2010-06-
|
12
|
+
s.date = %q{2010-06-25}
|
13
13
|
s.description = %q{Configure Netzke modules as plugins for a Netzke app and link ExtJS library to boot}
|
14
14
|
s.email = %q{kmandrup@gmail.com}
|
15
15
|
s.executables = ["netzke_config", "netzke_config.bat"]
|
metadata
CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
6
|
- 0
|
7
|
-
-
|
8
|
-
-
|
9
|
-
version: 0.
|
7
|
+
- 3
|
8
|
+
- 0
|
9
|
+
version: 0.3.0
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Kristian Mandrup
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-06-
|
17
|
+
date: 2010-06-25 00:00:00 +02:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|