jm81-paginate 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. data/.gitignore +2 -0
  2. data/Rakefile +36 -51
  3. data/VERSION +1 -0
  4. data/lib/paginate.rb +1 -1
  5. data/paginate.gemspec +74 -0
  6. metadata +27 -21
data/.gitignore ADDED
@@ -0,0 +1,2 @@
1
+ .project
2
+ .loadpath
data/Rakefile CHANGED
@@ -1,62 +1,47 @@
1
1
  require 'rubygems'
2
- gem 'rspec'
3
- require 'spec/rake/spectask'
4
-
5
- QBFC_ROOT = File.dirname(__FILE__)
6
-
7
- task :default => :spec
2
+ require 'rake'
3
+
4
+ begin
5
+ require 'jeweler'
6
+ Jeweler::Tasks.new do |gem|
7
+ gem.name = "paginate"
8
+ gem.summary = "Pagination for DataMapper, ActiveRecord, and Array"
9
+ gem.email = "jmorgan@morgancreative.net"
10
+ gem.homepage = "http://github.com/jm81/paginate"
11
+ gem.authors = ["Jared Morgan"]
12
+ # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
13
+ end
8
14
 
9
- desc "Run all specs in spec/unit directory"
10
- Spec::Rake::SpecTask.new(:spec) do |t|
11
- t.spec_opts = ['--options', '"spec/spec.opts"']
12
- t.spec_files = FileList['spec/**/*_spec.rb']
15
+ rescue LoadError
16
+ puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
13
17
  end
14
18
 
15
- require 'rake/gempackagetask'
16
-
17
- require 'merb-core'
18
- require 'merb-core/tasks/merb'
19
-
20
- GEM_NAME = "paginate"
21
- GEM_VERSION = "0.1.4"
22
- AUTHOR = "Jared Morgan"
23
- EMAIL = "jmorgan@morgancreative.net"
24
- HOMEPAGE = "http://github.com/jm81/paginate/"
25
- SUMMARY = "(Yet another) Pagination for DataMapper, ActiveRecord, and Array"
26
-
27
- spec = Gem::Specification.new do |s|
28
- s.name = GEM_NAME
29
- s.version = GEM_VERSION
30
- s.platform = Gem::Platform::RUBY
31
- s.has_rdoc = true
32
- s.extra_rdoc_files = ["README.md", "LICENSE", 'TODO']
33
- s.summary = SUMMARY
34
- s.description = s.summary
35
- s.author = AUTHOR
36
- s.email = EMAIL
37
- s.homepage = HOMEPAGE
38
- s.require_path = 'lib'
39
- s.files = %w(LICENSE README.md Rakefile TODO) + Dir.glob("{lib,spec}/**/*")
40
-
19
+ require 'spec/rake/spectask'
20
+ Spec::Rake::SpecTask.new(:spec) do |spec|
21
+ spec.libs << 'lib' << 'spec'
22
+ spec.spec_files = FileList['spec/**/*_spec.rb']
41
23
  end
42
24
 
43
- Rake::GemPackageTask.new(spec) do |pkg|
44
- pkg.gem_spec = spec
25
+ Spec::Rake::SpecTask.new(:rcov) do |spec|
26
+ spec.libs << 'lib' << 'spec'
27
+ spec.pattern = 'spec/**/*_spec.rb'
28
+ spec.rcov = true
45
29
  end
46
30
 
47
- desc "install the plugin as a gem"
48
- task :install do
49
- Merb::RakeHelper.install(GEM_NAME, :version => GEM_VERSION)
50
- end
51
31
 
52
- desc "Uninstall the gem"
53
- task :uninstall do
54
- Merb::RakeHelper.uninstall(GEM_NAME, :version => GEM_VERSION)
55
- end
32
+ task :default => :spec
56
33
 
57
- desc "Create a gemspec file"
58
- task :gemspec do
59
- File.open("#{GEM_NAME}.gemspec", "w") do |file|
60
- file.puts spec.to_ruby
34
+ require 'rake/rdoctask'
35
+ Rake::RDocTask.new do |rdoc|
36
+ if File.exist?('VERSION.yml')
37
+ config = YAML.load(File.read('VERSION.yml'))
38
+ version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}"
39
+ else
40
+ version = ""
61
41
  end
62
- end
42
+
43
+ rdoc.rdoc_dir = 'rdoc'
44
+ rdoc.title = "svn-fixture #{version}"
45
+ rdoc.rdoc_files.include('README*')
46
+ rdoc.rdoc_files.include('lib/**/*.rb')
47
+ end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.1.5
data/lib/paginate.rb CHANGED
@@ -6,7 +6,7 @@ module Paginate
6
6
  class << self
7
7
  # Paginate::config method returns Hash that can be edited.
8
8
  def config
9
- @config ||= DEFAULTS
9
+ @config ||= DEFAULTS.dup
10
10
  end
11
11
  end
12
12
  end
