dev 1.0.24 → 1.0.25
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/dev/Project.rb +21 -17
- metadata +7 -7
data/lib/dev/Project.rb
CHANGED
@@ -21,25 +21,27 @@ class Project < Hash
|
|
21
21
|
puts " no directives defined for #{string_name}" if self.get_value(string_name).length < 1
|
22
22
|
return if self.get_value(string_name).length < 1
|
23
23
|
|
24
|
-
self.get_value(string_name).each{ |c|
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
24
|
+
self.get_value(string_name).each{ |c| execute_cmd(c) }
|
25
|
+
end
|
26
|
+
|
27
|
+
def execute_cmd(c)
|
28
|
+
# expand the command here....
|
29
|
+
command=expand_command(c)
|
30
|
+
puts_debug "command: " + command
|
31
|
+
if c.include?('<%') && c.include?('%>')
|
32
|
+
#puts "Command: " + c
|
33
|
+
eval(c.gsub("<%","").gsub("%>",""))
|
34
|
+
else
|
35
|
+
# can the command be converted to a hash?
|
36
|
+
hash=Dev::Environment.s_to_hash(command)
|
37
|
+
call=nil
|
38
|
+
if(hash.nil?)
|
39
|
+
call=Dev::SystemCall.new(command)
|
31
40
|
else
|
32
|
-
|
33
|
-
hash=Dev::Environment.s_to_hash(command)
|
34
|
-
call=nil
|
35
|
-
if(hash.nil?)
|
36
|
-
call=Dev::SystemCall.new(command)
|
37
|
-
else
|
38
|
-
call=Dev::SystemCall.new(hash)
|
39
|
-
end
|
40
|
-
call.puts_summary
|
41
|
+
call=Dev::SystemCall.new(hash)
|
41
42
|
end
|
42
|
-
|
43
|
+
call.puts_summary
|
44
|
+
end
|
43
45
|
end
|
44
46
|
|
45
47
|
def method_missing( name, *args ); array_method(name); end
|
@@ -257,6 +259,8 @@ class Project < Hash
|
|
257
259
|
hash.set_value("msbuild","C:/WINDOWS/Microsoft.NET/Framework/v4.0.30319/MSBuild.exe")
|
258
260
|
nunit_version="2.5.10.11092"
|
259
261
|
hash.set_value("nunit","#{Dev::Environment.dev_root}/dep/ThirdParty/NUnit/#{nunit_version}/bin/net-2.0/nunit-console-x86.exe")
|
262
|
+
hash.set_value("regasm","C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/RegAsm.exe") if File.exists?("C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/RegAsm.exe")
|
263
|
+
hash.set_value("regasm","C:/Windows/Microsoft.NET/Framework/v4.0.30319/RegAsm.exe") if File.exists?("C:/Windows/Microsoft.NET/Framework/v4.0.30319/RegAsm.exe")
|
260
264
|
#end
|
261
265
|
end
|
262
266
|
value=hash if hash.length > 0
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dev
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.25
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-02-03 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
16
|
-
requirement: &
|
16
|
+
requirement: &26029704 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *26029704
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: semver
|
27
|
-
requirement: &
|
27
|
+
requirement: &26029368 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *26029368
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: countloc
|
38
|
-
requirement: &
|
38
|
+
requirement: &26029032 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *26029032
|
47
47
|
description: development tasks
|
48
48
|
email: lou.parslow@gmail.com
|
49
49
|
executables:
|