eclectica 0.0.2 → 0.0.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0af3366e22c94bcc8ecf85a2e49910e698e7bec8
4
- data.tar.gz: 7e65c95daed4b60149ccf55b2c2a243dd8d50e77
3
+ metadata.gz: dcaf0ebbe163987b1f5ef031922ebd53534605ed
4
+ data.tar.gz: 6c5b622363648b37170d042fd2191599dd6b26cc
5
5
  SHA512:
6
- metadata.gz: b8a4a6b3bcd9d71f35e3cbf4e4018fa70ba406f39964d856c98709e9bb4ce72b8665723915c8b7e46648896565b5963fdcc23f6991fadeff23f5fbdcf0b5d642
7
- data.tar.gz: d46dc1cd5c74f4f3150933e0606e5c79849b183f1a1be38552673d441d65b6a7fb9dad830a4d63493a9856d2740d6d2bc82f2aad3926f5ac65a0a4f0ff701460
6
+ metadata.gz: 5676d4540e6f0ddf65e6a8546a2f3ce48a30dbe343b0631988c818d88391e5f737f12f78a9ddba3fa405f1f56d97f1c3d42b95bcc5e1907e3eed8cd0a2d4889a
7
+ data.tar.gz: c9fbad12f861aa761744081a2542d5c413edfcc62d8c9a2a4edcd2899a7e66faee163d0cf07934e729a55c089141e07a5070af83cd52724093368e8a6bc9c211
data/bin/ec CHANGED
@@ -1,3 +1,3 @@
1
- #!/usr/bin/env ruby
1
+ #!
2
2
 
3
3
  # dummy
data/bin/ec-proxy ADDED
@@ -0,0 +1,3 @@
1
+ #!
2
+
3
+ # dummy
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.2 sh install.sh`
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 #{temp}/ec #{bin}")
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
- DEST="$DEST/ec"
44
- URL="https://github.com/markelog/eclectica/releases/download/$VERSION/eclectica_$PLATFORM"
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
- curl -L https://github.com/markelog/eclectica/releases/download/$VERSION/ec_$PLATFORM -o $DEST
51
- chmod +x $DEST
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.2
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-09-09 00:00:00.000000000 Z
11
+ date: 2016-10-22 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: Cool and eclectic version manager for any language (ruby, rust, node.js,
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.5.1
46
+ rubygems_version: 2.4.8
46
47
  signing_key:
47
48
  specification_version: 4
48
- summary: Cool and eclectic version manager for any language
49
+ summary: Version manager for any language
49
50
  test_files: []