eclectica 0.9.0 → 0.9.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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/extconf.rb +1 -1
  3. data/scripts/install.sh +49 -47
  4. metadata +3 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a7be5e9b803e4fb21d7c6e3bbd3bcb38ff94802b2f0cc5e49700680e9c39777d
4
- data.tar.gz: a04108dcb47608b0e632c29a5c31e7abdd2e89f64232fcdb1a41fb0d17638217
3
+ metadata.gz: 53b539f3301a0e3009d8c36ed6d475e1e66291c942d78c4f43ddea7f511f3647
4
+ data.tar.gz: d7f84a5a34e7762cc169553b7d9ab8aef138b193a717d5bd695aa78abbef1883
5
5
  SHA512:
6
- metadata.gz: ee114ab39816261148cb886016f1e8f209e55f7335b365ac1e1aa91fff0abea793f0e6bf817dfbc817b056da3e5b796237ea9198ef99ec26f3fc43ac6380600e
7
- data.tar.gz: 58fa9aa8b2cc98b433578849249e6efcf80d66a333324c84025ac05649895c06ebc296295a9e206126dff536ccd7821da291c0ee08054316d50862f4d2bb00bf
6
+ metadata.gz: 0bf8c1b5161d86e3cc08b444a6801ce8e043b429aef863a48c74989003099d37f6d2460fe52329c2070096502143e0beb7f3319f81964d5e8b63b7112012a3f7
7
+ data.tar.gz: 365af5eb35d8f2f2ca4ff80013b0fe79e8b0241d0082f8d131f5dd7b5c304b8e12ddb906fdd02188053091b65d269eecc092f674b848ce587321eb1e1721ad99
data/extconf.rb CHANGED
@@ -11,7 +11,7 @@ ec_proxy = "#{temp}/ec-proxy"
11
11
 
12
12
  # Place real binary in tmp path,
13
13
  # if we put to bin path immediately, install process will try to use a dummy one
14
- `EC_DEST=#{temp} EC_VERSION=0.9.0 sh scripts/install.sh`
14
+ `EC_DEST=#{temp} EC_VERSION=0.9.2 sh scripts/install.sh`
15
15
 
16
16
  # Execute in subprocess so post install would think we are finished
17
17
  pid = fork do
data/scripts/install.sh CHANGED
@@ -1,62 +1,64 @@
1
1
  #!/bin/sh
2
2
 
