brew-gem 0.7.2 → 0.7.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cb49f87b77452d0894a12f97177643289bd53dfa
4
- data.tar.gz: b5ebcba9caa65459b0041cb1850e1c35719f2516
3
+ metadata.gz: 0b98d4bf81184caf4b20bbd22da2e1330ab15af4
4
+ data.tar.gz: 1b71b15e529c93502d8c15b536748bd0137a54bc
5
5
  SHA512:
6
- metadata.gz: deb1d12ee9999917cdf5bd9652078ac6753458913315eb679b4495ee01a90d7e6a232e013e7456c35f4e3cee7cca43e50f9d219cbb6856a8b83d23a8cde038f0
7
- data.tar.gz: 525a755a85491e0b5a793cf53ca17093373890991d3938f65250669ea7abe544be47418bc2d03bf4e1d6c1e66ba3c4cdc84946267e53d921e27d87d557c588f6
6
+ metadata.gz: 3514488a6d2300184867f2a5a71f0fc4e915149fccef20733ffb60b87f14b79eae2746d5486b43eb7e3adfe2b0a0e82d226642bb13e33f4a4b63701547f26d60
7
+ data.tar.gz: 02e8d8d7c198fbfb06bd83a435a19d49936be6716792d660c4882313aedeec85af511f4625b9fd50a7babeef717098064f18f2b3ff6be57921b46a88dc2a0a14
data/README.md CHANGED
@@ -37,6 +37,10 @@ There are two ways to install `brew-gem`, via Homebrew or via Rubygems. Usually
37
37
  the Rubygems release will track ahead of the Homebrew recipe, so to receive the
38
38
  latest features, use the Rubygems install instructions.
39
39
 
40
+ *Warning*: If you previously installed `brew-gem` with Homebrew, the Rubygems
41
+ install method will fail. Run `brew unlink brew-gem` or `brew uninstall
42
+ brew-gem` first.
43
+
40
44
  Via Rubygems:
41
45
 
42
46
  gem install brew-gem
@@ -61,8 +61,10 @@ class <%= klass %> < Formula
61
61
  ].first
62
62
  zsh_completion.install completion_for_zsh if completion_for_zsh
63
63
 
64
+ gemspec = Gem::Specification::load("#{prefix}/specifications/<%= name %>-#{version}.gemspec")
64
65
  ruby_libs = Dir.glob("#{prefix}/gems/*/lib")
65
- Pathname.glob("#{brew_gem_prefix}/bin/*").each do |file|
66
+ gemspec.executables.each do |exe|
67
+ file = Pathname.new("#{brew_gem_prefix}/#{gemspec.bindir}/#{exe}")
66
68
  (bin+file.basename).open('w') do |f|
67
69
  f << <<-RUBY
68
70
  #!/usr/bin/ruby
@@ -1,5 +1,5 @@
1
1
  module Brew
2
2
  module Gem
3
- VERSION = "0.7.2"
3
+ VERSION = "0.7.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brew-gem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Sieger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-17 00:00:00.000000000 Z
11
+ date: 2016-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler