datahunter 0.0.4 → 0.0.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: c8bba1b0aa033c04e07c0e27279df43485da2013
4
- data.tar.gz: 01688fd2862ff969dae99fabfccce51f3a3c4064
3
+ metadata.gz: a521244790f9423ae6bbf23a9ed06ba5f8040541
4
+ data.tar.gz: a01ec6c806b025654d8b31ce95755ce590bd65bc
5
5
  SHA512:
6
- metadata.gz: fccec23786af7fb1fa4e5dd2de142f8b7c70e5fcaa7fc35a9585bee0197ce99369159730a80a54811f99011fd6ffd3e67711621642cfd7dad8b16ca50771bc59
7
- data.tar.gz: ff5d6fb9d643d993252bed1d251d10f44b196dbe2379b48dfa31cbd9331beb5ebd60ba1a44d00b186c2b89b37050773b102344313fda3cddca38e621fa28927e
6
+ metadata.gz: ebf3128d53823481c779a0f262fd3d0d8d3cfcf08aba7ceab99cb0d09289b36090ab70b0cfeab5f21bae01bd9e1a04086cdb2d1537104a065958ba4a9f8f8678
7
+ data.tar.gz: 6490476020d3b0c4c186c3e1f0ea29c82bdc42ae5f16134a2bec65386ea08eedc8047043a207d377fa7da91ef04c187e62eb87de3025a7ad059f777d720310dc
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2014 Terpo
1
+ Copyright (c) 2014 Terpolilli
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -1,21 +1,99 @@
1
- # Datahunter
1
+ # Hunter
2
2
 
3
3
  ![screenshot](./logo.png)
4
4
 
5
+ ## Hunter
6
+
7
+ 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.
8
+
9
+
5
10
  ## Installation
6
11
 
7
12
  $ gem install datahunter
8
13
 
9
14
  ## Usage
10
-
15
+ ### $ hunter find
11
16
  $ hunter find population france
17
+ ### Response in 0.569162 seconds
18
+ ### Looks like we've got something for you!
19
+
20
+ title: Population
21
+
22
+ description: Ce jeu de données permet d'accéder aux résultats des recensements de la population, à des séries chronologiques de la Banque de Données Macro-économiques de l'Insee sur le thème de la population et à d'autres données issues notamment des statistiques de l'état civil. Le recensement de la population permet de connaître la diversité et l'évolution de la population de la France. L'Insee fournit ainsi des statistiques sur les habitants et les logements, leur nombre et leurs caractéristiques : répartition par sexe et âge, professions, diplômes-formation, conditions de logement, modes de transport, déplacements domicile-travail, etc. La BDM est la principale base de données de séries et indices sur l'ensemble des domaines économiques et sociaux.
23
+
24
+ publisher: Institut National de la Statistique et des Etudes Economiques (INSEE)
25
+
26
+ temporal: ["1962", "1963", "1964", "1965", "1966", "1967", "1968", "1969", "1970", "1971", "1972", "1973", "1974", "1975", "1976", "1977", "1978", "1979", "1980", "1981", "1982", "1983", "1984", "1985", "1986", "1987", "1988", "1989", "1990", "1991", "1992", "1993", "1994", "1995", "1996", "1997", "1998", "1999", "2000", "2001", "2002", "2003", "2004", "2005", "2006", "2007", "2008", "2009", "2010", "2011", "2012", "2013"]
27
+
28
+ spatial: ["france", "fr", "europe", "schengen", "eu", "ue", "countries", "world", "all"]
29
+
30
+ created: 2014-05-07T02:40:14.478Z
31
+
32
+ updated: 2014-11-07T01:32:48.201Z
33
+
34
+ score: 25.893
35
+
36
+ ### get the data? (y/n)
37
+ => y: open your favorite browser at the page where you'll be able to preview and download the data
38
+ => n: suggest the next most popular dataset corresponding to the query
12
39
 
13
40
  ![usage](./hunter.gif)
14
41
 
