uv-rays 1.0.2 → 1.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: d9129069a6f55b2da01da10a313ac480c64f82b0
4
- data.tar.gz: 31e6c36a166ff84b21a3b2471c58f3f0e07bac86
3
+ metadata.gz: 15394fe5ef65fe5b07f6caacc662761bc3227cb9
4
+ data.tar.gz: 4a8d32cddab29e807a1702470b4fef1637e811ed
5
5
  SHA512:
6
- metadata.gz: 6d4a72b09ecbd97658880a7bc92fd4b9401705fef7f1f5ba74cd69b77d5138bac02cedce6b189357d187508a7feccd61e6bfe5ddeef567d2390bbb7c195d7974
7
- data.tar.gz: 737c20c2d4b99d8c9b7cc162025b27a9e94410355882a17451c0f195f63d3b62daacbfb979a19a15e2a58aa53281511a5e51a619b575289fc4c6bf385d23d23c
6
+ metadata.gz: 3cd439e8091ffba8733c548145c017dc65eae8dc6836e82d9569151928fac960a4d5363d61d4ee1d30fc73f0ed2247354b17f730afc53c9f90142793670ee0ef
7
+ data.tar.gz: 1b3f11de248f76cd8a9aceb66fcbd6e15b58feda0f699c8d9b799601d5c3a41503fd3ce13fbe2a4c4ca5d7db6fa9391c14d9ca7123ed6d4a3de5f9dd9d0058c5
@@ -24,6 +24,16 @@ module UV
24
24
  end
25
25
  end
26
26
 
27
+ if ''.respond_to?(:bytesize)
28
+ def bytesize(string)
29
+ string.bytesize
30
+ end
31
+ else
32
+ def bytesize(string)
33
+ string.size
34
+ end
35
+ end
36
+
27
37
  # Map all header keys to a downcased string version
28
38
  def munge_header_keys(head)
29
39
  head.inject({}) { |h, (k, v)| h[k.to_s.downcase] = v; h }
@@ -1,3 +1,3 @@
1
1
  module UV
2
- VERSION = '1.0.2'
2
+ VERSION = '1.0.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uv-rays
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen von Takach
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-20 00:00:00.000000000 Z
11
+ date: 2014-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: libuv