grancher 0.1.1 → 0.1.2

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 (4) hide show
  1. data/CHANGELOG +1 -0
  2. data/grancher.gemspec +2 -2
  3. data/lib/grancher.rb +2 -1
  4. metadata +3 -3
data/CHANGELOG CHANGED
@@ -1,2 +1,3 @@
1
+ v0.1.2 Include hidden files that start in a period (.).
1
2
  v0.1.1 Allows full git refspec to push to (in place of g.branch). Other minor fixes.
2
3
  v0.1. First version.
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{grancher}
5
- s.version = "0.1.1"
5
+ s.version = "0.1.2"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Magnus Holm"]
9
- s.date = %q{2010-04-06}
9
+ s.date = %q{2010-04-07}
10
10
  s.description = %q{Easily copy folders and files to other Git branches}
11
11
  s.email = %q{judofyr@gmail.com}
12
12
  s.extra_rdoc_files = ["CHANGELOG", "LICENSE", "README", "lib/grancher/task.rb", "lib/grancher.rb"]
@@ -159,7 +159,8 @@ class Grancher
159
159
 
160
160
  def add_directories
161
161
  @directories.each do |from, to|
162
- Dir[from + '/**/*'].each do |file|
162
+ files = Dir.glob(from + '/**/*', File::FNM_DOTMATCH).delete_if{|f| f =~ /\/\.\.?$/ }
163
+ files.each do |file|
163
164
  next if File.directory?(file)
164
165
  content = File.read(file)
165
166
  base = if to
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 1
9
- version: 0.1.1
8
+ - 2
9
+ version: 0.1.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Magnus Holm
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-04-06 00:00:00 +01:00
17
+ date: 2010-04-07 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency