clc-promote 0.8.1 → 0.8.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: c9170560e1bf8c16a5798bd773d9cc4bfef23516
4
- data.tar.gz: 01b3e175efef8c94b18641cf7c0013970cef6464
3
+ metadata.gz: d8db91702cbb1fc6bbe5df65ddc99d03d56893fb
4
+ data.tar.gz: 316b9e382992403b284d8aa2d5b74242a37dce4c
5
5
  SHA512:
6
- metadata.gz: 9a7153de0b612ad26dc19c73f358bb96eb30c669fa0a20c66e573194d74463828320f3420c48d6ea880c6b938ddb2f40e7e120e128157f4afa338133f8cce941
7
- data.tar.gz: d8817ff31d88a6cd20118d746132023c4f18b954afbacca5b8d9267d5bd832f645e89b6054f36f56e54552b4c3a1b6a16831c7f233498d0a8ceacdcac3fff837
6
+ metadata.gz: 7aa5e7cd29e4bb5b976cc5af35ccc434f4cc936b64c9f0e2246a3115f9b925c67509aee141c69c2c2dffeda40f7b9afa9a427597cb9b4d3f18583267f4669d18
7
+ data.tar.gz: 6ccc97d7e35ea270c222ec68c78a9d3d90d12ae8e370a2bb941d9c327e5799089ce6c2949b3e7c1d84e38fe3fc88485e44073384c5db5544c0f8e18ac9a19aed
@@ -42,8 +42,15 @@ module Promote
42
42
  end
43
43
  end
44
44
 
45
+ def refresh_index
46
+ git.diff("HEAD", scope_path).each do |diff|
47
+ # we do this to refresh the index
48
+ end
49
+ end
50
+
45
51
  def check_sync(source, dest)
46
52
  warnings = []
53
+ refresh_index
47
54
  if git.status.changed.to_h.keys.include? source
48
55
  warnings << "File #{source} has uncommitted changes."
49
56
  end
@@ -1,3 +1,3 @@
1
1
  module Promote
2
- VERSION = '0.8.1'
2
+ VERSION = '0.8.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clc-promote
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - CenturyLink Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-26 00:00:00.000000000 Z
11
+ date: 2015-04-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: clc-git