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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 873effc1aa6786f498eba71ccdd378f5adb167c7
4
- data.tar.gz: 62571df969ff8f4e232eea3216c75f8f9ce6b8b9
3
+ metadata.gz: f1f96bbcedd4a71b9bc1356037db850d848dc973
4
+ data.tar.gz: 1aae005da3a74dee1fb2ce20ba7138b1f9b21864
5
5
  SHA512:
6
- metadata.gz: 256d849adde211bf48f28f786dd3b7915e62efa8ce9adf53c08ae42825862678fa08035386eb169e3c497d94d7ba4c48ac33f997586a422f08ba045dec0a7325
7
- data.tar.gz: 072a4c38ecd4f13c21381c8f76390696042832e8992f15b8107ab9de0216c7f37758bc126ae54a6b55bcfdcb86df55d2e9fcd3de5eb00f17608ce43b47a7da1c
6
+ metadata.gz: 54340b81b97d56403360ada55d67d2343d452c7d66937d49d383ec60796ce853f820b3df648904a264291b49df933a5d0de1ba7a9056216d79f93e28cf0daedd
7
+ data.tar.gz: 4f8fec4d607dfb68b64cefff6b10fd5322c3740956bf0222f1b92a51a4c268a0e29c6fed78cf6c7f495294aaa3fb2b2132ea0e5753c00670b1bd3274209fee7d
data/bin/hunter CHANGED
@@ -72,7 +72,7 @@ command :find do |c|
72
72
  end
73
73
  end
74
74
  end
75
- when 500
75
+ when 204
76
76
  puts "We've found nothing for your query: as every good hunter... we are still learning".colorize(:red)
77
77
  Datahunter.print_excuse_message
78
78
  Datahunter.print_feedback_request
@@ -1,3 +1,3 @@
1
1
  module Datahunter
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
@@ -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.3
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-16 00:00:00.000000000 Z
11
+ date: 2014-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler