bundle-milkode 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +21 -0
- data/bin/bundle-milkode +5 -2
- data/bundle-milkode.gemspec +2 -2
- metadata +2 -1
data/Gemfile
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
# -*- mode: ruby; coding: utf-8 -*-
|
2
|
+
#
|
3
|
+
# Copyright (C) 2012 Kouhei Sutou <kou@cozmixng.org>
|
4
|
+
#
|
5
|
+
# This program is free software: you can redistribute it and/or modify
|
6
|
+
# it under the terms of the GNU Lesser General Public License as
|
7
|
+
# published by the Free Software Foundation, either version 3 of the
|
8
|
+
# License, or (at your option) any later version.
|
9
|
+
#
|
10
|
+
# This program is distributed in the hope that it will be useful, but
|
11
|
+
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
13
|
+
# Lesser General Public License for more details.
|
14
|
+
#
|
15
|
+
# You should have received a copy of the GNU Lesser General Public
|
16
|
+
# License along with this program. If not, see
|
17
|
+
# <http://www.gnu.org/licenses/>.
|
18
|
+
|
19
|
+
source :rubygems
|
20
|
+
|
21
|
+
gemspec
|
data/bin/bundle-milkode
CHANGED
@@ -15,6 +15,9 @@
|
|
15
15
|
# You should have received a copy of the GNU General Public License
|
16
16
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
17
17
|
|
18
|
+
gem_path = ENV["GEM_PATH"]
|
19
|
+
gem_home = ENV["GEM_HOME"]
|
20
|
+
|
18
21
|
require "rubygems"
|
19
22
|
|
20
23
|
milk_command_line = [
|
@@ -38,8 +41,8 @@ end
|
|
38
41
|
|
39
42
|
load(Gem.bin_path("bundler", "bundle"))
|
40
43
|
|
41
|
-
ENV["GEM_PATH"] =
|
42
|
-
ENV["GEM_HOME"] =
|
44
|
+
ENV["GEM_PATH"] = gem_path
|
45
|
+
ENV["GEM_HOME"] = gem_home
|
43
46
|
targets.each do |target|
|
44
47
|
system(*(milk_command_line + ["add", target]))
|
45
48
|
end
|
data/bundle-milkode.gemspec
CHANGED
@@ -17,7 +17,7 @@
|
|
17
17
|
|
18
18
|
Gem::Specification.new do |spec|
|
19
19
|
spec.name = "bundle-milkode"
|
20
|
-
spec.version = "1.0.
|
20
|
+
spec.version = "1.0.1"
|
21
21
|
spec.authors = ["Kouhei Sutou"]
|
22
22
|
spec.email = ["kou@cozmixng.org"]
|
23
23
|
spec.summary = "Make all gems installed by Bundler milkable"
|
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
|
|
25
25
|
"Add gems installed by Bundler to Milkode index autamatically"
|
26
26
|
spec.homepage = "https://github.com/kou/bundle-milkode"
|
27
27
|
|
28
|
-
spec.files = ["README.md", "COPYING", "#{spec.name}.gemspec"]
|
28
|
+
spec.files = ["README.md", "COPYING", "Gemfile", "#{spec.name}.gemspec"]
|
29
29
|
Dir.chdir("bin") do
|
30
30
|
spec.executables = Dir.glob("*")
|
31
31
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bundle-milkode
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -53,6 +53,7 @@ extra_rdoc_files: []
|
|
53
53
|
files:
|
54
54
|
- README.md
|
55
55
|
- COPYING
|
56
|
+
- Gemfile
|
56
57
|
- bundle-milkode.gemspec
|
57
58
|
- bin/bundle-milkode
|
58
59
|
homepage: https://github.com/kou/bundle-milkode
|