heroku_hatchet 3.1.0 → 3.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: 7705d38debbab89dedc8a49709edc3622dd8e3c24c019a11b1709c7bd9224977
4
- data.tar.gz: c2cc84b1898f3c6401f3549339f25c44a985ef71bd870faea736f9d0e5155d1b
3
+ metadata.gz: 2363b4e6ad949febf29929396202ad62215d4b8442fab1a5701273dc6356e0e8
4
+ data.tar.gz: 2834674840abffb9e1bdcf944629c6b00dc987fb17db61685a5b4e15f29bbd71
5
5
  SHA512:
6
- metadata.gz: bfb9317a73bce407d199e2f87b210bd014b86e102d5de04a3f0a95e1aad4871a6b789ebe0e3e322e2eb140797a42ed9b5b81d0b3e109850bb056110b99f3129c
7
- data.tar.gz: e7c68939dfff5a7d28754a16a6934cc1a2a5821424df408487632dfa62fcab1e38a5eb23527fdceadf63d64c72ff3a3455c72568504211c3ebfaec2b59175d81
6
+ metadata.gz: 0ba670133988a7297d8573c69c488bfdb4450cb5420778f372475a1523bd482cf40bd5fb1e4299e6118dd46fb3cb78cabed819099bdd56a0caa71c57ff6e8692
7
+ data.tar.gz: 4bf38e97b2afd7524e1ff81cac1fa1b4fb0cb8dbcd4fe62e49039aacdf79706def80b2ee8e8fe4a079355db559471895a42deec37e7304a94d31f4cc2ca985ff
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## HEAD
2
2
 
3
+ ## 3.1.1
4
+
5
+ - Better errors when no lockfile is found #43
6
+
3
7
  ## 3.1.0
4
8
 
5
9
  - Introduce a lockfile #42
data/bin/hatchet CHANGED
@@ -20,7 +20,7 @@ class HatchetCLI < Thor
20
20
  desc "install", "installs repos defined in 'hatchet.json'"
21
21
  def install
22
22
  warn_dot_ignore!
23
- lock_hash = YAML.safe_load(File.read('hatchet.lock')).to_h
23
+ lock_hash = load_lockfile
24
24
  puts "Installing repos for hatchet"
25
25
  dirs.map do |directory, git_repo|
26
26
  Threaded.later do
@@ -38,6 +38,12 @@ class HatchetCLI < Thor
38
38
  end.map(&:join)
39
39
  end
40
40
 
41
+ def load_lockfile
42
+ return YAML.safe_load(File.read('hatchet.lock')).to_h
43
+ rescue Errno::ENOENT => e
44
+ raise "No such file found `hatchet.lock` please run `$ bundle exec hatchet lock`"
45
+ end
46
+
41
47
  desc "locks to specific git commits", "updates hatchet.lock"
42
48
  def lock
43
49
  lock_hash = {}
@@ -1,3 +1,3 @@
1
1
  module Hatchet
2
- VERSION = "3.1.0"
2
+ VERSION = "3.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: heroku_hatchet
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
4
+ version: 3.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Schneeman