scvcs 0.2.0 → 0.2.1

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: eefc4bffd875b5d3790a245d07af5d33c806bdd1
4
- data.tar.gz: bc962cb8cbd75e9315f5ca9cbad99a0faaee8a45
3
+ metadata.gz: cb0d8820eb956906b6b4f4b6acc3d6d4302fcb5b
4
+ data.tar.gz: 4570ef354f4ac973a48f6c434b8e3e94e6123efd
5
5
  SHA512:
6
- metadata.gz: 3fa4eb7036475bd632ff4e01928fd34815e86fa534d12e27ab28a1f1aaf19e36e1c5da461f15dd6444994a117e6dd068715ec98267c91a57f18339e13b289688
7
- data.tar.gz: 02e00f9e40d47ac26016c98f079aac6a6c67fd09e00bd336576e16fc660603bbe4d0c49092dcac1b1f12dfba8b2c45ad63a9e4373615bbb3aa6ca6938939732b
6
+ metadata.gz: db8c0372bd7673f394bf5478e6ab4a5e8f7ad00b84457e6479ef37582ac74486a815f04b0ce152a1172ad198c146725c55ee7f01a9ab2cd0c638ff47fa1c107f
7
+ data.tar.gz: 7914b17898fec122d9f1d8fec27dbfd2f85234e2fe3cbaee73f112fb1027ba7e1e7cad990fef7f336a5dd63c4f1753c241e604610232be0030144b61cd85733b
@@ -3,7 +3,7 @@ arg_name ''
3
3
  command :status do |c|
4
4
  c.action do |global_options, options, args|
5
5
  repository = global_options[:repository]
6
- commit = repository[:head, :commit]
6
+ commit = repository.branch_head
7
7
  status = repository.status commit,
8
8
  ignore: [/^\.|\/\./]
9
9
 
@@ -11,7 +11,7 @@ command :status do |c|
11
11
  puts "# No commits"
12
12
  else
13
13
  puts "# On branch #{repository.head}"
14
- puts "# On commit #{commit.id.yellow}"
14
+ puts "# On commit #{commit.id.yellow}" if commit
15
15
  end
16
16
 
17
17
  if repository.config['merge'] and repository.config['merge']['parents']
data/lib/scv/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module SCV
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scvcs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Georgy Angelov