bibox 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fbb33d492cf7c4af1390d1fe3620efb5bb021b74cf0f53e1e669157ad3caeec8
4
- data.tar.gz: 99ad1bf40c2d58a54f3aae91c48ffbe7d498886441fb544a143a47f6c7b44d63
3
+ metadata.gz: 85887e7aed5ce9bacd8c655939c6f291b843831909caf13521163e00d9258b0d
4
+ data.tar.gz: 1fce3879a1b05c631eb4410340f72ff295a84e80c1ab34c567e036884db077e5
5
5
  SHA512:
6
- metadata.gz: c32b6f424ae4a9fede32dd31f1126837cacb97f47e6186f3bfba168fab1ac5a2d62b697b9ddb6d85588ac2a457051716c657d5862340d3487a100d685c65baba
7
- data.tar.gz: ec0692426a3b7eb6a2e2adf58358f54af6d99aac38f0fd454fea88fdcb1cf9cf0634da418b087c3fa64e24cbe7d855941798103cfe7c1051ea0f7339a3fc6dff
6
+ metadata.gz: 703cc058445847ba99d19f572677672488dea9c798ecfc5118a674af89795b4fda159d475cad060414a27f9d6678046d36e4dcc089381c43b5664187cd5fdc2a
7
+ data.tar.gz: ccdabef258bd42cfb8768d1c8e1c2261a988dbef04c6b850a40ae413d193633d5873819659efad3f1cf20d2fd6d82b0b4af4c4aaec648028d405158a9f72b402
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bibox (0.1.1)
4
+ bibox (0.1.2)
5
5
  eventmachine (>= 1.2.5)
6
6
  faraday (>= 0.13)
7
7
  faraday_middleware (>= 0.12.2)
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
@@ -1,3 +1,3 @@
1
1
  module Bibox
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
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.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-01-31 00:00:00.000000000 Z
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: []