tara 0.3.1 → 0.4.0
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/lib/tara/archive.rb +2 -0
- data/lib/tara/cli.rb +4 -0
- data/lib/tara/installer.rb +2 -1
- data/lib/tara/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d6e420d1eb102159255e920d2b4945a2b4e87541
|
|
4
|
+
data.tar.gz: dcbf5d159a857c56dbed52b53f10a17873b46ff8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d78bc8b757e1b9ac52bec3d072c3e0bc50d59644fedccfe072779e79761b5c2a7b3eacb709db07927dab2fbe6dce616b2fd31f5db28adde036b21475414ab0a0
|
|
7
|
+
data.tar.gz: 058c330f69ae1dd4f3bb4bce1f354970a765d400dd8ff0fe0eef7bf2341eb1894582f421a5ae1165fc6bccd284a67853ba10866dee93919169481764350b607e
|
data/lib/tara/archive.rb
CHANGED
|
@@ -37,6 +37,8 @@ module Tara
|
|
|
37
37
|
# the application.
|
|
38
38
|
# @option config [String] :build_dir (File.join(@config[:app_dir], 'build'))
|
|
39
39
|
# the directory where the archive will be created.
|
|
40
|
+
# @option config [Boolean] :bundle_ignore_config (false)
|
|
41
|
+
# if Bundler config should be ignored when installing dependencies
|
|
40
42
|
# @option config [String] :download_dir (File.join(@config[:build_dir], 'downloads'))
|
|
41
43
|
# the directory where Traveling Ruby artifacts will be downloaded.
|
|
42
44
|
# @option config [String] :archive_name (@config[:app_name] + '.tgz') name of the archive
|
data/lib/tara/cli.rb
CHANGED
|
@@ -38,6 +38,10 @@ module Tara
|
|
|
38
38
|
opts.on('--target TARGET', 'Target platform for archive') do |target|
|
|
39
39
|
options[:target] = target
|
|
40
40
|
end
|
|
41
|
+
|
|
42
|
+
opts.on('--traveling-ruby-version VERSION', 'Release of Traveling Ruby that should be used') do |traveling_ruby_version|
|
|
43
|
+
options[:traveling_ruby_version] = traveling_ruby_version
|
|
44
|
+
end
|
|
41
45
|
end
|
|
42
46
|
parser.parse(@argv)
|
|
43
47
|
options
|
data/lib/tara/installer.rb
CHANGED
|
@@ -8,6 +8,7 @@ module Tara
|
|
|
8
8
|
@fetcher = fetcher
|
|
9
9
|
@without_groups = options[:without_groups]
|
|
10
10
|
@app_dir = Pathname.new(options[:app_dir])
|
|
11
|
+
@bundle_env = 'BUNDLE_IGNORE_CONFIG=1' if options[:bundle_ignore_config]
|
|
11
12
|
@shell = options[:shell] || Shell
|
|
12
13
|
end
|
|
13
14
|
|
|
@@ -27,7 +28,7 @@ module Tara
|
|
|
27
28
|
|
|
28
29
|
def bundler_command
|
|
29
30
|
@bundler_command ||= begin
|
|
30
|
-
command =
|
|
31
|
+
command = "#{@bundle_env} bundle install --jobs 4 --path vendor"
|
|
31
32
|
command << %( --without #{@without_groups.join(' ')}) if @without_groups.any?
|
|
32
33
|
command
|
|
33
34
|
end
|
data/lib/tara/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tara
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mathias Söderberg
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-08-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Tara packs your Ruby app into a standalone archive with gems and a Ruby
|
|
14
14
|
runtime
|