cimas 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 63cf2c77c3e16231cd3da9532e8e23407ba1dbdea4bd8c215b24c15b10708c64
4
- data.tar.gz: 193c969b9bcc42bb888f33e59e20c92be9151b7fd6f5668b837b89d5f3872e1b
3
+ metadata.gz: 9394871c2e095def57e7674194b7a43239da13230d5e5ff6c1278258deae56da
4
+ data.tar.gz: de2bfd5e44818ca43dcccdfc3a965542edf1c3352ce120c462182ee30a525427
5
5
  SHA512:
6
- metadata.gz: f0211688f87d042d1881c888668146d9d540d5ce46b64e46dd158164873166cc3add511cf2420f5bff717fb56c3dd16ad5c736cbc4ed8ca455c68bdc1e6526be
7
- data.tar.gz: 26061a7bb28f33e976491bafa9c036091b34223e3cb1f5ffe5a2da42584c2438038382fc13a5284f677bbd3fdda01a790f5911d1bcf1d7148e448267f930aef9
6
+ metadata.gz: 8df40444ecb07044787e228c2a3998fcb3432db947b84d71f70e0c8d0783f137ece83e22d9a9d5604b634123c3ef3a15a050abd96360ac82be3c4f3bf6733e5a
7
+ data.tar.gz: 63fdae72e4738e64dd29b15ee2332f49bb842c885f8056f52dce8ff2bac3b4e9646ac14bead264f859acd4c0974e1263ef9c8fe6a03f8dc598bef41961af0a34
@@ -340,12 +340,19 @@ module Cimas
340
340
  g.branch(push_to_branch).checkout
341
341
  g.add(all: true)
342
342
 
343
- if g.status.changed.empty?
343
+ if g.status.changed.empty? &&
344
+ g.status.added.empty? &&
345
+ g.status.deleted.empty?
346
+
344
347
  puts "Skipping commit on #{repo_name}, no changes detected."
345
348
  else
346
349
  g.commit_all(commit_message)
347
350
  end
348
351
 
352
+ # Still push even if there was no commit, as the remote branch
353
+ # may have been deleted. If the remote branch is deleted we can't
354
+ # make PRs in the next stage.
355
+
349
356
  if force_push
350
357
  # TODO implement
351
358
  raise "[ERROR] Force pushing with commit amend is not yet implemented."
@@ -1,3 +1,3 @@
1
1
  module Cimas
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cimas
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-02-11 00:00:00.000000000 Z
11
+ date: 2020-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: travis