git_utils 1.1.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. data/History.txt +0 -4
  2. data/Manifest.txt +158 -42
  3. data/{PostInstall.txt → README.txt} +0 -0
  4. data/bin/gem_publish +5 -3
  5. data/bin/git_branch +4 -0
  6. data/bin/git_commit +2 -4
  7. data/bin/git_sync +9 -2
  8. data/git_utils.gemspec +20 -63
  9. data/lib/git_utils.rb +1 -16
  10. metadata +44 -106
  11. data/History_txt.html +0 -96
  12. data/Manifest_txt.html +0 -100
  13. data/PostInstall_txt.html +0 -88
  14. data/README.rdoc +0 -31
  15. data/doc/GitUtils.html +0 -232
  16. data/doc/created.rid +0 -5
  17. data/doc/images/brick.png +0 -0
  18. data/doc/images/brick_link.png +0 -0
  19. data/doc/images/bug.png +0 -0
  20. data/doc/images/bullet_black.png +0 -0
  21. data/doc/images/bullet_toggle_minus.png +0 -0
  22. data/doc/images/bullet_toggle_plus.png +0 -0
  23. data/doc/images/date.png +0 -0
  24. data/doc/images/find.png +0 -0
  25. data/doc/images/loadingAnimation.gif +0 -0
  26. data/doc/images/macFFBgHack.png +0 -0
  27. data/doc/images/package.png +0 -0
  28. data/doc/images/page_green.png +0 -0
  29. data/doc/images/page_white_text.png +0 -0
  30. data/doc/images/page_white_width.png +0 -0
  31. data/doc/images/plugin.png +0 -0
  32. data/doc/images/ruby.png +0 -0
  33. data/doc/images/tag_green.png +0 -0
  34. data/doc/images/wrench.png +0 -0
  35. data/doc/images/wrench_orange.png +0 -0
  36. data/doc/images/zoom.png +0 -0
  37. data/doc/index.html +0 -64
  38. data/doc/js/darkfish.js +0 -116
  39. data/doc/js/jquery.js +0 -32
  40. data/doc/js/quicksearch.js +0 -114
  41. data/doc/js/thickbox-compressed.js +0 -10
  42. data/doc/lib/git_utils_rb.html +0 -52
  43. data/doc/rdoc.css +0 -763
  44. data/script/gem_publish.sh +0 -13
  45. data/script/git_commit.sh +0 -7
  46. data/script/git_sync.sh +0 -7
data/History.txt CHANGED
@@ -1,4 +0,0 @@
1
- === 1.0.0 2011-09-09
2
-
3
- * 1 major enhancement:
4
- * Initial release
data/Manifest.txt CHANGED
@@ -1,43 +1,159 @@
1
- doc/created.rid
2
- doc/GitUtils.html
3
- doc/images/brick.png
4
- doc/images/brick_link.png
5
- doc/images/bug.png
6
- doc/images/bullet_black.png
7
- doc/images/bullet_toggle_minus.png
8
- doc/images/bullet_toggle_plus.png
9
- doc/images/date.png
10
- doc/images/find.png
11
- doc/images/loadingAnimation.gif
12
- doc/images/macFFBgHack.png
13
- doc/images/package.png
14
- doc/images/page_green.png
15
- doc/images/page_white_text.png
16
- doc/images/page_white_width.png
17
- doc/images/plugin.png
18
- doc/images/ruby.png
19
- doc/images/tag_green.png
20
- doc/images/wrench.png
21
- doc/images/wrench_orange.png
22
- doc/images/zoom.png
23
- doc/index.html
24
- doc/js/darkfish.js
25
- doc/js/jquery.js
26
- doc/js/quicksearch.js
27
- doc/js/thickbox-compressed.js
28
- doc/lib/git_utils_rb.html
29
- doc/rdoc.css
30
- git_utils.gemspec
31
- History.txt
32
- History_txt.html
33
- lib/git_utils.rb
1
+ LICENSE
34
2
  Manifest.txt
