git_utils 1.0.9 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/git_utils.gemspec +1 -1
- data/lib/git_utils.rb +7 -3
- metadata +3 -3
data/git_utils.gemspec
CHANGED
data/lib/git_utils.rb
CHANGED
@@ -1,14 +1,18 @@
|
|
1
1
|
module GitUtils
|
2
|
-
VERSION = '1.0
|
2
|
+
VERSION = '1.1.0'
|
3
3
|
|
4
4
|
###
|
5
5
|
# Overwrite the Manifest.txt file with the actual contents of this directory
|
6
6
|
###
|
7
7
|
def GitUtils.sync_manifest(dirname)
|
8
|
-
|
8
|
+
file_name = dirname + "/Manifest.txt"
|
9
|
+
puts "Overwriting #{file_name}"
|
10
|
+
File.open(file_name, 'w') { |file| file.puts Dir["#{dirname}/**/*.*"].collect() { |dir| dir[dirname.length+1, dir.length] } }
|
9
11
|
end
|
10
12
|
|
11
13
|
def GitUtils.sync_version(dirname, version)
|
12
|
-
|
14
|
+
file_name = dirname + "/VERSION"
|
15
|
+
puts "Overwriting #{file_name}"
|
16
|
+
File.open(file_name, 'w') { |file| file.puts version }
|
13
17
|
end
|
14
18
|
end
|
metadata
CHANGED