git_utils 1.0.1 → 1.0.2

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/git_utils.gemspec ADDED
@@ -0,0 +1,87 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{git_utils}
8
+ s.version = "1.0.2"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = [%q{Glenn Nagel}]
12
+ s.date = %q{2011-09-09}
13
+ s.description = %q{A gem that provides simple git & gem utility scripts.}
14
+ s.email = [%q{glenn@mercury-wireless.com}]
15
+ s.extra_rdoc_files = [
16
+ "History.txt",
17
+ "Manifest.txt",
18
+ "PostInstall.txt"
19
+ ]
20
+ s.files = [
21
+ "History.txt",
22
+ "History_txt.html",
23
+ "Manifest.txt",
24
+ "Manifest_txt.html",
25
+ "PostInstall.txt",
26
+ "PostInstall_txt.html",
27
+ "README.rdoc",
28
+ "doc/GitUtils.html",
29
+ "doc/created.rid",
30
+ "doc/images/brick.png",
31
+ "doc/images/brick_link.png",
32
+ "doc/images/bug.png",
33
+ "doc/images/bullet_black.png",
34
+ "doc/images/bullet_toggle_minus.png",
35
+ "doc/images/bullet_toggle_plus.png",
36
+ "doc/images/date.png",
37
+ "doc/images/find.png",
38
+ "doc/images/loadingAnimation.gif",
39
+ "doc/images/macFFBgHack.png",
40
+ "doc/images/package.png",
41
+ "doc/images/page_green.png",
42
+ "doc/images/page_white_text.png",
43
+ "doc/images/page_white_width.png",
44
+ "doc/images/plugin.png",
45
+ "doc/images/ruby.png",
46
+ "doc/images/tag_green.png",
47
+ "doc/images/wrench.png",
48
+ "doc/images/wrench_orange.png",
49
+ "doc/images/zoom.png",
50
+ "doc/index.html",
51
+ "doc/js/darkfish.js",
52
+ "doc/js/jquery.js",
53
+ "doc/js/quicksearch.js",
54
+ "doc/js/thickbox-compressed.js",
55
+ "doc/lib/git_utils_rb.html",
56
+ "doc/rdoc.css",
57
+ "git_utils.gemspec",
58
+ "lib/git_utils.rb",
59
+ "script/gem_publish.sh",
60
+ "script/git_commit.sh",
61
+ "spec/git_utils_spec.rb",
62
+ "spec/spec_helper.rb"
63
+ ]
64
+ s.homepage = %q{https://github.com/gnagel/mercury-wireless-public/tree/master/ruby/git_utils}
65
+ s.post_install_message = %q{PostInstall.txt}
66
+ s.rdoc_options = [%q{--main}, %q{README.rdoc}]
67
+ s.require_paths = [%q{lib}]
68
+ s.rubyforge_project = %q{git_utils}
69
+ s.rubygems_version = %q{1.8.6}
70
+ s.summary = %q{A gem that provides simple git & gem utility scripts.}
71
+
72
+ if s.respond_to? :specification_version then
73
+ s.specification_version = 3
74
+
75
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
76
+ s.add_runtime_dependency(%q<hoe>, [">= 2.1.0"])
77
+ s.add_development_dependency(%q<hoe>, ["~> 2.9"])
78
+ else
79
+ s.add_dependency(%q<hoe>, [">= 2.1.0"])
80
+ s.add_dependency(%q<hoe>, ["~> 2.9"])
81
+ end
82
+ else
83
+ s.add_dependency(%q<hoe>, [">= 2.1.0"])
84
+ s.add_dependency(%q<hoe>, ["~> 2.9"])
85
+ end
86
+ end
87
+
data/lib/git_utils.rb ADDED
@@ -0,0 +1,14 @@
1
+ module GitUtils
2
+ VERSION = '1.0.2'
3
+
4
+ ###
5
+ # Overwrite the Manifest.txt file with the actual contents of this directory
6
+ ###
7
+ def GitUtils.sync_manifest(dirname)
8
+ File.open(File.join(dirname, "Manifest.txt"), 'w') { |file| file.puts Dir.chdir(dirname) { Dir["**/*.*"] } }
9
+ end
10
+
11
+ def GitUtils.sync_version(dirname, version)
12
+ File.open(File.join(dirname, 'VERSION'), 'w') { |file| file.puts version }
13
+ end
14
+ end
@@ -0,0 +1,8 @@
1
+ #!/bin/bash
2
+
3
+ rm *.gem;
4
+ rake gemspec:generate &&
5
+ gem build ./*.gemspec &&
6
+ gem push ./*.gem
7
+ rm *.gem;
8
+ ls *.gemspec | sed 's/.gemspec$//g' | xargs gem install
@@ -0,0 +1,9 @@
1
+ #!/bin/bash
2
+
3
+ git add -A;
4
+ git commit -m "$1";
5
+ git push;
6
+ git pull;
7
+ git fetch;
8
+
9
+ git submodule foreach "git_commit.sh '$1'"
@@ -0,0 +1,7 @@
1
+ require File.dirname(__FILE__) + '/spec_helper'
2
+
3
+ describe "git_utils" do
4
+ it "should do nothing" do
5
+ true.should == true
6
+ end
7
+ end
@@ -0,0 +1,2 @@
1
+ $TESTING=true
2
+ $:.push File.join(File.dirname(__FILE__), '..', 'lib')
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git_utils
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 1
10
- version: 1.0.1
9
+ - 2
10
+ version: 1.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Glenn Nagel
@@ -55,10 +55,53 @@ executables: []
55
55
 
56
56
  extensions: []
57
57
 
58
- extra_rdoc_files: []
59
-
60
- files: []
61
-
58
+ extra_rdoc_files:
59
+ - History.txt
60
+ - Manifest.txt
61
+ - PostInstall.txt
62
+ files:
63
+ - History.txt
64
+ - History_txt.html
65
+ - Manifest.txt
66
+ - Manifest_txt.html
67
+ - PostInstall.txt
68
+ - PostInstall_txt.html
69
+ - README.rdoc
70
+ - doc/GitUtils.html
71
+ - doc/created.rid
72
+ - doc/images/brick.png
73
+ - doc/images/brick_link.png
74
+ - doc/images/bug.png
75
+ - doc/images/bullet_black.png
76
+ - doc/images/bullet_toggle_minus.png
77
+ - doc/images/bullet_toggle_plus.png
78
+ - doc/images/date.png
79
+ - doc/images/find.png
80
+ - doc/images/loadingAnimation.gif
81
+ - doc/images/macFFBgHack.png
82
+ - doc/images/package.png
83
+ - doc/images/page_green.png
84
+ - doc/images/page_white_text.png
85
+ - doc/images/page_white_width.png
86
+ - doc/images/plugin.png
87
+ - doc/images/ruby.png
88
+ - doc/images/tag_green.png
89
+ - doc/images/wrench.png
90
+ - doc/images/wrench_orange.png
91
+ - doc/images/zoom.png
92
+ - doc/index.html
93
+ - doc/js/darkfish.js
94
+ - doc/js/jquery.js
95
+ - doc/js/quicksearch.js
96
+ - doc/js/thickbox-compressed.js
97
+ - doc/lib/git_utils_rb.html
98
+ - doc/rdoc.css
99
+ - git_utils.gemspec
100
+ - lib/git_utils.rb
101
+ - script/gem_publish.sh
102
+ - script/git_commit.sh
103
+ - spec/git_utils_spec.rb
104
+ - spec/spec_helper.rb
62
105
  homepage: https://github.com/gnagel/mercury-wireless-public/tree/master/ruby/git_utils
63
106
  licenses: []
64
107