scm_workspace 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3297eb7e346c9ad8e2bf8603cbc40f18ff27da67
4
- data.tar.gz: d403449591587f7d1b4e3d5b2697db5120104559
3
+ metadata.gz: a4ac4b9cb8fab6cd2716ff82c394f3eead8971fd
4
+ data.tar.gz: 0fee11858529095260f03525e02d952ebe29795a
5
5
  SHA512:
6
- metadata.gz: e7783fc796f20487075f650a1c86ad0e578bdd41e4d80dc5e1c209e815caca20f6960cad999363cdc5cd79b95ae02cbb6bf10ad802c6c4162110cd1d5b97129e
7
- data.tar.gz: a80bacb2fd7814502b52aad903c28e8f0f95ba02fd8d086f2c348698f03741a6231740543760c491dc6318a1fd432718cb9667d70d9d9719828b86192739a56a
6
+ metadata.gz: f2ab9c11918f4c041415c71647d00ab1f5786c66efdc21f14e874798729f176c9203669f164468215f6aed6828fa244a98c1e47a6fc0c127512e2e21126ecd07
7
+ data.tar.gz: ba09fa538e136d72d98db7950be8de52ef49136e935c9302312cb4a4233d8673b28d0f27c0a18871dac121b1c4b00cd7850373b69f8b8dbd5db8c45399ede287
@@ -1,3 +1,3 @@
1
1
  class ScmWorkspace
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
data/lib/scm_workspace.rb CHANGED
@@ -28,7 +28,7 @@ class ScmWorkspace
28
28
 
29
29
  def configure(url)
30
30
  raise "#{repo_dir} is not empty. You must clear it" if configured?
31
- raise "#{root} does not exist" unless Dir.exist?(root)
31
+ FileUtils.mkdir_p(root)
32
32
  url, opt = url.split(/\s+/, 2)
33
33
  scm_type = self.class.guess_scm_type(url)
34
34
  options = opt ? parse_options(opt, scm_type) : {}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scm_workspace
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - akima
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-26 00:00:00.000000000 Z
11
+ date: 2013-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: git