datahunter 0.1.4 → 0.1.5
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/README.md +6 -1
- data/bin/hunter +2 -2
- data/lib/datahunter/base.rb +10 -0
- data/lib/datahunter/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: 022539c783acd412ca9c6bef66cf404bf7553b92
|
4
|
+
data.tar.gz: d0f2e4057285cf4b94c11d14f11d7b3bdac7c779
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b4dcd81b0e3aa38bece7bad5ce2a5dda6fe5176fa499e6af0ee9f888fcd31042a6094c946f65263c4e4169df82f05ce503e448512602593c52e5e424b92ba39
|
7
|
+
data.tar.gz: 254b271330ad564a813c7e2b197a645f088d8cdffdcd4a6e4a6b1c5091b73f74adce3b1b568d0d0c75ca3fa3f2e238026ea6125c19b4b00304c8068118d63398
|
data/README.md
CHANGED
@@ -6,7 +6,12 @@
|
|
6
6
|
|
7
7
|
[](http://badge.fury.io/rb/datahunter) [](https://travis-ci.org/NTerpo/datahunter)
|
8
8
|
|
9
|
-
|
9
|
+
**Hunter allows you to find and download open datasets quickly and easily from your terminal**. We work hard to index and sort the most useful datasets available for you!
|
10
|
+
|
11
|
+
In a world where there are more and more data publishers and data users, the research of those data is still a pain.
|
12
|
+
Our aim with Hunter is to help publishers seeing their data reused and to help data users to find them quicker than ever and to handle them easily.
|
13
|
+
|
14
|
+
We believe that pre-processing data is a bad idea and that hosting them could create problems for data users. We just want to show you the way to the data you want as faster as possible!
|
10
15
|
|
11
16
|
|
12
17
|
## Installation
|
data/bin/hunter
CHANGED
@@ -67,6 +67,7 @@ command :find do |c|
|
|
67
67
|
end
|
68
68
|
if index >= 2 or datasets[index+1].nil?
|
69
69
|
Datahunter.print_excuse_message
|
70
|
+
Datahunter.print_request_dataset_message
|
70
71
|
Datahunter.print_feedback_request
|
71
72
|
break
|
72
73
|
end
|
@@ -74,8 +75,7 @@ command :find do |c|
|
|
74
75
|
end
|
75
76
|
when 204
|
76
77
|
puts "We've found nothing for your query: as every good hunter... we are still learning".colorize(:red)
|
77
|
-
Datahunter.
|
78
|
-
Datahunter.print_feedback_request
|
78
|
+
Datahunter.print_request_dataset_message
|
79
79
|
else
|
80
80
|
response.return!(request, result, &block)
|
81
81
|
end
|
data/lib/datahunter/base.rb
CHANGED
@@ -8,6 +8,7 @@ module Datahunter
|
|
8
8
|
# DATASETS_URL = "http://localhost:3000/api/datasets/"
|
9
9
|
DATASETS_URL = "http://shrouded-harbor-5877.herokuapp.com/api/datasets/"
|
10
10
|
FEEDBACK_URL = "https://docs.google.com/forms/d/1yNzZjCCXvWHQCbWz4sx-nui3LafeeLcT7FF9T-vbKvw/viewform"
|
11
|
+
REQUEST_URL = "https://docs.google.com/forms/d/1NRKWmb_mcpKJmrutXvZSZnysM_v0rfLhjD897H3Myrw/viewform?usp=send_form"
|
11
12
|
|
12
13
|
def self.datasets_url tag, geo=nil, temp=nil
|
13
14
|
tag = tag.downcase.split.first if tag
|
@@ -62,6 +63,15 @@ module Datahunter
|
|
62
63
|
end
|
63
64
|
end
|
64
65
|
|
66
|
+
def self.print_request_dataset_message
|
67
|
+
case ask "### request a dataset? (y/n)".colorize(:yellow)
|
68
|
+
when 'y'
|
69
|
+
Launchy.open(REQUEST_URL, options = {})
|
70
|
+
else
|
71
|
+
puts "Bye for now!"
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
65
75
|
def self.print_excuse_message
|
66
76
|
puts "Remember, this is a first prototype, there will surely be a lot more "\
|
67
77
|
"datasets indexed soon. If you want us to find a dataset for you, or "\
|
data/lib/datahunter/version.rb
CHANGED
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.5
|
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-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|