clash 1.6.0 → 1.6.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bbd8c69715a8be680b9f09acf86c39d453e95df2
4
- data.tar.gz: 7b7a380ce953f8091a2f352a0fecc9a7791e1f33
3
+ metadata.gz: 4c03aaafb33c3668c4f61af1da5d246441686254
4
+ data.tar.gz: 3fa8e1338d51c83468718718464cb5b9feb5b3e8
5
5
  SHA512:
6
- metadata.gz: 2ef84eb9c67e119da577c70f018890bbc8c3054cd280d69959a5321cb49b7983c299eb56e54429742f806e4d3241424f6fe61071e26a95c98b689420b032837f
7
- data.tar.gz: 26ee2c56dc6a694b877f8759f8bac5a3140038df43aa53f5e215dc128abedc898829d66c2fe5699d71dc6a930c9727f05e6015a53cadf1ea4c1109563c2e8899
6
+ metadata.gz: 42b3f13aa63fd678d7bf2301dfc7eed12e18d1b237a8a78bfa8e57b37998c8c488d262d1f407f961c079bf2f320461b8860991573f6ad85628f0e0a044bd7aee
7
+ data.tar.gz: ccafd711ab65b82d79900cb43b482c5981e8a643ad449b6fab2c20c99258c053d71f24996080d9aa76919760e8c31af311d7c77d3fcbbe953cd386c917df0f84
@@ -118,12 +118,14 @@ module Clash
118
118
  f = files.gsub(',',' ').split
119
119
 
120
120
  if File.directory?(f.first)
121
- FileUtils.cp_r(File.join(f.first, '.'), f.last)
121
+ FileUtils.rm_r(f.first)
122
+ FileUtils.mkdir_p(File.dirname(f.first))
123
+ FileUtils.cp_r(File.join(f.last, '.'), f.first)
122
124
  else
123
- FileUtils.cp f.first, f.last
125
+ FileUtils.cp f.last, f.first
124
126
  end
125
127
 
126
- puts "Copied #{f.first} to #{f.last}"
128
+ puts "Copied #{f.last} to #{f.first}"
127
129
  end
128
130
  end
129
131
  end
@@ -1,3 +1,3 @@
1
1
  module Clash
2
- VERSION = "1.6.0"
2
+ VERSION = "1.6.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clash
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-04 00:00:00.000000000 Z
11
+ date: 2015-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: diffy