fantasia-cli 0.1.0 → 0.1.1

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: bd78ca674aba49e498938fce174433f63292f5416adea9d72345ba753872d6e2
4
- data.tar.gz: c3d2390db9f67eb7456856acba34f245fef3abc9c0449798f300dac84614d8dc
3
+ metadata.gz: 248c9068a9728d1ba00cf37583a989bdcccdb86cf9f309b953cfd381a577c32e
4
+ data.tar.gz: 3d49814373c9073590df4c35de157c753e53ba2b02c03cb09a83784eb6a65004
5
5
  SHA512:
6
- metadata.gz: 61e40efcaa3ef5741d599c23287c5ba3c08b2ea561b236bb5dcb815c649f0d4ffb1c5a4fb4285212ac23a38c11cfe24015b2c7eba337ba59fc2448338b505762
7
- data.tar.gz: 73e7443fe1ba6c744b5117644c20191e1d1688cfa0f460a22bfbd20fb376dbfc4eceff2e860bd4d5ec637192c1e4e7843bc7e06ede1497ac9fef2893f915e9f6
6
+ metadata.gz: dbda6a43a8cfb6cbaa543c997ec35d72e5cc338aa0555f1ec7df1e46818b868eaea44a26a9aee4cb89286982cadfdb5741107bbe3226366ffc82aff7698ec210
7
+ data.tar.gz: ec65a20ee1fad48dbecdad606cdb58cd9b6a459cb80704fe86b1ec90f04a61d33f5fbca1c32a06a725dad3974a7cf6e9e69f43865b557e1aef5692dc258986ca
@@ -12,10 +12,10 @@ module Fantasia
12
12
 
13
13
  desc 'build', 'Build the stack locally'
14
14
  def build
15
- if system("git diff-files --quiet") || options[:force]
15
+ if system("git diff-index --quiet --cached HEAD --") || options[:force]
16
16
  system("docker-compose build") || exit(1)
17
17
  else
18
- puts "There are unstaged changes. Commit or stash them, or use the force option."
18
+ puts "There are unsaved changes. Commit, stash, or revert them, or use the force option."
19
19
  exit(1)
20
20
  end
21
21
  end
@@ -39,7 +39,7 @@ module Fantasia
39
39
  }
40
40
  r = JSON.parse(r.body)
41
41
  if r["success"]
42
- puts "ok".colorize(:green)
42
+ puts r["message"].colorize(:green)
43
43
  else
44
44
  puts r["message"].colorize(:red)
45
45
  exit 1
@@ -1,3 +1,3 @@
1
1
  module Fantasia
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fantasia-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Baum