rails_appengine 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2009-2010 Takeru Sasaki, sasaki.takeru@gmail.com
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.rdoc ADDED
@@ -0,0 +1,4 @@
1
+ = Rails AppEngine
2
+
3
+ We intends to provide a common set of patches to enable
4
+ Rails 2.3.5 (and eventually 3.0) on Google App Engine.
data/Rakefile ADDED
@@ -0,0 +1,24 @@
1
+ require 'rubygems'
2
+ require 'rake/gempackagetask'
3
+
4
+ spec = Gem::Specification.new do |s|
5
+ s.name = "rails_appengine"
6
+ s.version = '0.0.1'
7
+ s.platform = Gem::Platform::RUBY
8
+ s.has_rdoc = false
9
+ s.extra_rdoc_files = ["README.rdoc", "LICENSE"]
10
+ s.description = "Config files for Rails on AppEngine"
11
+ s.summary = "We intends to provide a common set of config files " +
12
+ "to enable Rails 2.3.5 (and eventually 3.0) on Google App Engine."
13
+ s.authors = ["Takeru Sasaki", "John Woodell"]
14
+ s.email = ["sasaki.takeru@gmail.com", "woodie@netpress.com"]
15
+ s.homepage = "http://github.com/takeru/rails_appengine"
16
+ s.require_path = 'lib'
17
+ s.files = %w(LICENSE README.rdoc Rakefile) + Dir.glob("lib/**/*")
18
+ end
19
+
20
+ task :default => :gem
21
+
22
+ Rake::GemPackageTask.new(spec) do |pkg|
23
+ pkg.gem_spec = spec
24
+ end
@@ -0,0 +1,2 @@
1
+ am = "#{ENV['GEM_PATH']}/gems/actionmailer-2.3.5/lib/action_mailer/vendor"
2
+ $LOAD_PATH.unshift "#{am}/tmail-1.2.3"
@@ -0,0 +1,5 @@
1
+ as = "#{ENV['GEM_PATH']}/gems/activesupport-2.3.5/lib/active_support/vendor"
2
+ $LOAD_PATH.unshift "#{as}/builder-2.1.2"
3
+ $LOAD_PATH.unshift "#{as}/memcache-client-1.7.4"
4
+ $LOAD_PATH.unshift "#{as}/tzinfo-0.3.12"
5
+ $LOAD_PATH.unshift "#{as}/i18n-0.1.3/lib"
@@ -0,0 +1,76 @@
1
+ module Rails
2
+ class << self
3
+ def pick_boot
4
+ BundlerBoot.new
5
+ end
6
+ end
7
+ class BundlerBoot < Boot
8
+ def load_initializer
9
+ eval <<-END, TOPLEVEL_BINDING, __FILE__, __LINE__
10
+ require "thread"
11
+ class Gem::Dependency
12
+ end
13
+ require 'initializer'
14
+ # require "#{RAILS_ROOT}/.gems/bundler_gems/gems/rails-2.3.5/lib/initializer"
15
+ module Rails
16
+ class Initializer
17
+ def add_gem_load_paths
18
+ puts "SKIP: add_gem_load_paths" if ENV['VERBOSE']
19
+ end
20
+ end
21
+ end
22
+ #module Gem
23
+ # remove_const :Dependency
24
+ #end
25
+ module Rails
26
+ remove_const :GemDependency
27
+ class GemDependency
28
+ class << self
29
+ def method_missing(m, *args)
30
+ puts "Rails::GemDependency.\#{m}(\#{args.inspect}) is called." if ENV['VERBOSE']
31
+ end
32
+ end
33
+ end
34
+ end
35
+
36
+ # initializer.rb: Dir["\#{RAILTIES_PATH}/builtin/*/"] is not work in jruby 1.4.0. jruby bug???
37
+ class Rails::Configuration
38
+ def builtin_directories
39
+ return [] unless environment == 'development'
40
+ Dir["\#{File.expand_path(RAILTIES_PATH)}/builtin/*"].select{|d| File.directory?(d) }
41
+ end
42
+ end
43
+
44
+ # template.rb: `Dir.glob("#{@path}/**/*/**")` is not work in jruby 1.4.0. jruby bug???
45
+ require "action_view"
46
+ class ActionView::Template::EagerPath
47
+ def templates_in_path
48
+ Dir.glob("\#{@path}/**/*").each do |file|
49
+ yield create_template(file) unless File.directory?(file)
50
+ end
51
+ end
52
+ end
53
+ END
54
+ #Rails::GemDependency.hello(:world, 1234)
55
+ end
56
+ end
57
+ end
58
+
59
+ if ENV["RAILS_ENV"]=="development"
60
+ class Dir
61
+ class << self
62
+ alias_method :__glob_orig, :glob
63
+ def glob(*args, &block)
64
+ ret = __glob_orig(*args, &block)
65
+ p ["Dir.glob", args, ret] if ret.empty? and ENV['VERBOSE']
66
+ ret
67
+ end
68
+ alias_method :__glob2_orig, :"[]"
69
+ def [](*args, &block)
70
+ ret = __glob2_orig(*args, &block)
71
+ p ["Dir.glob2", args, ret] if ret.empty? and ENV['VERBOSE']
72
+ ret
73
+ end
74
+ end
75
+ end
76
+ end
metadata ADDED
@@ -0,0 +1,71 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rails_appengine
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 0
8
+ - 1
9
+ version: 0.0.1
10
+ platform: ruby
11
+ authors:
12
+ - Takeru Sasaki
13
+ - John Woodell
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2010-03-01 00:00:00 -08:00
19
+ default_executable:
20
+ dependencies: []
21
+
22
+ description: Config files for Rails on AppEngine
23
+ email:
24
+ - sasaki.takeru@gmail.com
25
+ - woodie@netpress.com
26
+ executables: []
27
+
28
+ extensions: []
29
+
30
+ extra_rdoc_files:
31
+ - README.rdoc
32
+ - LICENSE
33
+ files:
34
+ - LICENSE
35
+ - README.rdoc
36
+ - Rakefile
37
+ - lib/rails_appengine/action_mailer_vendored.rb
38
+ - lib/rails_appengine/active_support_vendored.rb
39
+ - lib/rails_appengine/bundler_boot.rb
40
+ has_rdoc: true
41
+ homepage: http://github.com/takeru/rails_appengine
42
+ licenses: []
43
+
44
+ post_install_message:
45
+ rdoc_options: []
46
+
47
+ require_paths:
48
+ - lib
49
+ required_ruby_version: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ segments:
54
+ - 0
55
+ version: "0"
56
+ required_rubygems_version: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ segments:
61
+ - 0
62
+ version: "0"
63
+ requirements: []
64
+
65
+ rubyforge_project:
66
+ rubygems_version: 1.3.6
67
+ signing_key:
68
+ specification_version: 3
69
+ summary: We intends to provide a common set of config files to enable Rails 2.3.5 (and eventually 3.0) on Google App Engine.
70
+ test_files: []
71
+