filament 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,12 @@
1
+ 0.2.3:
2
+ SVN Plugin:
3
+ - Fixed an svn include problem
4
+ - Fixed the svn commands to work with new package.scm
5
+
6
+ 0.2.2:
7
+ Filament:
8
+ - Fixed handling for scm actions for packages without scm
9
+
1
10
  0.2.1:
2
11
  Filament:
3
12
  - Added ability to create workspace, package
@@ -28,11 +28,17 @@ module Filament
28
28
 
29
29
  def revision; return nil; end
30
30
 
31
- def update; end
31
+ def update
32
+ @package.subpackages.each {|s| s.scm.update}
33
+ end
32
34
 
33
- def status; end
35
+ def status
36
+ @package.subpackages.each {|s| s.scm.status}
37
+ end
34
38
 
35
- def commit(msg); end
39
+ def commit(msg)
40
+ @package.subpackages.each {|s| s.scm.commit(msg)}
41
+ end
36
42
  end
37
43
 
38
44
  class Package
@@ -285,11 +291,14 @@ module Filament
285
291
  end
286
292
  end
287
293
 
294
+ # returns the scm for this package
288
295
  def scm
289
296
  @@package_scms.each do |scm|
290
297
  return scm.new(self) if scm.applies?(self)
291
298
  end
292
- return nil
299
+
300
+ # default to the simplest scm
301
+ return PackageScm.new(self)
293
302
  end
294
303
 
295
304
  # executes cmd with this packages as the wd, and with $this_package set to self
data/lib/filament.rb CHANGED
@@ -64,7 +64,7 @@ module Filament
64
64
  def initialize
65
65
  @cmd = CmdParse::CommandParser.new(true)
66
66
  @cmd.program_name = "filament"
67
- @cmd.program_version = [0, 2, 2]
67
+ @cmd.program_version = [0, 2, 3]
68
68
  @cmd.add_command(CmdParse::HelpCommand.new)
69
69
  @cmd.add_command(CmdParse::VersionCommand.new)
70
70
  @cmd.options = CmdParse::OptionParserWrapper.new do |opt|
@@ -6,14 +6,14 @@ module Filament::Plugins
6
6
  app.subcommand('update', "Updates given package and subpackages") do |args|
7
7
  packages = PackageList.new(*args)
8
8
  packages.each do |package|
9
- package.update
9
+ package.scm.update
10
10
  end
11
11
  end
12
12
 
13
13
  app.subcommand('status', "Shows status given of package and subpackages") do |args|
14
14
  packages = PackageList.new(*args)
15
15
  packages.each do |package|
16
- package.status
16
+ package.scm.status
17
17
  end
18
18
  end
19
19
 
@@ -33,7 +33,7 @@ module Filament::Scm
33
33
  def update
34
34
  puts @package.full_name
35
35
  system("svn update #{@package.realpath}")
36
- subpackages.each { |s| s.scm.update }
36
+ super
37
37
  end
38
38
 
39
39
  # if this package is under version control, it will print its status
@@ -41,7 +41,7 @@ module Filament::Scm
41
41
  def status
42
42
  puts @package.full_name
43
43
  system("svn status #{@package.realpath}")
44
- subpackages.each { |s| s.scm.status }
44
+ super
45
45
  end
46
46
 
47
47
  # if this package is under version control, it will commit it with the
@@ -49,8 +49,8 @@ module Filament::Scm
49
49
  # if this package has subpackages it will commit them
50
50
  def commit(msg)
51
51
  puts @package.full_name
52
- system("svn ci -m '#{msg.gsub(/"/,"\\\"")}'")
53
- subpackages.each { |s| s.scm.commit(msg) }
52
+ system("svn ci -m '#{msg.gsub(/"/,"\\\"")}'")
53
+ super(msg)
54
54
  end
55
55
 
56
56
  def svn_url
metadata CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.8.11
3
3
  specification_version: 1
4
4
  name: filament
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.2.2
6
+ version: 0.2.3
7
7
  date: 2006-03-18 00:00:00 -05:00
8
8
  summary: A flexible dependency-based build platform based on Rake
9
9
  require_paths: