gitset 0.0.0 → 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,18 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ coverage
6
+ InstalledFiles
7
+ lib/bundler/man
8
+ pkg
9
+ rdoc
10
+ spec/reports
11
+ test/tmp
12
+ test/version_tmp
13
+ tmp
14
+
15
+ # YARD artifacts
16
+ .yardoc
17
+ _yardoc
18
+ doc/
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in gitset.gemspec
4
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 John Britton
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,78 @@
1
+ # Gitset - A data collection and curation tool for humans
2
+
3
+ Gitset is essentially a key-value store. The key is a path to a file on disk and the value is the contents of that file. The goal is to make collaborating on creating and curating datasets as easy as it is to contribute to an open source code project.
4
+
5
+ Gitset is not intended to be used as a database, rather it should be used to manage a canonical data source that is imported into a "real" database for production use. On your mark, gitset, go!
6
+
7
+ ## Installation
8
+ If you haven't already done so, [set up git](https://help.github.com/articles/set-up-git). It's a prerequisite. Once you've done that, you can install gitset from rubygems:
9
+
10
+ gem install gitset
11
+
12
+ ## Usage
13
+
14
+ ### Create a new dataset
15
+ 1. Create a project directory
16
+
17
+ ```
18
+ mkdir /path/to/project
19
+ cd /path/to/project
20
+ ```
21
+
22
+ 2. Create a YAML template to be used for new data points
23
+
24
+ ```yaml
25
+ # template.yaml
26
+ ---
27
+ name: Full Name
28
+ emails:
29
+ - mail1@example.com
30
+ - mail2@example.net
31
+ - mail3@example.org
32
+ ```
33
+
34
+ 3. Initialize the project with your template
35
+
36
+ ```
37
+ gitset init template.yaml
38
+ ```
39
+
40
+ ### Clone an existing dataset
41
+ gitset clone git://github.com/username/datasetname.git
42
+
43
+ ### Working with a dataset
44
+ 1. Add a new data point using the template
45
+
46
+ ```
47
+ gitset create path/to/datapoint.yaml
48
+ ```
49
+
50
+ 2. Edit the template
51
+
52
+ ```yaml
53
+ # path/to/datapoint.yaml
54
+ ---
55
+ name: John Britton
56
+ emails:
57
+ - public@johndbritton.com
58
+ ```
59
+
60
+ 3. Stage your changes
61
+
62
+ ```
63
+ git add path/to/datapoint.yaml
64
+ ```
65
+
66
+ 4. Commit your changes
67
+
68
+ ```
69
+ git commit -m 'Added a person'
70
+ ```
71
+
72
+ Use standard git to modify existing datapoints in your dataset and commit the changes.
73
+
74
+ ___BUT WAIT, THERE'S MORE!___
75
+ * Branch the dataset
76
+ * Contribute to a dataset
77
+ * Merge contributions
78
+ * Filter the dataset
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
data/bin/gitset ADDED
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'gitset'
4
+
5
+ puts "hello"
data/gitset.gemspec ADDED
@@ -0,0 +1,19 @@
1
+ # -*- encoding: utf-8 -*-
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'gitset/version'
5
+
6
+ Gem::Specification.new do |gem|
7
+ gem.name = "gitset"
8
+ gem.version = Gitset::VERSION
9
+ gem.authors = ["John Britton"]
10
+ gem.email = ["public@johndbritton.com"]
11
+ gem.description = %q{A data collection and curation tool for humans}
12
+ gem.summary = %q{GitSet}
13
+ gem.homepage = "http://github.com/johndbritton/gitset"
14
+
15
+ gem.files = `git ls-files`.split($/)
16
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
17
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
+ gem.require_paths = ["lib"]
19
+ end
@@ -0,0 +1,3 @@
1
+ module Gitset
2
+ VERSION = "0.0.1"
3
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitset
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,15 +9,25 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-27 00:00:00.000000000 Z
12
+ date: 2013-02-13 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: A data collection and curation tool for humans
15
- email: public@johndbritton.com
16
- executables: []
15
+ email:
16
+ - public@johndbritton.com
17
+ executables:
18
+ - gitset
17
19
  extensions: []
18
20
  extra_rdoc_files: []
19
21
  files:
22
+ - .gitignore
23
+ - Gemfile
24
+ - LICENSE
25
+ - README.md
26
+ - Rakefile
27
+ - bin/gitset
28
+ - gitset.gemspec
20
29
  - lib/gitset.rb
30
+ - lib/gitset/version.rb
21
31
  homepage: http://github.com/johndbritton/gitset
22
32
  licenses: []
23
33
  post_install_message:
@@ -41,5 +51,5 @@ rubyforge_project:
41
51
  rubygems_version: 1.8.23
42
52
  signing_key:
43
53
  specification_version: 3
44
- summary: Gitset
54
+ summary: GitSet
45
55
  test_files: []