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 CHANGED
@@ -14,15 +14,15 @@ Install:
14
14
  Usage:
15
15
  ------
16
16
 
17
- Create a file with the extencion .gck.rb
18
- `touch checkthis.gck.rb`
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
- commits_not_in local.branches['master'], local
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
- branches_not_in remote, local
43
- end #>>> Check for branches not in Remote? [y/n]
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.
@@ -1,3 +1,3 @@
1
1
  module GitChecker
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
data/lib/repository.rb CHANGED
@@ -30,7 +30,7 @@ class Repository
30
30
  else
31
31
  branches = `git branch`.split
32
32
  end
33
- branches - ['*']
33
+ branches - ['*', '->']
34
34
  end
35
35
 
36
36
  def branch_name list, repo
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
- version: 0.0.1
5
- prerelease:
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
- date: 2011-07-24 00:00:00.000000000 -04:00
16
+
17
+ date: 2011-08-03 00:00:00 -04:00
13
18
  default_executable:
14
19
  dependencies: []
15
- description: ! "Using git_checker you can make scrips for perform checks over your
16
- git repositories easily\t"
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
- files:
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
- require_paths:
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
- version: '0'
50
- required_rubygems_version: !ruby/object:Gem::Requirement
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
- version: '0'
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.6.2
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
+