dev 1.0.247 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/lib/dev/cmd/Setup.rb DELETED
@@ -1,28 +0,0 @@
1
- module Dev
2
- module Cmd
3
- class Setup < Array
4
-
5
- def refresh(dep_hash)
6
- puts_debug "Dev::Cmd::Setup.get_auto_setup_directives"
7
- strip_auto_entries
8
- # auto generate setup entry based on dep values
9
- dep_hash.each{ |k,v|
10
- if !v.nil? && v.kind_of?(Hash) #&& !set.has_key?(k)
11
- dep=Dev::Dep.new(v)
12
- commands = dep.setup_commands
13
- commands.each{|cmd|
14
- self << cmd if !self.include?(cmd)
15
- }
16
- end
17
- }
18
-
19
- Dir.glob("**/*.csproj").each { |f|
20
- Dir.mkdir "#{File.dirname(f)}/bin" unless File.exist?("#{File.dirname(f)}/bin")
21
- Dir.mkdir "#{File.dirname(f)}/bin/Debug" unless File.exist?("#{File.dirname(f)}/bin/Debug")
22
- Dir.mkdir "#{File.dirname(f)}/bin/Release" unless File.exist?("#{File.dirname(f)}/bin/Release")
23
- }
24
- end
25
-
26
- end # class Setup
27
- end # module Cmd
28
- end # module Dev
data/lib/dev/cmd/Test.rb DELETED
@@ -1,34 +0,0 @@
1
- module Dev
2
- module Cmd
3
- class Test < Array
4
- def refresh
5
- strip_auto_entries
6
-
7
- if(Dir.glob("**/*.spec").length > 0) #if DEV.has_key?(:file_count) && DEV[:file_count].has_key?(:spec) && DEV[:file_count][:spec] > 0
8
- rspec_cmd='rspec --pattern="**/*.spec"'
9
- self << "{:cmd=>'#{rspec_cmd}', :auto=>true}"
10
- end
11
-
12
- Dir.glob("*.gemspec").each { |gs|
13
- self << "{:cmd=>'gem install #{gs.gsub('.gemspec','')}-#{DEV[:version]}.gem', :capture_output=>true, :auto=>true}"
14
- }
15
-
16
- Dir.glob("**/*.{Test.csproj,Features.csproj}").each { |cs|
17
- platforms=Dev::MsBuild.extract_platforms(cs)
18
- platforms.each { |platform|
19
- proj_path=File.dirname(cs)
20
- dll_name="#{proj_path}/bin/#{platform}/Release/#{File.basename(cs,'.csproj')}.dll"
21
- if platform=="x86"
22
- self << "{:cmd=> '<paths,nunitx86> /xml:#{dll_name}.nunit-results.xml #{dll_name}', :auto=>true, :capture_output=>true, :capture_error=>true}" if RUBY_PLATFORM.include?("w32")
23
- self << "{:cmd-> 'mono <paths,nunitx86> #{dll_name}', :auto=>true}" if !RUBY_PLATFORM.include?("w32")
24
- else
25
- self << "{:cmd=> '#{DEV[:paths][:nunit]} /xml:#{dll_name}.nunit-results.xml #{dll_name}', :auto=>true, :capture_output=>true, :capture_error=>true}" if RUBY_PLATFORM.include?("w32")
26
- self << "{:cmd-> 'mono <paths,nunit> #{dll_name}', :auto=>true}" if !RUBY_PLATFORM.include?("w32")
27
- end
28
- }
29
- }
30
-
31
- end
32
- end # class Test
33
- end # module Cmd
34
- end # module Dev
@@ -1,10 +0,0 @@
1
- module Dev
2
- module Cmd
3
- class Update < Array
4
- def refresh
5
- strip_auto_entries
6
- self << "{:cmd=>'svn update',:auto=>true,:throw_on_error=>false}" if Scm.get_default_scm_type == "svn" #File.exists?(".svn")
7
- end
8
- end # class Compile
9
- end # module Cmd
10
- end # module Dev