brew-gem 0.9.0 → 1.0.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: f14a4f52c59ebd4bd1aead76cac3ebafd5566265
4
- data.tar.gz: c7de7077dc7c32b3fb2e22f9471d4aec9d7ba557
2
+ SHA256:
3
+ metadata.gz: 9a0239af1dd4ab424cccacf2426f39cf1a7f10353e23fb4f5ea9c2b4e56b82d8
4
+ data.tar.gz: 3179fd9be5d524b3f717dde6a9574e0e91853ef044108b1313dd175783f9711b
5
5
  SHA512:
6
- metadata.gz: 9b6d5d635c39b1552e7dd4633a013eef7fb49450cec1f4029868fb9e8f8ab5560faf5331acbf2ac2efb97691368ed7b19dc77f53bca614006fb64b55c1dde907
7
- data.tar.gz: 1a7602c23751a04395dca7d7d157d26a9f9f15ba00cc14e3596b4e45418837139e0ed80626c72777e5e244439ef1cd899233b54eff64ba90c4f398ab7f0974df
6
+ metadata.gz: 5c93c9fc288600344f699d7da409d8075b3584ece02c8719046e772f30018c7cb6bdfb6c9cfd4a36bf70260a8383a1dc488b3a21e669c66369ed1321ad504926
7
+ data.tar.gz: e172b0f4d650790714e8ce76ad891dfab9c62fa1416b5b5d8f6696b3413a5dd02c1e2e47817f287e902913853abda64b2b90f5cf1a224117a4e8c9564134adad
@@ -1,7 +1,18 @@
1
+ #### v1.0.0
2
+
3
+ * Fix homebrew ruby path (thanks Kaleb Lape)
4
+
5
+ > https://github.com/sportngin/brew-gem/pull/59
6
+
7
+ * Fix old ruby gem flags (thanks JuPlutonic)
8
+
9
+ > https://github.com/sportngin/brew-gem/pull/57/
10
+
1
11
  #### v0.9.0
12
+
2
13
  * Fix compatibility with latest homebrew
3
14
 
4
- > Nick Sieger: : https://github.com/sportngin/brew-gem/pull/54
15
+ > Nick Sieger: https://github.com/sportngin/brew-gem/pull/54
5
16
 
6
17
  #### v0.8.4
7
18
 
@@ -3,16 +3,22 @@
3
3
  require 'formula'
4
4
  require 'fileutils'
5
5
 
6
- BREWGEM_RUBYBINDIR = '<%= use_homebrew_ruby ? "#{homebrew_prefix}/bin" : "/usr/bin" %>'
7
- BREWGEM_GEM_PATH = "#{BREWGEM_RUBYBINDIR}/gem"
8
- BREWGEM_RUBY_PATH = "#{BREWGEM_RUBYBINDIR}/ruby"
6
+ USE_HOMEBREW_RUBY = <%= use_homebrew_ruby ? "true" : "false" %>
7
+
8
+ module RubyBin
9
+ def ruby_bin
10
+ USE_HOMEBREW_RUBY ? Formula["ruby"].opt_bin: "/usr/bin"
11
+ end
12
+ end
9
13
 
10
14
  class RubyGemsDownloadStrategy < AbstractDownloadStrategy
15
+ include RubyBin
16
+
11
17
  def fetch
12
18
  ohai "Fetching <%= name %> from gem source"
13
19
  cache.cd do
14
20
  ENV['GEM_SPEC_CACHE'] = "#{cache}/gem_spec_cache"
15
- system BREWGEM_GEM_PATH, "fetch", "<%= name %>", "--version", gem_version
21
+ system "#{ruby_bin}/gem", "fetch", "<%= name %>", "--version", gem_version
16
22
  end
17
23
  end
18
24
 
@@ -37,8 +43,11 @@ class RubyGemsDownloadStrategy < AbstractDownloadStrategy
37
43
  end
38
44
 
39
45
  class <%= klass %> < Formula
46
+ include RubyBin
47
+
40
48
  url "<%= name %>", :using => RubyGemsDownloadStrategy
41
49
  version "<%= version %>"
50
+ depends_on "ruby"
42
51
 
43
52
  def install
44
53
  # Copy user's RubyGems config to temporary build home.
@@ -59,9 +68,8 @@ class <%= klass %> < Formula
59
68
  ENV['PATH'] = ENV['PATH'].sub(HOMEBREW_SHIMS_PATH.to_s, '/usr/local/bin')
60
69
  end
61
70
 
62
- system BREWGEM_GEM_PATH, "install", cached_download,
63
- "--no-ri",
64
- "--no-rdoc",
71
+ system "#{ruby_bin}/gem", "install", cached_download,
72
+ "--no-document",
65
73
  "--no-wrapper",
66
74
  "--no-user-install",
67
75
  "--install-dir", prefix,
@@ -92,7 +100,7 @@ class <%= klass %> < Formula
92
100
  file = Pathname.new("#{brew_gem_prefix}/#{gemspec.bindir}/#{exe}")
93
101
  (bin+file.basename).open('w') do |f|
94
102
  f << <<-RUBY
95
- #!#{BREWGEM_RUBY_PATH} --disable-gems
103
+ #!#{ruby_bin}/ruby --disable-gems
96
104
  ENV['GEM_HOME']="#{prefix}"
97
105
  ENV['GEM_PATH']="#{prefix}"
98
106
  require 'rubygems'
@@ -1,5 +1,5 @@
1
1
  module Brew
2
2
  module Gem
3
- VERSION = "0.9.0"
3
+ VERSION = "1.0.0"
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.9.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Sieger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-06 00:00:00.000000000 Z
11
+ date: 2019-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -113,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
113
113
  version: '0'
114
114
  requirements: []
115
115
  rubyforge_project:
116
- rubygems_version: 2.5.2.2
116
+ rubygems_version: 2.7.4
117
117
  signing_key:
118
118
  specification_version: 4
119
119
  summary: Generate Homebrew formulas to install standalone ruby gems.