oop_rails_server 0.0.20 → 0.0.21
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/CHANGES.md +5 -0
- data/lib/oop_rails_server/rails_server.rb +1 -1
- data/lib/oop_rails_server/version.rb +1 -1
- metadata +1 -1
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 0fd5c9a3aed8080c6f1f60a4a707499fe77c8493
         | 
| 4 | 
            +
              data.tar.gz: 0b7a9569c5a9cea17bd59f48c99c7e5e0eca5c74
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: ebc57432de0117bc6f0fa37b064d0ff9abcae527656b8e1b3634289f41518440c3caf8733aa11492d3ae02e33ecc6ec89a561c8d495e9698c23663581039f725
         | 
| 7 | 
            +
              data.tar.gz: 3476971dc63f6160e709de57b8b40d6627cd457fe37366c1b6ac1012a07fbf9af9f40867f6cc79742aeff02e3746ddfc6281b3a4ac76cf3f0b09a083835ee6c5
         | 
    
        data/CHANGES.md
    CHANGED
    
    | @@ -1,5 +1,10 @@ | |
| 1 1 | 
             
            # `oop_rails_server` Releases
         | 
| 2 2 |  | 
| 3 | 
            +
            ## 0.0.21, 27 September 2016
         | 
| 4 | 
            +
             | 
| 5 | 
            +
            * Fixed an issue that broke compatibility with older Ruby versions, since `Net::HTTP::Get.new` could not accept a
         | 
| 6 | 
            +
              `URI` object back then.
         | 
| 7 | 
            +
             | 
| 3 8 | 
             
            ## 0.0.20, 27 September 2016
         | 
| 4 9 |  | 
| 5 10 | 
             
            * If exceptions have a `cause`, nest that inside the JSON returned on error.
         | 
| @@ -100,7 +100,7 @@ module OopRailsServer | |
| 100 100 | 
             
                  data = nil
         | 
| 101 101 | 
             
                  accept_header = options.fetch(:accept_header, 'text/html')
         | 
| 102 102 | 
             
                  Net::HTTP.start(uri.host, uri.port) do |http|
         | 
| 103 | 
            -
                    request = Net::HTTP::Get.new(uri)
         | 
| 103 | 
            +
                    request = Net::HTTP::Get.new(uri.to_s)
         | 
| 104 104 | 
             
                    request['Accept'] = accept_header if accept_header
         | 
| 105 105 | 
             
                    data = http.request(request)
         | 
| 106 106 | 
             
                  end
         |