bovem 2.1.3 → 2.2.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.
- data/bovem.gemspec +1 -1
- data/doc/Bovem.html +1 -1
- data/doc/Bovem/Configuration.html +2 -2
- data/doc/Bovem/Console.html +28 -28
- data/doc/Bovem/ConsoleMethods.html +1 -1
- data/doc/Bovem/ConsoleMethods/Interactions.html +12 -12
- data/doc/Bovem/ConsoleMethods/Interactions/ClassMethods.html +5 -5
- data/doc/Bovem/ConsoleMethods/Logging.html +49 -49
- data/doc/Bovem/ConsoleMethods/Logging/ClassMethods.html +5 -5
- data/doc/Bovem/ConsoleMethods/Output.html +39 -41
- data/doc/Bovem/ConsoleMethods/StyleHandling.html +5 -5
- data/doc/Bovem/ConsoleMethods/StyleHandling/ClassMethods.html +14 -18
- data/doc/Bovem/Errors.html +1 -1
- data/doc/Bovem/Errors/InvalidConfiguration.html +1 -1
- data/doc/Bovem/Errors/InvalidLogger.html +1 -1
- data/doc/Bovem/Logger.html +6 -6
- data/doc/Bovem/Shell.html +13 -13
- data/doc/Bovem/ShellMethods.html +1 -1
- data/doc/Bovem/ShellMethods/Directories.html +9 -9
- data/doc/Bovem/ShellMethods/Execute.html +9 -9
- data/doc/Bovem/ShellMethods/General.html +1 -1
- data/doc/Bovem/ShellMethods/Read.html +1 -1
- data/doc/Bovem/ShellMethods/Write.html +7 -9
- data/doc/Bovem/Version.html +3 -3
- data/doc/_index.html +1 -1
- data/doc/file.README.html +1 -1
- data/doc/index.html +1 -1
- data/doc/top-level-namespace.html +1 -1
- data/lib/bovem/configuration.rb +2 -2
- data/lib/bovem/console.rb +10 -13
- data/lib/bovem/logger.rb +2 -2
- data/lib/bovem/shell.rb +14 -12
- data/lib/bovem/version.rb +2 -2
- data/spec/bovem/console_spec.rb +1 -1
- data/spec/bovem/shell_spec.rb +8 -8
- metadata +5 -5
data/lib/bovem/version.rb
CHANGED
data/spec/bovem/console_spec.rb
CHANGED
@@ -234,7 +234,7 @@ describe Bovem::Console do
|
|
234
234
|
|
235
235
|
describe "#begin" do
|
236
236
|
it "should forward everything to #get_banner" do
|
237
|
-
console.should_receive(:get_banner).with("*", "bright green").at_least(1).and_return("")
|
237
|
+
console.should_receive(:get_banner).with("*", "bright green", false).at_least(1).and_return("")
|
238
238
|
console.begin("OK", "\n", true, false, false, false, false, false)
|
239
239
|
end
|
240
240
|
|
data/spec/bovem/shell_spec.rb
CHANGED
@@ -262,10 +262,10 @@ describe Bovem::Shell do
|
|
262
262
|
File.open(temp_file_1, "w") {|f| f.write("OK") }
|
263
263
|
|
264
264
|
shell.console.should_receive(:error).with("Cannot copy file {mark=bright}#{temp_file_1}{/mark} to non writable directory {mark=bright}/dev{/mark}.", "\n", 5)
|
265
|
-
expect(shell.copy_or_move(temp_file_1, "/dev/bovem", :copy, true,
|
265
|
+
expect(shell.copy_or_move(temp_file_1, "/dev/bovem", :copy, true, true, false)).to be_false
|
266
266
|
|
267
267
|
shell.console.should_receive(:error).with("Cannot move file {mark=bright}#{temp_file_1}{/mark} to non writable directory {mark=bright}/dev{/mark}.", "\n", 5)
|
268
|
-
expect(shell.copy_or_move(temp_file_1, "/dev/bovem", :move, true,
|
268
|
+
expect(shell.copy_or_move(temp_file_1, "/dev/bovem", :move, true, true, false)).to be_false
|
269
269
|
end
|
270
270
|
|
271
271
|
it "should complain about other exceptions" do
|
@@ -274,10 +274,10 @@ describe Bovem::Shell do
|
|
274
274
|
File.open(temp_file_1, "w") {|f| f.write("OK") }
|
275
275
|
|
276
276
|
shell.console.should_receive(:error).with("Cannot copy file {mark=bright}#{temp_file_1}{/mark} to directory {mark=bright}#{File.dirname(temp_file_2)}{/mark} due to this error: [ArgumentError] ERROR.", "\n", 5)
|
277
|
-
expect(shell.copy_or_move(temp_file_1, temp_file_2, :copy, true,
|
277
|
+
expect(shell.copy_or_move(temp_file_1, temp_file_2, :copy, true, true, false)).to be_false
|
278
278
|
|
279
279
|
shell.console.should_receive(:error).with("Cannot move file {mark=bright}#{temp_file_1}{/mark} to directory {mark=bright}#{File.dirname(temp_file_2)}{/mark} due to this error: [ArgumentError] ERROR.", "\n", 5)
|
280
|
-
expect(shell.copy_or_move(temp_file_1, temp_file_2, :move, true,
|
280
|
+
expect(shell.copy_or_move(temp_file_1, temp_file_2, :move, true, true, false)).to be_false
|
281
281
|
end
|
282
282
|
|
283
283
|
describe "should exit when requested to" do
|
@@ -289,17 +289,17 @@ describe Bovem::Shell do
|
|
289
289
|
File.open(temp_file_2, "w") {|f| f.write("OK") }
|
290
290
|
|
291
291
|
shell.console.should_receive(:fatal).with("Cannot copy file {mark=bright}#{temp_file_1}{/mark} to directory {mark=bright}/dev{/mark} due to this error: [ArgumentError] ERROR.", "\n", 5)
|
292
|
-
expect(shell.copy_or_move(temp_file_1, "/dev/bovem", :copy, true,
|
292
|
+
expect(shell.copy_or_move(temp_file_1, "/dev/bovem", :copy, true, true, true)).to be_false
|
293
293
|
|
294
294
|
shell.console.should_receive(:fatal).with("Cannot move file {mark=bright}#{temp_file_1}{/mark} to directory {mark=bright}/dev{/mark} due to this error: [ArgumentError] ERROR.", "\n", 5)
|
295
|
-
expect(shell.copy_or_move(temp_file_1, "/dev/bovem", :move, true,
|
295
|
+
expect(shell.copy_or_move(temp_file_1, "/dev/bovem", :move, true, true, true)).to be_false
|
296
296
|
|
297
297
|
Kernel.stub(:exit).and_return(true)
|
298
298
|
shell.console.should_receive(:error).with("Cannot copy following entries to {mark=bright}/dev{/mark}:")
|
299
|
-
expect(shell.copy_or_move([temp_file_1, temp_file_2], "/dev", :copy, true,
|
299
|
+
expect(shell.copy_or_move([temp_file_1, temp_file_2], "/dev", :copy, true, true, true)).to be_false
|
300
300
|
|
301
301
|
shell.console.should_receive(:error).with("Cannot move following entries to {mark=bright}/dev{/mark}:")
|
302
|
-
expect(shell.copy_or_move([temp_file_1, temp_file_2], "/dev", :move, true,
|
302
|
+
expect(shell.copy_or_move([temp_file_1, temp_file_2], "/dev", :move, true, true, true)).to be_false
|
303
303
|
end
|
304
304
|
|
305
305
|
it "by calling Kernel#exit" do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bovem
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
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-02-
|
12
|
+
date: 2013-02-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: lazier
|
@@ -18,7 +18,7 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 2.
|
21
|
+
version: 2.7.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ~>
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 2.
|
29
|
+
version: 2.7.0
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: open4
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
@@ -130,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
130
130
|
version: '0'
|
131
131
|
segments:
|
132
132
|
- 0
|
133
|
-
hash:
|
133
|
+
hash: 2740824435420288859
|
134
134
|
requirements: []
|
135
135
|
rubyforge_project: bovem
|
136
136
|
rubygems_version: 1.8.25
|