dev 1.0.197 → 1.0.198

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/dev/Project.rb +2 -0
  2. data/lib/dev/Scm.rb +2 -0
  3. metadata +1 -1
data/lib/dev/Project.rb CHANGED
@@ -93,6 +93,8 @@ class Project < Hash
93
93
  end
94
94
 
95
95
  def get_default_scm_type
96
+ call=Dev::SystemCall.new("svn info")
97
+ return "svn" if call.output.include?("Last Changed Date:")
96
98
  return "svn" if File.exists?(".svn")
97
99
  return "git" if File.exists?(".git")
98
100
  return nil
data/lib/dev/Scm.rb CHANGED
@@ -4,6 +4,8 @@ class Scm
4
4
 
5
5
  def initialize
6
6
  @scm_type="none"
7
+ call=Dev::SystemCall.new("svn info")
8
+ @scm_type="svn" if call.output.include?("Last Changed Date:")
7
9
  @scm_type="svn" if File.exists?(".svn")
8
10
  @scm_type="git" if File.exists?(".git")
9
11
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dev
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.197
4
+ version: 1.0.198
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: