merb 0.9.8 → 0.9.9
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +20 -0
- data/README +3 -0
- data/Rakefile +71 -163
- data/lib/merb.rb +11 -0
- metadata +85 -15
- data/TODO +0 -0
data/LICENSE
CHANGED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2008 Engine Yard
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README
CHANGED
data/Rakefile
CHANGED
@@ -1,194 +1,102 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
# Set this to the version of merb-more you plan to release
|
7
|
-
MORE_VERSION = "0.9.8"
|
8
|
-
end
|
9
|
-
|
10
|
-
GEM_VERSION = Merb::VERSION
|
11
|
-
|
12
|
-
require "rake/clean"
|
13
|
-
require "rake/gempackagetask"
|
1
|
+
require 'rubygems'
|
2
|
+
require 'rake/gempackagetask'
|
3
|
+
require 'rubygems/specification'
|
4
|
+
require 'date'
|
5
|
+
require 'merb-core/version'
|
14
6
|
require 'merb-core/tasks/merb_rake_helper'
|
15
|
-
require 'fileutils'
|
16
|
-
include FileUtils
|
17
7
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
8
|
+
NAME = "merb"
|
9
|
+
AUTHOR = "Merb Team"
|
10
|
+
EMAIL = "team@merbivore.com"
|
11
|
+
HOMEPAGE = "http://merbivore.com/"
|
12
|
+
SUMMARY = "(merb-core + merb-more + DM) == Merb stack"
|
13
|
+
|
14
|
+
# For RubyForge release task
|
15
|
+
RUBY_FORGE_PROJECT = "merb"
|
16
|
+
PROJECT_URL = HOMEPAGE
|
17
|
+
PROJECT_SUMMARY = SUMMARY
|
18
|
+
PROJECT_DESCRIPTION = SUMMARY
|
19
|
+
|
20
|
+
GEM_AUTHOR = AUTHOR
|
21
|
+
GEM_EMAIL = EMAIL
|
22
|
+
|
23
|
+
GEM_NAME = NAME
|
24
|
+
PKG_BUILD = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : ''
|
25
|
+
GEM_VERSION = Merb::VERSION + PKG_BUILD
|
26
|
+
|
27
|
+
RELEASE_NAME = "REL #{GEM_VERSION}"
|
28
|
+
|
29
|
+
gems = [
|
30
|
+
["merb-core", "~> #{GEM_VERSION}"],
|
31
|
+
["merb-more", "~> #{GEM_VERSION}"],
|
32
|
+
["dm-core", "~> 0.9.6"],
|
33
|
+
["do_sqlite3", "~> 0.9.6"],
|
34
|
+
["dm-timestamps", "~> 0.9.6"],
|
35
|
+
["dm-types", "~> 0.9.6"],
|
36
|
+
["dm-aggregates", "~> 0.9.6"],
|
37
|
+
["dm-migrations", "~> 0.9.6"],
|
38
|
+
["dm-validations", "~> 0.9.6"],
|
39
|
+
["dm-sweatshop", "~> 0.9.6"]
|
22
40
|
]
|
23
41
|
|
24
|
-
merb_more_spec = Gem::Specification.new do |s|
|
25
|
-
s.rubyforge_project = 'merb'
|
26
|
-
s.name = "merb-more"
|
27
|
-
s.version = Merb::MORE_VERSION
|
28
|
-
s.platform = Gem::Platform::RUBY
|
29
|
-
s.author = "Ezra Zygmuntowicz"
|
30
|
-
s.email = "ez@engineyard.com"
|
31
|
-
s.homepage = "http://www.merbivore.com"
|
32
|
-
s.summary = "(merb - merb-core) == merb-more. The Full Stack. Take what you need; leave what you don't."
|
33
|
-
s.description = s.summary
|
34
|
-
s.files = %w( LICENSE README Rakefile TODO lib/merb-more.rb )
|
35
|
-
s.add_dependency "merb-core", ">= #{Merb::VERSION}"
|
36
|
-
gems.each do |gem|
|
37
|
-
s.add_dependency gem, [">= #{Merb::VERSION}", "<= 1.0"]
|
38
|
-
end
|
39
|
-
end
|
40
|
-
|
41
42
|
merb_spec = Gem::Specification.new do |s|
|
42
43
|
s.rubyforge_project = 'merb'
|
43
|
-
s.name =
|
44
|
-
s.version =
|
44
|
+
s.name = NAME
|
45
|
+
s.version = GEM_VERSION
|
45
46
|
s.platform = Gem::Platform::RUBY
|
46
|
-
s.author =
|
47
|
-
s.email =
|
48
|
-
s.homepage =
|
49
|
-
s.summary =
|
50
|
-
s.description =
|
51
|
-
s.files = %w(
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
end
|
56
|
-
|
57
|
-
CLEAN.include ["**/.*.sw?", "pkg", "lib/*.bundle", "*.gem", "doc/rdoc", ".config", "coverage", "cache", "lib/merb-more.rb"]
|
58
|
-
|
59
|
-
Rake::GemPackageTask.new(merb_more_spec) do |package|
|
60
|
-
package.gem_spec = merb_more_spec
|
47
|
+
s.author = AUTHOR
|
48
|
+
s.email = EMAIL
|
49
|
+
s.homepage = HOMEPAGE
|
50
|
+
s.summary = SUMMARY
|
51
|
+
s.description = SUMMARY
|
52
|
+
s.files = %w(LICENSE README Rakefile) + Dir.glob("{lib}/**/*")
|
53
|
+
gems.each do |gem, version|
|
54
|
+
s.add_dependency gem, version
|
55
|
+
end
|
61
56
|
end
|
62
57
|
|
63
58
|
Rake::GemPackageTask.new(merb_spec) do |package|
|
64
59
|
package.gem_spec = merb_spec
|
65
60
|
end
|
66
61
|
|
67
|
-
|
68
|
-
task :install do
|
69
|
-
Merb::RakeHelper.install('merb-more', :version => Merb::MORE_VERSION)
|
70
|
-
Merb::RakeHelper.install_package("pkg/merb-#{Merb::MORE_VERSION}.gem")
|
71
|
-
end
|
72
|
-
|
73
|
-
desc "Uninstall all gems"
|
74
|
-
task :uninstall => :uninstall_gems do
|
75
|
-
Merb::RakeHelper.uninstall('merb-more', :version => Merb::MORE_VERSION)
|
76
|
-
Merb::RakeHelper.uninstall('merb', :version => Merb::MORE_VERSION)
|
77
|
-
end
|
78
|
-
|
79
|
-
desc "Build the merb-more gems"
|
80
|
-
task :build_gems do
|
81
|
-
gems.each do |dir|
|
82
|
-
Dir.chdir(dir) { sh "#{Gem.ruby} -S rake package" }
|
83
|
-
end
|
84
|
-
end
|
85
|
-
|
86
|
-
desc "Install the merb-more sub-gems"
|
87
|
-
task :install_gems do
|
88
|
-
gems.each do |dir|
|
89
|
-
Dir.chdir(dir) { sh "#{Gem.ruby} -S rake install" }
|
90
|
-
end
|
91
|
-
end
|
62
|
+
require "extlib/tasks/release"
|
92
63
|
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
Dir.chdir(dir) { sh "#{Gem.ruby} -S rake uninstall" }
|
97
|
-
end
|
98
|
-
end
|
99
|
-
|
100
|
-
desc "Clobber the merb-more sub-gems"
|
101
|
-
task :clobber_gems do
|
102
|
-
gems.each do |dir|
|
103
|
-
Dir.chdir(dir) { sh "#{Gem.ruby} -S rake clobber" }
|
104
|
-
end
|
105
|
-
end
|
106
|
-
|
107
|
-
task :package => ["lib/merb-more.rb"]
|
108
|
-
desc "Create merb-more.rb"
|
109
|
-
task "lib/merb-more.rb" do
|
64
|
+
task :package => ["lib/merb.rb"]
|
65
|
+
desc "Create merb.rb"
|
66
|
+
task "lib/merb.rb" do
|
110
67
|
mkdir_p "lib"
|
111
|
-
File.open("lib/merb
|
112
|
-
file.puts "### AUTOMATICALLY GENERATED.
|
113
|
-
gems.each do |
|
114
|
-
|
115
|
-
file.puts "require '#{
|
68
|
+
File.open("lib/merb.rb","w+") do |file|
|
69
|
+
file.puts "### AUTOMATICALLY GENERATED. DO NOT EDIT!"
|
70
|
+
gems.each do |pair|
|
71
|
+
g, _ = pair
|
72
|
+
file.puts "require '#{g}'"
|
116
73
|
end
|
117
74
|
end
|
118
75
|
end
|
119
76
|
|
120
77
|
desc "Bundle up all the merb-more gems"
|
121
|
-
task :bundle => [:package
|
78
|
+
task :bundle => [:package] do
|
122
79
|
mkdir_p "bundle"
|
123
|
-
cp "pkg/merb-#{
|
124
|
-
cp "pkg/merb-more-#{
|
80
|
+
cp "pkg/merb-#{GEM_VERSION}.gem", "bundle"
|
81
|
+
cp "pkg/merb-more-#{GEM_VERSION}.gem", "bundle"
|
125
82
|
gems.each do |gem|
|
126
83
|
sh %{cp #{gem}/pkg/#{gem}-#{Merb::MORE_VERSION}.gem bundle/}
|
127
84
|
end
|
128
85
|
end
|
129
86
|
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
PKG_VERSION = GEM_VERSION + PKG_BUILD
|
135
|
-
|
136
|
-
RELEASE_NAME = "REL #{PKG_VERSION}"
|
137
|
-
|
138
|
-
namespace :release do
|
139
|
-
desc "Publish Merb More release files to RubyForge."
|
140
|
-
task :merb_more => [ :package ] do
|
141
|
-
require 'rubyforge'
|
142
|
-
require 'rake/contrib/rubyforgepublisher'
|
143
|
-
|
144
|
-
packages = %w( gem tgz zip ).collect{ |ext| "pkg/merb-more-#{PKG_VERSION}.#{ext}" }
|
145
|
-
|
146
|
-
begin
|
147
|
-
sh %{rubyforge login}
|
148
|
-
sh %{rubyforge add_release #{RUBY_FORGE_PROJECT} merb-more #{Merb::MORE_VERSION} #{packages.join(' ')}}
|
149
|
-
sh %{rubyforge add_file #{RUBY_FORGE_PROJECT} merb-more #{Merb::MORE_VERSION} #{packages.join(' ')}}
|
150
|
-
rescue Exception => e
|
151
|
-
puts
|
152
|
-
puts "Release failed: #{e.message}"
|
153
|
-
puts
|
154
|
-
puts "Set PKG_BUILD environment variable if you do a subrelease (0.9.4.2008_08_02 when version is 0.9.4)"
|
155
|
-
end
|
156
|
-
end
|
157
|
-
|
158
|
-
desc "Publish Merb More gem to RubyForge, one by one."
|
159
|
-
task :merb_more_gems => [ :build_gems ] do
|
160
|
-
gems.each do |gem|
|
161
|
-
Dir.chdir(gem){ sh "#{Gem.ruby} -S rake release" }
|
162
|
-
end
|
163
|
-
end
|
164
|
-
|
165
|
-
desc "Publish Merb release files to RubyForge."
|
166
|
-
task :merb => [ :package ] do
|
167
|
-
require 'rubyforge'
|
168
|
-
require 'rake/contrib/rubyforgepublisher'
|
169
|
-
|
170
|
-
packages = %w( gem tgz zip ).collect{ |ext| "pkg/merb-#{PKG_VERSION}.#{ext}" }
|
87
|
+
desc "Install the gem"
|
88
|
+
task :install do
|
89
|
+
Merb::RakeHelper.install(GEM_NAME, :version => GEM_VERSION)
|
90
|
+
end
|
171
91
|
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
sh %{rubyforge add_file #{RUBY_FORGE_PROJECT} merb #{Merb::VERSION} #{packages.join(' ')}}
|
176
|
-
rescue Exception => e
|
177
|
-
puts
|
178
|
-
puts "Release failed: #{e.message}"
|
179
|
-
puts
|
180
|
-
puts "Set PKG_BUILD environment variable if you do a subrelease (0.9.4.2008_08_02 when version is 0.9.4)"
|
181
|
-
end
|
182
|
-
end
|
92
|
+
desc "Uninstall the gem"
|
93
|
+
task :uninstall do
|
94
|
+
Merb::RakeHelper.uninstall(GEM_NAME, :version => GEM_VERSION)
|
183
95
|
end
|
184
96
|
|
185
|
-
desc "
|
186
|
-
task :
|
187
|
-
|
188
|
-
|
97
|
+
desc "create a gemspec file"
|
98
|
+
task :make_spec do
|
99
|
+
File.open("#{NAME}.gemspec", "w") do |file|
|
100
|
+
file.puts spec.to_ruby
|
189
101
|
end
|
190
102
|
end
|
191
|
-
|
192
|
-
desc 'Default: run spec examples for all the gems.'
|
193
|
-
task :default => 'spec'
|
194
|
-
|
data/lib/merb.rb
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
### AUTOMATICALLY GENERATED. DO NOT EDIT!
|
2
|
+
require 'merb-core'
|
3
|
+
require 'merb-more'
|
4
|
+
require 'dm-core'
|
5
|
+
require 'do_sqlite3'
|
6
|
+
require 'dm-timestamps'
|
7
|
+
require 'dm-types'
|
8
|
+
require 'dm-aggregates'
|
9
|
+
require 'dm-migrations'
|
10
|
+
require 'dm-validations'
|
11
|
+
require 'dm-sweatshop'
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: merb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Merb Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-10-
|
12
|
+
date: 2008-10-14 00:00:00 +03:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -18,9 +18,9 @@ dependencies:
|
|
18
18
|
version_requirement:
|
19
19
|
version_requirements: !ruby/object:Gem::Requirement
|
20
20
|
requirements:
|
21
|
-
- -
|
21
|
+
- - ~>
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: 0.9.
|
23
|
+
version: 0.9.9
|
24
24
|
version:
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: merb-more
|
@@ -28,22 +28,92 @@ dependencies:
|
|
28
28
|
version_requirement:
|
29
29
|
version_requirements: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.9.
|
33
|
+
version: 0.9.9
|
34
34
|
version:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
|
-
name:
|
36
|
+
name: dm-core
|
37
37
|
type: :runtime
|
38
38
|
version_requirement:
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
40
40
|
requirements:
|
41
|
-
- -
|
41
|
+
- - ~>
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
version:
|
43
|
+
version: 0.9.6
|
44
44
|
version:
|
45
|
-
|
46
|
-
|
45
|
+
- !ruby/object:Gem::Dependency
|
46
|
+
name: do_sqlite3
|
47
|
+
type: :runtime
|
48
|
+
version_requirement:
|
49
|
+
version_requirements: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - ~>
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: 0.9.6
|
54
|
+
version:
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: dm-timestamps
|
57
|
+
type: :runtime
|
58
|
+
version_requirement:
|
59
|
+
version_requirements: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - ~>
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: 0.9.6
|
64
|
+
version:
|
65
|
+
- !ruby/object:Gem::Dependency
|
66
|
+
name: dm-types
|
67
|
+
type: :runtime
|
68
|
+
version_requirement:
|
69
|
+
version_requirements: !ruby/object:Gem::Requirement
|
70
|
+
requirements:
|
71
|
+
- - ~>
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: 0.9.6
|
74
|
+
version:
|
75
|
+
- !ruby/object:Gem::Dependency
|
76
|
+
name: dm-aggregates
|
77
|
+
type: :runtime
|
78
|
+
version_requirement:
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - ~>
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: 0.9.6
|
84
|
+
version:
|
85
|
+
- !ruby/object:Gem::Dependency
|
86
|
+
name: dm-migrations
|
87
|
+
type: :runtime
|
88
|
+
version_requirement:
|
89
|
+
version_requirements: !ruby/object:Gem::Requirement
|
90
|
+
requirements:
|
91
|
+
- - ~>
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: 0.9.6
|
94
|
+
version:
|
95
|
+
- !ruby/object:Gem::Dependency
|
96
|
+
name: dm-validations
|
97
|
+
type: :runtime
|
98
|
+
version_requirement:
|
99
|
+
version_requirements: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ~>
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 0.9.6
|
104
|
+
version:
|
105
|
+
- !ruby/object:Gem::Dependency
|
106
|
+
name: dm-sweatshop
|
107
|
+
type: :runtime
|
108
|
+
version_requirement:
|
109
|
+
version_requirements: !ruby/object:Gem::Requirement
|
110
|
+
requirements:
|
111
|
+
- - ~>
|
112
|
+
- !ruby/object:Gem::Version
|
113
|
+
version: 0.9.6
|
114
|
+
version:
|
115
|
+
description: (merb-core + merb-more + DM) == Merb stack
|
116
|
+
email: team@merbivore.com
|
47
117
|
executables: []
|
48
118
|
|
49
119
|
extensions: []
|
@@ -54,9 +124,9 @@ files:
|
|
54
124
|
- LICENSE
|
55
125
|
- README
|
56
126
|
- Rakefile
|
57
|
-
-
|
127
|
+
- lib/merb.rb
|
58
128
|
has_rdoc: false
|
59
|
-
homepage: http://
|
129
|
+
homepage: http://merbivore.com/
|
60
130
|
post_install_message:
|
61
131
|
rdoc_options: []
|
62
132
|
|
@@ -80,6 +150,6 @@ rubyforge_project: merb
|
|
80
150
|
rubygems_version: 1.2.0
|
81
151
|
signing_key:
|
82
152
|
specification_version: 2
|
83
|
-
summary: (merb-core + merb-more) ==
|
153
|
+
summary: (merb-core + merb-more + DM) == Merb stack
|
84
154
|
test_files: []
|
85
155
|
|
data/TODO
DELETED
File without changes
|