scm_workspace 0.3.3 → 0.3.4

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: b4c3b5a8da44c3c9a27c2308a96d523c6f58ba32
4
- data.tar.gz: 4b386823214e869deeb4ab06dc98f46a4b0f1b5b
3
+ metadata.gz: 8082d6fec5ab747b1fdbf5b165c5299a91d06fe1
4
+ data.tar.gz: c605cdc108cf99a60f46323de04ce9f137e9ab21
5
5
  SHA512:
6
- metadata.gz: 9302d285577f8fb4b1b8576eb21d1ec7671db398b67eabd310c8f2f21631275a063ed6a1b310a3b3bfb8291ba9e7d3f83e7052289f6541a89a4ef7d9233b5bd0
7
- data.tar.gz: 9d7a0cc26d3742f33e6fbb098339319266540eb402b2123dfb88ea8dadab7fc5a8b58e9b56a1f01b03983f1a21ecff0ac1c7c2a2a73270376b3c1e8de01894da
6
+ metadata.gz: fbb0649ef110e916347153080ef603a5c631a4a454df699011f1389d28e757d13fa396d55ea296948a4575bdb9a7c42ef3dd7df932d3ab4bd60ba284dc626019
7
+ data.tar.gz: 767a912af8afdd1284ae24d010c8bedde77171e59408af7035b60ab6dd887c2c27ef98ea789bef862097f09120489245aed44f23eaf267974fc74cb0786e769f
data/lib/scm_workspace.rb CHANGED
@@ -237,7 +237,7 @@ class ScmWorkspace
237
237
  flatten.first.split(/,/).map(&:strip).reject{|s| s =~ /HEAD\Z/}
238
238
  r = work.select{|s| s =~ /origin\//}.first
239
239
  r ||= work.first
240
- result = r.sub(/\Aorigin\//, '')
240
+ result = r.nil? ? nil : r.sub(/\Aorigin\//, '')
241
241
  return result
242
242
  end
243
243
  rescue => e
@@ -1,3 +1,3 @@
1
1
  class ScmWorkspace
2
- VERSION = "0.3.3"
2
+ VERSION = "0.3.4"
3
3
  end
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.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - akima
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-06 00:00:00.000000000 Z
11
+ date: 2013-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tengine_support