rake-compiler-dock 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +1 -2
- data/History.md +7 -0
- data/Rakefile +1 -1
- data/bin/rake-compiler-dock +1 -1
- data/lib/rake_compiler_dock/colors.rb +8 -8
- data/lib/rake_compiler_dock/docker_check.rb +30 -10
- data/lib/rake_compiler_dock/starter.rb +4 -5
- data/lib/rake_compiler_dock/version.rb +2 -1
- data/rake-compiler-dock.gemspec +0 -1
- metadata +22 -21
- metadata.gz.sig +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d972c1947e89297809fcea04b48cf9044de9f248
|
4
|
+
data.tar.gz: 83f36b3533e6940d3b37efda8290b17a72475e3c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86dc09c161ee24cb22087eb4753493a867c4ab3c431c3e62c1d386469b6a8cff628aa195f799bfcdc69d657d1d5469a7c89e4a9f0fb49b6e5e7793763c3ab37b
|
7
|
+
data.tar.gz: 0a380df5a0fe45293fd54c7f769a1997ae0d51bcf1299004054057ba8b53d1788b99d6fa17da035926ef18bf81692da8a3ca70411d1d95e8c9c53339d451b1ed
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
,�m1ә���rwN)ZT0�z���*O|�U�e9�H�h��Us����r�lgcR&v������۔��
|
1
|
+
Y?�?m��f�ce���l��t�1�+f���3�_
|
data/History.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
0.4.1 / 2015-07-01
|
2
|
+
------------------
|
3
|
+
* Make rake-compiler-dock compatible to ruby-1.8 to ease the usage in gems still supporting 1.8.
|
4
|
+
* Use separate VERSION and IMAGE_VERSION, to avoid unnecessary image downloads.
|
5
|
+
* Finetune help texts and add FAQ links.
|
6
|
+
|
7
|
+
|
1
8
|
0.4.0 / 2015-06-29
|
2
9
|
------------------
|
3
10
|
* Add support for OS-X.
|
data/Rakefile
CHANGED
data/bin/rake-compiler-dock
CHANGED
@@ -7,14 +7,14 @@ module RakeCompilerDock
|
|
7
7
|
NND = "#{ESC}0m"
|
8
8
|
|
9
9
|
ColorMap = {
|
10
|
-
black
|
11
|
-
red
|
12
|
-
green
|
13
|
-
yellow
|
14
|
-
blue
|
15
|
-
magenta
|
16
|
-
cyan
|
17
|
-
white
|
10
|
+
:black => 0,
|
11
|
+
:red => 1,
|
12
|
+
:green => 2,
|
13
|
+
:yellow => 3,
|
14
|
+
:blue => 4,
|
15
|
+
:magenta => 5,
|
16
|
+
:cyan => 6,
|
17
|
+
:white => 7,
|
18
18
|
}
|
19
19
|
|
20
20
|
ColorMap.each do |color, code|
|
@@ -67,23 +67,33 @@ module RakeCompilerDock
|
|
67
67
|
def b2d_start
|
68
68
|
@b2d_start_text = `boot2docker start` rescue SystemCallError
|
69
69
|
@b2d_start_status = $?.exitstatus
|
70
|
+
@b2d_start_envset = false
|
70
71
|
|
71
72
|
if @b2d_start_status == 0
|
72
|
-
@b2d_start_text
|
73
|
-
|
73
|
+
io.puts @b2d_start_text
|
74
|
+
@b2d_start_text.scan(/(unset |Remove-Item Env:\\)(.+?)$/) do |_, key|
|
74
75
|
ENV.delete(key)
|
76
|
+
@b2d_start_envset = true
|
75
77
|
end
|
76
|
-
@b2d_start_text.scan(/(export |\$Env:)(
|
77
|
-
io.puts " #{$&}"
|
78
|
+
@b2d_start_text.scan(/(export |\$Env:)(.+?)(=| = ")(.*?)(|\")$/) do |_, key, _, val, _|
|
78
79
|
ENV[key] = val
|
80
|
+
@b2d_start_envset = true
|
79
81
|
end
|
80
82
|
end
|
83
|
+
|
84
|
+
if @b2d_start_envset
|
85
|
+
io.puts yellow("Using above environment variables for starting rake-compiler-dock.")
|
86
|
+
end
|
81
87
|
end
|
82
88
|
|
83
89
|
def b2d_start_ok?
|
84
90
|
@b2d_start_status == 0
|
85
91
|
end
|
86
92
|
|
93
|
+
def b2d_start_has_env?
|
94
|
+
@b2d_start_envset
|
95
|
+
end
|
96
|
+
|
87
97
|
def help_text
|
88
98
|
help = []
|
89
99
|
if !ok? && docker_client_avail? && !b2d_avail?
|
@@ -103,9 +113,11 @@ module RakeCompilerDock
|
|
103
113
|
help << yellow("On SuSE")
|
104
114
|
help << " sudo systemctl start docker"
|
105
115
|
help << ""
|
106
|
-
help << yellow("
|
116
|
+
help << yellow("Then re-check with '") + white("docker version") + yellow("'")
|
117
|
+
help << yellow("or have a look at the FAQs: http://git.io/vtD2Z")
|
107
118
|
else
|
108
|
-
help << yellow(" Please check why '") + white("docker version") + yellow("' fails
|
119
|
+
help << yellow(" Please check why '") + white("docker version") + yellow("' fails")
|
120
|
+
help << yellow(" or have a look at the FAQs: http://git.io/vtD2Z")
|
109
121
|
end
|
110
122
|
elsif !ok? && !b2d_avail?
|
111
123
|
case RUBY_PLATFORM
|
@@ -136,17 +148,25 @@ module RakeCompilerDock
|
|
136
148
|
elsif !ok? && !b2d_init_ok?
|
137
149
|
help << red("boot2docker is installed but couldn't be initialized.")
|
138
150
|
help << ""
|
139
|
-
help << yellow(" Please check why '") + white("boot2docker init") + yellow("' fails
|
151
|
+
help << yellow(" Please check why '") + white("boot2docker init") + yellow("' fails")
|
152
|
+
help << yellow(" or have a look at the FAQs: http://git.io/vtDBH")
|
140
153
|
elsif !ok? && !b2d_start_ok?
|
141
154
|
help << red("boot2docker is installed but couldn't be started.")
|
142
155
|
help << ""
|
143
156
|
help << yellow(" Please check why '") + white("boot2docker start") + yellow("' fails.")
|
144
|
-
help << yellow(" You might need to re-init with '") + white("boot2docker delete") + yellow("'
|
157
|
+
help << yellow(" You might need to re-init with '") + white("boot2docker delete") + yellow("'")
|
158
|
+
help << yellow(" or have a look at the FAQs: http://git.io/vtDBH")
|
145
159
|
elsif !ok? && b2d_start_ok?
|
146
160
|
help << red("boot2docker is installed and started, but 'docker version' failed.")
|
147
161
|
help << ""
|
148
|
-
|
149
|
-
|
162
|
+
if b2d_start_has_env?
|
163
|
+
help << yellow(" Please copy and paste above environment variables to your terminal")
|
164
|
+
help << yellow(" and check why '") + white("docker version") + yellow("' fails.")
|
165
|
+
else
|
166
|
+
help << yellow(" Please check why '") + white("docker version") + yellow("' fails.")
|
167
|
+
end
|
168
|
+
help << yellow(" You might need to re-init with '") + white("boot2docker delete") + yellow("'")
|
169
|
+
help << yellow(" or have a look at the FAQs: http://git.io/vtDBH")
|
150
170
|
end
|
151
171
|
|
152
172
|
help.join("\n")
|
@@ -15,7 +15,7 @@ module RakeCompilerDock
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def image_name
|
18
|
-
ENV['RAKE_COMPILER_DOCK_IMAGE'] || "larskanis/rake-compiler-dock:#{
|
18
|
+
ENV['RAKE_COMPILER_DOCK_IMAGE'] || "larskanis/rake-compiler-dock:#{IMAGE_VERSION}"
|
19
19
|
end
|
20
20
|
|
21
21
|
def exec(*args)
|
@@ -52,6 +52,8 @@ module RakeCompilerDock
|
|
52
52
|
user = make_valid_name(`id -nu`.chomp)
|
53
53
|
group = make_valid_name(`id -ng`.chomp)
|
54
54
|
|
55
|
+
drun_args = docker_opts + [image_name] + runargs
|
56
|
+
|
55
57
|
cmd = ["docker", "run",
|
56
58
|
"-v", "#{pwd}:#{make_valid_path(pwd)}",
|
57
59
|
"-e", "UID=#{uid}",
|
@@ -62,9 +64,7 @@ module RakeCompilerDock
|
|
62
64
|
"-e", "http_proxy=#{ENV['http_proxy']}",
|
63
65
|
"-e", "https_proxy=#{ENV['https_proxy']}",
|
64
66
|
"-w", make_valid_path(pwd),
|
65
|
-
*
|
66
|
-
image_name,
|
67
|
-
*runargs]
|
67
|
+
*drun_args]
|
68
68
|
|
69
69
|
cmdline = Shellwords.join(cmd)
|
70
70
|
if verbose_flag(options) == true
|
@@ -107,7 +107,6 @@ module RakeCompilerDock
|
|
107
107
|
check = DockerCheck.new($stderr)
|
108
108
|
unless check.ok?
|
109
109
|
at_exit do
|
110
|
-
$stderr.puts
|
111
110
|
check.print_help_text
|
112
111
|
end
|
113
112
|
raise DockerIsNotAvailable, "Docker is not available"
|
data/rake-compiler-dock.gemspec
CHANGED
@@ -13,7 +13,6 @@ Gem::Specification.new do |spec|
|
|
13
13
|
Use rake-compiler-dock to enter an interactive shell session or add a task to your Rakefile to automate your cross build.}
|
14
14
|
spec.homepage = "https://github.com/larskanis/rake-compiler-dock"
|
15
15
|
spec.license = "MIT"
|
16
|
-
spec.required_ruby_version = '>= 1.9.3'
|
17
16
|
|
18
17
|
spec.files = `git ls-files -z`.split("\x0")
|
19
18
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rake-compiler-dock
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lars Kanis
|
@@ -10,26 +10,26 @@ bindir: bin
|
|
10
10
|
cert_chain:
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
13
|
+
MIIDPDCCAiSgAwIBAgIBAjANBgkqhkiG9w0BAQUFADBEMQ0wCwYDVQQDDARsYXJz
|
14
|
+
MR8wHQYKCZImiZPyLGQBGRYPZ3JlaXotcmVpbnNkb3JmMRIwEAYKCZImiZPyLGQB
|
15
|
+
GRYCZGUwHhcNMTUwMzEzMjAzMjExWhcNMTYwMzEyMjAzMjEx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DgUr1EPAIH1Q==
|
31
31
|
-----END CERTIFICATE-----
|
32
|
-
date: 2015-
|
32
|
+
date: 2015-07-01 00:00:00.000000000 Z
|
33
33
|
dependencies:
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: bundler
|
@@ -104,7 +104,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
104
104
|
requirements:
|
105
105
|
- - ">="
|
106
106
|
- !ruby/object:Gem::Version
|
107
|
-
version:
|
107
|
+
version: '0'
|
108
108
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
109
109
|
requirements:
|
110
110
|
- - ">="
|
@@ -117,3 +117,4 @@ signing_key:
|
|
117
117
|
specification_version: 4
|
118
118
|
summary: Docker based cross compiler environment for building binary windows gems.
|
119
119
|
test_files: []
|
120
|
+
has_rdoc:
|
metadata.gz.sig
CHANGED
@@ -1,3 +1,2 @@
|
|
1
|
-
\
|
2
|
-
|
3
|
-
h׀"�I�-�6�z
|
1
|
+
G��0 ���{��n��L�\�d�����δ�[`�{����i,�31����#`Ȇp���c��y+t�A�l��W��SڎS>��s�?E0�7{\_ׯ-l��-�yX�����خT�^�@�R��簫����En�)T <N����oHN���c }R`�ſ{�!?X�F�x�I���&,�Bm�x��J�~���T�^�0�T�h���
|
2
|
+
��3�dz!1,� [�eLJ��v�w�8�y��Ԍ��1IHGQ�s�����lӝ
|