Permalink
Browse files

Remove Jeweler dependency.

  • Loading branch information...
1 parent ab2e341 commit 92c3fe5675271cd458fc7c4a8777b84881d05400 @alloy committed Feb 4, 2012
Showing with 81 additions and 143 deletions.
  1. +4 −2 .gitignore
  2. +1 −11 Gemfile
  3. +8 −12 Gemfile.lock
  4. +3 −1 README.rdoc
  5. +1 −18 Rakefile
  6. +20 −98 kicker.gemspec
  7. +2 −1 lib/kicker.rb
  8. +5 −0 lib/kicker/options.rb
  9. +3 −0 lib/kicker/version.rb
  10. +34 −0 rakelib/gem_release.rake
View
@@ -1,4 +1,6 @@
-*.sw?
+.*.sw?
+*.gem
+.rbenv-version
.DS_Store
coverage
rdoc
@@ -7,4 +9,4 @@ html/*.html
html/*.rid
html/*.css
html/classes
-html/files
+html/files
View
12 Gemfile
@@ -1,12 +1,2 @@
source "http://rubygems.org"
-
-gem 'rake'
-
-group :development do
- gem 'mocha'
- gem 'test-unit'
- gem 'test-spec'
- gem 'activesupport'
- gem 'rb-fsevent'
- gem 'jeweler'
-end
+gemspec
View
@@ -1,36 +1,32 @@
+PATH
+ remote: .
+ specs:
+ kicker (2.4.0)
+ rb-fsevent
+
GEM
remote: http://rubygems.org/
specs:
activesupport (3.2.1)
i18n (~> 0.6)
multi_json (~> 1.0)
- git (1.2.5)
i18n (0.6.0)
- jeweler (1.8.3)
- bundler (~> 1.0)
- git (>= 1.2.5)
- rake
- rdoc
- json (1.6.5)
metaclass (0.0.1)
mocha (0.10.3)
metaclass (~> 0.0.1)
multi_json (1.0.4)
rake (0.9.2.2)
rb-fsevent (0.9.0)
- rdoc (3.12)
- json (~> 1.4)
test-spec (0.10.0)
- test-unit (2.3.1)
+ test-unit (2.4.5)
PLATFORMS
ruby
DEPENDENCIES
activesupport
- jeweler
+ kicker!
mocha
rake
- rb-fsevent
test-spec
test-unit
View
@@ -1,5 +1,7 @@
= Kicker
+{<img src="https://secure.travis-ci.org/alloy/kicker.png" />}[http://travis-ci.org/alloy/kicker]
+
A lean, agnostic, flexible file-change watcher, using OS X FSEvents.
https://github.com/alloy/kicker/raw/master/html/images/kikker.jpg
@@ -141,4 +143,4 @@ be important in your decision on where to specify handlers.
* Manfred Stienstra (@manfred)
* Cristi Balan (@evilchelu)
* Damir Zekic (@sidonath)
-* Adam Keys (@therealadam)
+* Adam Keys (@therealadam)
View
@@ -2,24 +2,7 @@ require 'rubygems'
require 'bundler/setup'
require 'rake/testtask'
-require 'rdoc/task'
-
-begin
- require 'jeweler'
- Jeweler::Tasks.new do |gem|
- gem.name = "kicker"
- gem.summary = %Q{A lean, agnostic, flexible file-change watcher, using OS X FSEvents.}
- gem.email = "eloy.de.enige@gmail.com"
- gem.homepage = "http://github.com/alloy/kicker"
- gem.authors = ["Eloy Duran"]
- gem.files.concat FileList['vendor/**/*']
- gem.require_paths = ["lib", "vendor"]
- gem.has_rdoc = true
- gem.add_dependency 'rb-fsevent'
- end
-rescue LoadError
- puts "Jeweler not available. Install it with: sudo gem install jeweler -s http://gems.github.com"
-end
+require 'rake/rdoctask'
Rake::TestTask.new do |t|
t.libs << "test"
View
@@ -1,106 +1,28 @@
-# Generated by jeweler
-# DO NOT EDIT THIS FILE DIRECTLY
-# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
# -*- encoding: utf-8 -*-
+$:.unshift File.expand_path('../lib', __FILE__)
+require 'kicker/version'
Gem::Specification.new do |s|
- s.name = %q{kicker}
- s.version = "2.4.0"
+ s.name = "kicker"
+ s.version = Kicker::VERSION
+ s.date = Date.today
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ["Eloy Duran"]
- s.date = %q{2012-02-03}
- s.default_executable = %q{kicker}
- s.email = %q{eloy.de.enige@gmail.com}
- s.executables = ["kicker"]
- s.extra_rdoc_files = [
- "LICENSE",
- "README.rdoc"
- ]
- s.files = [
- ".kick",
- ".travis.yml",
- "Gemfile",
- "Gemfile.lock",
- "LICENSE",
- "README.rdoc",
- "Rakefile",
- "TODO.rdoc",
- "VERSION",
- "bin/kicker",
- "html/images/kikker.jpg",
- "kicker.gemspec",
- "lib/kicker.rb",
- "lib/kicker/callback_chain.rb",
- "lib/kicker/core_ext.rb",
- "lib/kicker/fsevents.rb",
- "lib/kicker/growl.rb",
- "lib/kicker/log_status_helper.rb",
- "lib/kicker/options.rb",
- "lib/kicker/recipes.rb",
- "lib/kicker/recipes/could_not_handle_file.rb",
- "lib/kicker/recipes/dot_kick.rb",
- "lib/kicker/recipes/execute_cli_command.rb",
- "lib/kicker/recipes/ignore.rb",
- "lib/kicker/recipes/jstest.rb",
- "lib/kicker/recipes/rails.rb",
- "lib/kicker/recipes/ruby.rb",
- "lib/kicker/utils.rb",
- "test/callback_chain_test.rb",
- "test/core_ext_test.rb",
- "test/filesystem_change_test.rb",
- "test/fixtures/a_file_thats_reloaded.rb",
- "test/fsevents_test.rb",
- "test/growl_test.rb",
- "test/initialization_test.rb",
- "test/log_status_helper_test.rb",
- "test/options_test.rb",
- "test/recipes/could_not_handle_file_test.rb",
- "test/recipes/dot_kick_test.rb",
- "test/recipes/execute_cli_command_test.rb",
- "test/recipes/ignore_test.rb",
- "test/recipes/jstest_test.rb",
- "test/recipes/rails_test.rb",
- "test/recipes/ruby_test.rb",
- "test/recipes_test.rb",
- "test/test_helper.rb",
- "test/utils_test.rb",
- "vendor/growlnotifier/growl.rb",
- "vendor/growlnotifier/growl_helpers.rb"
- ]
- s.homepage = %q{http://github.com/alloy/kicker}
- s.require_paths = ["lib", "vendor"]
- s.rubygems_version = %q{1.6.2}
- s.summary = %q{A lean, agnostic, flexible file-change watcher, using OS X FSEvents.}
+ s.summary = "A lean, agnostic, flexible file-change watcher, using OS X FSEvents."
+ s.authors = ["Eloy Duran", "Manfred Stienstra"]
+ s.homepage = "http://github.com/alloy/kicker"
+ s.email = %w{ eloy.de.enige@gmail.com manfred@fngtps.com }
- if s.respond_to? :specification_version then
- s.specification_version = 3
+ s.executables = %w{ kicker }
+ s.require_paths = %w{ lib vendor }
+ s.files = Dir['bin/kicker', '{lib,vendor}/**/*.rb', 'README.rdoc', 'LICENSE', 'html/images/kikker.jpg']
+ s.extra_rdoc_files = %w{ LICENSE README.rdoc }
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
- s.add_runtime_dependency(%q<rake>, [">= 0"])
- s.add_development_dependency(%q<mocha>, [">= 0"])
- s.add_development_dependency(%q<test-spec>, [">= 0"])
- s.add_development_dependency(%q<activesupport>, [">= 0"])
- s.add_development_dependency(%q<rb-fsevent>, [">= 0"])
- s.add_development_dependency(%q<jeweler>, [">= 0"])
- s.add_runtime_dependency(%q<rb-fsevent>, [">= 0"])
- else
- s.add_dependency(%q<rake>, [">= 0"])
- s.add_dependency(%q<mocha>, [">= 0"])
- s.add_dependency(%q<test-spec>, [">= 0"])
- s.add_dependency(%q<activesupport>, [">= 0"])
- s.add_dependency(%q<rb-fsevent>, [">= 0"])
- s.add_dependency(%q<jeweler>, [">= 0"])
- s.add_dependency(%q<rb-fsevent>, [">= 0"])
- end
- else
- s.add_dependency(%q<rake>, [">= 0"])
- s.add_dependency(%q<mocha>, [">= 0"])
- s.add_dependency(%q<test-spec>, [">= 0"])
- s.add_dependency(%q<activesupport>, [">= 0"])
- s.add_dependency(%q<rb-fsevent>, [">= 0"])
- s.add_dependency(%q<jeweler>, [">= 0"])
- s.add_dependency(%q<rb-fsevent>, [">= 0"])
- end
+ s.add_runtime_dependency("rb-fsevent")
+
+ s.add_development_dependency("rake")
+ s.add_development_dependency("mocha")
+ s.add_development_dependency("test-unit")
+ s.add_development_dependency("test-spec")
+ s.add_development_dependency("activesupport")
end
View
@@ -1,5 +1,6 @@
$:.unshift File.expand_path('../../vendor', __FILE__)
+require 'kicker/version'
require 'kicker/fsevents'
require 'kicker/callback_chain'
require 'kicker/core_ext'
@@ -116,4 +117,4 @@ def make_paths_relative(files)
end
end
end
-end
+end
View
@@ -41,6 +41,11 @@ def self.parser
opt.separator " Available recipes: #{recipes_for_display.join(", ")}."
opt.separator " "
+ opt.on('-v', 'Print the Kicker version') do
+ puts VERSION
+ exit
+ end
+
opt.on('-s', '--silent', 'Keep output to a minimum.') do |silent|
Kicker.silent = true
end
View
@@ -0,0 +1,3 @@
+class Kicker
+ VERSION = "2.4.0"
+end
View
@@ -0,0 +1,34 @@
+NAME = 'Kicker'
+LOWERCASE_NAME = NAME.downcase
+GEM_NAME = LOWERCASE_NAME
+
+def gem_version
+ require File.expand_path("../../lib/#{LOWERCASE_NAME}/version", __FILE__)
+ Object.const_get(NAME).const_get('VERSION')
+end
+
+def gem_file
+ "#{GEM_NAME}-#{gem_version}.gem"
+end
+
+desc "Build gem"
+task :build do
+ sh "gem build #{GEM_NAME}.gemspec"
+end
+
+desc "Clean gems"
+task :clean do
+ sh "rm -f *.gem"
+end
+
+desc "Install gem"
+task :install => :build do
+ sh "sudo gem install #{gem_file}"
+end
+
+desc "Clean, build, install, and push gem to rubygems.org"
+task :release => [:clean, :install] do
+ sh "git tag -a #{gem_version} -m 'Release #{gem_version}'"
+ sh "git push --tags"
+ sh "gem push #{gem_file}"
+end

0 comments on commit 92c3fe5

Please sign in to comment.