svn_project 0.6.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
data/Manifest CHANGED
@@ -1,6 +1,7 @@
1
- Manifest
2
1
  README
3
2
  Rakefile
3
+ SPEC.txt
4
+ TODO
4
5
  lib/svn/project.rb
5
6
  lib/svn/rake/svntask.rb
6
7
  lib/svn/release_tag.rb
@@ -10,3 +11,5 @@ spec/svn_project_spec.rb
10
11
  spec/svn_release_tag_spec.rb
11
12
  spec/svn_spec.rb
12
13
  tasks/svn_project.rake
14
+ version.yml
15
+ Manifest
data/README CHANGED
@@ -1,20 +1,26 @@
1
1
  = SVN::Project
2
2
 
3
+
4
+ == Description
3
5
  Class encapsulating methods for various svn:tags Rake tasks.
4
6
 
7
+ == Installation
8
+ sudo gem install svn_project
9
+
10
+ == Configuration
5
11
  To use these methods, add the below directives to your rakefile. This library assumes
6
12
  that you are working with a project that has already been checked into svn.
7
13
 
8
14
 
9
- require 'svn/rake/svntask'
10
- Rake::SVN::ProjectTasks.new() do |s|
11
- s.method = "http"
12
- s.username = "jeff"
13
- s.project_url = "/one/two/three/go"
14
- s.svn_cmd = "/path/to/svn" # optional
15
- s.always_update_current = true # optional (maintains a tag 'current' pointing to your most numerically recent tag)
16
- s.current_name = "some_name" # options (uses 'some_name' as the name of your 'current' tag)
17
- end
15
+ require 'svn/rake/svntask'
16
+ Rake::SVN::ProjectTasks.new() do |s|
17
+ s.method = "http"
18
+ s.username = "jeff"
19
+ s.project_url = "/one/two/three/go"
20
+ s.svn_cmd = "/path/to/svn" # optional
21
+ s.always_update_current = true # optional (maintains a tag 'current' pointing to your most numerically recent tag)
22
+ s.current_name = "some_name" # options (uses 'some_name' as the name of your 'current' tag)
23
+ end
18
24
 
19
25
 
20
26
  You can now use the following tasks in your svn project:
@@ -75,5 +81,4 @@ When minor or major are incremented, all numbers to the right are set to "0"
75
81
 
76
82
  The version after 1.0.9 is 1.0.10
77
83
 
78
- The task svn:tags:ls sorts release tags correctly.
79
-
84
+ The task svn:tags:ls sorts release tags correctly.
data/Rakefile CHANGED
@@ -2,13 +2,13 @@ require 'rubygems'
2
2
  require 'rake'
3
3
  require 'echoe'
4
4
 
5
- Echoe.new('svn_project', '0.6.1') do |p|
5
+ Echoe.new('svn_project', '0.6.2') do |p|
6
6
  p.description = "Adds rake tasks for viewing/creating svn tags"
7
- p.url = "http://http://svnproj.rubyforge.org"
7
+ p.url = "http://http://ucbrb.rubyforge.org"
8
8
  p.author = "Steven Hansen"
9
9
  p.email = "runner@berkeley.edu"
10
10
  p.ignore_pattern = ["svn_user.yml", "svn_project.rake"]
11
- p.project = "svnproj"
11
+ p.project = "ucbrb"
12
12
  end
13
13
 
14
- Dir["#{File.dirname(__FILE__)}/tasks/*.rake"].sort.each { |ext| load ext }
14
+ Dir["#{File.dirname(__FILE__)}/tasks/*.rake"].sort.each { |ext| load ext }
data/SPEC.txt ADDED
@@ -0,0 +1,40 @@
1
+
2
+ SVN::Project Integration Test
3
+ - should list the ReleaseTags in asc order
4
+ - should create the requested tag
5
+ - should by default not create a 'current' tag
6
+ - should create a 'current' tag if 'always_update_current' is true
7
+
8
+ SVN::Project
9
+ - will accept a block for setting the connection parameters
10
+ - will raise an MissingConnectionParamException if a connection parameter is not specified in the block
11
+ - list_all_tags should list 'all' tags in the tags_url directory
12
+ - list_release_tags should only show release_tags
13
+ - should determine the next 'major' tag
14
+ - should determine the next 'minor' tag
15
+ - should determine the next 'fix' tag
16
+ - should determin the 'current' tag
17
+ - should allow the svn_cmd to be set from the block
18
+ - should return a dummy tag--rel-0.0.0--if no tags exist
19
+
20
+ SVN::ReleaseTag
21
+ - should recognize a valid ReleaseTag name
22
+ - should raise and exception if the name of the ReleaseTag is invalid
23
+ - should set the 'major' component of the release_tag
24
+ - should set the 'minor' component of the release_tag
25
+ - should set the 'fix' component of the release_tag
26
+ - should determine if one release tag is 'greater than', 'less than' or 'equal' to anothe release tag
27
+ - should sort an array of ReleaseTags
28
+ - should determine the next 'major' component
29
+ - should determine the next 'minor' component
30
+ - should determine the next 'fix' componenet
31
+ - should determine the next 'major' release tag
32
+ - should determine the next 'minor' release tag
33
+ - should determine the next 'fix' release tag
34
+
35
+ SVN
36
+ - should determine if we are using a windows environment or a unix environment
37
+
38
+ Finished in 20.42877 seconds
39
+
40
+ 28 examples, 0 failures
data/TODO ADDED
@@ -0,0 +1,3 @@
1
+
2
+ * add ability to update tag from a given tag: [ rake svn:tags:create_fix VERSION=1.2.5 ]
3
+
data/lib/svn/project.rb CHANGED
@@ -136,7 +136,6 @@ module SVN
136
136
 
