uppercutbuild 0.9.0.328 → 0.9.0.331

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.
@@ -0,0 +1,34 @@
1
+ require 'FileUtils'
2
+ require 'thor'
3
+
4
+ module Uppercutbuild
5
+ class CLI < Thor
6
+ include Thor::Actions
7
+
8
+ def initialize(*)
9
+ super
10
+
11
+ @proj = Uppercutbuild::Project.new
12
+ end
13
+
14
+ desc "install", "installs uppercut build in the current directory"
15
+ method_options :location => :string
16
+
17
+ def install()
18
+ #@proj.ensure_default_config
19
+
20
+ loc = @proj.get_location
21
+ cl = options['location']
22
+ loc = cl unless cl.nil?
23
+
24
+ names.each do |n|
25
+ Uppercutbuild::Loader.load n, loc
26
+ end
27
+ end
28
+
29
+ def self.source_root
30
+ File.dirname(__FILE__)
31
+ end
32
+
33
+ end
34
+ end
@@ -0,0 +1,37 @@
1
+ require 'yaml'
2
+ require 'thor'
3
+ require 'FileUtils'
4
+
5
+ module Uppercutbuild
6
+ #class Config < Thor::Group
7
+ #include Thor::Actions
8
+
9
+ #@config_file = ".nu/options.yaml"
10
+
11
+ #def self.get_config
12
+ # unless File.exists? @config_file
13
+ # FileUtils.touch @config_file
14
+ # append_file @config_file, YAML::dump({})
15
+ # end
16
+ # cd = YAML.load_file @config_file
17
+ # cd = ask_about_libdir cd
18
+ #
19
+ # save_file cd
20
+ # cd
21
+ #end
22
+
23
+ #def self.ask_about_libdir(config)
24
+ # if config['lib'].nil?
25
+ # loc = ask "Where do you want me to copy things to?"
26
+ # config = {'lib'=>loc}
27
+ # end
28
+ # config
29
+ #end
30
+
31
+ #def self.save_file(config)
32
+ # File.open(@config_file, 'w') do |out|
33
+ # YAML.dump( config, out)
34
+ # end
35
+ #end
36
+ #end
37
+ end
@@ -0,0 +1,64 @@
1
+ require 'rubygems'
2
+
3
+ module Uppercutbuild
4
+ class Loader
5
+
6
+ def self.load()
7
+ @gem_to_copy = 'uppercutbuild'
8
+
9
+ start_here = get_copy_from()
10
+ puts "Copy From: #{start_here}"
11
+
12
+ to = get_copy_to()
13
+ puts "Copy To: #{to}"
14
+
15
+ FileUtils.copy_entry start_here, to
16
+ end
17
+
18
+ def self.get_libdir(name)
19
+ g = get_gemspec name
20
+ l = Gem.searcher.lib_dirs_for g
21
+ #scrub and return?
22
+ l
23
+ end
24
+
25
+ def self.get_gemspec(name)
26
+ gems = Gem.source_index.find_name name
27
+ return gems.last if gems.length > 0
28
+ end
29
+
30
+ def self.get_copy_from
31
+ libdir = get_libdir @gem_to_copy
32
+ #puts File.expand_path libdir
33
+ #try Dir.glob("{bin,lib}/**/*")
34
+ libdir.gsub '{lib}','lib'
35
+ end
36
+
37
+ def self.get_files
38
+ spec = get_gemspec @gem_to_copy
39
+ files = spec.lib_files #get full path
40
+ files
41
+ end
42
+
43
+ def self.get_copy_to
44
+ spec = get_gemspec @gem_to_copy
45
+ #to be used in copying
46
+ name = spec.full_name
47
+ to = Dir.pwd
48
+ to
49
+ end
50
+
51
+ def self.process_dependencies
52
+ spec = get_gemspec @gem_to_copy
53
+ spec.dependencies.each do |d|
54
+ if Gem.available? d.name
55
+ puts "loading #{d.name}"
56
+ load d.name, @location
57
+ else
58
+ puts "#{d.name} is not installed locally"
59
+ puts "please run 'gem install #{d.name}"
60
+ end
61
+ end
62
+ end
63
+ end
64
+ end
@@ -0,0 +1,31 @@
1
+ module Uppercutbuild
2
+ class Project
3
+
4
+ def initialize
5
+ # @config_file = ".uc/options.yaml"
6
+ end
7
+
8
+ # def ensure_default_config
9
+ # if File.exist? @config_file
10
+ # return
11
+ # end
12
+ # add_file @config_file
13
+ # content = YAML::dump( {'lib'=>'lib'} )
14
+ # append_file @config_file, content
15
+ # end
16
+
17
+ def get_location
18
+ # content = YAML.load_file @config_file
19
+ # content['lib']
20
+ ""
21
+ end
22
+
23
+ #def set_location(name)
24
+ # File.delete @config_file if File.exist? @config_file
25
+
26
+ # content = YAML::dump( { 'lib' => name })
27
+
28
+ # File.open(@config_file, 'w') {|f| f.write(content) }
29
+ # end
30
+ end
31
+ end
data/bin/uppercutbuild ADDED
@@ -0,0 +1,10 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'uppercutbuild'
4
+
5
+ begin
6
+ Uppercutbuild::CLI.start
7
+ rescue Interrupt
8
+ puts 'quitting'
9
+ exit 1
10
+ end
@@ -0,0 +1,6 @@
1
+ require 'uppercut/cli'
2
+ require 'uppercut/loader'
3
+ require 'uppercut/config'
4
+ require 'uppercut/project'
5
+
6
+ #other fancy stuff
@@ -1,5 +1,5 @@
1
1
  <?xml version="1.0" ?>
