rorvswild 1.4.1 → 1.4.2
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/cacert.pem +683 -1357
 - data/lib/rorvswild/client.rb +4 -2
 - data/lib/rorvswild/local/javascript/local.js +1 -1
 - data/lib/rorvswild/local/local.html +2 -2
 - data/lib/rorvswild/local/middleware.rb +7 -3
 - data/lib/rorvswild/local/queue.rb +1 -0
 - data/lib/rorvswild/queue.rb +4 -2
 - data/lib/rorvswild/version.rb +1 -1
 - metadata +2 -2
 
    
        data/lib/rorvswild/client.rb
    CHANGED
    
    | 
         @@ -20,6 +20,7 @@ module RorVsWild 
     | 
|
| 
       20 
20 
     | 
    
         
             
                  @connections = []
         
     | 
| 
       21 
21 
     | 
    
         
             
                  @connection_count = 0
         
     | 
| 
       22 
22 
     | 
    
         
             
                  @mutex = Mutex.new
         
     | 
| 
      
 23 
     | 
    
         
            +
                  @config = config
         
     | 
| 
       23 
24 
     | 
    
         
             
                end
         
     | 
| 
       24 
25 
     | 
    
         | 
| 
       25 
26 
     | 
    
         
             
                def post(path, data)
         
     | 
| 
         @@ -66,8 +67,9 @@ module RorVsWild 
     | 
|
| 
       66 
67 
     | 
    
         
             
                  http.open_timeout = timeout
         
     | 
| 
       67 
68 
     | 
    
         | 
| 
       68 
69 
     | 
    
         
             
                  if uri.scheme == HTTPS
         
     | 
| 
       69 
     | 
    
         
            -
                     
     | 
| 
       70 
     | 
    
         
            -
                    http. 
     | 
| 
      
 70 
     | 
    
         
            +
                    # Disable peer verification while there is a memory leak with OpenSSL
         
     | 
| 
      
 71 
     | 
    
         
            +
                    # http.verify_mode = OpenSSL::SSL::VERIFY_PEER
         
     | 
| 
      
 72 
     | 
    
         
            +
                    # http.ca_file = CERTIFICATE_AUTHORITIES_PATH
         
     | 
| 
       71 
73 
     | 
    
         
             
                    http.use_ssl = true
         
     | 
| 
       72 
74 
     | 
    
         
             
                  end
         
     | 
| 
       73 
75 
     | 
    
         | 
| 
         @@ -83,7 +83,7 @@ RorVsWild.Local.Request = function(data) { 
     | 
|
| 
       83 
83 
     | 
    
         
             
              this.data = data
         
     | 
| 
       84 
84 
     | 
    
         
             
              this.name = data.name
         
     | 
| 
       85 
85 
     | 
    
         
             
              this.path = data.path
         
     | 
| 
       86 
     | 
    
         
            -
              this. 
     | 
| 
      
 86 
     | 
    
         
            +
              this.queuedAt = RorVsWild.Local.formatDateTime(new Date(data.queued_at))
         
     | 
| 
       87 
87 
     | 
    
         
             
            }
         
     | 
| 
       88 
88 
     | 
    
         | 
| 
       89 
