Permalink
Browse files

Listener -> Listen

I hope I forgot nothing, specs will need a more careful rename.
  • Loading branch information...
1 parent 1e457b1 commit 204e7e12de33a477fa798e0f3aa8448a5b1934cd @thibaudgg thibaudgg committed Jan 15, 2012
View
@@ -1,4 +1,4 @@
---title 'Listener Documentation'
+--title 'Listen Documentation'
--readme README.md
--markup markdown
--markup-provider redcarpet
View
@@ -1,6 +1,6 @@
guard :rspec, :all_on_start => false, :all_after_pass => false, :cli => '--fail-fast --format doc' do
watch(%r{^spec/.+_spec\.rb$})
- watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
- watch('spec/support/listener_helper.rb') { Dir.glob("spec/guard/listeners/*") }
- watch('spec/spec_helper.rb') { "spec" }
+ watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
+ watch('spec/support/fixtures.rb') { "spec" }
+ watch('spec/spec_helper.rb') { "spec" }
end
View
@@ -1,4 +1,4 @@
-Copyright (c) 2012 The listener team
+Copyright (c) 2012 The listen team
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
View
@@ -1,3 +1,3 @@
-# Listener [![Build Status](https://secure.travis-ci.org/guard/listener.png?branch=master)](http://travis-ci.org/guard/stener)
+# Listen [![Build Status](https://secure.travis-ci.org/guard/listen.png?branch=master)](http://travis-ci.org/guard/listen)
Work in progress...
@@ -1,4 +1,6 @@
-module Listener
+require 'listen/listener'
+
+module Listen
# Listen to file system modifications.
#
@@ -11,7 +13,8 @@ module Listener
# @yieldparam [Array<String>] removed the list of removed files
# @return [Watcher] the file watcher
#
- def self.listen(dir, options, &block)
+ def self.to(*args)
+ Listener.new(*args)
end
-end
+end
View
@@ -0,0 +1,9 @@
+Module Listen
+ class Listener
+
+ def initialize(*args)
+
+ end
+
+ end
+end
@@ -1,3 +1,3 @@
-module Listener
+module Listen
VERSION = '0.1.0'
end
@@ -1,19 +1,19 @@
# -*- encoding: utf-8 -*-
$:.push File.expand_path('../lib', __FILE__)
-require 'listener/version'
+require 'listen/version'
Gem::Specification.new do |s|
- s.name = 'listener'
- s.version = Listener::VERSION
+ s.name = 'listen'
+ s.version = Listen::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ['Travis Tilley', 'Yehuda Katz', 'Thibaud Guillaume-Gentil', 'Rémy Coutable', 'Michael Kessler']
s.email = ['ttilley@gmail.com', 'wycats@gmail.com', 'thibaud@thibaud.me', 'rymai@rymai.me', 'michi@netzpiraten.ch']
- s.homepage = 'https://github.com/guard/listener'
+ s.homepage = 'https://github.com/guard/listen'
s.summary = 'Listen to file modifications'
- s.description = 'The listener listens to file modifications and notifies you about the changes.'
+ s.description = 'The Listen gem listens to file modifications and notifies you about the changes.'
s.required_rubygems_version = '>= 1.3.6'
- s.rubyforge_project = 'listener'
+ s.rubyforge_project = 'listen'
s.add_development_dependency 'bundler'
s.add_development_dependency 'guard', '~> 0.10.0'
View
@@ -9,7 +9,7 @@
# @yieldparam [String] path the path to the fixture directory
#
def fixtures
- path = File.expand_path(File.join(Dir.tmpdir, 'listener'))
+ path = File.expand_path(File.join(Dir.tmpdir, 'listen'))
FileUtils.mkdir_p(path)
pwd = FileUtils.pwd

0 comments on commit 204e7e1

Please sign in to comment.