busser-mamba 0.2.1 → 0.2.2
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 +4 -4
- data/.travis.yml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/busser/mamba/pip.rb +9 -1
- data/lib/busser/mamba/version.rb +1 -1
- data/lib/busser/runner_plugin/mamba.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 94a18a171d1a890b904b18f270ed254caca33769
|
|
4
|
+
data.tar.gz: 441d4d460869ba0537c28cd939c943f75b5a46e6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ce137d9c1dab529ad4f2e1364ed28f8666effc8bd66fb2014d16a4b282ed589a439bcf4c91216f8b942e8963b900ceed7d0909a35aedada04887a013e2d291d9
|
|
7
|
+
data.tar.gz: 93ce7bb37c3220fe3c7227799257feb7707172a5677638f448a0744343d1e669e5aad54c8a0e051de36b027efec4757ebef7e7d139057967252cc96908e43a6a
|
data/.travis.yml
CHANGED
|
@@ -8,12 +8,12 @@ rvm:
|
|
|
8
8
|
- ruby-head
|
|
9
9
|
|
|
10
10
|
before_install:
|
|
11
|
-
- sudo
|
|
11
|
+
- sudo pip uninstall -y pip
|
|
12
|
+
- mkdir -p ~/.pip
|
|
13
|
+
- echo -e '[install]\nuser = true' > ~/.pip/pip.conf
|
|
12
14
|
|
|
13
15
|
script:
|
|
14
|
-
-
|
|
15
|
-
- . .venv/bin/activate
|
|
16
|
-
- bundle exec rake
|
|
16
|
+
- PATH=~/.local/bin:$PATH bundle exec rake
|
|
17
17
|
|
|
18
18
|
matrix:
|
|
19
19
|
allow_failures:
|
data/CHANGELOG.md
CHANGED
data/lib/busser/mamba/pip.rb
CHANGED
|
@@ -13,7 +13,7 @@ module Busser
|
|
|
13
13
|
if !pip_installed?
|
|
14
14
|
info '`pip` is not installed, installing ...'
|
|
15
15
|
f = Tempfile.new('busser-mamba', Dir.tmpdir, 'wb+')
|
|
16
|
-
f.write(
|
|
16
|
+
f.write(pip_install_script)
|
|
17
17
|
f.flush
|
|
18
18
|
run!("python #{f.path}")
|
|
19
19
|
f.close!
|
|
@@ -21,6 +21,14 @@ module Busser
|
|
|
21
21
|
end
|
|
22
22
|
end
|
|
23
23
|
|
|
24
|
+
def pip_install_script
|
|
25
|
+
uri = URI('https://bootstrap.pypa.io/get-pip.py')
|
|
26
|
+
conn = Net::HTTP.new(uri.host, uri.port)
|
|
27
|
+
conn.use_ssl = true
|
|
28
|
+
conn.start
|
|
29
|
+
conn.get(uri.request_uri).body
|
|
30
|
+
end
|
|
31
|
+
|
|
24
32
|
def pip_installed?
|
|
25
33
|
system('pip --version')
|
|
26
34
|
$?.exitstatus == 0
|
data/lib/busser/mamba/version.rb
CHANGED
|
@@ -19,7 +19,7 @@ module Busser
|
|
|
19
19
|
postinstall do
|
|
20
20
|
ensure_pip
|
|
21
21
|
pip_install(
|
|
22
|
-
'
|
|
22
|
+
'https://github.com/nestorsalceda/mamba/archive/master.zip')
|
|
23
23
|
end
|
|
24
24
|
|
|
25
25
|
def test
|
|
@@ -30,6 +30,7 @@ module Busser
|
|
|
30
30
|
pip_install("-r #{requirements_file}")
|
|
31
31
|
end
|
|
32
32
|
|
|
33
|
+
info 'Running mamba ...'
|
|
33
34
|
run!("mamba #{suite_path}")
|
|
34
35
|
end
|
|
35
36
|
end
|