kmts 3.0.2 → 3.0.3

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: b7cea3dbe986a635818981086f08127570b5b1b7
4
- data.tar.gz: 768126e3f70c78e8e5e342272adde5ad6af6501d
3
+ metadata.gz: 4b5637d2db088ca8b84feb91479b036fc31e10e3
4
+ data.tar.gz: 7a224f53eb4d6b0c843804650c7a70ba3a0579b4
5
5
  SHA512:
6
- metadata.gz: 94a5cfd5609c38154298a1719d957652d10180d0e75578a2d3bba35c8785619e9a36bc7edd8d9c0f225ac4d6e830a80548495a50cb325440c8cfdd55872bc6bd
7
- data.tar.gz: 2528d34134a6908a251b8b8772bddd8d30237a48616206adc02bf3cdd3cd8770b4c69d684c69666e9d8d85e499c952a3474c59a8cd4af32d4dd4a838de7f9114
6
+ metadata.gz: 26a667e5920c2a84bc109d56f75d9fef0d6b19694029c52fb6f9059fb3b5513d7e55806d6b2490cc7213f1f67f0545052ab738637d552c1d5db8436e68b2be18
7
+ data.tar.gz: 3b6a792415ebe393c27a9088a009a8711884221933d12c4235d235bdfd99e1d3c2d961fb796d0364016f412a68cd502471e354c7c8bf553ddabad48dc383a613
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kmts (3.0.2)
4
+ kmts (3.0.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,4 +1,5 @@
1
1
  require 'uri'
2
+ require 'erb'
2
3
  require 'socket'
3
4
  require 'net/http'
4
5
  require 'fileutils'
@@ -206,10 +207,8 @@ class KMTS
206
207
  data['_k'] ||= @key
207
208
  end
208
209
 
209
- unsafe = Regexp.new("[^#{URI::REGEXP::PATTERN::UNRESERVED}]", false, 'N')
210
-
211
210
  data.inject(query) do |query,key_val|
212
- query_arr << key_val.collect { |i| URI.escape(i.to_s, unsafe) }.join('=')
211
+ query_arr << key_val.collect { |i| ERB::Util.url_encode(i.to_s) }.join('=')
213
212
  end
214
213
  query = '/' + type + '?' + query_arr.join('&')
215
214
  if @use_cron
@@ -1,3 +1,3 @@
1
1
  class KMTS
2
- VERSION = "3.0.2"
2
+ VERSION = "3.0.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kmts
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.2
4
+ version: 3.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kissmetrics
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-19 00:00:00.000000000 Z
11
+ date: 2018-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler