git_checker 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.
- data/lib/branch.rb +12 -4
- data/lib/git_checker/version.rb +1 -1
- data/lib/git_checker.rb +1 -1
- metadata +40 -23
data/lib/branch.rb
CHANGED
@@ -7,12 +7,16 @@ class Branch
|
|
7
7
|
@repo = repo
|
8
8
|
end
|
9
9
|
|
10
|
-
def
|
11
|
-
|
10
|
+
def commit_hash
|
11
|
+
`git show -s --pretty="%H" #{full_name}`.strip
|
12
|
+
end
|
13
|
+
|
14
|
+
def contains? branch
|
15
|
+
commits_not_merged_from(branch).empty?
|
12
16
|
end
|
13
17
|
|
14
18
|
def log_merges
|
15
|
-
`git log #{format} #{
|
19
|
+
`git log #{format} #{full_name} --merges`
|
16
20
|
end
|
17
21
|
|
18
22
|
def format
|
@@ -22,7 +26,11 @@ class Branch
|
|
22
26
|
end
|
23
27
|
|
24
28
|
def commits_not_merged_from branch
|
25
|
-
`git log #{format} #{
|
29
|
+
`git log #{format} #{full_name}..#{branch.full_name}`
|
30
|
+
end
|
31
|
+
|
32
|
+
def full_name
|
33
|
+
"#{full_repo_name(@repo)}#{@name}"
|
26
34
|
end
|
27
35
|
|
28
36
|
private
|
data/lib/git_checker/version.rb
CHANGED
data/lib/git_checker.rb
CHANGED
metadata
CHANGED
@@ -1,26 +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
|
+
- 5
|
9
|
+
version: 0.0.5
|
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: 2012-02-23 00:00:00 -05:00
|
18
|
+
default_executable:
|
13
19
|
dependencies: []
|
14
|
-
|
15
|
-
|
16
|
-
email:
|
20
|
+
|
21
|
+
description: Using git_checker you can make scripts for perform checks over your git repositories easily
|
22
|
+
email:
|
17
23
|
- lizzydw@gmail.com
|
18
|
-
executables:
|
24
|
+
executables:
|
19
25
|
- agck
|
20
26
|
- gck
|
21
27
|
extensions: []
|
28
|
+
|
22
29
|
extra_rdoc_files: []
|
23
|
-
|
30
|
+
|
31
|
+
files:
|
24
32
|
- .gitignore
|
25
33
|
- README.markdown
|
26
34
|
- Rakefile
|
@@ -32,28 +40,37 @@ files:
|
|
32
40
|
- lib/git_checker/version.rb
|
33
41
|
- lib/message_printer.rb
|
34
42
|
- lib/repository.rb
|
43
|
+
has_rdoc: true
|
35
44
|
homepage: https://github.com/leizzer/git_checker
|
36
45
|
licenses: []
|
46
|
+
|
37
47
|
post_install_message:
|
38
48
|
rdoc_options: []
|
39
|
-
|
49
|
+
|
50
|
+
require_paths:
|
40
51
|
- lib
|
41
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
52
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
42
53
|
none: false
|
43
|
-
requirements:
|
44
|
-
- -
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
|
47
|
-
|
54
|
+
requirements:
|
55
|
+
- - ">="
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
segments:
|
58
|
+
- 0
|
59
|
+
version: "0"
|
60
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
48
61
|
none: false
|
49
|
-
requirements:
|
50
|
-
- -
|
51
|
-
- !ruby/object:Gem::Version
|
52
|
-
|
62
|
+
requirements:
|
63
|
+
- - ">="
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
segments:
|
66
|
+
- 0
|
67
|
+
version: "0"
|
53
68
|
requirements: []
|
69
|
+
|
54
70
|
rubyforge_project: git_checker
|
55
|
-
rubygems_version: 1.
|
71
|
+
rubygems_version: 1.3.7
|
56
72
|
signing_key:
|
57
73
|
specification_version: 3
|
58
74
|
summary: Keep an eye on your git repository
|
59
75
|
test_files: []
|
76
|
+
|