rangeclient 0.0.15 → 0.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
 - data/lib/rangeclient.rb +4 -0
 - 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: 2dc88890b0298178808480c76d63469cbc6ca1ff
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 6e77c662eefeef87c7483f76a33e4733027c3d3c
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 0a248cfd863d1ab76a9a1b72cd06a5076c9d0b40d0155e9988835cd19dd99e4f14176df1dd838726801f02bebfe2a4a704ac7fa7120b33bd7e6429554506ee34
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 0d0b1e393b39451122a8eb37c6e0f7a9da331ec041f53dc5d4e771d279c94b699e2d6243a6bc80108d9cf6781c50d8de44ffce264c0f05666db6321e5fb317bf
         
     | 
    
        data/lib/rangeclient.rb
    CHANGED
    
    | 
         @@ -7,6 +7,9 @@ require 'uri' 
     | 
|
| 
       7 
7 
     | 
    
         
             
            class Range::Client
         
     | 
| 
       8 
8 
     | 
    
         
             
              attr_accessor :host, :port, :timeout, :rangeexception
         
     | 
| 
       9 
9 
     | 
    
         | 
| 
      
 10 
     | 
    
         
            +
              class QueryException < Exception
         
     | 
| 
      
 11 
     | 
    
         
            +
              end
         
     | 
| 
      
 12 
     | 
    
         
            +
             
     | 
| 
       10 
13 
     | 
    
         
             
              # used to split hostnames into component parts for compression
         
     | 
| 
       11 
14 
     | 
    
         
             
              @@NodeRegx = /
         
     | 
| 
       12 
15 
     | 
    
         
             
                             ([-\w.]*?)                                # $1 - prefix
         
     | 
| 
         @@ -37,6 +40,7 @@ class Range::Client 
     | 
|
| 
       37 
40 
     | 
    
         
             
                http.use_ssl = @ssl
         
     | 
| 
       38 
41 
     | 
    
         
             
                req = Net::HTTP::Get.new('/range/list?' + escaped_arg)
         
     | 
| 
       39 
42 
     | 
    
         
             
                resp = http.request(req)
         
     | 
| 
      
 43 
     | 
    
         
            +
                raise QueryException.new(resp.body) unless resp.is_a?(Net::HTTPSuccess)
         
     | 
| 
       40 
44 
     | 
    
         
             
                @rangeexception = resp['rangeexception']
         
     | 
| 
       41 
45 
     | 
    
         
             
                return resp.body.split "\n"
         
     | 
| 
       42 
46 
     | 
    
         
             
              end
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: rangeclient
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0.0. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.0.16
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Evan Miller
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2015- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2015-10-26 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies: []
         
     | 
| 
       13 
13 
     | 
    
         
             
            description: Use with range from https://github.com/square/libcrange
         
     | 
| 
       14 
14 
     | 
    
         
             
            email:
         
     |