brewbygems 0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1 @@
1
+ pkg/
@@ -0,0 +1,26 @@
1
+ brewbygems
2
+ ==========
3
+
4
+ Brewbygems is a RubyGems plugin that adds post-install and post-uninstall
5
+ hooks to RubyGems that update the symlinks in your Homebrew /bin/. Yay.
6
+
7
+ Todo
8
+ ----
9
+
10
+ Use the Gem::Installer instance to only run link or prune when the gem has files in bin/
11
+
12
+ Requirements
13
+ ------------
14
+
15
+ * RubyGems
16
+ * Homebrew
17
+
18
+ Install
19
+ -------
20
+
21
+ `gem install brewbygems`
22
+
23
+ License
24
+ -------
25
+
26
+ The MIT License, © 2009 Andre Arko.
@@ -0,0 +1,16 @@
1
+ begin
2
+ require 'jeweler'
3
+ Jeweler::Tasks.new do |gemspec|
4
+ gemspec.name = "brewbygems"
5
+ gemspec.version = "0.1"
6
+ gemspec.summary = "Makes sure RubyGems plays nice with Homebrew"
7
+ gemspec.description = "Adds RubyGems post-install and post-uninstall hooks to update Homebrew bin/ symlinks"
8
+
9
+ gemspec.authors = ["Andre Arko"]
10
+ gemspec.email = "andre@arko.net"
11
+ gemspec.homepage = "http://github.com/indirect/brewbygems"
12
+ end
13
+ Jeweler::GemcutterTasks.new
14
+ rescue LoadError
15
+ puts "Jeweler not available. Install it with: gem install jeweler"
16
+ end
@@ -0,0 +1,41 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{brewbygems}
8
+ s.version = "0.1"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Andre Arko"]
12
+ s.date = %q{2009-12-04}
13
+ s.description = %q{Adds RubyGems post-install and post-uninstall hooks to update Homebrew bin/ symlinks}
14
+ s.email = %q{andre@arko.net}
15
+ s.extra_rdoc_files = [
16
+ "README.md"
17
+ ]
18
+ s.files = [
19
+ ".gitignore",
20
+ "README.md",
21
+ "Rakefile",
22
+ "brewbygems.gemspec",
23
+ "lib/rubygems_plugin.rb"
24
+ ]
25
+ s.homepage = %q{http://github.com/indirect/brewbygems}
26
+ s.rdoc_options = ["--charset=UTF-8"]
27
+ s.require_paths = ["lib"]
28
+ s.rubygems_version = %q{1.3.5}
29
+ s.summary = %q{Makes sure RubyGems plays nice with Homebrew}
30
+
31
+ if s.respond_to? :specification_version then
32
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
33
+ s.specification_version = 3
34
+
35
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
36
+ else
37
+ end
38
+ else
39
+ end
40
+ end
41
+
@@ -0,0 +1,11 @@
1
+ Gem::post_install do |installer|
2
+ unless system("brew link gems")
3
+ puts "brewbygems: Sorry, you don't seem to have Homebrew installed."
4
+ end
5
+ end
6
+
7
+ Gem::post_uninstall do |installer|
8
+ unless system("brew prune")
9
+ puts "brewbygems: Sorry, you don't seem to have Homebrew installed."
10
+ end
11
+ end
metadata ADDED
@@ -0,0 +1,59 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: brewbygems
3
+ version: !ruby/object:Gem::Version
4
+ version: "0.1"
5
+ platform: ruby
6
+ authors:
7
+ - Andre Arko
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-12-04 00:00:00 -08:00
13
+ default_executable:
14
+ dependencies: []
15
+
16
+ description: Adds RubyGems post-install and post-uninstall hooks to update Homebrew bin/ symlinks
17
+ email: andre@arko.net
18
+ executables: []
19
+
20
+ extensions: []
21
+
22
+ extra_rdoc_files:
23
+ - README.md
24
+ files:
25
+ - .gitignore
26
+ - README.md
27
+ - Rakefile
28
+ - brewbygems.gemspec
29
+ - lib/rubygems_plugin.rb
30
+ has_rdoc: true
31
+ homepage: http://github.com/indirect/brewbygems
32
+ licenses: []
33
+
34
+ post_install_message:
35
+ rdoc_options:
36
+ - --charset=UTF-8
37
+ require_paths:
38
+ - lib
39
+ required_ruby_version: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: "0"
44
+ version:
45
+ required_rubygems_version: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ version: "0"
50
+ version:
51
+ requirements: []
52
+
53
+ rubyforge_project:
54
+ rubygems_version: 1.3.5
55
+ signing_key:
56
+ specification_version: 3
57
+ summary: Makes sure RubyGems plays nice with Homebrew
58
+ test_files: []
59
+