git-index 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d07ab837d222ffa7cf563c66ef1dab75dac10310e26a80eb8d1aada2e9905f15
4
- data.tar.gz: fbd5dd13c20b607b50491a5d46433cde722c0803d0dbff56a6fcbc2814e90cbb
3
+ metadata.gz: aa76edc27605478d27c8787073cc8a28b297d96194ba765565e754fc7872ce71
4
+ data.tar.gz: e77d1ee9cf749fbf91b0bdddc06b72b2210c3b7e5065de028ce0c00a682904dc
5
5
  SHA512:
6
- metadata.gz: 74631ff08768bcf659be1cfdfc1f3aa3230b092e93f47937ccbe2f960db5e75ae6120ad44ecdb4c28445d7c55be0214addc9a34b9432e4f0b8fcb3d4891f0a75
7
- data.tar.gz: b40d3e81950390e3b670f392eff8cfe1309bb5dde7f73a27cdc1d0d1134508a58ca1d07d9836b046b6fd55ea498fcee2298490c1399b7303bf1b8d0f153e6340
6
+ metadata.gz: 7917da2cda28a6ef047a79f692ebc6b1a4378d08d31bd4fa3978ce2d797042ea1ce0f9dcc593196798c989002444d80e28f9179270fd93208fa9b851f2d1debc
7
+ data.tar.gz: d7f421d28ff142c9bdf25db1ae141a3c2477c7638b0f5eeb93a4a48bfc253964a1938cd13217b93a2988b68b81bf9e24cb363e448b0ebfe35b9f63a210e554bb
data/README.md CHANGED
@@ -1,2 +1,36 @@
1
1
  # git-index
2
- This is a very simple little tool that creates an index of git repositories, keyed by the commit hash codes for the first and second commits in the repository.
2
+
3
+ This tool takes a list of paths and checks them for git repositories. It
4
+ writes to a sqlite database a table of repositories found, indexed by both
5
+ the first and the second commit hashes on the repository. The rationale is
6
+ that these first couple of commits are unlikely to ever change as the
7
+ result of a rebase, and thus make a fairly reliable fingerprint of the
8
+ identity of the repository. The motivation behind this tool is for use with
9
+ Serf and the `serf-hander` gem to power a slick, simple deployment manger
10
+ utiizing a git repo and deploy hooks at the underlying source and trigger.
11
+
12
+ ## Usage
13
+
14
+ ```
15
+ git-index /gluster/htdocs/site.doc.com
16
+ ```
17
+
18
+ Add the given directory to the index.
19
+
20
+ ```
21
+ git-index -l
22
+ ```
23
+
24
+ List all of the indexed hashes and their directories
25
+
26
+ ```
27
+ git-index -q d950c4bbe672fe02e36009d71d88ef4ab754fa91
28
+ ```
29
+
30
+ Perform a lookup in the index to see if that has code matches a known repository, and returns the matches, one per line.
31
+
32
+ ```
33
+ git-index -h
34
+ ```
35
+
36
+ See all options.
data/git-index.gemspec CHANGED
@@ -16,10 +16,18 @@ Gem::Specification.new do |spec|
16
16
  the first and the second commit hashes on the repository. The rationale is
17
17
  that these first couple of commits are unlikely to ever change as the
18
18
  result of a rebase, and thus make a fairly reliable fingerprint of the
19
- identity of the repository.
19
+ identity of the repository. The motivation behind this tool is for use with
20
+ Serf and the serf-hander gem to power a slick, simple deployment manger
21
+ utiizing a git repo and deploy hooks at the underlying source and trigger.
20
22
  EDESC
21
- spec.homepage = ""
23
+ spec.homepage = "https://github.com/wyhaines/git-index"
22
24
  spec.license = "MIT"
25
+ spec.metadata = {
26
+ "bug_tracker_uri" => "https://github.com/wyhaines/git-index/issues",
27
+ "documentation_uri" => "https://github.com/wyhaines/git-index",
28
+ "homepage_uri" => "https://github.com/wyhaines/git-index",
29
+ "source_code_uri" => "https://github.com/wyhaines/git-index",
30
+ }
23
31
 
24
32
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
25
33
  f.match(%r{^(test|spec|features)/})
@@ -1,3 +1,3 @@
1
1
  module GitIndex
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-index
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kirk Haines
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-22 00:00:00.000000000 Z
11
+ date: 2018-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -72,7 +72,9 @@ description: |
72
72
  the first and the second commit hashes on the repository. The rationale is
73
73
  that these first couple of commits are unlikely to ever change as the
74
74
  result of a rebase, and thus make a fairly reliable fingerprint of the
75
- identity of the repository.
75
+ identity of the repository. The motivation behind this tool is for use with
76
+ Serf and the serf-hander gem to power a slick, simple deployment manger
77
+ utiizing a git repo and deploy hooks at the underlying source and trigger.
76
78
  email:
77
79
  - wyhaines@gmail.com
78
80
  executables:
@@ -88,10 +90,14 @@ files:
88
90
  - lib/gitindex.rb
89
91
  - lib/gitindex/config.rb
90
92
  - lib/gitindex/version.rb
91
- homepage: ''
93
+ homepage: https://github.com/wyhaines/git-index
92
94
  licenses:
93
95
  - MIT
94
- metadata: {}
96
+ metadata:
97
+ bug_tracker_uri: https://github.com/wyhaines/git-index/issues
98
+ documentation_uri: https://github.com/wyhaines/git-index
99
+ homepage_uri: https://github.com/wyhaines/git-index
100
+ source_code_uri: https://github.com/wyhaines/git-index
95
101
  post_install_message:
96
102
  rdoc_options: []
97
103
  require_paths: