datahunter 0.1.3 → 0.1.4
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/bin/hunter +1 -1
- data/lib/datahunter/version.rb +1 -1
- data/spec/datahunter_spec.rb +0 -27
- 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: f1f96bbcedd4a71b9bc1356037db850d848dc973
|
4
|
+
data.tar.gz: 1aae005da3a74dee1fb2ce20ba7138b1f9b21864
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54340b81b97d56403360ada55d67d2343d452c7d66937d49d383ec60796ce853f820b3df648904a264291b49df933a5d0de1ba7a9056216d79f93e28cf0daedd
|
7
|
+
data.tar.gz: 4f8fec4d607dfb68b64cefff6b10fd5322c3740956bf0222f1b92a51a4c268a0e29c6fed78cf6c7f495294aaa3fb2b2132ea0e5753c00670b1bd3274209fee7d
|
data/bin/hunter
CHANGED
data/lib/datahunter/version.rb
CHANGED
data/spec/datahunter_spec.rb
CHANGED
@@ -13,33 +13,6 @@ describe "Datahunter API calls" do
|
|
13
13
|
end
|
14
14
|
end
|
15
15
|
|
16
|
-
describe 'Should get the right HTTP codes when calling the API' do
|
17
|
-
response_ok = RestClient.get("#{DATASETS_URL}?tags=population",
|
18
|
-
:content_type => :json)
|
19
|
-
response_ni = RestClient.get(DATASETS_URL,
|
20
|
-
:content_type => :json){|response, request, result| response}
|
21
|
-
response_nf = RestClient.get("#{DATASETS_URL}?tags=foo",
|
22
|
-
:content_type => :json){|response, request, result| response}
|
23
|
-
response_nff = RestClient.get("http://shrouded-harbor-5877.herokuapp.com/api/foo",
|
24
|
-
:content_type => :json){|response, request, result| response}
|
25
|
-
|
26
|
-
it 'should return an HTTP 200 with a correct url' do
|
27
|
-
response_ok.code.should eq(200)
|
28
|
-
end
|
29
|
-
|
30
|
-
it 'should return an HTTP 501 when calling api/datasets/' do
|
31
|
-
response_ni.code.should eq(501)
|
32
|
-
end
|
33
|
-
|
34
|
-
it 'should return an HTTP 500 when a query has no result' do
|
35
|
-
response_nf.code.should eq(500)
|
36
|
-
end
|
37
|
-
|
38
|
-
it 'should return an HTTP 404 when calling a non defined URL' do
|
39
|
-
response_nff.code.should eq(404)
|
40
|
-
end
|
41
|
-
end
|
42
|
-
|
43
16
|
describe 'Should receive a dataset corresponding to the query' do
|
44
17
|
response = RestClient.get("#{DATASETS_URL}?tags=population",
|
45
18
|
:content_type => :json)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: datahunter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Terpo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-12-
|
11
|
+
date: 2014-12-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|