tara 0.3.1 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8becc22fc23dec6323164fa640d18e062cd7b7f3
4
- data.tar.gz: ddd7ae48b1cfab03a864384e8e617889cba48671
3
+ metadata.gz: d6e420d1eb102159255e920d2b4945a2b4e87541
4
+ data.tar.gz: dcbf5d159a857c56dbed52b53f10a17873b46ff8
5
5
  SHA512:
6
- metadata.gz: 5e86a0fddd03a6afa670d3eddeebcffcda3f52149020c81890f641c14261e7bc0371c94b5a290d5691801ab41df7335f98d93f3d1c126948a679a219173744b4
7
- data.tar.gz: 6492aa2bf1fe0bbb33fb14566db8c7d0bf1aff66aa943acfcd6a3c48f7b2664849fa09d4fba77b60a0e14120df54081703c428260b84de845144ee7ad55f9bbb
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
@@ -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 = 'BUNDLE_IGNORE_CONFIG=1 bundle install --jobs 4 --path vendor'
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
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module Tara
4
- VERSION = '0.3.1'
4
+ VERSION = '0.4.0'
5
5
  end
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.3.1
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-07-25 00:00:00.000000000 Z
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