dotfiles 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/dot_files/commands/files.rb +2 -0
  2. metadata +2 -2
@@ -82,6 +82,8 @@ command :pull do |path|
82
82
  local_path = File.join(ENV['HOME'], filename)
83
83
  if contents = remote_file_contents(filename)
84
84
  File.open(local_path, 'w') { |f| f.write(contents) }
85
+ DotFiles.config.shas[filename] = Digest::SHA1.hexdigest(contents)
86
+ DotFiles.config.save
85
87
  puts "Downloaded #{contents.size} bytes to #{local_path}."
86
88
  else
87
89
  error "Couldn't download remote file from '#{filename}'. Does it exist?"
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 2
9
- version: 1.0.2
8
+ - 3
9
+ version: 1.0.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Adam Cooke