mashape-analytics 1.0.3 → 1.0.4

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: 749a81257d08ac6fd003fea80ae9d24b7f2669da
4
- data.tar.gz: 4dec0963179b2df21204485a642a632d26e1b31c
3
+ metadata.gz: 409823168a3e0925068d93080650409f8002ae86
4
+ data.tar.gz: 6f06f4be3cbfc857fbd2b6ce4022a770ef219e88
5
5
  SHA512:
6
- metadata.gz: 2009bfccf93d9f9cf95295990ef275cb4deea653b76c517e5f6b90c31401e7e47bd9704966c5028708a9c4e22def41a85e573b84c27beb30e884f01a2a5295db
7
- data.tar.gz: 93cae7d08cfcecbb7a57e881ee5e2b434ee4a97a0d6bf4226934103a9294520af2fd43d3a667149cc5b4aff034941c2a531f27411692a50520f8069fe920f810
6
+ metadata.gz: b6c5526139d9da15a8b8260e49757f7e933b65742ea3fca0bd291cf1b32605c848826083141a9fcb423c0da6ccedf41e073f52732c1210c6acb8c521c4cb60fc
7
+ data.tar.gz: 9739ab960c4fb9cb8119e4c301c2904e9530f87791326232e8ff54e95a65184aa9034d3d1b1220f151350aa374c6f7163f69cabc120a7653b0cfaceab01bb8c4
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.3
1
+ 1.0.4
@@ -82,7 +82,7 @@ module MashapeAnalytics::Frameworks
82
82
 
83
83
  # {KEY}: {VALUE}\n\r = 4 extra characters for `: ` and `\n\r` minus `HTTP_` in the KEY is -1
84
84
  header_fields = request.select { |k,v| k.start_with? 'HTTP_' }
85
- .map { |k,v| k.length + v.bytesize - 1 }
85
+ .map { |k,v| k.length + (v.respond_to?(:bytesize) ? v.bytesize : 0) - 1 }
86
86
  .inject(0) { |sum,v| sum + v }
87
87
 
88
88
  last_line = 2 # /r/n
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: mashape-analytics 1.0.3 ruby lib
5
+ # stub: mashape-analytics 1.0.4 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "mashape-analytics"
9
- s.version = "1.0.3"
9
+ s.version = "1.0.4"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Kenneth Lee"]
14
- s.date = "2015-06-29"
14
+ s.date = "2015-07-08"
15
15
  s.description = "The ruby agent reports API traffic to http://apianalytics.com"
16
16
  s.email = "kennethkl@gmail.com"
17
17
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mashape-analytics
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kenneth Lee
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-29 00:00:00.000000000 Z
11
+ date: 2015-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rbczmq