42
+ ### $ hunter search
43
+
44
+ $ hunter search paris
45
+ ### Response in 0.281749 seconds
46
+ ### We've found 5 datasets corresponding to your query paris:
47
+
48
+ Vélib' - Paris et communes limitrophes (https://www.data.gouv.fr/fr/datasets/velib-paris-et-communes-limitrophes-idf/)
49
+
50
+ Liste des sites des hotspots Paris WiFi (https://www.data.gouv.fr/fr/datasets/liste-des-sites-des-hotspots-paris-wifi-prs/)
51
+
52
+ Liste des casernes à Paris et dans les départements de la petite couronne (https://www.data.gouv.fr/fr/datasets/liste-des-casernes-a-paris-et-dans-les-departements-de-la-petite-couronne-551678/)
53
+
54
+ Points d'accueil police (coordonnées) - Paris (https://www.data.gouv.fr/fr/datasets/points-d-accueil-police-coordonnees-paris-30379560/)
55
+
56
+ Lieux de tournage de films (long métrage) (https://www.data.gouv.fr/fr/datasets/lieux-de-tournage-de-films-long-metrage-prs/)
57
+
58
+
59
+ ## Feedbacks
60
+ Don't hesitate to [give us any feedback about you experience with Hunter!](https://docs.google.com/forms/d/1yNzZjCCXvWHQCbWz4sx-nui3LafeeLcT7FF9T-vbKvw/viewform?usp=send_form)
61
+
62
+ ## Roadmap
63
+
64
+ * more datasets
65
+ * download datasets from the terminal
66
+ * more generic lib to make the API more easy to reuse
67
+
15
68
  ## Contributing
16
69
 
17
- 1. Fork it ( https://github.com/[my-github-username]/datahunter/fork )
70
+ 1. Fork it ( https://github.com/nterpo/datahunter/fork )
18
71
  2. Create your feature branch (`git checkout -b my-new-feature`)
19
72
  3. Commit your changes (`git commit -am 'Add some feature'`)
20
73
  4. Push to the branch (`git push origin my-new-feature`)
21
74
  5. Create a new Pull Request
75
+
76
+ ## License
77
+
78
+ Copyright (c) 2014 Terpolilli
79
+
80
+ MIT License
81
+
82
+ Permission is hereby granted, free of charge, to any person obtaining
83
+ a copy of this software and associated documentation files (the
84
+ "Software"), to deal in the Software without restriction, including
85
+ without limitation the rights to use, copy, modify, merge, publish,
86
+ distribute, sublicense, and/or sell copies of the Software, and to
87
+ permit persons to whom the Software is furnished to do so, subject to
88
+ the following conditions:
89
+
90
+ The above copyright notice and this permission notice shall be
91
+ included in all copies or substantial portions of the Software.
92
+
93
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
94
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
95
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
96
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
97
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
98
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
99
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/bin/datahunter ADDED
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'datahunter'
4
+ require 'colorize'
5
+
6
+ puts "usage: ".colorize(:red)
7
+ puts "$ hunter find keyword [geo] [temp]".colorize(:blue)
data/bin/hunter CHANGED
@@ -9,7 +9,7 @@ require 'launchy'
9
9
  require 'colorize'
10
10
 
11
11
  program :version, Datahunter::VERSION
12
- program :description, 'Find open data easily and quicker than ever'
12
+ program :description, 'Find Open Data directly from your terminal'
13
13
 
14
14
  command :find do |c|
15
15
  c.syntax = 'hunter find keyword [spatial-coverage] [temporal-coverage]'
data/datahunter.gemspec CHANGED
@@ -10,14 +10,16 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ["nicolas.terpolilli@gmail.com"]
11
11
  spec.summary = %q{A Command Line Interface to find Open Datasets}
12
12
  spec.description = %q{Command line interface to find open datasets via the Hunter API}
13
- spec.homepage = ""
13
+ spec.homepage = "https://github.com/NTerpo/datahunter"
14
14
  spec.license = "MIT"
15
15
 
16
16
  spec.files = `git ls-files -z`.split("\x0")
17
+ spec.files.reject! { |fn| fn.include? "gif" }
18
+ spec.files.reject! { |fn| fn.include? "logo" }
17
19
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
20
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
21
  spec.require_paths = ["lib"]
20
-
22
+
21
23
  spec.add_development_dependency "bundler", "~> 1.7"
22
24
  spec.add_development_dependency "rake", "~> 10.0"
23
25
 
@@ -1,3 +1,3 @@
1
1
  module Datahunter
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.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.0.4
4
+ version: 0.0.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-02 00:00:00.000000000 Z
11
+ date: 2014-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -112,6 +112,7 @@ description: Command line interface to find open datasets via the Hunter API
112
112
  email:
113
113
  - nicolas.terpolilli@gmail.com
114
114
  executables:
115
+ - datahunter
115
116
  - hunter
116
117
  extensions: []
117
118
  extra_rdoc_files: []
@@ -121,14 +122,13 @@ files:
121
122
  - LICENSE.txt
122
123
  - README.md
123
124
  - Rakefile
125
+ - bin/datahunter
124
126
  - bin/hunter
125
127
  - datahunter.gemspec
126
- - hunter.gif
127
128
  - lib/datahunter.rb
128
129
  - lib/datahunter/base.rb
129
130
  - lib/datahunter/version.rb
130
- - logo.png
131
- homepage: ''
131
+ homepage: https://github.com/NTerpo/datahunter
132
132
  licenses:
133
133
  - MIT
134
134
  metadata: {}
@@ -148,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
148
148
  version: '0'
149
149
  requirements: []
150
150
  rubyforge_project:
151
- rubygems_version: 2.4.4
151
+ rubygems_version: 2.4.5
152
152
  signing_key:
153
153
  specification_version: 4
154
154
  summary: A Command Line Interface to find Open Datasets
data/hunter.gif DELETED
Binary file
data/logo.png DELETED
Binary file