gitty 0.3.4 → 0.3.5

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.
Files changed (3) hide show
  1. data/lib/gitty/hook.rb +1 -1
  2. data/spec/spec_helper.rb +1 -1
  3. metadata +1 -1
data/lib/gitty/hook.rb CHANGED
@@ -135,7 +135,7 @@ class Gitty::Hook
135
135
  meta_data["targets"].each do |target|
136
136
  targetd_path = base_directory + "#{target}.d"
137
137
  rm_f(targetd_path + name)
138
- FileUtils.rmdir(targetd_path) if Dir.glob(targetd_path + "*").empty?
138
+ FileUtils.rmdir(targetd_path) if Dir.glob((targetd_path + "*").to_s).empty?
139
139
  end
140
140
  rm(target_hook_path)
141
141
  # TODO - clean up helpers
data/spec/spec_helper.rb CHANGED
@@ -18,8 +18,8 @@ Spec::Runner.configure do |config|
18
18
  end
19
19
 
20
20
  config.before(:each) do
21
- reset_sandbox!
22
21
  @_original_dir = Dir.pwd
22
+ reset_sandbox!
23
23
  Dir.chdir(current_dir)
24
24
  end
25
25
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitty
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Harper