bovem 2.1.3 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/lib/bovem/version.rb CHANGED
@@ -14,10 +14,10 @@ module Bovem
14
14
  MAJOR = 2
15
15
 
16
16
  # The minor version.
17
- MINOR = 1
17
+ MINOR = 2
18
18
 
19
19
  # The patch version.
20
- PATCH = 3
20
+ PATCH = 0
21
21
 
22
22
  # The current version number of Bovem.
23
23
  STRING = [MAJOR, MINOR, PATCH].compact.join(".")
@@ -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
 
@@ -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, false, false)).to be_false
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, false, false)).to be_false
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, false, false)).to be_false
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, false, false)).to be_false
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, false, true)).to be_false
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, false, true)).to be_false
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, false, true)).to be_false
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, false, true)).to be_false
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.1.3
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-27 00:00:00.000000000 Z
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.6.7
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.6.7
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: 1834211058802637433
133
+ hash: 2740824435420288859
134
134
  requirements: []
135
135
  rubyforge_project: bovem
136
136
  rubygems_version: 1.8.25