Overbryd-mighty-mite 0.1.1 → 0.1.2
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/Rakefile +11 -2
- data/VERSION +1 -1
- data/lib/mighty_mite/application.rb +2 -2
- data/mighty-mite.gemspec +1 -1
- data/spec/unit/mighty_mite/application_spec.rb +1 -1
- metadata +1 -1
data/Rakefile
CHANGED
@@ -16,8 +16,17 @@ rescue LoadError
|
|
16
16
|
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
|
17
17
|
end
|
18
18
|
|
19
|
-
require 'spec/rake/spectask'
|
20
19
|
task :spec do
|
21
20
|
sh "spec spec/unit/* --format specdoc --color"
|
22
21
|
end
|
23
|
-
task :default => :spec
|
22
|
+
task :default => :spec
|
23
|
+
|
24
|
+
task :rcov do
|
25
|
+
sh "rake run_rcov && open coverage/index.html"
|
26
|
+
end
|
27
|
+
require 'spec/rake/spectask'
|
28
|
+
Spec::Rake::SpecTask.new(:run_rcov) do |spec|
|
29
|
+
spec.libs << 'lib' << 'spec'
|
30
|
+
spec.pattern = 'spec/**/*_spec.rb'
|
31
|
+
spec.rcov = true
|
32
|
+
end
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.2
|
@@ -8,7 +8,7 @@ module MightyMite
|
|
8
8
|
|
9
9
|
def initialize(arguments=[])
|
10
10
|
@arguments = arguments
|
11
|
-
MightyMite.load_configuration unless arguments.first
|
11
|
+
MightyMite.load_configuration unless ['configure', 'help'].include?(arguments.first)
|
12
12
|
end
|
13
13
|
|
14
14
|
def run
|
@@ -21,7 +21,7 @@ module MightyMite
|
|
21
21
|
elsif @arguments.first == 'configure'
|
22
22
|
raise MightyMite::Exception.new('mite configure needs two arguments, the account name and the apikey') if @arguments.size < 3 # lol boobs, err... an ice cone!
|
23
23
|
write_configuration({:account => @arguments[1], :apikey => @arguments[2]})
|
24
|
-
tell("
|
24
|
+
tell("Couldn't set up bash completion. I'm terribly frustrated. Maybe 'mite help' helps out.") unless try_to_setup_bash_completion
|
25
25
|
|
26
26
|
elsif @arguments.first == 'auto-complete'
|
27
27
|
autocomplete = MightyMite::Autocomplete.new(MightyMite.calling_script)
|
data/mighty-mite.gemspec
CHANGED
@@ -75,7 +75,7 @@ describe MightyMite::Application, 'run' do
|
|
75
75
|
|
76
76
|
it "should tell something nice if the bash completion setup fails" do
|
77
77
|
@application.stub!(:try_to_setup_bash_completion).and_return false
|
78
|
-
@application.should_receive(:tell).with "
|
78
|
+
@application.should_receive(:tell).with "Couldn't set up bash completion. I'm terribly frustrated. Maybe 'mite help' helps out."
|
79
79
|
|
80
80
|
File.stub!(:open) # prevents the yml file to be written
|
81
81
|
@application.run
|