gitback 0.1.3 → 0.1.4

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.
@@ -43,6 +43,12 @@ module Gitback
43
43
 
44
44
  # Copy the file(s) to the repo
45
45
  if File.exists?(file_path)
46
+ # Make sure we only copy the directory contents,
47
+ # not the directory itself.
48
+ if File.directory?(file_path)
49
+ file_path += '/.'
50
+ end
51
+
46
52
  # We pass remove_destination to avoid issues with symlinks
47
53
  FileUtils.cp_r file_path, dest_path, :remove_destination => true
48
54
  else
@@ -1,3 +1,3 @@
1
1
  module Gitback
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitback
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 3
10
- version: 0.1.3
9
+ - 4
10
+ version: 0.1.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Bryce Thornton
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-04-19 00:00:00 -04:00
18
+ date: 2011-04-20 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency