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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f1f96bbcedd4a71b9bc1356037db850d848dc973
4
- data.tar.gz: 1aae005da3a74dee1fb2ce20ba7138b1f9b21864
3
+ metadata.gz: 022539c783acd412ca9c6bef66cf404bf7553b92
4
+ data.tar.gz: d0f2e4057285cf4b94c11d14f11d7b3bdac7c779
5
5
  SHA512:
6
- metadata.gz: 54340b81b97d56403360ada55d67d2343d452c7d66937d49d383ec60796ce853f820b3df648904a264291b49df933a5d0de1ba7a9056216d79f93e28cf0daedd
7
- data.tar.gz: 4f8fec4d607dfb68b64cefff6b10fd5322c3740956bf0222f1b92a51a4c268a0e29c6fed78cf6c7f495294aaa3fb2b2132ea0e5753c00670b1bd3274209fee7d
6
+ metadata.gz: 5b4dcd81b0e3aa38bece7bad5ce2a5dda6fe5176fa499e6af0ee9f888fcd31042a6094c946f65263c4e4169df82f05ce503e448512602593c52e5e424b92ba39
7
+ data.tar.gz: 254b271330ad564a813c7e2b197a645f088d8cdffdcd4a6e4a6b1c5091b73f74adce3b1b568d0d0c75ca3fa3f2e238026ea6125c19b4b00304c8068118d63398
data/README.md CHANGED
@@ -6,7 +6,12 @@
6
6
 
7
7
  [![Gem Version](https://badge.fury.io/rb/datahunter.svg)](http://badge.fury.io/rb/datahunter) [![Build Status](https://travis-ci.org/NTerpo/datahunter.svg?branch=master)](https://travis-ci.org/NTerpo/datahunter)
8
8
 
9
- We believe there will be more and more data available on the web and the main issue will be to find them and to manage each sources. So we try to do it for you: not by pre-processing them but by orienting you.
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.print_excuse_message
78
- Datahunter.print_feedback_request
78
+ Datahunter.print_request_dataset_message
79
79
  else
80
80
  response.return!(request, result, &block)
81
81
  end
@@ -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 "\
@@ -1,3 +1,3 @@
1
1
  module Datahunter
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
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
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-17 00:00:00.000000000 Z
11
+ date: 2014-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler