Skip to content

Commit

Permalink
added WillPaginate::VERSION
Browse files Browse the repository at this point in the history
  • Loading branch information
mislav committed Apr 7, 2008
1 parent 3bda0ba commit 9afc5e8
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .gitignore
@@ -1,3 +1,3 @@
/pkg/ /doc
/doc/
/rails /rails
*.gem
1 change: 1 addition & 0 deletions .manifest
Expand Up @@ -17,6 +17,7 @@ lib/will_paginate/core_ext.rb
lib/will_paginate/finder.rb lib/will_paginate/finder.rb
lib/will_paginate/named_scope.rb lib/will_paginate/named_scope.rb
lib/will_paginate/named_scope_patch.rb lib/will_paginate/named_scope_patch.rb
lib/will_paginate/version.rb
lib/will_paginate/view_helpers.rb lib/will_paginate/view_helpers.rb
test test
test/boot.rb test/boot.rb
Expand Down
6 changes: 5 additions & 1 deletion Rakefile
Expand Up @@ -54,7 +54,11 @@ end
desc 'Generate RDoc documentation for the will_paginate plugin.' desc 'Generate RDoc documentation for the will_paginate plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc| Rake::RDocTask.new(:rdoc) do |rdoc|
files = ['README.rdoc', 'LICENSE'] files = ['README.rdoc', 'LICENSE']
files << FileList.new('lib/**/*.rb').exclude('lib/will_paginate/named_scope*').exclude('lib/will_paginate/array.rb') files << FileList.new('lib/**/*.rb').
exclude('lib/will_paginate/named_scope*').
exclude('lib/will_paginate/array.rb').
exclude('lib/will_paginate/version.rb')

rdoc.rdoc_files.add(files) rdoc.rdoc_files.add(files)
rdoc.main = "README.rdoc" # page to start on rdoc.main = "README.rdoc" # page to start on
rdoc.title = "will_paginate documentation" rdoc.title = "will_paginate documentation"
Expand Down
9 changes: 9 additions & 0 deletions lib/will_paginate/version.rb
@@ -0,0 +1,9 @@
module WillPaginate #:nodoc:
module VERSION #:nodoc:
MAJOR = 2
MINOR = 2
TINY = 0

STRING = [MAJOR, MINOR, TINY].join('.')
end
end

0 comments on commit 9afc5e8

Please sign in to comment.