brew-gem 0.9.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.markdown +12 -1
- data/lib/brew/gem/formula.rb.erb +16 -8
- data/lib/brew/gem/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 9a0239af1dd4ab424cccacf2426f39cf1a7f10353e23fb4f5ea9c2b4e56b82d8
|
4
|
+
data.tar.gz: 3179fd9be5d524b3f717dde6a9574e0e91853ef044108b1313dd175783f9711b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c93c9fc288600344f699d7da409d8075b3584ece02c8719046e772f30018c7cb6bdfb6c9cfd4a36bf70260a8383a1dc488b3a21e669c66369ed1321ad504926
|
7
|
+
data.tar.gz: e172b0f4d650790714e8ce76ad891dfab9c62fa1416b5b5d8f6696b3413a5dd02c1e2e47817f287e902913853abda64b2b90f5cf1a224117a4e8c9564134adad
|
data/CHANGELOG.markdown
CHANGED
@@ -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:
|
15
|
+
> Nick Sieger: https://github.com/sportngin/brew-gem/pull/54
|
5
16
|
|
6
17
|
#### v0.8.4
|
7
18
|
|
data/lib/brew/gem/formula.rb.erb
CHANGED
@@ -3,16 +3,22 @@
|
|
3
3
|
require 'formula'
|
4
4
|
require 'fileutils'
|
5
5
|
|
6
|
-
|
7
|
-
|
8
|
-
|
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
|
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
|
63
|
-
"--no-
|
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
|
-
#!#{
|
103
|
+
#!#{ruby_bin}/ruby --disable-gems
|
96
104
|
ENV['GEM_HOME']="#{prefix}"
|
97
105
|
ENV['GEM_PATH']="#{prefix}"
|
98
106
|
require 'rubygems'
|
data/lib/brew/gem/version.rb
CHANGED
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.
|
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:
|
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.
|
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.
|