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 +4 -0
- data/lib/blastr.rb +1 -1
- data/lib/scm/git.rb +1 -2
- data/lib/scm/scm.rb +4 -4
- data/lib/scm/svn.rb +1 -1
- metadata +1 -1
data/History.txt
CHANGED
data/lib/blastr.rb
CHANGED
data/lib/scm/git.rb
CHANGED
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
|
-
|
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
|
-
|
27
|
+
@@implementations << implementation unless @@implementations.include?(implementation)
|
28
28
|
end
|
29
29
|
|
30
30
|
end
|
data/lib/scm/svn.rb
CHANGED