rscm 0.3.12 → 0.3.13

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES CHANGED
@@ -1,5 +1,12 @@
1
1
  = RSCM Changelog
2
2
 
3
+ == Version 0.3.13
4
+
5
+ Improved trigger support
6
+
7
+ * Added Base.trigger_mechanism and implementation for subclasses that support triggering.
8
+ * Removed Subversion.to_yaml_properties, which prevented additional attributes.
9
+
3
10
  == Version 0.3.12
4
11
 
5
12
  Bugfix release
data/README CHANGED
@@ -1,4 +1,4 @@
1
- = RSCM - Ruby Source Control Management (0.3.12)
1
+ = RSCM - Ruby Source Control Management (0.3.13)
2
2
 
3
3
  RSCM is to SCM what DBI/JDBC/ODBC are to databases - an SCM-independent API for accessing different SCMs. The high level features are roughly:
4
4
 
data/Rakefile CHANGED
@@ -10,7 +10,7 @@ require 'meta_project'
10
10
 
11
11
  PKG_BUILD = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : ''
12
12
  PKG_NAME = 'rscm'
13
- PKG_VERSION = '0.3.12' + PKG_BUILD
13
+ PKG_VERSION = '0.3.13' + PKG_BUILD
14
14
  PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
15
15
 
16
16
  desc "Default Task"
@@ -30,8 +30,9 @@ module RSCM
30
30
  # * can_create_central?
31
31
  # * import_central
32
32
  # * install_trigger
33
- # * supports_trigger? # TODO: rename to can_install_trigger?
33
+ # * supports_trigger? / can_install_trigger?
34
34
  # * trigger_installed?
35
+ # * trigger_mechanism
35
36
  # * uninstall_trigger
36
37
  #
37
38
  # Some methods are a bit fuzzy with respect to their relevance to the working copy or
@@ -41,7 +42,7 @@ module RSCM
41
42
  # * checkout_command_line
42
43
  # * label
43
44
  # * name
44
- # * transactional?
45
+ # * transactional? / atomic?
45
46
  # * update_command_line
46
47
  #
47
48
  # Some of the methods in this API use +from_identifier+ and +to_identifier+.
@@ -238,6 +239,12 @@ module RSCM
238
239
  # determined programmatically.
239
240
  false
240
241
  end
242
+ alias :can_install_trigger? :supports_trigger?
243
+
244
+ # Descriptive name of the trigger mechanism
245
+ def trigger_mechanism
246
+ "Unknown"
247
+ end
241
248
 
242
249
  # Installs +trigger_command+ in the SCM.
243
250
  # The +install_dir+ parameter should be an empty local
@@ -116,6 +116,10 @@ module RSCM
116
116
  def apply_label(label)
117
117
  cvs(@checkout_dir, "tag -c #{label}")
118
118
  end
119
+
120
+ def trigger_mechanism
121
+ "CVSROOT/loginfo"
122
+ end
119
123
 
120
124
  def install_trigger(trigger_command, trigger_files_checkout_dir)
121
125
  raise "mod can't be null or empty" if (mod.nil? || mod == "")
@@ -146,6 +146,10 @@ module RSCM
146
146
  true
147
147
  end
148
148
 
149
+ def trigger_mechanism
150
+ "MT/monotonerc"
151
+ end
152
+
149
153
  # http://www.venge.net/monotone/monotone.html#Hook-Reference
150
154
  def install_trigger(trigger_command, install_dir)
151
155
  stop_serve
@@ -112,6 +112,10 @@ module RSCM
112
112
  p4admin.uninstall_trigger(trigger_command)
113
113
  end
114
114
 
115
+ def trigger_mechanism
116
+ "p4 triggers -i"
117
+ end
118
+
115
119
  def diff(revfile, &proc)
116
120
  p4client.diff(revfile, &proc)
117
121
  end
@@ -25,10 +25,6 @@ module RSCM
25
25
  @password = ""
26
26
  end
27
27
 
28
- def to_yaml_properties
29
- ["@url", "@path", "@username", "@password"]
30
- end
31
-
32
28
  def add(relative_filename)
33
29
  svn(@checkout_dir, "add #{relative_filename}")
34
30
  end
@@ -143,6 +139,10 @@ module RSCM
143
139
  # local?
144
140
  end
145
141
 
142
+ def trigger_mechanism
143
+ "hooks/post-commit"
144
+ end
145
+
146
146
  def create_central
147
147
  native_path = PathConverter.filepath_to_nativepath(svnrootdir, true)
148
148
  mkdir_p(PathConverter.nativepath_to_filepath(native_path))
@@ -158,11 +158,11 @@ module RSCM
158
158
  end
159
159
  end
160
160
 
161
- def install_trigger(trigger_command, damagecontrol_install_dir)
161
+ def install_trigger(trigger_command, trigger_files_checkout_dir)
162
162
  if (WINDOWS)
163
- install_win_trigger(trigger_command, damagecontrol_install_dir)
163
+ install_win_trigger(trigger_command, trigger_files_checkout_dir)
164
164
  else
165
- install_unix_trigger(trigger_command, damagecontrol_install_dir)
165
+ install_unix_trigger(trigger_command, trigger_files_checkout_dir)
166
166
  end
167
167
  end
168
168
 
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.10
3
3
  specification_version: 1
4
4
  name: rscm
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.3.12
7
- date: 2005-11-09
6
+ version: 0.3.13
7
+ date: 2005-11-14
8
8
  summary: "RSCM - Ruby Source Control Management"
9
9
  require_paths:
10
10
  - lib