tcms 0.9.6 → 0.9.7

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. checksums.yaml +4 -4
  2. data/lib/tcms.rb +3 -2
  3. data/lib/tcms/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0b32b4cfc7b937636fccac3b1e124d9ede5b676f
4
- data.tar.gz: 8196f65e3643457d7dfc7b925663914dfc1b2e6d
3
+ metadata.gz: ca000a5a31004d4451642997d1f097c22d769f36
4
+ data.tar.gz: d86a4b07557d98b50cb27058959a3467fc057f75
5
5
  SHA512:
6
- metadata.gz: 9e0961f5a84d92e9d9c82aaace18160b9f8196dc8cdc5337dd6b6fe83ed9b64f309e6738cfd07727a440df458bf458d36c90b4007605b84cc775eb5e34028ad6
7
- data.tar.gz: 60b085cbc245f5f3809a968ea6052de4579286101ec864813297c42e06bb81a8830e2a177da5814787710bec33c17855ee919c56f9000cbbb18448100501d0d1
6
+ metadata.gz: 0e6b100d43ef4bfc58f8887f6b56134bb210ef1533ae1adf3e0b9b841a6c649352a9599ec955e86a13657bd6d724bb408baf8b722dcadb767106908844f57e59
7
+ data.tar.gz: 8ddd19d6de09e8f1f3998fd8857db98ffb0916eaf8a440264d864afae94e6b5edff7c616d98ddd5317d829ccabd027b5f8ccd49d9a47db07673ecc666b352cd4
@@ -45,8 +45,9 @@ module Tcms
45
45
 
46
46
  #上传单个文件
47
47
  def self.upload_file file,config
48
- remote_path = config["remotepath"]+'/'+file.sub(/^\w+\//,'')
49
- #puts remote_path
48
+ project = self.read_config_file()
49
+ remote_path = config["remotepath"]+'/'+file.sub(project["assets"]["folder"]+'/','')
50
+ puts remote_path+"::"
50
51
  puts "正在上传#{file}"
51
52
  upload_path = "#{UPLOAD_CGI}?site=#{config["site"]}&channel=#{config["channel"]}&remotepath=#{remote_path}"
52
53
  begin
@@ -1,3 +1,3 @@
1
1
  module Tcms
2
- VERSION = "0.9.6"
2
+ VERSION = "0.9.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tcms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.6
4
+ version: 0.9.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - "'bertwang'"