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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/kmts.rb +2 -3
- data/lib/kmts/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b5637d2db088ca8b84feb91479b036fc31e10e3
|
4
|
+
data.tar.gz: 7a224f53eb4d6b0c843804650c7a70ba3a0579b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26a667e5920c2a84bc109d56f75d9fef0d6b19694029c52fb6f9059fb3b5513d7e55806d6b2490cc7213f1f67f0545052ab738637d552c1d5db8436e68b2be18
|
7
|
+
data.tar.gz: 3b6a792415ebe393c27a9088a009a8711884221933d12c4235d235bdfd99e1d3c2d961fb796d0364016f412a68cd502471e354c7c8bf553ddabad48dc383a613
|
data/Gemfile.lock
CHANGED
data/lib/kmts.rb
CHANGED
@@ -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|
|
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
|
data/lib/kmts/version.rb
CHANGED
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.
|
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:
|
11
|
+
date: 2018-01-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|