2
2
  <uppercut>
3
- <version>0.9.0.328</version>
3
+ <version>0.9.0.331</version>
4
4
  </uppercut>
5
5
 
Binary file
Binary file
@@ -0,0 +1,24 @@
1
+ version = File.read(File.expand_path("../VERSION",__FILE__)).strip
2
+
3
+ Gem::Specification.new do |spec|
4
+ spec.platform = Gem::Platform::RUBY
5
+ spec.name = '__RENAME__'
6
+ spec.version = version
7
+ spec.files = Dir['lib/**/*'] + Dir['docs/**/*'] #+ Dir['bin/**/*']
8
+ # spec.bindir = 'bin'
9
+ # spec.executables << '__REPLACE__'
10
+
11
+ # spec.add_dependency('log4net','= 1.2.10')
12
+
13
+ spec.summary = '__REPLACE__'
14
+ spec.description = <<-EOF
15
+ __REPLACE__
16
+
17
+ EOF
18
+
19
+ spec.author = '__REPLACE__'
20
+ # spec.authors = ['__REPLACE__','__REPLACE__']
21
+ spec.email = '__REPLACE__'
22
+ spec.homepage = '__REPLACE__'
23
+ spec.rubyforge_project = '__RENAME__'
24
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uppercutbuild
3
3
  version: !ruby/object:Gem::Version
4
- hash: 663
4
+ hash: 657
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
9
  - 0
10
- - 328
11
- version: 0.9.0.328
10
+ - 331
11
+ version: 0.9.0.331
12
12
  platform: ruby
13
13
  authors:
14
14
  - Rob "FerventCoder" Reynolds
@@ -16,14 +16,14 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-07-16 00:00:00 -05:00
19
+ date: 2010-07-18 00:00:00 -05:00
20
20
  default_executable:
21
21
  dependencies: []
22
22
 
23
23
  description: UppercuT is THE conventional build for .NET
24
24
  email: chucknorrisframework@googlegroups.com
25
- executables: []
26
-
25
+ executables:
26
+ - uppercutbuild
27
27
  extensions: []
28
28
 
29
29
  extra_rdoc_files: []
@@ -71,7 +71,7 @@ files:
71
71
  - lib/deployment/templates/AppDeployment.bat
72
72
  - lib/deployment/templates/DBDeployment.bat
73
73
  - lib/deployment/templates/DBDeployment.RESTORE.bat
74
- - lib/gems/__RENAME__.gemspec.remove
74
+ - lib/gems/__RENAME__.gemspec.rename
75
75
  - lib/lib/MbUnit2/MbUnit.AddIn.dll
76
76
  - lib/lib/MbUnit2/MbUnit.Cons.exe
77
77
  - lib/lib/MbUnit2/MbUnit.Cons.exe.config
@@ -340,6 +340,12 @@ files:
340
340
  - docs/UppercuTPresentation.pptx
341
341
  - docs/UppercuTSteps.pptx
342
342
  - docs/VersionBuilder.doc
343
+ - bin/uppercut/cli.rb
344
+ - bin/uppercut/config.rb
345
+ - bin/uppercut/loader.rb
346
+ - bin/uppercut/project.rb
347
+ - bin/uppercutbuild
348
+ - bin/uppercutbuild.rb
343
349
  has_rdoc: true
344
350
  homepage: http://projectuppercut.org
345
351
  licenses: []
@@ -1,18 +0,0 @@
1
- version = File.read(File.expand_path("../VERSION",__FILE__)).strip
2
-
3
- Gem::Specification.new do |s|
4
- s.platform = Gem::Platform::RUBY
5
- s.name = '__RENAME__'
6
- s.version = version
7
- s.files = Dir['lib/**/*'] + Dir['docs/**/*'] #+ Dir['bin/**/*']
8
- # s.bindir = 'bin'
9
- # s.executables << '__REPLACE__'
10
-
11
- s.summary = '__REPLACE__'
12
- s.description = '__REPLACE__'
13
-
14
- s.author = '__REPLACE__'
15
- s.email = '__REPLACE__'
16
- s.homepage = '__REPLACE__'
17
- s.rubyforge_project = '__RENAME__'
18
- end