35
- Manifest_txt.html
36
- PostInstall.txt
37
- PostInstall_txt.html
38
- README.rdoc
39
- script/gem_publish.sh
40
- script/git_commit.sh
41
- script/git_sync.sh
42
- spec/git_utils_spec.rb
43
- spec/spec_helper.rb
3
+ README.txt
4
+ Rakefile
5
+ VERSION
6
+ git_utils.gemspec
7
+
8
+ ./.git/branches:
9
+
10
+ ./.git/hooks:
11
+ applypatch-msg.sample
12
+ commit-msg.sample
13
+ post-update.sample
14
+ pre-applypatch.sample
15
+ pre-commit.sample
16
+ pre-rebase.sample
17
+ prepare-commit-msg.sample
18
+ update.sample
19
+
20
+ ./.git/info:
21
+ exclude
22
+
23
+ ./.git/logs:
24
+ HEAD
25
+ refs
26
+
27
+ ./.git/logs/refs:
28
+ heads
29
+ remotes
30
+
31
+ ./.git/logs/refs/heads:
32
+ master
33
+
34
+ ./.git/logs/refs/remotes:
35
+ origin
36
+
37
+ ./.git/logs/refs/remotes/origin:
38
+ master
39
+
40
+ ./.git/objects:
41
+ 1e
42
+ 25
43
+ 33
44
+ 35
45
+ 47
46
+ 5b
47
+ 5c
48
+ 5e
49
+ 84
50
+ 87
51
+ 98
52
+ 9d
53
+ a3
54
+ b3
55
+ bf
56
+ c6
57
+ d4
58
+ e7
59
+ ff
60
+ info
61
+ pack
62
+
63
+ ./.git/objects/1e:
64
+ 5df790bf33655fd1c0566ae28c7234f41c1516
65
+
66
+ ./.git/objects/25:
67
+ 4441b27818cb7d10d3586682ef11fe1f173b87
68
+
69
+ ./.git/objects/33:
70
+ ae00233b65896c66543c9d508b7c46386692c3
71
+
72
+ ./.git/objects/35:
73
+ 9a5b952d49f3592571e2af081510656029298e
74
+
75
+ ./.git/objects/47:
76
+ 56cb20a2ca2546b61a6fa2394a6b8ef0c688ea
77
+
78
+ ./.git/objects/5b:
79
+ 53c85e19ed57dc2c8416aef8388777797df3bd
80
+
81
+ ./.git/objects/5c:
82
+ 23f532147c1f01c0541b97762c30c41ca1935b
83
+
84
+ ./.git/objects/5e:
85
+ 771d764f7cf2aad2492d82791985f874b610b4
86
+
87
+ ./.git/objects/84:
88
+ ef7e42856c6b2820af71e0482e237e5087a3f1
89
+
90
+ ./.git/objects/87:
91
+ 3780124368657ada4e2ad007af55cdea84abb8
92
+
93
+ ./.git/objects/98:
94
+ 2a35f532857d5b492cfc171536e0dac2722d48
95
+
96
+ ./.git/objects/9d:
97
+ 7b6e8a145335a9e1702a63399e3cd5e905b05a
98
+
99
+ ./.git/objects/a3:
100
+ d94eb14855b9ed57eed8788a86f4a8b65f5ecd
101
+
102
+ ./.git/objects/b3:
103
+ bb2f63e25cd706673c7c41d398d5541f74d333
104
+
105
+ ./.git/objects/bf:
106
+ 5f9f2293c4c08aebeb66fca0de56750b317b70
107
+ 9f7d6e8a784e0a842053c8503972478f8d32d6
108
+
109
+ ./.git/objects/c6:
110
+ 3388870a8045f28ac540bcef6bed24a987cf03
111
+
112
+ ./.git/objects/d4:
113
+ 7ccde765714033a02ce72a1219601ec2763869
114
+
115
+ ./.git/objects/e7:
116
+ 848fa8eccba09f23ab57b313ea3332830d489c
117
+
118
+ ./.git/objects/ff:
119
+ 2e5ed1c22f1c7b6eb9bc7a9540c5253f581228
120
+
121
+ ./.git/objects/info:
122
+
123
+ ./.git/objects/pack:
124
+ pack-62946938c286ccd9a3480ca51eb6683706a9cff0.idx
125
+ pack-62946938c286ccd9a3480ca51eb6683706a9cff0.pack
126
+
127
+ ./.git/refs:
128
+ heads
129
+ remotes
130
+ tags
131
+
132
+ ./.git/refs/heads:
133
+ master
134
+
135
+ ./.git/refs/remotes:
136
+ origin
137
+
138
+ ./.git/refs/remotes/origin:
139
+ HEAD
140
+ master
141
+
142
+ ./.git/refs/tags:
143
+
144
+ ./bin:
145
+ gem_publish
146
+ git_branch
147
+ git_commit
148
+ git_sync
149
+
150
+ ./lib:
151
+ git_utils.rb
152
+
153
+ ./script:
154
+ destroy
155
+ generate
156
+
157
+ ./spec:
158
+ git_utils_spec.rb
159
+ spec_helper.rb
File without changes
data/bin/gem_publish CHANGED
@@ -1,5 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- dir = File.expand_path(File.dirname(__FILE__) + "/../script/gem_publish.sh")
4
- system("#{dir}")
5
-
3
+ system("rm *.gem 2>/dev/null")
4
+ system("git_commit 'Releasing gem'")
5
+ system("gem build ./*.gemspec && gem push ./*.gem; rm *.gem")
6
+ sleep(30)
7
+ system("ls *.gemspec | sed 's/.gemspec$//g' | xargs gem install")
data/bin/git_branch ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ system("git submodule foreach \"git_branch '#{ARGV[0]}'; echo ''\"")
4
+ system("git branch -f \"#{ARGV[0]}\"")
data/bin/git_commit CHANGED
@@ -1,6 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- dir = File.expand_path(File.dirname(__FILE__) + "/../script/git_commit.sh")
4
- puts "#{dir} '#{ARGV[0]}'"
5
- system("#{dir} '#{ARGV[0]}'")
6
-
3
+ system("git_sync; git submodule foreach \"git_commit '#{ARGV[0]}'; echo ''\"")
4
+ system("git add -A; git commit -m \"#{ARGV[0]}\"; git_sync")
data/bin/git_sync CHANGED
@@ -1,5 +1,12 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- dir = File.expand_path(File.dirname(__FILE__) + "/../script/git_sync.sh")
4
- system("#{dir}")
3
+ system("git submodule foreach \"git_sync; echo ''\"");
5
4
 
