blastr 0.0.7 → 0.0.8

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/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.0.8 2009-01-17
2
+
3
+ * Bug fix.
4
+
1
5
  == 0.0.7 2009-01-17
2
6
 
3
7
  * Structural refactorings, isolating the SCM stuff better from the core.
data/lib/blastr.rb CHANGED
@@ -6,7 +6,7 @@ module Blastr
6
6
  require 'tts/tts.rb'
7
7
  require 'people/people.rb'
8
8
 
9
- VERSION = '0.0.7'
9
+ VERSION = '0.0.8'
10
10
 
11
11
  class Process
12
12
  def initialize(args=[])
data/lib/scm/git.rb CHANGED
@@ -1,6 +1,5 @@
1
- require 'rubygems'
2
1
  require 'git'
3
- require 'blastr/scm.rb'
2
+ require File.dirname(__FILE__) + '/scm.rb'
4
3
 
5
4
  module Blastr::SourceControl
6
5
 
data/lib/scm/scm.rb CHANGED
@@ -12,8 +12,10 @@ module Blastr::SourceControl
12
12
  end
13
13
  end
14
14
 
15
+ @@implementations = []
16
+
15
17
  def self.implementation_for(url)
16
- IMPLEMENTATIONS.each do |impl|
18
+ @@implementations.each do |impl|
17
19
  if impl.understands_url?(url)
18
20
  return impl.new(url)
19
21
  end
@@ -21,10 +23,8 @@ module Blastr::SourceControl
21
23
  raise "No SCM implementation found that would understand #{url}"
22
24
  end
23
25
 
24
- IMPLEMENTATIONS = []
25
-
26
26
  def self.register_implementation(implementation)
27
- IMPLEMENTATIONS << implementation unless IMPLEMENTATIONS.include?(implementation)
27
+ @@implementations << implementation unless @@implementations.include?(implementation)
28
28
  end
29
29
 
30
30
  end
data/lib/scm/svn.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  require 'fileutils'
2
- require 'blastr/scm.rb'
2
+ require File.dirname(__FILE__) + '/scm.rb'
3
3
 
4
4
  module Blastr::SourceControl
5
5
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blastr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lasse Koskela