merb 0.9.3 → 0.9.4

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 +77 -18
  2. metadata +9 -6
data/Rakefile CHANGED
@@ -1,23 +1,27 @@
1
1
  ## THESE ARE CRUCIAL
2
2
  module Merb
3
3
  # Set this to the version of merb-core that you are building against/for
4
- VERSION = "0.9.3"
4
+ VERSION = "0.9.4"
5
5
 
6
6
  # Set this to the version of merb-more you plan to release
7
- MORE_VERSION = "0.9.3"
7
+ MORE_VERSION = "0.9.4"
8
8
  end
9
9
 
10
+ GEM_VERSION = Merb::VERSION
11
+
10
12
  require "rake/clean"
11
13
  require "rake/gempackagetask"
14
+ require 'merb-core/tasks/merb_rake_helper'
12
15
  require 'fileutils'
13
16
  include FileUtils
14
17
 
15
18
  gems = %w[
16
19
  merb-action-args merb-assets merb-gen merb-haml
17
- merb-builder merb-mailer merb-parts merb-cache merb-freezer
20
+ merb-builder merb-mailer merb-parts merb-cache merb-freezer merb-slices merb-jquery
18
21
  ]
19
22
 
20
23
  merb_more_spec = Gem::Specification.new do |s|
24
+ s.rubyforge_project = 'merb'
21
25
  s.name = "merb-more"
22
26
  s.version = Merb::MORE_VERSION
23
27
  s.platform = Gem::Platform::RUBY
@@ -34,6 +38,7 @@ merb_more_spec = Gem::Specification.new do |s|
34
38
  end
35
39
 
36
40
  merb_spec = Gem::Specification.new do |s|
41
+ s.rubyforge_project = 'merb'
37
42
  s.name = "merb"
38
43
  s.version = Merb::MORE_VERSION
39
44
  s.platform = Gem::Platform::RUBY
@@ -50,13 +55,6 @@ end
50
55
 
51
56
  CLEAN.include ["**/.*.sw?", "pkg", "lib/*.bundle", "*.gem", "doc/rdoc", ".config", "coverage", "cache", "lib/merb-more.rb"]
52
57
 
53
- windows = (PLATFORM =~ /win32|cygwin/) rescue nil
54
-
55
- SUDO = windows ? "" : "sudo"
56
-
57
- # desc "Installs Merb More."
58
- # task :default => :install
59
-
60
58
  Rake::GemPackageTask.new(merb_more_spec) do |package|
61
59
  package.gem_spec = merb_more_spec
62
60
  end
@@ -66,12 +64,10 @@ Rake::GemPackageTask.new(merb_spec) do |package|
66
64
  end
67
65
 
68
66
  gem_home = ENV['GEM_HOME'] ? "GEM_HOME=#{ENV['GEM_HOME']}" : ""
69
- install_home = ENV['GEM_HOME'] ? "-i #{ENV['GEM_HOME']}" : ""
70
-
71
67
  desc "Install it all"
72
68
  task :install => [:install_gems, :package] do
