Permalink
Browse files

Rename to dm-is-page-by-page

Signed-off-by: Alex Coles <alex@alexcolesportfolio.com>
  • Loading branch information...
1 parent a012e6e commit 20a937c60e4b0784ac759adb502135ed2eab9600 @myabc committed Jan 23, 2010
View
@@ -1,11 +1,11 @@
-dm-is-paginated
+dm-is-page-by-page
---------------
-http://dm-is-paginated.rubyforge.org
+http://github.com/myabc/dm-is-page-by-page
## DESCRIPTION:
-dm-is-paginated is a simple pagination plugin for DataMapper.
+dm-is-page-by-page is a simple pagination plugin for DataMapper.
See the website for more details.
View
@@ -4,11 +4,11 @@ require 'rake'
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
- gem.name = 'dm-is-paginated'
+ gem.name = 'dm-is-page-by-page'
gem.summary = %Q{A simple pagination plugin for DataMapper}
gem.description = %Q{A simple pagination plugin for DataMapper}
gem.email = 'alex@alexbcoles.com'
- gem.homepage = 'http://github.com/myabc/dm-is-paginated'
+ gem.homepage = 'http://github.com/myabc/dm-is-page-by-page'
gem.authors = ['Lori Holden', 'Alex Coles']
gem.add_dependency 'dm-core', '>= 0.10.2'
gem.add_development_dependency 'rspec', '>= 1.2.9'
@@ -4,12 +4,12 @@
# -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
- s.name = %q{dm-is-paginated}
+ s.name = %q{dm-is-page-by-page}
s.version = "0.0.2"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Lori Holden", "Alex Coles"]
- s.date = %q{2009-12-14}
+ s.date = %q{2010-01-23}
s.description = %q{A simple pagination plugin for DataMapper}
s.email = %q{alex@alexbcoles.com}
s.extra_rdoc_files = [
@@ -23,12 +23,10 @@ Gem::Specification.new do |s|
"README.markdown",
"Rakefile",
"VERSION",
- "dm-is-paginated.gemspec",
- "lib/dm-is-paginated.rb",
- "lib/dm-is-paginated/hash.rb",
- "lib/dm-is-paginated/is/paginated.rb",
- "lib/dm-is-paginated/is/version.rb",
- "spec/dm-is-paginated_spec.rb",
+ "lib/dm-is-page-by-page.rb",
+ "lib/dm-is-page-by-page/hash.rb",
+ "lib/dm-is-page-by-page/is/paginated.rb",
+ "lib/dm-is-page-by-page/is/version.rb",
"spec/spec.opts",
"spec/spec_helper.rb",
"tasks/spec.rake",
@@ -38,14 +36,13 @@ Gem::Specification.new do |s|
"website/stylesheets/screen.css",
"website/template.html.erb"
]
- s.homepage = %q{http://github.com/myabc/dm-is-paginated}
+ s.homepage = %q{http://github.com/myabc/dm-is-page-by-page}
s.rdoc_options = ["--charset=UTF-8"]
s.require_paths = ["lib"]
s.rubygems_version = %q{1.3.5}
s.summary = %q{A simple pagination plugin for DataMapper}
s.test_files = [
- "spec/dm-is-paginated_spec.rb",
- "spec/spec_helper.rb"
+ "spec/spec_helper.rb"
]
if s.respond_to? :specification_version then
@@ -5,7 +5,7 @@
require 'dm-core'
# Require plugin-files
-dir = Pathname(__FILE__).dirname.expand_path / 'dm-is-paginated'
+dir = Pathname(__FILE__).dirname.expand_path / 'dm-is-page-by-page'
require dir / "hash"
require dir / 'is' / 'paginated'
File renamed without changes.
@@ -1,9 +1,11 @@
module DataMapper
module Is
module Paginated
+
def is_paginated(options = {})
extend DataMapper::Is::Paginated::ClassMethods
end
+ alias is_page_by_page is_paginated
module ClassMethods
def paginated(options = {})
@@ -1,7 +0,0 @@
-require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
-
-describe "DmIsPaginated" do
- it "fails" do
- fail "hey buddy, you should probably rename this file and start specing for real"
- end
-end
View
@@ -1,9 +1,9 @@
$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
-require 'dm-is-paginated'
+require 'dm-is-page-by-page'
require 'spec'
require 'spec/autorun'
Spec::Runner.configure do |config|
-
+
end
View
@@ -1,12 +1,12 @@
-h1. dm-is-paginated
+h1. dm-is-page-by-page
h2. What
-dm-is-paginated is a simple pagination plugin for DataMapper.
+dm-is-page-by-page is a simple pagination plugin for DataMapper.
h2. Installing
-<pre>sudo gem install dm-is-paginated</pre>
+<pre>sudo gem install dm-is-page-by-page</pre>
h2. Demonstration of usage
@@ -18,7 +18,7 @@ Example:
h2. Google Groups / Mailing List
-"http://groups.google.com/group/dm-is-paginated":http://groups.google.com/group/dm-is-paginated
+"http://groups.google.com/group/dm-is-page-by-page":http://groups.google.com/group/dm-is-page-by-page
h2. How to report a bug or make a feature request
@@ -30,19 +30,19 @@ Read the "8 steps for fixing other people's code":http://drnicwilliams.com/2007/
You can fetch the source from github:
-<pre>git clone git://github.com/lholden/dm-is-paginated.git</pre>
+<pre>git clone git://github.com/lholden/dm-is-page-by-page.git</pre>
h3. Build and test instructions
-<pre>cd dm-is-paginated
+<pre>cd dm-is-page-by-page
rake test
rake install_gem</pre>
h2. License
-This code is free to use under the terms of the "MIT license":http://dm-is-paginated.rubyforge.org/rdoc/files/License_txt.html.
+This code is free to use under the terms of the "MIT license":http://dm-is-page-by-page.rubyforge.org/rdoc/files/License_txt.html.
h2. Contact
-Comments are welcome, and can be sent via "Google Groups":http://groups.google.com/group/dm-is-paginated.
+Comments are welcome, and can be sent via "Google Groups":http://groups.google.com/group/dm-is-page-by-page.

0 comments on commit 20a937c

Please sign in to comment.