svnauto 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -28,6 +28,7 @@ module SC
28
28
  ################################################################################
29
29
  set(:name, [:checkout, :co])
30
30
  set(:description, "Checkout a project from the repository")
31
+ set(:args_max, 0)
31
32
 
32
33
  option('-r', '--release VER', 'Checkout a release instead of the trunk') do |val, opts|
33
34
  opts[:co_release] = Version.new(val)
@@ -28,6 +28,7 @@ module SC
28
28
  ################################################################################
29
29
  set(:name, :config)
30
30
  set(:description, "Manage sc Configuration")
31
+ set(:args_max, 0)
31
32
  set(:without_repository)
32
33
  set(:without_project)
33
34
 
@@ -48,7 +48,7 @@ module SC
48
48
 
49
49
  exit unless Constants::TERMINAL.agree("Create project " +
50
50
  Constants::TERMINAL.color(project.name, :green) + " in " +
51
- Constants::TERMINAL.color(project.repository, :blue) + "? ")
51
+ Constants::TERMINAL.color(project.repository.to_s, :blue) + "? ")
52
52
  end
53
53
 
54
54
  if project.name != args.first
@@ -27,6 +27,7 @@ module SC
27
27
  class Info < Command
28
28
  set(:name, :info)
29
29
  set(:description, "Show information about a project")
30
+ set(:args_max, 0)
30
31
 
31
32
  def run (project, args)
32
33
  if URI.parse(project.repository.url).scheme != 'file'
data/lib/sc/constants.rb CHANGED
@@ -26,7 +26,7 @@ module SC
26
26
  module Constants
27
27
  ################################################################################
28
28
  # The version number for this copy of SC
29
- VERSION = '1.0.0'
29
+ VERSION = '1.0.1'
30
30
 
31
31
  ################################################################################
32
32
  # What to call myself
data/test/test_create.rb CHANGED
@@ -17,4 +17,13 @@ class TestCreate < Test::Unit::TestCase
17
17
  end
18
18
  end
19
19
 
20
+ ################################################################################
21
+ # Force create a new project outside of setup
22
+ def test_create
23
+ interactive do
24
+ run_sc(%W(create myproject))
25
+ assert(File.exist?(File.join(@sandbox, 'myproject-trunk')))
26
+ end
27
+ end
28
+
20
29
  end
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: svnauto
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.0.0
7
- date: 2006-11-01 00:00:00 -07:00
6
+ version: 1.0.1
7
+ date: 2006-11-06 00:00:00 -07:00
8
8
  summary: Wrapper around svn for automating complex tasks
9
9
  require_paths:
10
10
  - lib