eclectica 0.0.2 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/ec +1 -1
- data/bin/ec-proxy +3 -0
- data/extconf.rb +4 -2
- data/{install.sh → scripts/install.sh} +11 -4
- metadata +8 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dcaf0ebbe163987b1f5ef031922ebd53534605ed
|
4
|
+
data.tar.gz: 6c5b622363648b37170d042fd2191599dd6b26cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5676d4540e6f0ddf65e6a8546a2f3ce48a30dbe343b0631988c818d88391e5f737f12f78a9ddba3fa405f1f56d97f1c3d42b95bcc5e1907e3eed8cd0a2d4889a
|
7
|
+
data.tar.gz: c9fbad12f861aa761744081a2542d5c413edfcc62d8c9a2a4edcd2899a7e66faee163d0cf07934e729a55c089141e07a5070af83cd52724093368e8a6bc9c211
|
data/bin/ec
CHANGED
data/bin/ec-proxy
ADDED
data/extconf.rb
CHANGED
@@ -6,10 +6,12 @@ create_makefile ''
|
|
6
6
|
|
7
7
|
bin = Gem.bindir()
|
8
8
|
temp = Dir.tmpdir()
|
9
|
+
ec = "#{temp}/ec"
|
10
|
+
ec_proxy = "#{temp}/ec-proxy"
|
9
11
|
|
10
12
|
# Place real binary in tmp path,
|
11
13
|
# if we put to bin path immediately, install process will try to use a dummy one
|
12
|
-
`EC_DEST=#{temp} EC_VERSION=0.0.
|
14
|
+
`EC_DEST=#{temp} EC_VERSION=0.0.7 sh scripts/install.sh`
|
13
15
|
|
14
16
|
# Execute in subprocess so post install would think we are finished
|
15
17
|
pid = fork do
|
@@ -21,7 +23,7 @@ pid = fork do
|
|
21
23
|
|
22
24
|
# Replace dummy bin with a real one
|
23
25
|
# "sleep" is need to give time for parent process to finish up
|
24
|
-
exec("sleep 2 && mv #{
|
26
|
+
exec("sleep 2 && mv #{ec} #{bin} && mv #{ec_proxy} #{bin}")
|
25
27
|
end
|
26
28
|
|
27
29
|
# Do it zombie style
|
@@ -40,15 +40,22 @@ else
|
|
40
40
|
DEST=/usr/local/bin
|
41
41
|
fi
|
42
42
|
|
43
|
-
|
44
|
-
|
43
|
+
DEST_MAIN="$DEST/ec"
|
44
|
+
DEST_PROXY="$DEST/ec-proxy"
|
45
|
+
MAIN="https://github.com/markelog/eclectica/releases/download/$VERSION/ec_$PLATFORM"
|
46
|
+
PROXY="https://github.com/markelog/eclectica/releases/download/$VERSION/ec-proxy_$PLATFORM"
|
45
47
|
|
46
48
|
if [ -z $VERSION ] ; then
|
47
49
|
echo "Error requesting. Download binary from https://github.com/markelog/eclectica/releases"
|
48
50
|
exit 1
|
49
51
|
else
|
50
|
-
|
51
|
-
|
52
|
+
echo "\nDownloading main binary\n"
|
53
|
+
curl -L $MAIN -o $DEST_MAIN
|
54
|
+
|
55
|
+
echo "\nDownloading proxy binary\n"
|
56
|
+
curl -L $PROXY -o $DEST_PROXY
|
57
|
+
|
58
|
+
chmod +x $DEST_MAIN $DEST_PROXY
|
52
59
|
fi
|
53
60
|
|
54
61
|
}
|
metadata
CHANGED
@@ -1,27 +1,28 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eclectica
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Oleg Gaidarenko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-10-22 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description: Cool and eclectic version manager for any language
|
14
|
-
golang)
|
13
|
+
description: Cool and eclectic version manager for any language
|
15
14
|
email: markelog@gmail.com
|
16
15
|
executables:
|
17
16
|
- ec
|
17
|
+
- ec-proxy
|
18
18
|
extensions:
|
19
19
|
- extconf.rb
|
20
20
|
extra_rdoc_files: []
|
21
21
|
files:
|
22
22
|
- bin/ec
|
23
|
+
- bin/ec-proxy
|
23
24
|
- extconf.rb
|
24
|
-
- install.sh
|
25
|
+
- scripts/install.sh
|
25
26
|
homepage: https://github.com/markelog/eclectica#readme
|
26
27
|
licenses:
|
27
28
|
- MIT
|
@@ -42,8 +43,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
42
43
|
version: '0'
|
43
44
|
requirements: []
|
44
45
|
rubyforge_project:
|
45
|
-
rubygems_version: 2.4.
|
46
|
+
rubygems_version: 2.4.8
|
46
47
|
signing_key:
|
47
48
|
specification_version: 4
|
48
|
-
summary:
|
49
|
+
summary: Version manager for any language
|
49
50
|
test_files: []
|