vcs 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.8.11
2
+ rubygems_version: 0.8.10
3
3
  specification_version: 1
4
4
  name: vcs
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.3.0
7
- date: 2005-09-16 00:00:00 +02:00
6
+ version: 0.4.0
7
+ date: 2005-10-03
8
8
  summary: A wrapper over any version control system
9
9
  require_paths:
10
10
  - lib
@@ -28,22 +28,30 @@ required_ruby_version: !ruby/object:Gem::Version::Requirement
28
28
  version: 0.0.0
29
29
  version:
30
30
  platform: ruby
31
- signing_key:
32
- cert_chain:
33
31
  authors:
34
32
  - Nicolas Pouillard
35
33
  files:
34
+ - lib/vcs/add.rb
35
+ - lib/vcs/app.rb
36
+ - lib/vcs/back.rb
36
37
  - lib/vcs/changelog.rb
38
+ - lib/vcs/common_commit.rb
37
39
  - lib/vcs/conflict.rb
38
40
  - lib/vcs/cvs.rb
41
+ - lib/vcs/delete.rb
39
42
  - lib/vcs/diff.rb
40
43
  - lib/vcs/diffstat.rb
41
44
  - lib/vcs/edit.rb
45
+ - lib/vcs/environment.rb
46
+ - lib/vcs/form.rb
47
+ - lib/vcs/ignore.rb
48
+ - lib/vcs/junk.rb
42
49
  - lib/vcs/last_changed_date.rb
50
+ - lib/vcs/list.rb
43
51
  - lib/vcs/mail.rb
44
52
  - lib/vcs/message.rb
45
- - lib/vcs/mycommit.rb
46
53
  - lib/vcs/news.rb
54
+ - lib/vcs/opt_parse.rb
47
55
  - lib/vcs/prcs.rb
48
56
  - lib/vcs/revision.rb
49
57
  - lib/vcs/script.rb
@@ -58,6 +66,7 @@ files:
58
66
  - AUTHORS
59
67
  - HOWTO
60
68
  - NEWS
69
+ - NEWS.FR
61
70
  - Rakefile
62
71
  - README
63
72
  - SPEC.dyn.yml
@@ -82,5 +91,5 @@ dependencies:
82
91
  -
83
92
  - "~>"
84
93
  - !ruby/object:Gem::Version
85
- version: 0.2.0
94
+ version: 0.3.0
86
95
  version:
@@ -1,90 +0,0 @@
1
- # Author:: Nicolas Pouillard <ertai@lrde.epita.fr>.
2
- # Copyright:: Copyright (c) 2004 LRDE. All rights reserved.
3
- # License:: GNU General Public License (GPL).
4
-
5
- # $LastChangedBy: ertai $
6
- # $Id: header 98 2004-09-29 12:07:43Z ertai $
7
-
8
- require 'vcs/vcs'
9
-
10
- class Vcs
11
-
12
- COMMITED = Pathname.new(',commited')
13
-
14
- def common_commit! ( subject_format, *args, &block )
15
-
16
- opts, args = args.partition { |a| a =~ /^-/ }
17
-
18
- @@subject_format = subject_format
19
-
20
- update!
21
-
22
- unless COMMITED.exist?
23
-
24
- begin
25
- mkchangelog(*args)
26
- rescue MustBeFilled => ex
27
- edit! ex.file
28
- end
29
-
30
- message(*args)
31
-
32
- edit! @@message
33
-
34
- unless @h.agree 'Committing, are you sure? (y/n)', true
35
- commit_failed
36
- end
37
-
38
- cl_entry = concat_changelog!(*args)
39
-
40
- #pager! diff
41
- #pager! status
42
-
43
- args << 'ChangeLog' unless args.grep(/^[^-]/).empty?
44
-
45
- # FIXME simplify cl_entry contents
46
-
47
- begin
48
- commit!('--message', cl_entry, *(opts + args))
49
- ADD_CL.rename(COMMITED)
50
- TMP_CL.delete if TMP_CL.exist?
51
- rescue
52
- commit_failed
53
- end
54
-
55
- update!
56
-
57
- else
58
-
59
- message(*args)
60
- edit! @@message
61
-
62
- end
63
-
64
- header ||= YAML::load(META.read)
65
-
66
- block[header['subject']] if block_given?
67
-
68
- LOG.info 'Deleting junk files...'
69
- TMP_CL.delete if TMP_CL.exist?
70
- ADD_CL.delete if ADD_CL.exist?
71
- COMMITED.delete if COMMITED.exist?
72
- META.delete if META.exist?
73
- messages = Pathname.new(',messages')
74
- messages.mkpath unless messages.directory?
75
- message_rev = messages + "#{@@message}.#{header['rev']}"
76
- LOG.info "Moving `#{@@message}' to `#{message_rev}'..."
77
- @@message.rename(message_rev)
78
- LOG.info "You can remove `#{message_rev}' if everything is ok."
79
-
80
- end
81
- alias_command :cci, :common_commit
82
-
83
- def commit_failed
84
- LOG.info "#{COMMITED}: Contains your ChangeLog entry" if COMMITED.exist?
85
- LOG.error 'Aborting'
86
- LOG.info 'You can rerun the same command to continue the commit'
87
- raise 'Commit failed'
88
- end
89
-
90
- end # class Vcs