dockly 1.3.2 → 1.3.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -46,11 +46,23 @@ class Dockly::BuildCache::Local < Dockly::BuildCache::Base
46
46
 
47
47
  def run_command(command)
48
48
  resp = ""
49
- Bundler.with_clean_env do
49
+ run_with_bundler do
50
50
  IO.popen(command) do |io|
51
51
  resp << io.read
52
52
  end
53
53
  end
54
54
  [$?, resp.strip]
55
55
  end
56
+
57
+ if defined?(Bundler)
58
+ def run_with_bundler
59
+ Bundler.with_clean_env do
60
+ yield
61
+ end
62
+ end
63
+ else
64
+ def run_with_bundler
65
+ yield
66
+ end
67
+ end
56
68
  end
@@ -1,3 +1,3 @@
1
1
  module Dockly
2
- VERSION = '1.3.2'
2
+ VERSION = '1.3.3'
3
3
  end
@@ -0,0 +1,10 @@
1
+ require 'spec_helper'
2
+
3
+ describe "Dockly CLI" do
4
+ describe "running the most basic command" do
5
+ let(:command) { "./bin/dockly" }
6
+ it "should exit with 0" do
7
+ expect(system(command)).to be_true
8
+ end
9
+ end
10
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dockly
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.2
4
+ version: 1.3.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-12-06 00:00:00.000000000 Z
12
+ date: 2013-12-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: clamp
@@ -277,6 +277,7 @@ files:
277
277
  - spec/dockly/build_cache/base_spec.rb
278
278
  - spec/dockly/build_cache/docker_spec.rb
279
279
  - spec/dockly/build_cache/local_spec.rb
280
+ - spec/dockly/cli_spec.rb
280
281
  - spec/dockly/deb_spec.rb
281
282
  - spec/dockly/docker_spec.rb
282
283
  - spec/dockly/foreman_spec.rb
@@ -320,6 +321,7 @@ test_files:
320
321
  - spec/dockly/build_cache/base_spec.rb
321
322
  - spec/dockly/build_cache/docker_spec.rb
322
323
  - spec/dockly/build_cache/local_spec.rb
324
+ - spec/dockly/cli_spec.rb
323
325
  - spec/dockly/deb_spec.rb
324
326
  - spec/dockly/docker_spec.rb
325
327
  - spec/dockly/foreman_spec.rb