tcms 1.1.4 → 1.1.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/tcms.rb +2 -1
  3. data/lib/tcms/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3c1684dd1cae1511dfb287f353c9a90e10a75266
4
- data.tar.gz: 20770f6ed599a9a35dacc0fd790cbb9a0146089d
3
+ metadata.gz: a1a44f104369c5c113d48e0ff1c57efb29d66507
4
+ data.tar.gz: 60c92d7d25fa15a83f79f3eea68fba9c752a4d34
5
5
  SHA512:
6
- metadata.gz: a60630f5782d697b1b78658a21c7ebabe30eb6348ea383947dd1a6e33a7b61e6ee39e680b6e3de3f3a33e6757d18f2385c4183bdfab1b893b6fd8415ee72e862
7
- data.tar.gz: 4291327663cab55a846de1e130d97959cc8e9fcc5e74108405b6bd154f86587ab9af65860329baa6e4781577a282154e3dc0ccb220a6d5e594f145a505441714
6
+ metadata.gz: 6d60ded9275f6a4169ff9d9c09026b24de2b5b3313db9b85d0d03dbf0fac427fcd05f441516f4fc717788b71581a49cdc86b5474354d0dbde554ada1b6dc334a
7
+ data.tar.gz: 7cb72c14d1abeaf3c7551d9784d320a7dcda294e381279c669dd6c95bf0ea8152617894f2429324c98198c8e659ddac32e541a3c7b21ffdb7b219e8b6cbfd3a4
@@ -169,7 +169,8 @@ module Tcms
169
169
  @template_config.each do |key,value|
170
170
  if value.respond_to? :has_key? and value.has_key? "_data_from_url"
171
171
  puts "获取献上接口数据#{value}.."
172
- response = RestClient.get value["_data_from_url"],{:accept=>:json}
172
+ clnt = HTTPClient.new
173
+ response = clnt.get_content value["_data_from_url"]
173
174
  @template_config[key] = JSON.parse(response)
174
175
 
175
176
  if @template_config[key].is_a?(Hash)
@@ -1,3 +1,3 @@
1
1
  module Tcms
2
- VERSION = "1.1.4"
2
+ VERSION = "1.1.4.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tcms
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - "'bertwang'"
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-27 00:00:00.000000000 Z
11
+ date: 2015-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra