codewars_api 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/codewars_api.gemspec +1 -1
- data/lib/codewars_api.rb +2 -2
- data/lib/codewars_api/deferred_response.rb +4 -0
- data/lib/codewars_api/helpers/request_helper.rb +0 -2
- data/lib/codewars_api/helpers/response_checker.rb +1 -1
- data/lib/codewars_api/user.rb +1 -1
- data/lib/codewars_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 95b67630306cd7baae05bb70c5158e3a6a2d1e83
|
4
|
+
data.tar.gz: 8bf2bcc0aa0c7e1687efb8fd4478b1d357b877c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5dfd98777bde1240bcd7fa134e5ca996a4162d23281c34a5ae1d746e5dfd0a2b7a2d14c94791a835dbcd517e5da16ff67581d5de5e39576f352adb26f09c471c
|
7
|
+
data.tar.gz: 8f0b0a7928750f46a0b570d69db4185475532dfbef220420becaa7542044021a3dc4f1ad434876c587773ddcefab651ba1e945ae881188cb9b46a1c12e2356fd
|
data/codewars_api.gemspec
CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
|
|
13
13
|
spec.homepage = 'https://github.com/evmorov/codewars_api_client'
|
14
14
|
|
15
15
|
spec.files = `git ls-files -z`.split("\x0")
|
16
|
-
|
16
|
+
.reject { |f| f.match(%r{^(test|spec|features)/}) }
|
17
17
|
spec.bindir = 'exe'
|
18
18
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
19
19
|
spec.require_paths = ['lib']
|
data/lib/codewars_api.rb
CHANGED
data/lib/codewars_api/user.rb
CHANGED
@@ -3,7 +3,7 @@ module CodewarsApi
|
|
3
3
|
include Common
|
4
4
|
|
5
5
|
def initialize(id_or_username)
|
6
|
-
|
6
|
+
raise 'Username or id is not set' unless id_or_username
|
7
7
|
@response = RequestHelper.get("#{CodewarsApi::API_URL}/users/#{id_or_username}")
|
8
8
|
ResponseChecker.check_errors(@response)
|
9
9
|
end
|
data/lib/codewars_api/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: codewars_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Evgeny Morozov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-07-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|