evm 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/evm.rb +1 -0
- data/lib/evm/builder.rb +3 -1
- data/lib/evm/remote_file.rb +5 -0
- data/lib/evm/tar_file.rb +15 -2
- data/recipes/emacs-23.4-bin.rb +1 -1
- data/recipes/emacs-23.4.rb +1 -0
- data/recipes/emacs-24.1-bin.rb +1 -1
- data/recipes/emacs-24.1.rb +1 -0
- data/recipes/emacs-24.2-bin.rb +1 -1
- data/recipes/emacs-24.2.rb +1 -0
- data/recipes/emacs-24.3-bin.rb +1 -1
- data/recipes/emacs-24.3.rb +1 -0
- data/recipes/emacs-24.4-bin.rb +7 -0
- data/recipes/emacs-24.4.rb +24 -0
- data/recipes/emacs-git-snapshot.rb +1 -0
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37de7d47e3e591a3013fac97cb8a8739aa708a78
|
4
|
+
data.tar.gz: d0c62717a3dfa663eff53cd1397775fc2651df4a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7da5812d31c1a0c80868b6597733e9217c51637a3dfea6100157f67766f0a6f2850115b10c99e7d00e9d065686dfc8cfe90c508cd7438565f26d497950af4ad
|
7
|
+
data.tar.gz: 12a231362cd678c3aff52148e6faf94ef24a5ec105e4de462eb7e01b084257251ecb1c045da60afc48509ab9e497652a9bc1546f175c4c9963a8d9df0e286f91
|
data/lib/evm.rb
CHANGED
data/lib/evm/builder.rb
CHANGED
data/lib/evm/remote_file.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
require 'uri'
|
2
2
|
require 'thread'
|
3
3
|
require 'net/http'
|
4
|
+
require 'openssl'
|
4
5
|
|
5
6
|
module Evm
|
6
7
|
class RemoteFile
|
@@ -44,6 +45,10 @@ module Evm
|
|
44
45
|
uri = URI.parse(url)
|
45
46
|
|
46
47
|
http = Net::HTTP.new(uri.host, uri.port)
|
48
|
+
if uri.scheme == 'https'
|
49
|
+
http.use_ssl = true
|
50
|
+
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
51
|
+
end
|
47
52
|
http.request_get(uri.path) do |response|
|
48
53
|
case response
|
49
54
|
when Net::HTTPSuccess
|
data/lib/evm/tar_file.rb
CHANGED
@@ -4,8 +4,21 @@ module Evm
|
|
4
4
|
@tar_file = tar_file
|
5
5
|
end
|
6
6
|
|
7
|
-
def extract(extract_to)
|
8
|
-
|
7
|
+
def extract(extract_to, name = nil)
|
8
|
+
args = []
|
9
|
+
args << '-xzf'
|
10
|
+
args << @tar_file
|
11
|
+
args << '-C'
|
12
|
+
|
13
|
+
if name
|
14
|
+
args << File.join(extract_to, name)
|
15
|
+
args << '--strip-components'
|
16
|
+
args << '1'
|
17
|
+
else
|
18
|
+
args << extract_to
|
19
|
+
end
|
20
|
+
|
21
|
+
tar(*args)
|
9
22
|
end
|
10
23
|
|
11
24
|
private
|
data/recipes/emacs-23.4-bin.rb
CHANGED
data/recipes/emacs-23.4.rb
CHANGED
data/recipes/emacs-24.1-bin.rb
CHANGED
data/recipes/emacs-24.1.rb
CHANGED
data/recipes/emacs-24.2-bin.rb
CHANGED
data/recipes/emacs-24.2.rb
CHANGED
data/recipes/emacs-24.3-bin.rb
CHANGED
data/recipes/emacs-24.3.rb
CHANGED
@@ -0,0 +1,24 @@
|
|
1
|
+
recipe 'emacs-24.4' do
|
2
|
+
tar_gz 'http://ftpmirror.gnu.org/emacs/emacs-24.4.tar.gz'
|
3
|
+
|
4
|
+
osx do
|
5
|
+
option '--with-ns'
|
6
|
+
option '--without-x'
|
7
|
+
option '--without-dbus'
|
8
|
+
end
|
9
|
+
|
10
|
+
linux do
|
11
|
+
option '--prefix', installation_path
|
12
|
+
option '--without-gif'
|
13
|
+
end
|
14
|
+
|
15
|
+
install do
|
16
|
+
configure
|
17
|
+
make 'bootstrap'
|
18
|
+
make 'install'
|
19
|
+
|
20
|
+
osx do
|
21
|
+
copy File.join(build_path, 'nextstep', 'Emacs.app'), installation_path
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: evm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Johan Andersson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-11-09 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: EVM is a command-line tool that allows you to install multiple Emacs
|
14
14
|
versions.
|
@@ -43,6 +43,8 @@ files:
|
|
43
43
|
- recipes/emacs-24.2.rb
|
44
44
|
- recipes/emacs-24.3-bin.rb
|
45
45
|
- recipes/emacs-24.3.rb
|
46
|
+
- recipes/emacs-24.4-bin.rb
|
47
|
+
- recipes/emacs-24.4.rb
|
46
48
|
- recipes/emacs-git-snapshot.rb
|
47
49
|
homepage: http://github.com/rejeep/evm
|
48
50
|
licenses:
|
@@ -64,7 +66,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
64
66
|
version: '0'
|
65
67
|
requirements: []
|
66
68
|
rubyforge_project:
|
67
|
-
rubygems_version: 2.2.
|
69
|
+
rubygems_version: 2.2.2
|
68
70
|
signing_key:
|
69
71
|
specification_version: 4
|
70
72
|
summary: Emacs Version Manager
|