genki-dm-pagination 0.2.0.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +30 -3
- metadata +3 -3
data/Rakefile
CHANGED
@@ -5,14 +5,15 @@ require 'merb-core'
|
|
5
5
|
require 'merb-core/tasks/merb'
|
6
6
|
|
7
7
|
GEM_NAME = "dm-pagination"
|
8
|
-
GEM_VERSION = "0.2.
|
8
|
+
GEM_VERSION = "0.2.1"
|
9
9
|
AUTHOR = "Genki Takiuchi"
|
10
10
|
EMAIL = "genki@s21g.com"
|
11
11
|
HOMEPAGE = "http://blog.s21g.com/genki"
|
12
12
|
SUMMARY = "Merb plugin that provides pagination for DataMapper"
|
13
|
+
RUBYFORGE_PROJECT = "asakusarb"
|
13
14
|
|
14
15
|
spec = Gem::Specification.new do |s|
|
15
|
-
s.rubyforge_project =
|
16
|
+
s.rubyforge_project = RUBYFORGE_PROJECT
|
16
17
|
s.name = GEM_NAME
|
17
18
|
s.version = GEM_VERSION
|
18
19
|
s.platform = Gem::Platform::RUBY
|
@@ -26,10 +27,10 @@ spec = Gem::Specification.new do |s|
|
|
26
27
|
s.add_dependency('merb', '>= 1.0.7.1')
|
27
28
|
s.require_path = 'lib'
|
28
29
|
s.files = %w(LICENSE README Rakefile TODO) + Dir.glob("{lib,spec}/**/*")
|
29
|
-
|
30
30
|
end
|
31
31
|
|
32
32
|
Rake::GemPackageTask.new(spec) do |pkg|
|
33
|
+
pkg.need_tar = true
|
33
34
|
pkg.gem_spec = spec
|
34
35
|
end
|
35
36
|
|
@@ -55,4 +56,30 @@ task :spec do
|
|
55
56
|
sh "spec spec --color"
|
56
57
|
end
|
57
58
|
|
59
|
+
desc 'Package and upload the release to rubyforge.'
|
60
|
+
task :release => :package do |t|
|
61
|
+
require 'rubyforge'
|
62
|
+
v = ENV["VERSION"] or abort "Must supply VERSION=x.y.z"
|
63
|
+
abort "Versions don't match #{v} vs #{GEM_VERSION}" unless v == GEM_VERSION
|
64
|
+
pkg = "pkg/#{GEM_NAME}-#{GEM_VERSION}"
|
65
|
+
|
66
|
+
require 'rubyforge'
|
67
|
+
rf = RubyForge.new.configure
|
68
|
+
puts "Logging in"
|
69
|
+
rf.login
|
70
|
+
|
71
|
+
c = rf.userconfig
|
72
|
+
# c["release_notes"] = description if description
|
73
|
+
# c["release_changes"] = changes if changes
|
74
|
+
c["preformatted"] = true
|
75
|
+
|
76
|
+
files = [
|
77
|
+
"#{pkg}.tgz",
|
78
|
+
"#{pkg}.gem"
|
79
|
+
].compact
|
80
|
+
|
81
|
+
puts "Releasing #{GEM_NAME} v. #{GEM_VERSION}"
|
82
|
+
rf.add_release RUBYFORGE_PROJECT, GEM_NAME, GEM_VERSION, *files
|
83
|
+
end
|
84
|
+
|
58
85
|
task :default => :spec
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: genki-dm-pagination
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Genki Takiuchi
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-03-27 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -80,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
80
80
|
version:
|
81
81
|
requirements: []
|
82
82
|
|
83
|
-
rubyforge_project:
|
83
|
+
rubyforge_project: asakusarb
|
84
84
|
rubygems_version: 1.2.0
|
85
85
|
signing_key:
|
86
86
|
specification_version: 2
|