73
- sh %{#{SUDO} gem install #{install_home} --local pkg/merb-more-#{Merb::MORE_VERSION}.gem --no-update-sources}
74
- sh %{#{SUDO} gem install #{install_home} --local pkg/merb-#{Merb::MORE_VERSION}.gem --no-update-sources}
69
+ sh %{#{sudo} gem install #{install_home} --local pkg/merb-more-#{Merb::MORE_VERSION}.gem --no-update-sources}
70
+ sh %{#{sudo} gem install #{install_home} --local pkg/merb-#{Merb::MORE_VERSION}.gem --no-update-sources}
75
71
  end
76
72
 
77
73
  desc "Build the merb-more gems"
@@ -91,10 +87,18 @@ end
91
87
  desc "Uninstall the merb-more sub-gems"
92
88
  task :uninstall_gems do
93
89
  gems.each do |sub_gem|
94
- sh %{#{SUDO} gem uninstall #{sub_gem}}
90
+ sh %{#{sudo} gem uninstall #{sub_gem}}
95
91
  end
96
92
  end
97
93
 
94
+ desc "Clobber the merb-more sub-gems"
95
+ task :clobber_gems do
96
+ gems.each do |gem|
97
+ Dir.chdir(gem){ sh "rake clobber" }
98
+ end
99
+ end
100
+
101
+
98
102
  task :package => ["lib/merb-more.rb"]
99
103
  desc "Create merb-more.rb"
100
104
  task "lib/merb-more.rb" do
@@ -114,9 +118,64 @@ task :bundle => [:package, :build_gems] do
114
118
  cp "pkg/merb-#{Merb::MORE_VERSION}.gem", "bundle"
115
119
  cp "pkg/merb-more-#{Merb::MORE_VERSION}.gem", "bundle"
116
120
  gems.each do |gem|
117
- File.open("#{gem}/Rakefile") do |rakefile|
118
- rakefile.read.detect {|l| l =~ /^VERSION\s*=\s*"(.*)"$/ }
119
- sh %{cp #{gem}/pkg/#{gem}-#{$1}.gem bundle/}
121
+ sh %{cp #{gem}/pkg/#{gem}-#{Merb::MORE_VERSION}.gem bundle/}
122
+ end
123
+ end
124
+
125
+
126
+ RUBY_FORGE_PROJECT = "merb"
127
+
128
+ GROUP_NAME = "merb"
129
+ PKG_BUILD = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : ''
130
+ PKG_VERSION = GEM_VERSION + PKG_BUILD
131
+
132
+ RELEASE_NAME = "REL #{PKG_VERSION}"
133
+
134
+ namespace :release do
135
+ desc "Publish Merb More release files to RubyForge."
136
+ task :merb_more => [ :package ] do
137
+ require 'rubyforge'
138
+ require 'rake/contrib/rubyforgepublisher'
139
+
140
+ packages = %w( gem tgz zip ).collect{ |ext| "pkg/merb-more-#{PKG_VERSION}.#{ext}" }
141
+
142
+ begin
143
+ sh %{rubyforge login}
144
+ sh %{rubyforge add_release #{RUBY_FORGE_PROJECT} merb-more #{Merb::MORE_VERSION} #{packages.join(' ')}}
145
+ sh %{rubyforge add_file #{RUBY_FORGE_PROJECT} merb-more #{Merb::MORE_VERSION} #{packages.join(' ')}}
146
+ rescue Exception => e
147
+ puts
148
+ puts "Release failed: #{e.message}"
149
+ puts
150
+ puts "Set PKG_BUILD environment variable if you do a subrelease (0.9.4.2008_08_02 when version is 0.9.4)"
151
+ end
152
+ end
153
+
154
+ desc "Publish Merb More gem to RubyForge, one by one."
155
+ task :merb_more_gems => [ :build_gems ] do
156
+ gems.each do |gem|
157
+ Dir.chdir(gem){ sh "rake release" }
158
+ end
159
+ end
160
+
161
+
162
+ desc "Publish Merb release files to RubyForge."
163
+ task :merb => [ :package ] do
164
+ require 'rubyforge'
165
+ require 'rake/contrib/rubyforgepublisher'
166
+
167
+ packages = %w( gem tgz zip ).collect{ |ext| "pkg/merb-#{PKG_VERSION}.#{ext}" }
168
+
169
+ begin
170
+ sh %{rubyforge login}
171
+ sh %{rubyforge add_release #{RUBY_FORGE_PROJECT} merb #{Merb::VERSION} #{packages.join(' ')}}
172
+ sh %{rubyforge add_file #{RUBY_FORGE_PROJECT} merb #{Merb::VERSION} #{packages.join(' ')}}
173
+ rescue Exception => e
174
+ puts
175
+ puts "Release failed: #{e.message}"
176
+ puts
177
+ puts "Set PKG_BUILD environment variable if you do a subrelease (0.9.4.2008_08_02 when version is 0.9.4)"
120
178
  end
121
179
  end
122
180
  end
181
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: merb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.3
4
+ version: 0.9.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ezra Zygmuntowicz
@@ -9,29 +9,32 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-05-04 00:00:00 -05:00
12
+ date: 2008-08-13 00:00:00 +03:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: merb-core
17
+ type: :runtime
17
18
  version_requirement:
18
19
  version_requirements: !ruby/object:Gem::Requirement
19
20
  requirements:
20
21
  - - "="
21
22
  - !ruby/object:Gem::Version
22
- version: 0.9.3
23
+ version: 0.9.4
23
24
  version:
24
25
  - !ruby/object:Gem::Dependency
25
26
  name: merb-more
27
+ type: :runtime
26
28
  version_requirement:
27
29
  version_requirements: !ruby/object:Gem::Requirement
28
30
  requirements:
29
31
  - - "="
30
32
  - !ruby/object:Gem::Version
31
- version: 0.9.3
33
+ version: 0.9.4
32
34
  version:
33
35
  - !ruby/object:Gem::Dependency
34
36
  name: mongrel
37
+ type: :runtime
35
38
  version_requirement:
36
39
  version_requirements: !ruby/object:Gem::Requirement
37
40
  requirements:
@@ -73,8 +76,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
73
76
  version:
74
77
  requirements: []
75
78
 
76
- rubyforge_project:
77
- rubygems_version: 1.0.1
79
+ rubyforge_project: merb
80
+ rubygems_version: 1.2.0
78
81
  signing_key:
79
82
  specification_version: 2
80
83
  summary: (merb-core + merb-more) == all of Merb