Skip to content

Commit

Permalink
Changed class to Konacha.
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonid Beder committed Feb 3, 2015
1 parent 41cf8a1 commit e3b7cc5
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 21 deletions.
30 changes: 14 additions & 16 deletions lib/guard/konacha.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,25 @@
require 'konacha'

module Guard
module KonachaRails
class Plugin < Guard::Plugin
attr_accessor :runner
class Konacha < Plugin
attr_accessor :runner

def initialize(options = {})
super
def initialize(options = {})
super

@runner = Runner.new(options)
end
@runner = Guard::KonachaRails::Runner.new(options)
end

def start
runner.start
end
def start
runner.start
end

def run_all
runner.run
end
def run_all
runner.run
end

def run_on_changes(paths = [])
runner.run(paths)
end
def run_on_changes(paths = [])
runner.run(paths)
end
end
end
2 changes: 1 addition & 1 deletion lib/guard/konacha/rails/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Guard
module KonachaRails
VERSION = '1.1.2'.freeze
VERSION = '1.1.3'.freeze
end
end
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
require 'spec_helper'

describe Guard::KonachaRails::Plugin do
rails_env_file = File.expand_path('../../../dummy/config/environment', __FILE__)
subject { Guard::KonachaRails::Plugin.new(rails_environment_file: rails_env_file) }
describe Guard::Konacha do
rails_env_file = File.expand_path('../../dummy/config/environment', __FILE__)
subject { Guard::Konacha.new(rails_environment_file: rails_env_file) }

before do
# Silence UI.info output.
Expand All @@ -14,7 +14,7 @@
expect(Guard::KonachaRails::Runner).to receive(:new).with(rails_environment_file: nil,
spec_dir: 'spec/assets')

Guard::KonachaRails::Plugin.new(rails_environment_file: nil, spec_dir: 'spec/assets')
Guard::Konacha.new(rails_environment_file: nil, spec_dir: 'spec/assets')
end
end

Expand Down

0 comments on commit e3b7cc5

Please sign in to comment.