137
137
  def try_auto_configure!
138
138
  url = `#{SVN.svn_cmd} info`.split("\n")[1].split(" ")[1]
139
- # extremely inefficient regular expression!
140
139
  /(\S+):\/\/(\S+)@(\S+)\/trunk\S*/ =~ url
141
140
 
142
141
  self.method = $1
data/svn_project.gemspec CHANGED
@@ -2,20 +2,20 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{svn_project}
5
- s.version = "0.6.1"
5
+ s.version = "0.6.2"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Steven Hansen"]
9
- s.date = %q{2008-12-10}
9
+ s.date = %q{2008-12-12}
10
10
  s.description = %q{Adds rake tasks for viewing/creating svn tags}
11
11
  s.email = %q{runner@berkeley.edu}
12
- s.extra_rdoc_files = ["README", "lib/svn/project.rb", "lib/svn/rake/svntask.rb", "lib/svn/release_tag.rb", "lib/svn.rb", "tasks/svn_project.rake"]
13
- s.files = ["Manifest", "README", "Rakefile", "lib/svn/project.rb", "lib/svn/rake/svntask.rb", "lib/svn/release_tag.rb", "lib/svn.rb", "spec/svn_integration_spec.rb", "spec/svn_project_spec.rb", "spec/svn_release_tag_spec.rb", "spec/svn_spec.rb", "tasks/svn_project.rake", "svn_project.gemspec"]
12
+ s.extra_rdoc_files = ["README", "TODO", "lib/svn/project.rb", "lib/svn/rake/svntask.rb", "lib/svn/release_tag.rb", "lib/svn.rb", "tasks/svn_project.rake"]
13
+ s.files = ["README", "Rakefile", "SPEC.txt", "TODO", "lib/svn/project.rb", "lib/svn/rake/svntask.rb", "lib/svn/release_tag.rb", "lib/svn.rb", "spec/svn_integration_spec.rb", "spec/svn_project_spec.rb", "spec/svn_release_tag_spec.rb", "spec/svn_spec.rb", "tasks/svn_project.rake", "version.yml", "Manifest", "svn_project.gemspec"]
14
14
  s.has_rdoc = true
15
- s.homepage = %q{http://http://svnproj.rubyforge.org}
15
+ s.homepage = %q{http://http://ucbrb.rubyforge.org}
16
16
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Svn_project", "--main", "README"]
17
17
  s.require_paths = ["lib"]
18
- s.rubyforge_project = %q{svnproj}
18
+ s.rubyforge_project = %q{ucbrb}
19
19
  s.rubygems_version = %q{1.3.0}
20
20
  s.summary = %q{Adds rake tasks for viewing/creating svn tags}
21
21
 
@@ -2,9 +2,7 @@ require 'svn/rake/svntask'
2
2
 
3
3
  svn = Rake::SVN::ProjectTask.new() do |s|
4
4
  s.method = "svn+ssh"
5
- s.project_url = "rubyforge.org/var/svn/svnproj"
5
+ s.project_url = "svn.berkeley.edu/svn/ist-svn/berkeley/projects/commons/ruby/svn_project"
6
6
  s.username = YAML.load_file('svn_user.yml')['svn_username']
7
7
  s.always_update_current = false
8
- end
9
-
10
-
8
+ end
data/version.yml ADDED
@@ -0,0 +1 @@
1
+ version: 'rel-0.6.2'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: svn_project
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Hansen
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-12-10 00:00:00 -08:00
12
+ date: 2008-12-12 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -30,15 +30,17 @@ extensions: []
30
30
 
31
31
  extra_rdoc_files:
32
32
  - README
33
+ - TODO
33
34
  - lib/svn/project.rb
34
35
  - lib/svn/rake/svntask.rb
35
36
  - lib/svn/release_tag.rb
36
37
  - lib/svn.rb
37
38
  - tasks/svn_project.rake
38
39
  files:
39
- - Manifest
40
40
  - README
41
41
  - Rakefile
42
+ - SPEC.txt
43
+ - TODO
42
44
  - lib/svn/project.rb
43
45
  - lib/svn/rake/svntask.rb
44
46
  - lib/svn/release_tag.rb
@@ -48,9 +50,11 @@ files:
48
50
  - spec/svn_release_tag_spec.rb
49
51
  - spec/svn_spec.rb
50
52
  - tasks/svn_project.rake
53
+ - version.yml
54
+ - Manifest
51
55
  - svn_project.gemspec
52
56
  has_rdoc: true
53
- homepage: http://http://svnproj.rubyforge.org
57
+ homepage: http://http://ucbrb.rubyforge.org
54
58
  post_install_message:
55
59
  rdoc_options:
56
60
  - --line-numbers
@@ -75,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
79
  version:
76
80
  requirements: []
77
81
 
78
- rubyforge_project: svnproj
82
+ rubyforge_project: ucbrb
79
83
  rubygems_version: 1.3.0
80
84
  signing_key:
81
85
  specification_version: 2