git_checker 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +20 -16
- data/lib/git_checker/version.rb +1 -1
- data/lib/repository.rb +1 -1
- metadata +38 -23
data/README.markdown
CHANGED
@@ -14,15 +14,15 @@ Install:
|
|
14
14
|
Usage:
|
15
15
|
------
|
16
16
|
|
17
|
-
Create a file with the
|
18
|
-
|
17
|
+
Create a file with the extension .gck.rb
|
18
|
+
|
19
|
+
touch checkthis.gck.rb
|
19
20
|
|
20
21
|
Add some checks in that file, like:
|
21
|
-
|
22
|
-
#checkthis.gck.rb
|
23
|
-
local = Repository.new
|
24
|
-
commits_not_in local.branches['master'], local
|
25
|
-
`
|
22
|
+
|
23
|
+
#checkthis.gck.rb
|
24
|
+
local = Repository.new
|
25
|
+
commits_not_in local.branches['master'], local
|
26
26
|
|
27
27
|
Then run the command:
|
28
28
|
`gck`
|
@@ -31,20 +31,24 @@ More:
|
|
31
31
|
-----
|
32
32
|
|
33
33
|
You can also ask for run task that you not always want, like this:
|
34
|
-
`
|
35
|
-
#checkthis.gck.rb
|
36
|
-
local= Repository.new
|
37
|
-
remote= Repository.new 'remote'
|
38
34
|
|
39
|
-
|
35
|
+
#checkthis.gck.rb
|
36
|
+
local= Repository.new
|
37
|
+
remote= Repository.new 'origin'
|
38
|
+
ignore= %w(backup test) #for ignore this branches in the list
|
39
|
+
|
40
|
+
commits_not_in local.branches['master'], local, ignore
|
40
41
|
|
41
|
-
check_group "Check for branches not in Remote?" do
|
42
|
-
|
43
|
-
|
44
|
-
|
42
|
+
check_group "Check for branches not in Remote?" do
|
43
|
+
|
44
|
+
branches_not_in remote, local, ignore
|
45
|
+
|
46
|
+
end #>>> Check for branches not in Remote? [y/n]
|
45
47
|
|
46
48
|
You can skip this questions an run all with the command `agck`
|
47
49
|
|
48
50
|
Please:
|
49
51
|
-------
|
50
52
|
Feedback.
|
53
|
+
|
54
|
+
note: the merges should be done with `--no-ff` option for create a commit message in every merge.
|
data/lib/git_checker/version.rb
CHANGED
data/lib/repository.rb
CHANGED
metadata
CHANGED
@@ -1,27 +1,34 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: git_checker
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 0
|
8
|
+
- 2
|
9
|
+
version: 0.0.2
|
6
10
|
platform: ruby
|
7
|
-
authors:
|
11
|
+
authors:
|
8
12
|
- leizzer
|
9
13
|
autorequire:
|
10
14
|
bindir: bin
|
11
15
|
cert_chain: []
|
12
|
-
|
16
|
+
|
17
|
+
date: 2011-08-03 00:00:00 -04:00
|
13
18
|
default_executable:
|
14
19
|
dependencies: []
|
15
|
-
|
16
|
-
|
17
|
-
email:
|
20
|
+
|
21
|
+
description: "Using git_checker you can make scrips for perform checks over your git repositories easily\t"
|
22
|
+
email:
|
18
23
|
- lizzydw@gmail.com
|
19
|
-
executables:
|
24
|
+
executables:
|
20
25
|
- agck
|
21
26
|
- gck
|
22
27
|
extensions: []
|
28
|
+
|
23
29
|
extra_rdoc_files: []
|
24
|
-
|
30
|
+
|
31
|
+
files:
|
25
32
|
- .gitignore
|
26
33
|
- Gemfile
|
27
34
|
- README.markdown
|
@@ -37,26 +44,34 @@ files:
|
|
37
44
|
has_rdoc: true
|
38
45
|
homepage: https://github.com/leizzer/git_checker
|
39
46
|
licenses: []
|
47
|
+
|
40
48
|
post_install_message:
|
41
49
|
rdoc_options: []
|
42
|
-
|
50
|
+
|
51
|
+
require_paths:
|
43
52
|
- lib
|
44
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
53
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
45
54
|
none: false
|
46
|
-
requirements:
|
47
|
-
- -
|
48
|
-
- !ruby/object:Gem::Version
|
49
|
-
|
50
|
-
|
55
|
+
requirements:
|
56
|
+
- - ">="
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
segments:
|
59
|
+
- 0
|
60
|
+
version: "0"
|
61
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
51
62
|
none: false
|
52
|
-
requirements:
|
53
|
-
- -
|
54
|
-
- !ruby/object:Gem::Version
|
55
|
-
|
63
|
+
requirements:
|
64
|
+
- - ">="
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
segments:
|
67
|
+
- 0
|
68
|
+
version: "0"
|
56
69
|
requirements: []
|
70
|
+
|
57
71
|
rubyforge_project: git_checker
|
58
|
-
rubygems_version: 1.
|
72
|
+
rubygems_version: 1.3.7
|
59
73
|
signing_key:
|
60
74
|
specification_version: 3
|
61
75
|
summary: Keep an eye on your git repository
|
62
76
|
test_files: []
|
77
|
+
|