89 
     | 
    
         
             
            RorVsWild.Local.Request.prototype.runtime = function() {
         
     | 
| 
         @@ -72,7 +72,7 @@ 
     | 
|
| 
       72 
72 
     | 
    
         
             
                  </span>
         
     | 
| 
       73 
73 
     | 
    
         
             
                </span>
         
     | 
| 
       74 
74 
     | 
    
         
             
                <span class="rorvswild-local-panel__request__runtime">{{runtime}}<small>ms</small></span>
         
     | 
| 
       75 
     | 
    
         
            -
                <span class="rorvswild-local-panel__request__started-at">{{ 
     | 
| 
      
 75 
     | 
    
         
            +
                <span class="rorvswild-local-panel__request__started-at">{{queuedAt}}</span>
         
     | 
| 
       76 
76 
     | 
    
         
             
              </div>
         
     | 
| 
       77 
77 
     | 
    
         
             
            </script>
         
     | 
| 
       78 
78 
     | 
    
         | 
| 
         @@ -86,7 +86,7 @@ 
     | 
|
| 
       86 
86 
     | 
    
         
             
                    </span>
         
     | 
| 
       87 
87 
     | 
    
         
             
                  </span>
         
     | 
| 
       88 
88 
     | 
    
         
             
                  <span class="rorvswild-local-panel__request__runtime">{{runtime}}<small>ms</small></span>
         
     | 
| 
       89 
     | 
    
         
            -
                  <span class="rorvswild-local-panel__request__started-at">{{ 
     | 
| 
      
 89 
     | 
    
         
            +
                  <span class="rorvswild-local-panel__request__started-at">{{queuedAt}}</span>
         
     | 
| 
       90 
90 
     | 
    
         
             
                </div>
         
     | 
| 
       91 
91 
     | 
    
         
             
                <div class="rorvswild-local-panel__request-details__sections">
         
     | 
| 
       92 
92 
     | 
    
         
             
                  {{#sections}}
         
     | 
| 
         @@ -23,9 +23,13 @@ module RorVsWild 
     | 
|
| 
       23 
23 
     | 
    
         
             
                    if status >= 200 && status < 300 && headers["Content-Type"] && headers["Content-Type"].include?("text/html")
         
     | 
| 
       24 
24 
     | 
    
         
             
                      if headers["Content-Encoding"]
         
     | 
| 
       25 
25 
     | 
    
         
             
                        log_incompatible_middleware_warning
         
     | 
| 
       26 
     | 
    
         
            -
                      elsif body.respond_to?(: 
     | 
| 
       27 
     | 
    
         
            -
                         
     | 
| 
       28 
     | 
    
         
            -
                         
     | 
| 
      
 26 
     | 
    
         
            +
                      elsif body.respond_to?(:each)
         
     | 
| 
      
 27 
     | 
    
         
            +
                        content_length = 0
         
     | 
| 
      
 28 
     | 
    
         
            +
                        body.each do |string|
         
     | 
| 
      
 29 
     | 
    
         
            +
                          inject_into(string)
         
     | 
| 
      
 30 
     | 
    
         
            +
                          content_length += string.size
         
     | 
| 
      
 31 
     | 
    
         
            +
                        end
         
     | 
| 
      
 32 
     | 
    
         
            +
                        headers["Content-Length"] = content_length.to_s if headers["Content-Length"]
         
     | 
| 
       29 
33 
     | 
    
         
             
                      end
         
     | 
| 
       30 
34 
     | 
    
         
             
                    end
         
     | 
| 
       31 
35 
     | 
    
         
             
                    [status, headers, body]
         
     | 
    
        data/lib/rorvswild/queue.rb
    CHANGED
    
    | 
         @@ -29,23 +29,25 @@ module RorVsWild 
     | 
|
| 
       29 
29 
     | 
    
         
             
                end
         
     | 
| 
       30 
30 
     | 
    
         | 
| 
       31 
31 
     | 
    
         
             
                def pull_jobs
         
     | 
| 
      
 32 
     | 
    
         
            +
                  result = nil
         
     | 
| 
       32 
33 
     | 
    
         
             
                  mutex.synchronize do
         
     | 
| 
       33 
34 
     | 
    
         
             
                    if jobs.size > 0
         
     | 
| 
       34 
35 
     | 
    
         
             
                      result = jobs
         
     | 
| 
       35 
36 
     | 
    
         
             
                      @jobs = []
         
     | 
| 
       36 
     | 
    
         
            -
                      return result
         
     | 
| 
       37 
37 
     | 
    
         
             
                    end
         
     | 
| 
       38 
38 
     | 
    
         
             
                  end
         
     | 
| 
      
 39 
     | 
    
         
            +
                  result
         
     | 
| 
       39 
40 
     | 
    
         
             
                end
         
     | 
| 
       40 
41 
     | 
    
         | 
| 
       41 
42 
     | 
    
         
             
                def pull_requests
         
     | 
| 
      
 43 
     | 
    
         
            +
                  result = nil
         
     | 
| 
       42 
44 
     | 
    
         
             
                  mutex.synchronize do
         
     | 
| 
       43 
45 
     | 
    
         
             
                    if requests.size > 0
         
     | 
| 
       44 
46 
     | 
    
         
             
                      result = requests
         
     | 
| 
       45 
47 
     | 
    
         
             
                      @requests = []
         
     | 
| 
       46 
     | 
    
         
            -
                      return result
         
     | 
| 
       47 
48 
     | 
    
         
             
                    end
         
     | 
| 
       48 
49 
     | 
    
         
             
                  end
         
     | 
| 
      
 50 
     | 
    
         
            +
                  result
         
     | 
| 
       49 
51 
     | 
    
         
             
                end
         
     | 
| 
       50 
52 
     | 
    
         | 
| 
       51 
53 
     | 
    
         
             
                def flush_indefinetely
         
     | 
    
        data/lib/rorvswild/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: rorvswild
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 1.4. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 1.4.2
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Alexis Bernard
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2018- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2018-12-21 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies: []
         
     | 
| 
       13 
13 
     | 
    
         
             
            description: Performances and quality insights for rails developers.
         
     | 
| 
       14 
14 
     | 
    
         
             
            email:
         
     |