gem-this 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +4 -3
- data/Rakefile.erb +15 -0
- metadata +1 -1
data/Rakefile
CHANGED
@@ -15,7 +15,7 @@ spec = Gem::Specification.new do |s|
|
|
15
15
|
|
16
16
|
# Change these as appropriate
|
17
17
|
s.name = "gem-this"
|
18
|
-
s.version = "0.1.
|
18
|
+
s.version = "0.1.4"
|
19
19
|
s.summary = "Make existing code into a gem, without any fuss."
|
20
20
|
s.author = "James Adam"
|
21
21
|
s.email = "james@lazyatom.com"
|
@@ -69,7 +69,8 @@ end
|
|
69
69
|
# If you want to publish to RubyForge automatically, here's a simple
|
70
70
|
# task to help do that. If you don't, just get rid of this.
|
71
71
|
# Be sure to set up your Rubyforge account details with the Rubyforge
|
72
|
-
# gem
|
72
|
+
# gem; you'll need to run `rubyforge setup` and `rubyforge config` at
|
73
|
+
# the very least.
|
73
74
|
begin
|
74
75
|
require "rake/contrib/sshpublisher"
|
75
76
|
namespace :rubyforge do
|
@@ -86,7 +87,7 @@ begin
|
|
86
87
|
rubyforge.login
|
87
88
|
rubyforge.userconfig['release_notes'] = spec.summary
|
88
89
|
path_to_gem = File.join(File.dirname(__FILE__), "pkg", "#{spec.name}-#{spec.version}.gem")
|
89
|
-
puts "
|
90
|
+
puts "Publishing #{spec.name}-#{spec.version.to_s} to Rubyforge..."
|
90
91
|
rubyforge.add_release(spec.rubyforge_project, spec.name, spec.version.to_s, path_to_gem)
|
91
92
|
end
|
92
93
|
|
data/Rakefile.erb
CHANGED
@@ -103,6 +103,9 @@ end
|
|
103
103
|
|
104
104
|
# If you want to publish to RubyForge automatically, here's a simple
|
105
105
|
# task to help do that. If you don't, just get rid of this.
|
106
|
+
# Be sure to set up your Rubyforge account details with the Rubyforge
|
107
|
+
# gem; you'll need to run `rubyforge setup` and `rubyforge config` at
|
108
|
+
# the very least.
|
106
109
|
begin
|
107
110
|
require "rake/contrib/sshpublisher"
|
108
111
|
namespace :rubyforge do
|
@@ -111,6 +114,18 @@ begin
|
|
111
114
|
task :release => ["rubyforge:release:gem", "rubyforge:release:docs"]
|
112
115
|
|
113
116
|
namespace :release do
|
117
|
+
desc "Release a new version of this gem"
|
118
|
+
task :gem => [:package] do
|
119
|
+
require 'rubyforge'
|
120
|
+
rubyforge = RubyForge.new
|
121
|
+
rubyforge.configure
|
122
|
+
rubyforge.login
|
123
|
+
rubyforge.userconfig['release_notes'] = spec.summary
|
124
|
+
path_to_gem = File.join(File.dirname(__FILE__), "pkg", "#{spec.name}-#{spec.version}.gem")
|
125
|
+
puts "Publishing #{spec.name}-#{spec.version.to_s} to Rubyforge..."
|
126
|
+
rubyforge.add_release(spec.rubyforge_project, spec.name, spec.version.to_s, path_to_gem)
|
127
|
+
end
|
128
|
+
|
114
129
|
desc "Publish RDoc to RubyForge."
|
115
130
|
task :docs => [:rdoc] do
|
116
131
|
config = YAML.load(
|