quik 0.2.1 → 0.2.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2479cbc17815b249f5f2ed40e719ccf275ec73cc
4
- data.tar.gz: f3e1a00efc43abc50409fffde72f5e837ff4cc46
3
+ metadata.gz: 65fe26ef815eb90f5e1de85b2412b3fa7dde87a9
4
+ data.tar.gz: 23ed7b59e429b71018274ab205ac136f5fad91c2
5
5
  SHA512:
6
- metadata.gz: 88b9642a9771dc1e642daf2f8af7f218426424c47ffd89f171c242741f7e3c0b5d4c657cb93bf18680641ea581f3ccda306a9b3c4b2297582ac7f33525b7b57f
7
- data.tar.gz: 83b8a1f7cd9faab464bd224baff54222ec1cfe299e51d671f1ef11238ca55bbdb9a909527e0321af8e688be8e4543aba813f2a95adf5204bcafb071fd18d72f7
6
+ metadata.gz: 81293ea7a0377d720b2b1406c1c975c516c20575655e0220056cbd3437a8860da7d8aac0570a1ed58ed3b5cfbc939ed1e5672701c1869313fce1afcb25204db7
7
+ data.tar.gz: 476d30c40d69977c8bff72faa98b8e7f9f83fa2de2b48fd56d9ed04d60af2ef8c2631bf44d2a4cb2299b7bc517de72fa62fe14d656796fc086e5c866866cb6ca
data/lib/quik/merger.rb CHANGED
@@ -66,6 +66,8 @@ class Merger
66
66
  puts " *** move file #{old_name} => #{new_name} (#{root_dir})"
67
67
  src_path = "#{root_dir}/#{old_name}"
68
68
  dest_path = "#{root_dir}/#{new_name}"
69
+ ## note: make sure subpath exists (e.g. replacement might include new (sub)dirs too)
70
+ FileUtils.mkdir_p( File.dirname( dest_path ), flags ) unless Dir.exist?( File.dirname( dest_path ))
69
71
  FileUtils.mv( src_path, dest_path, flags )
70
72
  end
71
73
  end
@@ -87,6 +89,8 @@ class Merger
87
89
  puts " *** move dir #{old_name} => #{new_name} (#{root_dir})"
88
90
  src_path = "#{root_dir}/#{old_name}"
89
91
  dest_path = "#{root_dir}/#{new_name}"
92
+ ## note: make sure subpath exists (e.g. replacement might include new (sub)dirs too)
93
+ FileUtils.mkdir_p( File.dirname( dest_path ), flags ) unless Dir.exist?( File.dirname( dest_path ))
90
94
  FileUtils.mv( src_path, dest_path, flags )
91
95
  end
92
96
  end
@@ -132,7 +136,7 @@ class Merger
132
136
  dest_path = "#{dest_root}/#{relative_path}"
133
137
  ## make sure dest_path exists
134
138
  dest_dir = File.dirname( dest_path )
135
- FileUtils.mkdir_p( dest_dir ) unless Dir.exists?( dest_dir )
139
+ FileUtils.mkdir_p( dest_dir ) unless Dir.exist?( dest_dir )
136
140
  else
137
141
  dest_root = root_dir
138
142
  dest_path = "#{dest_root}/#{relative_path}"
data/lib/quik/version.rb CHANGED
@@ -4,7 +4,7 @@ module Quik
4
4
 
5
5
  MAJOR = 0 ## todo: namespace inside version or something - why? why not??
6
6
  MINOR = 2
7
- PATCH = 1
7
+ PATCH = 2
8
8
  VERSION = [MAJOR,MINOR,PATCH].join('.')
9
9
 
10
10
  def self.version
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quik
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gerald Bauer