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.
Files changed (3) hide show
  1. data/git_utils.gemspec +1 -1
  2. data/lib/git_utils.rb +7 -3
  3. metadata +3 -3
data/git_utils.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{git_utils}
8
- s.version = "1.0.9"
8
+ s.version = "1.1.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = [%q{Glenn Nagel}]
data/lib/git_utils.rb CHANGED
@@ -1,14 +1,18 @@
1
1
  module GitUtils
2
- VERSION = '1.0.9'
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
- File.open(File.join(dirname, "Manifest.txt"), 'w') { |file| file.puts Dir.chdir(dirname) { Dir["**/*.*"] } }
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
- File.open(File.join(dirname, 'VERSION'), 'w') { |file| file.puts version }
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
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git_utils
3
3
  version: !ruby/object:Gem::Version
4
- hash: 5
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
+ - 1
8
9
  - 0
9
- - 9
10
- version: 1.0.9
10
+ version: 1.1.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Glenn Nagel