Skip to content

Commit

Permalink
Remove trailing spaces from non-c files
Browse files Browse the repository at this point in the history
  • Loading branch information
Maher4Ever committed Jul 12, 2012
1 parent 88d0e68 commit 32d0711
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ tmp
# -------------------------------------

# Windows image file caches
Thumbs.db
Thumbs.db

# Folder config file
Desktop.ini
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Windows Directory Monitor (WDM)

Windows Directory Monitor (WDM) is a library which can be used to monitor directories for changes.
Windows Directory Monitor (WDM) is a library which can be used to monitor directories for changes.
It's mostly implemented in C and uses the Win32 API for a better performance.

**Note:** This is still a work in progress, so it's not advisable to use
**Note:** This is still a work in progress, so it's not advisable to use
it yet in anything (unless you are testing it, which is very much appreciated :)).

TODO:
Expand Down
2 changes: 1 addition & 1 deletion example/changes_monitor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
monitor.watch('C:\Users\Maher\Desktop\test') { puts "change 1!" }
monitor.watch('C:\Users\Maher\Desktop\psds') { puts "change 2!" }

thread = Thread.new {
thread = Thread.new {
monitor.run!
}

Expand Down
2 changes: 1 addition & 1 deletion ext/wdm/global.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ extern "C" {

#define WDM_DEBUG_ENABLED TRUE

#define WDM_BUFFER_SIZE 16384 // 2^14 or 16Kb
#define WDM_BUFFER_SIZE 16384 // 2^14 or 16Kb

// ---------------------------------------------------------
// Macros
Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
config.filter_run :focus

config.before(:all) { `rake compile` }

config.include WDM::SpecHelpers
end
8 changes: 4 additions & 4 deletions spec/support/fixture_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@ def fixture
FileUtils.rm_rf(path) if File.exists?(path)
end

# Prepares the monitor for the test with a fixture directory and the given
# callback, then it yields back to the user. It also gives time for
# Prepares the monitor for the test with a fixture directory and the given
# callback, then it yields back to the user. It also gives time for
# the callbacks to be called. After the tests run, it stops the monitor.
#
# @yield
#
#
def watch_fixture_with(monitor, callback)
fixture do |f|
monitor.watch(f, &callback)

thread = Thread.new(monitor) { |m| m.run! }
thread = Thread.new(monitor) { |m| m.run! }
sleep(0.1) # give time for the monitor to bootup

yield
Expand Down
4 changes: 2 additions & 2 deletions wdm.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ Gem::Specification.new do |gem|
gem.name = "wdm"
gem.require_paths = ["lib"]
gem.version = '0.0.1'
gem.add_development_dependency 'rake-compiler'

gem.add_development_dependency 'rake-compiler'
gem.add_development_dependency 'rspec'
gem.add_development_dependency 'guard-rspec'
gem.add_development_dependency 'guard-shell'
Expand Down

0 comments on commit 32d0711

Please sign in to comment.