derelict 0.3.3.travis.105 → 0.3.3.travis.107

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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MmVhOGU2MGI3ODQxZTQ4Yzk0YTcwNWVlMGU2ZTlmMTQwYjQ2YjgwNw==
4
+ MDA2NGEwOWUxYzg0Yjg1Mjg4MGJkZTRlNDg5OWNlZDQ5NzI2MGZmMg==
5
5
  data.tar.gz: !binary |-
6
- NWVkNmQ1MjBiNGNkMmMyYTJiYjMzNmU3NWM2YzllNjI2MzAyMDFiYg==
6
+ YTExMDZiNDRiZmQ4ZjA2ZDc1Y2M2MWU4ZDZlZGJlOWMwM2FmODBmNg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NGY3MjIxMTAxNGZlZTFmZDhlMWYyNzI0MGRiZTk1YjE2MmRmYjYzMjhhY2Ji
10
- OWVhYzQ2NDBmNDJiMzQ4MDVkMjM2NmYwMTNlNjM5NzVlMGQ0OTQzYTZmNWQ2
11
- ZjkzNDYzOTE0MzNiOWMyMGYzYzdhNTZhYTBlNjlkMjU3NDZmNDc=
9
+ NzMwMDNiMWI2OGIzN2U1YzU3ZDg3N2Q2MjFkZGIyMDRkOTRlM2ZmZjQ5ZjA3
10
+ Y2RiMzM3YjFmNTIxOTYyOTViZjUxZGFmNjk3MmY1M2ViOTA5ODFhNGMwYmY5
11
+ OTA2YTg4ZGI0ZTA2NWUwNzk5ZDEyNDcwNTBmZjBiMGZlNzlmZmU=
12
12
  data.tar.gz: !binary |-
13
- ZmMyMWI2NjZkNzZmM2ZjMmE1MDBkMTI5MDczNDEyN2UzYmI5M2FlNzkzYTQ2
14
- YjNhOTk4NGM1MjZlMzg1ZGVmYWZhMTEyOWFlMjgxYmI3MjYyNTU4YmVlNmMw
15
- Y2Y3MWE4MGFlMmYzZjNiMjY0ZTNhYWJjMjYyYWI0ZjczNzIyYWQ=
13
+ OGI5MTVhZjhjMmQ2ZDYyYzlmMjkyYmM2MTVkZTdhOGQyYzdhYmVlY2M1ZWM1
14
+ MWFlY2U4NjU1MzI2N2EyMGM0NmViNmZmY2Q1YzdmOGQ1MzU1YzlkZTliMGM3
15
+ ZDJjYTAzNDVlYjg3NGNiMDRiZDQ3YmU3MGI4MjRlYTZkM2M0ZTk=
@@ -132,6 +132,8 @@ module Derelict
132
132
  # * options: A Hash of options, with the following optional keys:
133
133
  # * log: Logs the output of the command if true
134
134
  # (defaults to false)
135
+ # * log_mode: Controls how commands are logged (one of
136
+ # either :chars or :lines, defaults to :lines)
135
137
  # * color: Uses color in the log output (defaults to
136
138
  # false, only relevant if log is true)
137
139
  # * provider: The Vagrant provider to use, one of
@@ -146,6 +148,10 @@ module Derelict
146
148
  arguments << options[:provider]
147
149
  end
148
150
 
151
+ if options[:log_mode]
152
+ arguments << {:mode => options[:log_mode]}
153
+ end
154
+
149
155
  # Set up the block to use when executing -- if logging is
150
156
  # enabled, use a block that logs the output; otherwise no block.
151
157
  block = options[:log] ? shell_log_block : nil
@@ -164,6 +164,12 @@ describe Derelict::VirtualMachine do
164
164
  let(:args) { [:up, name, '--color'] }
165
165
  it { should be result }
166
166
  end
167
+
168
+ context "in chars mode" do
169
+ let(:options) { {:log => true, :log_mode => :chars} }
170
+ let(:args) { [:up, name, {:mode => :chars}] }
171
+ it { should be result }
172
+ end
167
173
  end
168
174
  end
169
175
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: derelict
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3.travis.105
4
+ version: 0.3.3.travis.107
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brad Feehan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-04 00:00:00.000000000 Z
11
+ date: 2013-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: log4r