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.
- data/lib/gitback/repository.rb +6 -0
- data/lib/gitback/version.rb +1 -1
- metadata +4 -4
data/lib/gitback/repository.rb
CHANGED
|
@@ -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
|
data/lib/gitback/version.rb
CHANGED
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:
|
|
4
|
+
hash: 19
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 1
|
|
9
|
-
-
|
|
10
|
-
version: 0.1.
|
|
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-
|
|
18
|
+
date: 2011-04-20 00:00:00 -04:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|