3
- install () {
3
+ install() {
4
4
 
5
- set -eu
5
+ set -eu
6
6
 
7
- UNAME=$(uname)
8
- if [ "$UNAME" != "Linux" -a "$UNAME" != "Darwin" ] ; then
7
+ UNAME=$(uname)
8
+ if [ "$UNAME" != "Linux" -a "$UNAME" != "Darwin" ]; then
9
9
  echo "Sorry, OS not supported: ${UNAME}. Download binary from https://github.com/markelog/eclectica/releases"
10
10
  exit 1
11
- fi
11
+ fi
12
+
13
+ if [ "$UNAME" = "Darwin" ]; then
14
+ OSX_ARCH=$(uname -m)
15
+ if [ "${OSX_ARCH}" = "x86_64" ]; then
16
+ PLATFORM="darwin_amd64"
17
+ elif [ "${OSX_ARCH}" = "arm64" ]; then
18
+ PLATFORM="darwin_arm64"
19
+ else
20
+ echo "Sorry, architecture not supported: ${OSX_ARCH}. Download binary from https://github.com/markelog/eclectica/releases"
21
+ exit 1
22
+ fi
23
+ elif [ "$UNAME" = "Linux" ]; then
24
+ LINUX_ARCH=$(uname -m)
25
+ if [ "${LINUX_ARCH}" = "x86_64" ]; then
26
+ PLATFORM="linux_amd64"
27
+ else
28
+ echo "Sorry, architecture not supported: ${LINUX_ARCH}. Download binary from https://github.com/markelog/eclectica/releases"
29
+ exit 1
30
+ fi
31
+ fi
12
32
 
13
- if [ "$UNAME" = "Darwin" ] ; then
14
- OSX_ARCH=$(uname -m)
15
- if [ "${OSX_ARCH}" = "x86_64" ] ; then
16
- PLATFORM="darwin_amd64"
33
+ if [ -n "${EC_VERSION+set}" ]; then
34
+ VERSION=v$EC_VERSION
17
35
  else
18
- echo "Sorry, architecture not supported: ${OSX_ARCH}. Download binary from https://github.com/markelog/eclectica/releases"
19
- exit 1
36
+ VERSION=$(curl -s https://api.github.com/repos/markelog/eclectica/tags | grep -Eo '"name":.*?[^\\]",' | head -n 1 | sed 's/[," ]//g' | cut -d ':' -f 2)
20
37
  fi
21
- elif [ "$UNAME" = "Linux" ] ; then
22
- LINUX_ARCH=$(uname -m)
23
- if [ "${LINUX_ARCH}" = "x86_64" ] ; then
24
- PLATFORM="linux_amd64"
38
+
39
+ if [ -n "${EC_DEST+set}" ]; then
40
+ DEST=$EC_DEST
25
41
  else
26
- echo "Sorry, architecture not supported: ${LINUX_ARCH}. Download binary from https://github.com/markelog/eclectica/releases"
42
+ DEST=/usr/local/bin
43
+ fi
44
+
45
+ DEST_MAIN="$DEST/ec"
46
+ DEST_PROXY="$DEST/ec-proxy"
47
+ MAIN="https://github.com/markelog/eclectica/releases/download/$VERSION/ec_$PLATFORM"
48
+ PROXY="https://github.com/markelog/eclectica/releases/download/$VERSION/ec-proxy_$PLATFORM"
49
+
50
+ if [ -z $VERSION ]; then
51
+ echo "Error requesting. Download binary from https://github.com/markelog/eclectica/releases"
27
52
  exit 1
53
+ else
54
+ echo "\nDownloading main binary\n"
55
+ curl -L $MAIN -o $DEST_MAIN
56
+
57
+ echo "\nDownloading proxy binary\n"
58
+ curl -L $PROXY -o $DEST_PROXY
59
+
60
+ chmod +x $DEST_MAIN $DEST_PROXY
28
61
  fi
29
- fi
30
-
31
- if [ -n "${EC_VERSION+set}" ] ; then
32
- VERSION=v$EC_VERSION
33
- else
34
- VERSION=$(curl -s https://api.github.com/repos/markelog/eclectica/tags | grep -Eo '"name":.*?[^\\]",' | head -n 1 | sed 's/[," ]//g' | cut -d ':' -f 2)
35
- fi
36
-
37
- if [ -n "${EC_DEST+set}" ] ; then
38
- DEST=$EC_DEST
39
- else
40
- DEST=/usr/local/bin
41
- fi
42
-
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"
47
-
48
- if [ -z $VERSION ] ; then
49
- echo "Error requesting. Download binary from https://github.com/markelog/eclectica/releases"
50
- exit 1
51
- else
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
59
- fi
60
62
 
61
63
  }
62
64
 
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eclectica
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oleg Gaidarenko
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-10-10 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies: []
13
12
  description: Cool and eclectic version manager for any language
14
13
  email: markelog@gmail.com
@@ -27,7 +26,6 @@ homepage: https://github.com/markelog/eclectica#readme
27
26
  licenses:
28
27
  - MIT
29
28
  metadata: {}
30
- post_install_message:
31
29
  rdoc_options: []
32
30
  require_paths:
33
31
  - lib
@@ -42,8 +40,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
42
40
  - !ruby/object:Gem::Version
43
41
  version: '0'
44
42
  requirements: []
45
- rubygems_version: 3.0.3.1
46
- signing_key:
43
+ rubygems_version: 3.7.2
47
44
  specification_version: 4
48
45
  summary: Version manager for any language
49
46
  test_files: []