dev 1.0.247 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/LICENSE +4 -4
- data/lib/dev.rb +8 -60
- metadata +26 -69
- data/README +0 -103
- data/bin/devgem +0 -71
- data/lib/dev/Array.rb +0 -17
- data/lib/dev/BoostBuild.rb +0 -94
- data/lib/dev/Commands.rb +0 -185
- data/lib/dev/Database.rb +0 -134
- data/lib/dev/Dep.rb +0 -117
- data/lib/dev/Deps.rb +0 -44
- data/lib/dev/Environment.rb +0 -142
- data/lib/dev/Hash.rb +0 -92
- data/lib/dev/MsBuild.rb +0 -17
- data/lib/dev/Paths.rb +0 -50
- data/lib/dev/Project.rb +0 -175
- data/lib/dev/Scm.rb +0 -125
- data/lib/dev/Svn.rb +0 -55
- data/lib/dev/SystemCall.rb +0 -288
- data/lib/dev/Tasks.rb +0 -140
- data/lib/dev/cmd/Build.rb +0 -112
- data/lib/dev/cmd/Commit.rb +0 -19
- data/lib/dev/cmd/Compile.rb +0 -35
- data/lib/dev/cmd/DeepPull.rb +0 -56
- data/lib/dev/cmd/Info.rb +0 -16
- data/lib/dev/cmd/Pull.rb +0 -46
- data/lib/dev/cmd/Replace.rb +0 -69
- data/lib/dev/cmd/Setup.rb +0 -28
- data/lib/dev/cmd/Test.rb +0 -34
- data/lib/dev/cmd/Update.rb +0 -10
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
|
data/lib/dev/cmd/Update.rb
DELETED
@@ -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
|