glean 0.0.13 → 0.0.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/.gitignore +1 -0
  2. data/README.md +58 -1
  3. data/lib/glean/version.rb +1 -1
  4. metadata +2 -3
  5. data/Gemfile.lock +0 -85
data/.gitignore CHANGED
@@ -3,6 +3,7 @@
3
3
  .bundle
4
4
  .config
5
5
  coverage
6
+ Gemfile.lock
6
7
  InstalledFiles
7
8
  lib/bundler/man
8
9
  pkg
data/README.md CHANGED
@@ -1,7 +1,38 @@
1
1
  # Glean - A data management tool for humans
2
2
 
3
+ ___Glean is experimental, expect breaking changes until v1.0.0___
4
+
5
+ ## About
6
+ Glean targets __human curated__ datasets, with a goal of easy collaboration.
7
+
8
+ Data is stored in the human readable data format, [TOML](https://github.com/mojombo/toml). You can think of it as Markdown for data. Each dataset is stored in a git repository, which makes it easy to track revisions, propose changes, and collaborate on datasets.
9
+
10
+ Each file represents one piece of data (a hash of hashes). Filenames and directory structure are not significant to the data, but are useful for organization and human collaboration via Pull Requests.
11
+
12
+ ## Goals
13
+ * Easily pull commonly used datasets into projects
14
+ * Curate data using Pull Requests
15
+ * Preserve attribution for contributors
16
+
17
+ ## Sources
18
+ Glean datasets are available from three distinct sources:
19
+
20
+ * [Core](http://github.com/glean) - Available via search, hosted on the Glean GitHub organization
21
+ * TODO
22
+ * Contrib - Available via search (using --contrib)
23
+ * User - Directly available via URL
24
+
25
+ ## Installation
26
+ ```
27
+ $ gem install glean
28
+ ```
29
+
30
+ __Requirements:__
31
+ * Git
32
+
3
33
  ## Command line
4
34
  ```
35
+ $ glean help
5
36
  NAME
6
37
  glean - A data management tool for humans
7
38
 
@@ -9,7 +40,7 @@ SYNOPSIS
9
40
  glean [global options] command [command options] [arguments...]
10
41
 
11
42
  VERSION
12
- 0.0.12
43
+ 0.0.13
13
44
 
14
45
  GLOBAL OPTIONS
15
46
  --help - Show this message
@@ -23,6 +54,28 @@ COMMANDS
23
54
  search - Search for datasets
24
55
  ```
25
56
 
57
+ ### Examples
58
+ ```
59
+ $ glean export countries --format=json
60
+ {"name":"Andorra","code":"ad"}
61
+ {"name":"United Arab Emirates","code":"ae"}
62
+ {"name":"Afghanistan","code":"af"}
63
+ ...
64
+ ```
65
+ ```
66
+ $ glean export us-states --format=yaml
67
+ --- !ruby/hash:Hashie::Mash
68
+ name: Alaska
69
+ abbreviation: ak
70
+ --- !ruby/hash:Hashie::Mash
71
+ name: Alabama
72
+ abbreviation: al
73
+ --- !ruby/hash:Hashie::Mash
74
+ name: Arkansas
75
+ abbreviation: ar
76
+ ...
77
+ ```
78
+
26
79
  ## Rails
27
80
 
28
81
  Gemfile:
@@ -40,6 +93,10 @@ if Country.count == 0
40
93
  end
41
94
  ```
42
95
 
96
+ ```
97
+ $ rake db:seed
98
+ ```
99
+
43
100
  ## Other Frameworks
44
101
 
45
102
  I'm not sure how you'd do it, but I want to make it easy. Open an issue, or better yet drop some code in a Pull Request.
data/lib/glean/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Glean
2
- VERSION = '0.0.13'
2
+ VERSION = '0.0.14'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glean
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-19 00:00:00.000000000 Z
12
+ date: 2013-06-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -212,7 +212,6 @@ extra_rdoc_files: []
212
212
  files:
213
213
  - .gitignore
214
214
  - Gemfile
215
- - Gemfile.lock
216
215
  - Guardfile
217
216
  - README.md
218
217
  - Rakefile
data/Gemfile.lock DELETED
@@ -1,85 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- glean (0.0.13)
5
- git (= 1.2.5)
6
- gli (= 2.5.4)
7
- hashie (= 2.0.3)
8
- json (= 1.7.7)
9
- octokit (= 1.24.0)
10
- toml (= 0.0.3)
11
-
12
- GEM
13
- remote: https://rubygems.org/
14
- specs:
15
- addressable (2.3.3)
16
- blankslate (2.1.2.4)
17
- coderay (1.0.9)
18
- diff-lcs (1.2.1)
19
- faraday (0.8.7)
20
- multipart-post (~> 1.1)
21
- faraday_middleware (0.9.0)
22
- faraday (>= 0.7.4, < 0.9)
23
- git (1.2.5)
24
- gli (2.5.4)
25
- guard (1.6.2)
26
- listen (>= 0.6.0)
27
- lumberjack (>= 1.0.2)
28
- pry (>= 0.9.10)
29
- terminal-table (>= 1.4.3)
30
- thor (>= 0.14.6)
31
- guard-rspec (2.5.1)
32
- guard (>= 1.1)
33
- rspec (~> 2.11)
34
- hashie (2.0.3)
35
- json (1.7.7)
36
- listen (0.7.3)
37
- lumberjack (1.0.3)
38
- method_source (0.8.1)
39
- multi_json (1.7.2)
40
- multipart-post (1.2.0)
41
- netrc (0.7.7)
42
- octokit (1.24.0)
43
- addressable (~> 2.2)
44
- faraday (~> 0.8)
45
- faraday_middleware (~> 0.9)
46
- hashie (~> 2.0)
47
- multi_json (~> 1.3)
48
- netrc (~> 0.7.7)
49
- parslet (1.5.0)
50
- blankslate (~> 2.0)
51
- pry (0.9.12)
52
- coderay (~> 1.0.5)
53
- method_source (~> 0.8)
54
- slop (~> 3.4)
55
- rake (10.0.3)
56
- rb-fsevent (0.9.3)
57
- rspec (2.13.0)
58
- rspec-core (~> 2.13.0)
59
- rspec-expectations (~> 2.13.0)
60
- rspec-mocks (~> 2.13.0)
61
- rspec-core (2.13.1)
62
- rspec-expectations (2.13.0)
63
- diff-lcs (>= 1.1.3, < 2.0)
64
- rspec-mocks (2.13.0)
65
- rspec-nc (0.0.5)
66
- rspec (~> 2.9)
67
- terminal-notifier (~> 1.4.2)
68
- slop (3.4.4)
69
- terminal-notifier (1.4.2)
70
- terminal-table (1.4.5)
71
- thor (0.17.0)
72
- toml (0.0.3)
73
- parslet
74
-
75
- PLATFORMS
76
- ruby
77
-
78
- DEPENDENCIES
79
- glean!
80
- guard-rspec
81
- pry
82
- rake
83
- rb-fsevent
84
- rspec
85
- rspec-nc