spitball 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/spitball.rb +5 -4
  3. data/spitball.gemspec +1 -1
  4. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.4
1
+ 0.1.5
data/lib/spitball.rb CHANGED
@@ -48,17 +48,18 @@ class Spitball
48
48
  end
49
49
 
50
50
  def create_bundle
51
- File.open(gemfile_path, 'w') {|f| f.write gemfile }
52
51
  FileUtils.mkdir_p bundle_path
53
52
 
54
- if system "bundle install #{bundle_path} --gemfile=#{gemfile_path} --disable-shared-gems #{without_clause} > /dev/null"
53
+ File.open(gemfile_path, 'w') {|f| f.write gemfile }
54
+
55
+ if system "cd #{bundle_path} && bundle install #{bundle_path} --disable-shared-gems #{without_clause} > /dev/null"
55
56
  FileUtils.rm_rf File.join(bundle_path, "cache")
56
57
 
57
58
  system "tar czf #{tarball_path}.#{Process.pid} -C #{bundle_path} ."
58
59
  system "mv #{tarball_path}.#{Process.pid} #{tarball_path}"
59
60
 
60
61
  else
61
- FileUtils.rm_rf gemfile_path
62
+ #FileUtils.rm_rf gemfile_path
62
63
  raise BundleCreationFailure, "Bundle build failure."
63
64
  end
64
65
 
@@ -79,7 +80,7 @@ class Spitball
79
80
  end
80
81
 
81
82
  def gemfile_path
82
- Repo.path(digest, 'gemfile')
83
+ File.expand_path('Gemfile', bundle_path)
83
84
  end
84
85
 
85
86
  def tarball_path
data/spitball.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{spitball}
8
- s.version = "0.1.4"
8
+ s.version = "0.1.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Matt Freels", "Brandon Mitchell"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spitball
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 4
10
- version: 0.1.4
9
+ - 5
10
+ version: 0.1.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Matt Freels