Skip to content

Commit f0e465b

Browse files
committed
Merge pull request resque#679 from postmodern/cleanup
Cleanup
2 parents 02d4a3e + 2b89cec commit f0e465b

File tree

7 files changed

+52
-51
lines changed

7 files changed

+52
-51
lines changed

.document

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
-
2+
HISTORY.md
3+
LICENSE.txt

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
Gemfile.lock
2+
doc/
23
test/dump.rdb

Gemfile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,17 @@ source :rubygems
22

33
gemspec
44

5+
group :development do
6+
gem 'rake'
7+
gem 'yard'
8+
end
9+
10+
group :documentation do
11+
gem 'rdoc'
12+
gem 'redcarpet'
13+
end
14+
515
group :test do
6-
gem "rake"
716
gem "rack-test", "~> 0.5"
817
gem "mocha", "~> 0.9.7"
918
gem "yajl-ruby", "~>0.8.2", :platforms => :mri

LICENSE renamed to LICENSE.txt

File renamed without changes.

README.markdown renamed to README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ then `CONT` to start it again.
499499

500500
If your workers remain idle for too long they may lose their MySQL
501501
connection. If that happens we recommend using [this
502-
Gist](http://gist.github.com/238999).
502+
Gist](https://gist.github.com/238999).
503503

504504

505505
<a name='section_The_Front_End'></a>
@@ -866,11 +866,11 @@ Plugins and Hooks
866866
-----------------
867867

868868
For a list of available plugins see
869-
<http://wiki.github.com/defunkt/resque/plugins>.
869+
<https://wiki.github.com/defunkt/resque/plugins>.
870870

871871
If you'd like to write your own plugin, or want to customize Resque
872872
using hooks (such as `Resque.after_fork`), see
873-
[docs/HOOKS.md](http://github.com/defunkt/resque/blob/master/docs/HOOKS.md).
873+
[docs/HOOKS.md](https://github.com/defunkt/resque/blob/master/docs/HOOKS.md).
874874

875875

876876
<a name='section_Namespaces'></a>
@@ -977,7 +977,7 @@ Once you've made your great commits:
977977
1. [Fork][1] Resque
978978
2. Create a topic branch - `git checkout -b my_branch`
979979
3. Push to your branch - `git push origin my_branch`
980-
4. Create a [Pull Request](http://help.github.com/pull-requests/) from your branch
980+
4. Create a [Pull Request](https://help.github.com/pull-requests/) from your branch
981981
5. That's it!
982982

983983

@@ -997,12 +997,12 @@ Meta
997997
----
998998

999999
* Code: `git clone git://github.com/defunkt/resque.git`
1000-
* Home: <http://github.com/defunkt/resque>
1001-
* Docs: <http://defunkt.github.com/resque/>
1002-
* Bugs: <http://github.com/defunkt/resque/issues>
1000+
* Home: <https://github.com/defunkt/resque>
1001+
* Docs: <http://rubydoc.info/gems/resque/frames>
1002+
* Bugs: <https://github.com/defunkt/resque/issues>
10031003
10041004
* Chat: <irc://irc.freenode.net/resque>
1005-
* Gems: <http://gemcutter.org/gems/resque>
1005+
* Gems: <http://rubygems.org/gems/resque>
10061006

10071007
This project uses [Semantic Versioning][sv].
10081008

@@ -1013,9 +1013,9 @@ Author
10131013

10141014
Chris Wanstrath :: [email protected] :: @defunkt
10151015

1016-
[0]: http://github.com/blog/542-introducing-resque
1017-
[1]: http://help.github.com/forking/
1018-
[2]: http://github.com/defunkt/resque/issues
1016+
[0]: https://github.com/blog/542-introducing-resque
1017+
[1]: https://help.github.com/forking/
1018+
[2]: https://github.com/defunkt/resque/issues
10191019
[sv]: http://semver.org/
1020-
[rs]: http://github.com/defunkt/redis-namespace
1021-
[cb]: http://wiki.github.com/defunkt/resque/contributing
1020+
[rs]: https://github.com/defunkt/redis-namespace
1021+
[cb]: https://wiki.github.com/defunkt/resque/contributing

Rakefile

Lines changed: 19 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,21 @@
1+
require 'rubygems'
2+
3+
begin
4+
require 'bundler/setup'
5+
rescue LoadError => e
6+
warn e.message
7+
warn "Run `gem install bundler` to install Bundler"
8+
exit -1
9+
end
10+
111
#
2-
# Setup
12+
# Bundler
313
#
14+
require 'bundler/gem_tasks'
415

16+
#
17+
# Setup
18+
#
519
$LOAD_PATH.unshift 'lib'
620
require 'resque/tasks'
721

@@ -13,17 +27,15 @@ end
1327
#
1428
# Tests
1529
#
16-
1730
require 'rake/testtask'
1831

19-
task :default => :test
20-
2132
Rake::TestTask.new do |test|
2233
test.verbose = true
2334
test.libs << "test"
2435
test.libs << "lib"
2536
test.test_files = FileList['test/**/*_test.rb']
2637
end
38+
task :default => :test
2739

2840
if command? :kicker
2941
desc "Launch Kicker (like autotest)"
@@ -37,32 +49,12 @@ end
3749
#
3850
# Install
3951
#
40-
4152
task :install => [ 'redis:install', 'dtach:install' ]
4253

4354

4455
#
4556
# Documentation
4657
#
47-
48-
begin
49-
require 'sdoc_helpers'
50-
rescue LoadError
51-
end
52-
53-
54-
#
55-
# Publishing
56-
#
57-
58-
desc "Push a new version to Gemcutter"
59-
task :publish do
60-
require 'resque/version'
61-
62-
sh "gem build resque.gemspec"
63-
sh "gem push resque-#{Resque::Version}.gem"
64-
sh "git tag v#{Resque::Version}"
65-
sh "git push origin v#{Resque::Version}"
66-
sh "git push origin master"
67-
sh "git clean -fd"
68-
end
58+
require 'yard'
59+
YARD::Rake::YardocTask.new
60+
task :docs => :yard

resque.gemspec

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,17 @@ require 'resque/version'
44
Gem::Specification.new do |s|
55
s.name = "resque"
66
s.version = Resque::Version
7-
s.date = Time.now.strftime('%Y-%m-%d')
87
s.summary = "Resque is a Redis-backed queueing system."
9-
s.homepage = "http://github.com/defunkt/resque"
8+
s.homepage = "https://github.com/defunkt/resque"
109
s.email = "[email protected]"
1110
s.authors = [ "Chris Wanstrath", "Terence Lee" ]
1211

13-
s.files = %w( README.markdown Rakefile LICENSE HISTORY.md )
14-
s.files += Dir.glob("lib/**/*")
15-
s.files += Dir.glob("bin/**/*")
16-
s.files += Dir.glob("man/**/*")
17-
s.files += Dir.glob("test/**/*")
18-
s.files += Dir.glob("tasks/**/*")
19-
s.executables = [ "resque", "resque-web" ]
12+
s.files = `git ls-files`.split($/)
13+
s.executables = s.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
14+
s.test_files = s.files.grep(%r{^(test|spec|features)/})
15+
s.require_paths = ["lib"]
2016

21-
s.extra_rdoc_files = [ "LICENSE", "README.markdown" ]
17+
s.extra_rdoc_files = [ "LICENSE.txt", "HISTORY.md", "README.md" ]
2218
s.rdoc_options = ["--charset=UTF-8"]
2319

2420
s.add_dependency "redis-namespace", "~> 1.0"

0 commit comments

Comments
 (0)