merb-auth 0.9.12 → 0.9.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/Rakefile +29 -10
  2. metadata +7 -7
data/Rakefile CHANGED
@@ -1,14 +1,7 @@
1
- require File.join(File.dirname(__FILE__), "../merb-core/lib/merb-core/version.rb")
2
-
3
- require "rake/clean"
4
- require "rake/gempackagetask"
5
- require 'rubygems/specification'
6
- require "spec/rake/spectask"
7
- require 'merb-core/tasks/merb_rake_helper'
1
+ require File.expand_path(File.join(File.dirname(__FILE__), "..", "rake_helpers"))
8
2
  require 'fileutils'
9
3
  include FileUtils
10
-
11
- require "extlib/tasks/release"
4
+ require 'rake/clean'
12
5
 
13
6
  RUBY_FORGE_PROJECT = "merb-auth"
14
7
  PROJECT_URL = "http://merbivore.com"
@@ -28,6 +21,26 @@ gems = %w[
28
21
  merb-auth-core merb-auth-more merb-auth-slice-password
29
22
  ]
30
23
 
24
+ desc "Publish Merb More gem to RubyForge, one by one."
25
+ task :release do
26
+ packages = %w( gem tgz zip ).collect{ |ext| "pkg/#{GEM_NAME}-#{GEM_VERSION}.#{ext}" }
27
+
28
+ begin
29
+ sh %{rubyforge login}
30
+ sh %{rubyforge add_release #{RUBY_FORGE_PROJECT} #{GEM_NAME} #{GEM_VERSION} #{packages.join(' ')}}
31
+ sh %{rubyforge add_file #{RUBY_FORGE_PROJECT} #{GEM_NAME} #{GEM_VERSION} #{packages.join(' ')}}
32
+ rescue Exception => e
33
+ puts
34
+ puts "Release failed: #{e.message}"
35
+ puts
36
+ puts "Set PKG_BUILD environment variable if you do a subrelease (0.9.4.2008_08_02 when version is 0.9.4)"
37
+ end
38
+
39
+ %w(merb-auth-core merb-auth-more merb-auth-slice-password).each do |gem|
40
+ Dir.chdir(gem){ sh "#{Gem.ruby} -S rake release" }
41
+ end
42
+ end
43
+
31
44
  merb_auth_spec = Gem::Specification.new do |s|
32
45
  s.rubyforge_project = RUBY_FORGE_PROJECT
33
46
  s.name = GEM_NAME
@@ -51,7 +64,7 @@ Rake::GemPackageTask.new(merb_auth_spec) do |package|
51
64
  package.gem_spec = merb_auth_spec
52
65
  end
53
66
 
54
- task :package => ["lib/merb-auth.rb"]
67
+ task :package => ["lib/merb-auth.rb", :build_children]
55
68
  desc "Create merb-auth.rb"
56
69
  task "lib/merb-auth.rb" do
57
70
  mkdir_p "lib"
@@ -64,6 +77,12 @@ task "lib/merb-auth.rb" do
64
77
  end
65
78
  end
66
79
 
80
+ task :build_children do
81
+ %w(merb-auth-core merb-auth-more merb-auth-slice-password).each do |dir|
82
+ Dir.chdir(dir) { sh "#{Gem.ruby} -S rake package" }
83
+ end
84
+ end
85
+
67
86
  desc "install the plugin as a gem"
68
87
  task :install do
69
88
  Merb::RakeHelper.install(GEM_NAME, :version => GEM_VERSION)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: merb-auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.12
4
+ version: 0.9.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Neighman
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-10-30 00:00:00 -07:00
12
+ date: 2008-11-03 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -20,7 +20,7 @@ dependencies:
20
20
  requirements:
21
21
  - - ~>
22
22
  - !ruby/object:Gem::Version
23
- version: 0.9.12
23
+ version: 0.9.13
24
24
  version:
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: merb-auth-core
@@ -30,7 +30,7 @@ dependencies:
30
30
  requirements:
31
31
  - - ~>
32
32
  - !ruby/object:Gem::Version
33
- version: 0.9.12
33
+ version: 0.9.13
34
34
  version:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: merb-auth-more
@@ -40,7 +40,7 @@ dependencies:
40
40
  requirements:
41
41
  - - ~>
42
42
  - !ruby/object:Gem::Version
43
- version: 0.9.12
43
+ version: 0.9.13
44
44
  version:
45
45
  - !ruby/object:Gem::Dependency
46
46
  name: merb-auth-slice-password
@@ -50,7 +50,7 @@ dependencies:
50
50
  requirements:
51
51
  - - ~>
52
52
  - !ruby/object:Gem::Version
53
- version: 0.9.12
53
+ version: 0.9.13
54
54
  version:
55
55
  description: merb-auth. The official authentication plugin for merb. Setup for the default stack
56
56
  email: has.sox@gmail.com
@@ -88,7 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
88
88
  requirements: []
89
89
 
90
90
  rubyforge_project: merb-auth
91
- rubygems_version: 1.3.0
91
+ rubygems_version: 1.3.1
92
92
  signing_key:
93
93
  specification_version: 2
94
94
  summary: merb-auth. The official authentication plugin for merb. Setup for the default stack