ext 0.0.8 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Rakefile CHANGED
@@ -11,7 +11,7 @@ end
11
11
 
12
12
  gem_specification = Gem::Specification.new do |specification|
13
13
  specification.name = 'ext'
14
- specification.version = '0.0.8'
14
+ specification.version = '0.0.9'
15
15
  specification.platform = Gem::Platform::RUBY
16
16
  specification.rubyforge_project = 'ext'
17
17
 
@@ -31,8 +31,8 @@ module Externals
31
31
  end
32
32
 
33
33
  rows.each do |row|
34
- if row =~ /\s*(\w+)\s*=\s*([^#]*)(?:#.*)?$/ && key.to_s == $1
35
- return $2
34
+ if row =~ /\s*(\w+)\s*=\s*([^#\n]*)(?:#[^\n])?$/ && key.to_s == $1
35
+ return $2.strip
36
36
  end
37
37
  end
38
38
  nil
@@ -72,7 +72,10 @@ module Externals
72
72
  Dir.entries(File.join(File.dirname(__FILE__), '..', 'externals','scms')).each do |project|
73
73
  require "externals/scms/#{project}" if project =~ /_project.rb$/
74
74
  end
75
-
75
+
76
+ Dir.entries(PROJECT_TYPES_DIRECTORY).each do |type|
77
+ require File.join(PROJECT_TYPES_DIRECTORY, type) if type =~ /\.rb$/
78
+ end
76
79
 
77
80
  def self.project_types
78
81
  types = Dir.entries(PROJECT_TYPES_DIRECTORY).select do |file|
@@ -41,8 +41,11 @@ module Externals
41
41
  if row_string =~ PROJECT_LINE_REGEX
42
42
  repbranch = trim_quotes($1)
43
43
  self.path = trim_quotes($2)
44
+
45
+ repbranch = repbranch.strip if repbranch
46
+ self.path = self.path.strip if self.path
44
47
 
45
- if repbranch =~ /^(.*):(\w+)$/
48
+ if repbranch =~ /^([^\n]*):(\w+)$/
46
49
  self.repository = $1
47
50
  self.branch = $2
48
51
  else
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Georgi
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-09-05 00:00:00 -07:00
12
+ date: 2008-09-06 00:00:00 -07:00
13
13
  default_executable: ext
14
14
  dependencies: []
15
15