brewbygems 0.3.0 → 0.3.1
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/VERSION +1 -1
- data/brewbygems.gemspec +2 -2
- data/lib/rubygems_plugin.rb +4 -4
- metadata +2 -2
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.3.
|
|
1
|
+
0.3.1
|
data/brewbygems.gemspec
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{brewbygems}
|
|
8
|
-
s.version = "0.3.
|
|
8
|
+
s.version = "0.3.1"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Andre Arko"]
|
|
12
|
-
s.date = %q{2010-01-
|
|
12
|
+
s.date = %q{2010-01-26}
|
|
13
13
|
s.description = %q{Adds RubyGems post-install and post-uninstall hooks to update Homebrew bin/ symlinks}
|
|
14
14
|
s.email = %q{andre@arko.net}
|
|
15
15
|
s.extra_rdoc_files = [
|
data/lib/rubygems_plugin.rb
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Gem::post_install do |installer|
|
|
2
|
-
|
|
2
|
+
cellar = File.join(`brew --prefix`.chomp, "Cellar")
|
|
3
3
|
# Augh RubyGems why is installer.gem_home a Pathname here
|
|
4
|
-
installing_to_cellar =
|
|
4
|
+
installing_to_cellar = installer.gem_home.to_s.include?(cellar)
|
|
5
5
|
has_binary = installer.spec.executables.any?
|
|
6
6
|
|
|
7
7
|
unless system("brew link gems")
|
|
@@ -10,9 +10,9 @@ Gem::post_install do |installer|
|
|
|
10
10
|
end
|
|
11
11
|
|
|
12
12
|
Gem::post_uninstall do |installer|
|
|
13
|
-
|
|
13
|
+
cellar = File.join(`brew --prefix`.chomp, "Cellar")
|
|
14
14
|
# Augh RubyGems why is installer.gem_home a String here
|
|
15
|
-
installing_to_cellar =
|
|
15
|
+
installing_to_cellar = installer.gem_home.to_s.include?(cellar)
|
|
16
16
|
has_binary = installer.spec.executables.any?
|
|
17
17
|
|
|
18
18
|
unless system("brew prune")
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: brewbygems
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andre Arko
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2010-01-
|
|
12
|
+
date: 2010-01-26 00:00:00 -08:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies: []
|
|
15
15
|
|