5
+ branches = `git branch`.lines.collect { |l| l.strip!; l.gsub!(/^\* /, ""); l }
6
+ branches.each do |b|
7
+ puts "Syncing #{b}"
8
+ system("git push origin '#{b}'") unless b == "master"
9
+ end
10
+
11
+ puts "Syncing master ..."
12
+ system("git push; git pull; git fetch");
data/git_utils.gemspec CHANGED
@@ -3,73 +3,30 @@
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
- Gem::Specification.new do |s|
7
- s.name = %q{git_utils}
8
- s.version = "1.1.0"
6
+ BASE_DIR = File.dirname(__FILE__)
9
7
 
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
+ Gem::Specification.new do |s|
11
9
  s.authors = [%q{Glenn Nagel}]
12
- s.date = %q{2011-09-26}
13
- s.description = %q{A gem that provides simple git & gem utility scripts.}
14
10
  s.email = [%q{glenn@mercury-wireless.com}]
15
- s.executables = [%q{git_commit}, %q{git_sync}, %q{gem_publish}]
16
- s.extra_rdoc_files = [
17
- "History.txt",
18
- "Manifest.txt",
19
- "PostInstall.txt"
20
- ]
21
- s.files = [
22
- "History.txt",
23
- "History_txt.html",
24
- "Manifest.txt",
25
- "Manifest_txt.html",
26
- "PostInstall.txt",
27
- "PostInstall_txt.html",
28
- "README.rdoc",
29
- "doc/GitUtils.html",
30
- "doc/created.rid",
31
- "doc/images/brick.png",
32
- "doc/images/brick_link.png",
33
- "doc/images/bug.png",
34
- "doc/images/bullet_black.png",
35
- "doc/images/bullet_toggle_minus.png",
36
- "doc/images/bullet_toggle_plus.png",
37
- "doc/images/date.png",
38
- "doc/images/find.png",
39
- "doc/images/loadingAnimation.gif",
40
- "doc/images/macFFBgHack.png",
41
- "doc/images/package.png",
42
- "doc/images/page_green.png",
43
- "doc/images/page_white_text.png",
44
- "doc/images/page_white_width.png",
45
- "doc/images/plugin.png",
46
- "doc/images/ruby.png",
47
- "doc/images/tag_green.png",
48
- "doc/images/wrench.png",
49
- "doc/images/wrench_orange.png",
50
- "doc/images/zoom.png",
51
- "doc/index.html",
52
- "doc/js/darkfish.js",
53
- "doc/js/jquery.js",
54
- "doc/js/quicksearch.js",
55
- "doc/js/thickbox-compressed.js",
56
- "doc/lib/git_utils_rb.html",
57
- "doc/rdoc.css",
58
- "git_utils.gemspec",
59
- "lib/git_utils.rb",
60
- "script/gem_publish.sh",
61
- "script/git_commit.sh",
62
- "script/git_sync.sh",
63
- "spec/git_utils_spec.rb",
64
- "spec/spec_helper.rb"
65
- ]
66
- s.homepage = %q{https://github.com/gnagel/mercury-wireless-public/tree/master/ruby/git_utils}
67
- s.post_install_message = %q{PostInstall.txt}
68
- s.rdoc_options = [%q{--main}, %q{README.rdoc}]
69
- s.require_paths = [%q{lib}]
11
+
12
+ s.name = %q{git_utils}
13
+ s.version = File.readlines("#{BASE_DIR}/VERSION").first.strip
14
+ s.description = %q{A gem that provides simple git & gem utility scripts.}
15
+ s.summary = s.description + " And aweseomness!"
16
+ s.date = `date '+%Y-%m-%d'`.lines.collect { |l| l.strip!; l }.first
17
+ s.executables = `cd #{BASE_DIR}/bin && ls`.lines.collect { |l| l.strip!; l }
18
+ s.files = `cd #{BASE_DIR} && ls *.* **/*.*`.lines.collect { |l| l.strip!; l }.select { |file_name| !File.directory?(file_name) }
19
+
20
+ s.extra_rdoc_files = ["Manifest.txt"]
21
+
22
+ s.homepage = %q{https://github.com/gnagel/mercury-wireless-public/tree/master/ruby/git_utils}
23
+ s.post_install_message = %q{README.txt}
24
+ s.rdoc_options = [%q{--main}]
25
+ s.require_paths = [%q{lib}]
26
+
27
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
70
28
  s.rubyforge_project = %q{git_utils}
71
- s.rubygems_version = %q{1.8.6}
72
- s.summary = %q{A gem that provides simple git & gem utility scripts.}
29
+ s.rubygems_version = %q{1.8.6}
73
30
 
74
31
  if s.respond_to? :specification_version then
75
32
  s.specification_version = 3
data/lib/git_utils.rb CHANGED
@@ -1,18 +1,3 @@
1
1
  module GitUtils
2
- VERSION = '1.1.0'
3
-
4
- ###
5
- # Overwrite the Manifest.txt file with the actual contents of this directory
6
- ###
7
- def GitUtils.sync_manifest(dirname)
8
- file_name = dirname + "/Manifest.txt"
9
- puts "Overwriting #{file_name}"
10
- File.open(file_name, 'w') { |file| file.puts Dir["#{dirname}/**/*.*"].collect() { |dir| dir[dirname.length+1, dir.length] } }
11
- end
12
-
13
- def GitUtils.sync_version(dirname, version)
14
- file_name = dirname + "/VERSION"
15
- puts "Overwriting #{file_name}"
16
- File.open(file_name, 'w') { |file| file.puts version }
17
- end
2
+ VERSION = File.readlines(File.dirname(__FILE__) + "/../VERSION").first.strip
18
3
  end
metadata CHANGED
@@ -1,146 +1,84 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: git_utils
3
- version: !ruby/object:Gem::Version
4
- hash: 19
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.0.0
5
5
  prerelease:
6
- segments:
7
- - 1
8
- - 1
9
- - 0
10
- version: 1.1.0
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Glenn Nagel
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-09-26 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2012-01-30 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: hoe
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &2160988220 !ruby/object:Gem::Requirement
24
17
  none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- hash: 11
29
- segments:
30
- - 2
31
- - 1
32
- - 0
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
33
21
  version: 2.1.0
34
22
  type: :runtime
35
- version_requirements: *id001
36
- - !ruby/object:Gem::Dependency
37
- name: hoe
38
23
  prerelease: false
39
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *2160988220
25
+ - !ruby/object:Gem::Dependency
26
+ name: hoe
27
+ requirement: &2160987740 !ruby/object:Gem::Requirement
40
28
  none: false
41
- requirements:
29
+ requirements:
42
30
  - - ~>
43
- - !ruby/object:Gem::Version
44
- hash: 27
45
- segments:
46
- - 2
47
- - 12
48
- version: "2.12"
31
+ - !ruby/object:Gem::Version
32
+ version: '2.12'
49
33
  type: :development
50
- version_requirements: *id002
34
+ prerelease: false
35
+ version_requirements: *2160987740
51
36
  description: A gem that provides simple git & gem utility scripts.
52
- email:
37
+ email:
53
38
  - glenn@mercury-wireless.com
54
- executables:
39
+ executables:
40
+ - gem_publish
41
+ - git_branch
55
42
  - git_commit
56
43
  - git_sync
57
- - gem_publish
58
44
  extensions: []
59
-
60
- extra_rdoc_files:
61
- - History.txt
45
+ extra_rdoc_files:
62
46
  - Manifest.txt
63
- - PostInstall.txt
64
- files:
47
+ files:
65
48
  - History.txt
66
- - History_txt.html
67
49
  - Manifest.txt
68
- - Manifest_txt.html
69
- - PostInstall.txt
70
- - PostInstall_txt.html
71
- - README.rdoc
72
- - doc/GitUtils.html
73
- - doc/created.rid
74
- - doc/images/brick.png
75
- - doc/images/brick_link.png
76
- - doc/images/bug.png
77
- - doc/images/bullet_black.png
78
- - doc/images/bullet_toggle_minus.png
79
- - doc/images/bullet_toggle_plus.png
80
- - doc/images/date.png
81
- - doc/images/find.png
82
- - doc/images/loadingAnimation.gif
83
- - doc/images/macFFBgHack.png
84
- - doc/images/package.png
85
- - doc/images/page_green.png
86
- - doc/images/page_white_text.png
87
- - doc/images/page_white_width.png
88
- - doc/images/plugin.png
89
- - doc/images/ruby.png
90
- - doc/images/tag_green.png
91
- - doc/images/wrench.png
92
- - doc/images/wrench_orange.png
93
- - doc/images/zoom.png
94
- - doc/index.html
95
- - doc/js/darkfish.js
96
- - doc/js/jquery.js
97
- - doc/js/quicksearch.js
98
- - doc/js/thickbox-compressed.js
99
- - doc/lib/git_utils_rb.html
100
- - doc/rdoc.css
50
+ - README.txt
101
51
  - git_utils.gemspec
102
52
  - lib/git_utils.rb
103
- - script/gem_publish.sh
104
- - script/git_commit.sh
105
- - script/git_sync.sh
106
53
  - spec/git_utils_spec.rb
107
54
  - spec/spec_helper.rb
55
+ - bin/gem_publish
56
+ - bin/git_branch
108
57
  - bin/git_commit
109
58
  - bin/git_sync
110
- - bin/gem_publish
111
59
  homepage: https://github.com/gnagel/mercury-wireless-public/tree/master/ruby/git_utils
112
60
  licenses: []
113
-
114
- post_install_message: PostInstall.txt
115
- rdoc_options:
61
+ post_install_message: README.txt
62
+ rdoc_options:
116
63
  - --main
117
- - README.rdoc
118
- require_paths:
64
+ require_paths:
119
65
  - lib
120
- required_ruby_version: !ruby/object:Gem::Requirement
66
+ required_ruby_version: !ruby/object:Gem::Requirement
121
67
  none: false
122
- requirements:
123
- - - ">="
124
- - !ruby/object:Gem::Version
125
- hash: 3
126
- segments:
127
- - 0
128
- version: "0"
129
- required_rubygems_version: !ruby/object:Gem::Requirement
68
+ requirements:
69
+ - - ! '>='
70
+ - !ruby/object:Gem::Version
71
+ version: '0'
72
+ required_rubygems_version: !ruby/object:Gem::Requirement
130
73
  none: false
131
- requirements:
132
- - - ">="
133
- - !ruby/object:Gem::Version
134
- hash: 3
135
- segments:
136
- - 0
137
- version: "0"
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
138
78
  requirements: []
139
-
140
79
  rubyforge_project: git_utils
141
- rubygems_version: 1.8.6
80
+ rubygems_version: 1.8.10
142
81
  signing_key:
143
82
  specification_version: 3
144
- summary: A gem that provides simple git & gem utility scripts.
83
+ summary: A gem that provides simple git & gem utility scripts. And aweseomness!
145
84
  test_files: []
146
-