sumo-search 2.0.0 → 2.0.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.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/lib/sumo/cli.rb +8 -10
- data/lib/sumo/collection.rb +5 -14
- data/lib/sumo/config.rb +1 -1
- data/lib/sumo/version.rb +1 -1
- data/spec/lib/sumo/cli_spec.rb +82 -0
- data/spec/spec_helper.rb +3 -0
- data/spec/vcr/Sumo_Search/_create/sets_the_id_and_client.yml +4 -4
- data/spec/vcr/Sumo_Search/_delete_/deletes_the_search.yml +14 -14
- data/spec/vcr/Sumo_Search/_messages/returns_an_Enumerator_of_each_message_in_the_search.yml +380 -446
- data/spec/vcr/Sumo_Search/_records/returns_an_Enumerator_of_each_record_in_the_search.yml +140 -1526
- data/spec/vcr/Sumo_Search/_status/returns_the_status_of_the_search.yml +9 -9
- data/sumo-search.gemspec +1 -0
- metadata +19 -2
| @@ -21,9 +21,9 @@ http_interactions: | |
| 21 21 | 
             
                  Content-Type:
         | 
| 22 22 | 
             
                  - application/json
         | 
| 23 23 | 
             
                  Date:
         | 
| 24 | 
            -
                  -  | 
| 24 | 
            +
                  - Tue, 08 Apr 2014 15:34:12 GMT
         | 
| 25 25 | 
             
                  Location:
         | 
| 26 | 
            -
                  - http://api.sumologic.com/api/v1/search/jobs/ | 
| 26 | 
            +
                  - http://api.sumologic.com/api/v1/search/jobs/1E84C99C4B1F851F
         | 
| 27 27 | 
             
                  Strict-Transport-Security:
         | 
| 28 28 | 
             
                  - max-age=15552000
         | 
| 29 29 | 
             
                  Content-Length:
         | 
| @@ -32,12 +32,12 @@ http_interactions: | |
| 32 32 | 
             
                  - Close
         | 
| 33 33 | 
             
                body:
         | 
| 34 34 | 
             
                  encoding: UTF-8
         | 
| 35 | 
            -
                  string: "{\"id\":\" | 
| 35 | 
            +
                  string: "{\"id\":\"1E84C99C4B1F851F\",\"link\":{\"rel\":\"filtered\",\"href\":\"filtered\"}}"
         | 
| 36 36 | 
             
                http_version: 
         | 
| 37 | 
            -
              recorded_at:  | 
| 37 | 
            +
              recorded_at: Tue, 08 Apr 2014 15:34:07 GMT
         | 
| 38 38 | 
             
            - request:
         | 
| 39 39 | 
             
                method: get
         | 
| 40 | 
            -
                uri: https://api.sumologic.com/api/v1/search/jobs/ | 
| 40 | 
            +
                uri: https://api.sumologic.com/api/v1/search/jobs/1E84C99C4B1F851F
         | 
| 41 41 | 
             
                body:
         | 
| 42 42 | 
             
                  encoding: US-ASCII
         | 
| 43 43 | 
             
                  string: ''
         | 
| @@ -56,16 +56,16 @@ http_interactions: | |
| 56 56 | 
             
                  Content-Type:
         | 
| 57 57 | 
             
                  - application/json
         | 
| 58 58 | 
             
                  Date:
         | 
| 59 | 
            -
                  -  | 
| 59 | 
            +
                  - Tue, 08 Apr 2014 15:34:12 GMT
         | 
| 60 60 | 
             
                  Strict-Transport-Security:
         | 
| 61 61 | 
             
                  - max-age=15552000
         | 
| 62 | 
            -
                   | 
| 63 | 
            -
                  - ' | 
| 62 | 
            +
                  transfer-encoding:
         | 
| 63 | 
            +
                  - ''
         | 
| 64 64 | 
             
                  Connection:
         | 
| 65 65 | 
             
                  - Close
         | 
| 66 66 | 
             
                body:
         | 
| 67 67 | 
             
                  encoding: UTF-8
         | 
| 68 68 | 
             
                  string: "{\"state\":\"GATHERING RESULTS\",\"pendingWarnings\":[],\"pendingErrors\":[],\"histogramBuckets\":[],\"messageCount\":0,\"recordCount\":-1}"
         | 
| 69 69 | 
             
                http_version: 
         | 
| 70 | 
            -
              recorded_at:  | 
| 70 | 
            +
              recorded_at: Tue, 08 Apr 2014 15:34:07 GMT
         | 
| 71 71 | 
             
            recorded_with: VCR 2.8.0
         | 
    
        data/sumo-search.gemspec
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: sumo-search
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 2.0. | 
| 4 | 
            +
              version: 2.0.1
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Swipely, Inc.
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2014- | 
| 11 | 
            +
            date: 2014-04-08 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: excon
         | 
| @@ -122,6 +122,20 @@ dependencies: | |
| 122 122 | 
             
                - - ">="
         | 
| 123 123 | 
             
                  - !ruby/object:Gem::Version
         | 
| 124 124 | 
             
                    version: 2.7.0
         | 
| 125 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 126 | 
            +
              name: codeclimate-test-reporter
         | 
| 127 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 128 | 
            +
                requirements:
         | 
| 129 | 
            +
                - - ">="
         | 
| 130 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 131 | 
            +
                    version: '0'
         | 
| 132 | 
            +
              type: :development
         | 
| 133 | 
            +
              prerelease: false
         | 
| 134 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 135 | 
            +
                requirements:
         | 
| 136 | 
            +
                - - ">="
         | 
| 137 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 138 | 
            +
                    version: '0'
         | 
| 125 139 | 
             
            description: A simple REST client for the Sumo Search Job API
         | 
| 126 140 | 
             
            email:
         | 
| 127 141 | 
             
            - tomhulihan@swipely.com
         | 
| @@ -147,6 +161,7 @@ files: | |
| 147 161 | 
             
            - lib/sumo/version.rb
         | 
| 148 162 | 
             
            - spec/fixtures/bad-creds
         | 
| 149 163 | 
             
            - spec/fixtures/sumo-creds
         | 
| 164 | 
            +
            - spec/lib/sumo/cli_spec.rb
         | 
| 150 165 | 
             
            - spec/lib/sumo/client_spec.rb
         | 
| 151 166 | 
             
            - spec/lib/sumo/config_spec.rb
         | 
| 152 167 | 
             
            - spec/lib/sumo/search_spec.rb
         | 
| @@ -186,6 +201,7 @@ summary: A simple REST client for the Sumo Search Job API | |
| 186 201 | 
             
            test_files:
         | 
| 187 202 | 
             
            - spec/fixtures/bad-creds
         | 
| 188 203 | 
             
            - spec/fixtures/sumo-creds
         | 
| 204 | 
            +
            - spec/lib/sumo/cli_spec.rb
         | 
| 189 205 | 
             
            - spec/lib/sumo/client_spec.rb
         | 
| 190 206 | 
             
            - spec/lib/sumo/config_spec.rb
         | 
| 191 207 | 
             
            - spec/lib/sumo/search_spec.rb
         | 
| @@ -197,3 +213,4 @@ test_files: | |
| 197 213 | 
             
            - spec/vcr/Sumo_Search/_messages/returns_an_Enumerator_of_each_message_in_the_search.yml
         | 
| 198 214 | 
             
            - spec/vcr/Sumo_Search/_records/returns_an_Enumerator_of_each_record_in_the_search.yml
         | 
| 199 215 | 
             
            - spec/vcr/Sumo_Search/_status/returns_the_status_of_the_search.yml
         | 
| 216 | 
            +
            has_rdoc: 
         |