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 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
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 == 'configure'
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("Could't set up bash completion. I'm terribly frustrated. Maybe 'mite help' helps out.") unless try_to_setup_bash_completion
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
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{mighty-mite}
5
- s.version = "0.1.1"
5
+ s.version = "0.1.2"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Lukas Rieder"]
@@ -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 "Could't set up bash completion. I'm terribly frustrated. Maybe 'mite help' helps out."
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Overbryd-mighty-mite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lukas Rieder