Permalink
Browse files

Updated to Crystal > 0.15.0

  • Loading branch information...
1 parent bbdfd90 commit 0f1e5a52f57a214584aa2ee4619c6bf3795bcda0 @asterite asterite committed Apr 12, 2016
Showing with 6 additions and 4 deletions.
  1. +2 −2 shard.yml
  2. +3 −1 src/brium/api.cr
  3. +1 −1 src/brium/api/error.cr
View
@@ -1,10 +1,10 @@
name: brium
-version: 0.4.0
+version: 0.5.0
authors:
- Ary Borenszweig <aborenszweig@manas.com.ar>
development_dependencies:
webmock:
github: manastech/webmock.cr
- version: "~> 0.6.0"
+ version: "~> 0.7.0"
View
@@ -6,7 +6,9 @@ class Brium::API
new session, host, port, ssl
end
- def initialize(@session : OAuth2::Session, host = nil, @port = nil, @ssl = false)
+ @host : String
+
+ def initialize(@session : OAuth2::Session, host : String? = nil, @port : Int32? = nil, @ssl = false)
@host = host || "brium.me"
end
@@ -1,5 +1,5 @@
class Brium::API::Error < Exception
- def initialize(@response)
+ def initialize(@response : HTTP::Client::Response)
super("Brium::API::Error: #{@response.status_code}\n#{@response.body}")
end
end

0 comments on commit 0f1e5a5

Please sign in to comment.