instrumental_agent 0.12.0 → 0.12.1
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.
- data/CHANGELOG.md +4 -0
- data/LICENSE +20 -0
- data/lib/instrumental/agent.rb +9 -5
- data/lib/instrumental/version.rb +1 -1
- metadata +6 -5
    
        data/CHANGELOG.md
    CHANGED
    
    
    
        data/LICENSE
    ADDED
    
    | @@ -0,0 +1,20 @@ | |
| 1 | 
            +
            Copyright (c) 2011 Fastest Forward
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            Permission is hereby granted, free of charge, to any person obtaining
         | 
| 4 | 
            +
            a copy of this software and associated documentation files (the
         | 
| 5 | 
            +
            "Software"), to deal in the Software without restriction, including
         | 
| 6 | 
            +
            without limitation the rights to use, copy, modify, merge, publish,
         | 
| 7 | 
            +
            distribute, sublicense, and/or sell copies of the Software, and to
         | 
| 8 | 
            +
            permit persons to whom the Software is furnished to do so, subject to
         | 
| 9 | 
            +
            the following conditions:
         | 
| 10 | 
            +
             | 
| 11 | 
            +
            The above copyright notice and this permission notice shall be
         | 
| 12 | 
            +
            included in all copies or substantial portions of the Software.
         | 
| 13 | 
            +
             | 
| 14 | 
            +
            THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
         | 
| 15 | 
            +
            EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
         | 
| 16 | 
            +
            MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
         | 
| 17 | 
            +
            NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
         | 
| 18 | 
            +
            LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
         | 
| 19 | 
            +
            OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
         | 
| 20 | 
            +
            WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
         | 
    
        data/lib/instrumental/agent.rb
    CHANGED
    
    | @@ -235,8 +235,7 @@ module Instrumental | |
| 235 235 | 
             
                end
         | 
| 236 236 |  | 
| 237 237 | 
             
                def report_exception(e)
         | 
| 238 | 
            -
                  logger.error "Exception occurred: #{e.message}"
         | 
| 239 | 
            -
                  logger.error e.backtrace.join("\n")
         | 
| 238 | 
            +
                  logger.error "Exception occurred: #{e.message}\n#{e.backtrace.join("\n")}"
         | 
| 240 239 | 
             
                end
         | 
| 241 240 |  | 
| 242 241 | 
             
                def send_command(cmd, *args)
         | 
| @@ -343,11 +342,16 @@ module Instrumental | |
| 343 342 | 
             
                    end
         | 
| 344 343 | 
             
                  end
         | 
| 345 344 | 
             
                rescue Exception => err
         | 
| 346 | 
            -
                   | 
| 347 | 
            -
             | 
| 345 | 
            +
                  if err.is_a?(EOFError)
         | 
| 346 | 
            +
                    # nop
         | 
| 347 | 
            +
                  elsif err.is_a?(Errno::ECONNREFUSED)
         | 
| 348 | 
            +
                    logger.error "unable to connect to Instrumental."
         | 
| 349 | 
            +
                  else
         | 
| 350 | 
            +
                    report_exception(err)
         | 
| 351 | 
            +
                  end
         | 
| 348 352 | 
             
                  if @allow_reconnect == false ||
         | 
| 349 353 | 
             
                    (command_options && command_options[:allow_reconnect] == false)
         | 
| 350 | 
            -
                    logger. | 
| 354 | 
            +
                    logger.info "Not trying to reconnect"
         | 
| 351 355 | 
             
                    return
         | 
| 352 356 | 
             
                  end
         | 
| 353 357 | 
             
                  if command_and_args
         | 
    
        data/lib/instrumental/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: instrumental_agent
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.12. | 
| 4 | 
            +
              version: 0.12.1
         | 
| 5 5 | 
             
              prerelease: 
         | 
| 6 6 | 
             
            platform: ruby
         | 
| 7 7 | 
             
            authors:
         | 
| @@ -12,7 +12,7 @@ authors: | |
| 12 12 | 
             
            autorequire: 
         | 
| 13 13 | 
             
            bindir: bin
         | 
| 14 14 | 
             
            cert_chain: []
         | 
| 15 | 
            -
            date: 2012- | 
| 15 | 
            +
            date: 2012-10-24 00:00:00.000000000 Z
         | 
| 16 16 | 
             
            dependencies:
         | 
| 17 17 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 18 18 | 
             
              name: rake
         | 
| @@ -138,6 +138,7 @@ files: | |
| 138 138 | 
             
            - CHANGELOG.md
         | 
| 139 139 | 
             
            - Gemfile
         | 
| 140 140 | 
             
            - Guardfile
         | 
| 141 | 
            +
            - LICENSE
         | 
| 141 142 | 
             
            - README.md
         | 
| 142 143 | 
             
            - Rakefile
         | 
| 143 144 | 
             
            - instrumental_agent.gemspec
         | 
| @@ -163,7 +164,7 @@ required_ruby_version: !ruby/object:Gem::Requirement | |
| 163 164 | 
             
                  version: '0'
         | 
| 164 165 | 
             
                  segments:
         | 
| 165 166 | 
             
                  - 0
         | 
| 166 | 
            -
                  hash: - | 
| 167 | 
            +
                  hash: -1801909863263808945
         | 
| 167 168 | 
             
            required_rubygems_version: !ruby/object:Gem::Requirement
         | 
| 168 169 | 
             
              none: false
         | 
| 169 170 | 
             
              requirements:
         | 
| @@ -172,10 +173,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 172 173 | 
             
                  version: '0'
         | 
| 173 174 | 
             
                  segments:
         | 
| 174 175 | 
             
                  - 0
         | 
| 175 | 
            -
                  hash: - | 
| 176 | 
            +
                  hash: -1801909863263808945
         | 
| 176 177 | 
             
            requirements: []
         | 
| 177 178 | 
             
            rubyforge_project: 
         | 
| 178 | 
            -
            rubygems_version: 1.8. | 
| 179 | 
            +
            rubygems_version: 1.8.24
         | 
| 179 180 | 
             
            signing_key: 
         | 
| 180 181 | 
             
            specification_version: 3
         | 
| 181 182 | 
             
            summary: Agent for reporting data to instrumentalapp.com
         |