bibox 0.1.1 → 0.1.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/Gemfile.lock +1 -1
- data/bibox.gemspec +1 -1
- data/lib/bibox/errors.rb +2 -0
- data/lib/bibox/version.rb +1 -1
- metadata +3 -3
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 85887e7aed5ce9bacd8c655939c6f291b843831909caf13521163e00d9258b0d
         | 
| 4 | 
            +
              data.tar.gz: 1fce3879a1b05c631eb4410340f72ff295a84e80c1ab34c567e036884db077e5
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 703cc058445847ba99d19f572677672488dea9c798ecfc5118a674af89795b4fda159d475cad060414a27f9d6678046d36e4dcc089381c43b5664187cd5fdc2a
         | 
| 7 | 
            +
              data.tar.gz: ccdabef258bd42cfb8768d1c8e1c2261a988dbef04c6b850a40ae413d193633d5873819659efad3f1cf20d2fd6d82b0b4af4c4aaec648028d405158a9f72b402
         | 
    
        data/Gemfile.lock
    CHANGED
    
    
    
        data/bibox.gemspec
    CHANGED
    
    | @@ -10,7 +10,7 @@ Gem::Specification.new do |spec| | |
| 10 10 | 
             
              spec.email         = ["sebastian.johnsson@gmail.com"]
         | 
| 11 11 |  | 
| 12 12 | 
             
              spec.summary       = %q{Ruby REST + Websocket clients for Bibox's API'}
         | 
| 13 | 
            -
              spec.description   = %q{Ruby REST + Websocket clients for crypto currency exchange Bibox's API | 
| 13 | 
            +
              spec.description   = %q{Ruby REST + Websocket clients for crypto currency exchange Bibox's API}
         | 
| 14 14 | 
             
              spec.homepage      = "https://github.com/SebastianJ/bibox"
         | 
| 15 15 | 
             
              spec.license       = "MIT"
         | 
| 16 16 |  | 
    
        data/lib/bibox/errors.rb
    CHANGED
    
    | @@ -6,11 +6,13 @@ module Bibox | |
| 6 6 | 
             
                class InvalidOrderError < Bibox::Errors::Error; end;
         | 
| 7 7 | 
             
                class ApiNotSupportedError < Bibox::Errors::Error; end;
         | 
| 8 8 | 
             
                class WebsocketError < Bibox::Errors::Error; end;
         | 
| 9 | 
            +
                class RateLimitError < Bibox::Errors::Error; end;
         | 
| 9 10 |  | 
| 10 11 | 
             
                MAPPING = {
         | 
| 11 12 | 
             
                  "2033" => -> { raise ::Bibox::Errors::InvalidOrderError.new("Order operation failed! Order has already completed or has already been revoked (code 2033)") },
         | 
| 12 13 | 
             
                  "3000" => -> { raise ::Bibox::Errors::ParameterError.new("Invalid parameters specified (code 3000)") },
         | 
| 13 14 | 
             
                  "3011" => -> { raise ::Bibox::Errors::ApiNotSupportedError.new("This method isn't available via the API (code 3011)") },
         | 
| 15 | 
            +
                  "4003" => -> { raise ::Bibox::Errors::RateLimitError.new("The server is busy or a rate limit has been hit.") },
         | 
| 14 16 | 
             
                }
         | 
| 15 17 |  | 
| 16 18 | 
             
              end
         | 
    
        data/lib/bibox/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: bibox
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.1. | 
| 4 | 
            +
              version: 0.1.2
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Sebastian Johnsson
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: exe
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2018- | 
| 11 | 
            +
            date: 2018-02-08 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: faraday
         | 
| @@ -150,7 +150,7 @@ dependencies: | |
| 150 150 | 
             
                - - "~>"
         | 
| 151 151 | 
             
                  - !ruby/object:Gem::Version
         | 
| 152 152 | 
             
                    version: '3.1'
         | 
| 153 | 
            -
            description: Ruby REST + Websocket clients for crypto currency exchange Bibox's API | 
| 153 | 
            +
            description: Ruby REST + Websocket clients for crypto currency exchange Bibox's API
         | 
| 154 154 | 
             
            email:
         | 
| 155 155 | 
             
            - sebastian.johnsson@gmail.com
         | 
| 156 156 | 
             
            executables: []
         |