Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Initial commit.

  • Loading branch information...
commit 4a7372dff379c45e4962f4ea6330f8e562990732 0 parents
@netzpirat netzpirat authored
21 .gitignore
@@ -0,0 +1,21 @@
+pkg/*
+doc/*
+*.gem
+*.rbc
+.*.swp
+*.bak
+.bundle
+.yardoc
+.rbx
+.rvmrc
+Gemfile.lock
+bin/fsevent_watch_guard
+Makefile
+
+## MAC OS
+.DS_Store
+.Trashes
+.com.apple.timemachine.supported
+.fseventsd
+Desktop DB
+Desktop DF
2  .rspec
@@ -0,0 +1,2 @@
+--color
+--format progress
17 .travis.yml
@@ -0,0 +1,17 @@
+rvm:
+ - 1.8.7
+ - 1.9.2
+ - 1.9.3
+ - ree
+ - jruby
+ - rbx
+branches:
+ only:
+ - master
+notifications:
+ recipients:
+ - ttilley@gmail.com
+ - wycats@gmail.com
+ - thibaud@thibaud.me
+ - rymai@rymai.me
+ - michi@netzpiraten.ch
11 .yardopts
@@ -0,0 +1,11 @@
+--title 'Listener Documentation'
+--readme README.md
+--markup markdown
+--markup-provider redcarpet
+--private
+--protected
+--output-dir ./doc
+lib/**/*.rb
+-
+CHANGELOG.md
+LICENSE
1  CHANGELOG.md
@@ -0,0 +1 @@
+## Master
18 Gemfile
@@ -0,0 +1,18 @@
+source :rubygems
+
+gemspec
+
+platform :ruby do
+ gem 'rb-readline'
+end
+
+require 'rbconfig'
+
+if RbConfig::CONFIG['target_os'] =~ /darwin/i
+ gem 'ruby_gntp', '~> 0.3.4', :require => false
+elsif RbConfig::CONFIG['target_os'] =~ /linux/i
+ gem 'libnotify', '~> 0.7.1', :require => false
+elsif RbConfig::CONFIG['target_os'] =~ /mswin|mingw/i
+ gem 'win32console', :require => false
+ gem 'rb-notifu', '>= 0.0.4', :require => false
+end
6 Guardfile
@@ -0,0 +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" }
+end
20 LICENSE
@@ -0,0 +1,20 @@
+Copyright (c) 2012 The listener team
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
3  README.md
@@ -0,0 +1,3 @@
+# Listener [![Build Status](https://secure.travis-ci.org/guard/listener.png?branch=master)](http://travis-ci.org/guard/stener)
+
+Work in progress...
47 Rakefile
@@ -0,0 +1,47 @@
+require 'bundler/gem_tasks'
+require 'rspec/core/rake_task'
+
+RSpec::Core::RakeTask.new(:spec)
+task :default => :spec
+
+require 'rbconfig'
+namespace(:spec) do
+ if RbConfig::CONFIG['host_os'] =~ /mswin|mingw/i
+ desc "Run all specs on multiple ruby versions (requires pik)"
+ task(:portability) do
+ %w[187 192 161].each do |version|
+ system "cmd /c echo -----------#{version}------------ & " +
+ "pik use #{version} & " +
+ "bundle install & " +
+ "bundle exec rspec spec"
+ end
+ end
+ else
+ desc "Run all specs on multiple ruby versions (requires rvm)"
+ task(:portability) do
+ travis_config_file = File.expand_path("../.travis.yml", __FILE__)
+ begin
+ travis_options ||= YAML::load_file(travis_config_file)
+ rescue => ex
+ puts "Travis config file '#{travis_config_file}' could not be found: #{ex.message}"
+ return
+ end
+
+ travis_options['rvm'].each do |version|
+ system <<-BASH
+ bash -c 'source ~/.rvm/scripts/rvm;
+ rvm #{version};
+ ruby_version_string_size=`ruby -v | wc -m`
+ echo;
+ for ((c=1; c<$ruby_version_string_size; c++)); do echo -n "="; done
+ echo;
+ echo "`ruby -v`";
+ for ((c=1; c<$ruby_version_string_size; c++)); do echo -n "="; done
+ echo;
+ RBXOPT="-Xrbc.db" bundle install;
+ RBXOPT="-Xrbc.db" bundle exec rspec spec -f doc 2>&1;'
+ BASH
+ end
+ end
+ end
+end
2  lib/listener.rb
@@ -0,0 +1,2 @@
+module Listener
+end
3  lib/listener/version.rb
@@ -0,0 +1,3 @@
+module Listener
+ VERSION = '0.1.0'
+end
28 listener.gemspec
@@ -0,0 +1,28 @@
+# -*- encoding: utf-8 -*-
+$:.push File.expand_path('../lib', __FILE__)
+require 'listener/version'
+
+Gem::Specification.new do |s|
+ s.name = 'listener'
+ s.version = Listener::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.summary = 'Listen to file modifications'
+ s.description = 'The listener listens to file modifications and notifies you about the changes.'
+
+ s.required_rubygems_version = '>= 1.3.6'
+ s.rubyforge_project = 'listener'
+
+ s.add_development_dependency 'bundler'
+ s.add_development_dependency 'guard', '~> 0.10.0'
+ s.add_development_dependency 'rspec', '~> 2.8.0'
+ s.add_development_dependency 'guard-rspec', '~> 0.6.0'
+ s.add_development_dependency 'yard'
+ s.add_development_dependency 'redcarpet'
+ s.add_development_dependency 'pry'
+
+ s.files = Dir.glob('{lib}/**/*') + %w[CHANGELOG.md LICENSE README.md]
+ s.require_path = 'lib'
+end
6 spec/spec_helper.rb
@@ -0,0 +1,6 @@
+# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
+RSpec.configure do |config|
+ config.treat_symbols_as_metadata_keys_with_true_values = true
+ config.run_all_when_everything_filtered = true
+ config.filter_run :focus
+end
Please sign in to comment.
Something went wrong with that request. Please try again.