data/paginate.gemspec ADDED
@@ -0,0 +1,74 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = %q{paginate}
5
+ s.version = "0.1.5"
6
+
7
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
+ s.authors = ["Jared Morgan"]
9
+ s.date = %q{2009-07-05}
10
+ s.email = %q{jmorgan@morgancreative.net}
11
+ s.extra_rdoc_files = [
12
+ "LICENSE",
13
+ "README.md"
14
+ ]
15
+ s.files = [
16
+ ".gitignore",
17
+ "LICENSE",
18
+ "README.md",
19
+ "Rakefile",
20
+ "TODO",
21
+ "VERSION",
22
+ "lib/helpers/merb.rb",
23
+ "lib/helpers/shared.rb",
24
+ "lib/paginate.rb",
25
+ "lib/paginate/ar.rb",
26
+ "lib/paginate/dm.rb",
27
+ "lib/paginate/simple.rb",
28
+ "lib/paginators/orm.rb",
29
+ "lib/paginators/simple.rb",
30
+ "paginate.gemspec",
31
+ "spec/fixtures/ar.rb",
32
+ "spec/fixtures/dm.rb",
33
+ "spec/helpers/merb_spec.rb",
34
+ "spec/helpers/shared_spec.rb",
35
+ "spec/paginate/ar_spec.rb",
36
+ "spec/paginate/config_spec.rb",
37
+ "spec/paginate/dm_spec.rb",
38
+ "spec/paginate/simple_spec.rb",
39
+ "spec/paginators/orm_spec.rb",
40
+ "spec/paginators/simple_spec.rb",
41
+ "spec/shared.rb",
42
+ "spec/spec.opts",
43
+ "spec/spec_helper.rb"
44
+ ]
45
+ s.homepage = %q{http://github.com/jm81/paginate}
46
+ s.rdoc_options = ["--charset=UTF-8"]
47
+ s.require_paths = ["lib"]
48
+ s.rubygems_version = %q{1.3.4}
49
+ s.summary = %q{Pagination for DataMapper, ActiveRecord, and Array}
50
+ s.test_files = [
51
+ "spec/fixtures/ar.rb",
52
+ "spec/fixtures/dm.rb",
53
+ "spec/helpers/merb_spec.rb",
54
+ "spec/helpers/shared_spec.rb",
55
+ "spec/paginate/ar_spec.rb",
56
+ "spec/paginate/config_spec.rb",
57
+ "spec/paginate/dm_spec.rb",
58
+ "spec/paginate/simple_spec.rb",
59
+ "spec/paginators/orm_spec.rb",
60
+ "spec/paginators/simple_spec.rb",
61
+ "spec/shared.rb",
62
+ "spec/spec_helper.rb"
63
+ ]
64
+
65
+ if s.respond_to? :specification_version then
66
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
67
+ s.specification_version = 3
68
+
69
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
70
+ else
71
+ end
72
+ else
73
+ end
74
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jm81-paginate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jared Morgan
@@ -9,58 +9,53 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-06-23 00:00:00 -07:00
12
+ date: 2009-07-05 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
16
- description: (Yet another) Pagination for DataMapper, ActiveRecord, and Array
16
+ description:
17
17
  email: jmorgan@morgancreative.net
18
18
  executables: []
19
19
 
20
20
  extensions: []
21
21
 
22
22
  extra_rdoc_files:
23
- - README.md
24
23
  - LICENSE
25
- - TODO
24
+ - README.md
26
25
  files:
26
+ - .gitignore
27
27
  - LICENSE
28
28
  - README.md
29
29
  - Rakefile
30
30
  - TODO
31
- - lib/helpers
31
+ - VERSION
32
32
  - lib/helpers/merb.rb
33
33
  - lib/helpers/shared.rb
34
- - lib/paginate
34
+ - lib/paginate.rb
35
35
  - lib/paginate/ar.rb
36
36
  - lib/paginate/dm.rb
37
37
  - lib/paginate/simple.rb
38
- - lib/paginate.rb
39
- - lib/paginators
40
38
  - lib/paginators/orm.rb
41
39
  - lib/paginators/simple.rb
42
- - spec/fixtures
40
+ - paginate.gemspec
43
41
  - spec/fixtures/ar.rb
44
42
  - spec/fixtures/dm.rb
45
- - spec/helpers
46
43
  - spec/helpers/merb_spec.rb
47
44
  - spec/helpers/shared_spec.rb
48
- - spec/paginate
49
45
  - spec/paginate/ar_spec.rb
50
46
  - spec/paginate/config_spec.rb
51
47
  - spec/paginate/dm_spec.rb
52
48
  - spec/paginate/simple_spec.rb
53
- - spec/paginators
54
49
  - spec/paginators/orm_spec.rb
55
50
  - spec/paginators/simple_spec.rb
56
51
  - spec/shared.rb
57
52
  - spec/spec.opts
58
53
  - spec/spec_helper.rb
59
- has_rdoc: true
60
- homepage: http://github.com/jm81/paginate/
54
+ has_rdoc: false
55
+ homepage: http://github.com/jm81/paginate
61
56
  post_install_message:
62
- rdoc_options: []
63
-
57
+ rdoc_options:
58
+ - --charset=UTF-8
64
59
  require_paths:
65
60
  - lib
66
61
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -80,7 +75,18 @@ requirements: []
80
75
  rubyforge_project:
81
76
  rubygems_version: 1.2.0
82
77
  signing_key:
83
- specification_version: 2
84
- summary: (Yet another) Pagination for DataMapper, ActiveRecord, and Array
85
- test_files: []
86
-
78
+ specification_version: 3
79
+ summary: Pagination for DataMapper, ActiveRecord, and Array
80
+ test_files:
81
+ - spec/fixtures/ar.rb
82
+ - spec/fixtures/dm.rb
83
+ - spec/helpers/merb_spec.rb
84
+ - spec/helpers/shared_spec.rb
85
+ - spec/paginate/ar_spec.rb
86
+ - spec/paginate/config_spec.rb
87
+ - spec/paginate/dm_spec.rb
88
+ - spec/paginate/simple_spec.rb
89
+ - spec/paginators/orm_spec.rb
90
+ - spec/paginators/simple_spec.rb
91
+ - spec/shared.rb
92
+ - spec/spec_helper.rb