rails_gae 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/Gemfile +12 -0
- data/Gemfile.lock +17 -0
- data/LICENSE.txt +20 -0
- data/README.rdoc +19 -0
- data/Rakefile +52 -0
- data/VERSION +1 -0
- data/bin/rails_gae +6 -0
- data/lib/generator/files/app/controllers/rails/info_controller.rb +53 -0
- data/lib/generator/files/config/boot.rb +119 -0
- data/lib/generator/files/config/database.yml +4 -0
- data/lib/generator/files/config/environment.rb +56 -0
- data/lib/generator/files/config/initializers/gae_init_patch.rb +8 -0
- data/lib/generator/files/config.ru +14 -0
- data/lib/generator/files/script/console +2 -0
- data/lib/generator/files/script/generate +8 -0
- data/lib/generator/files/script/publish +2 -0
- data/lib/generator/files/script/server +2 -0
- data/lib/generator/templates/Gemfile +10 -0
- data/lib/generator/templates/WEB-INF/app.yaml +38 -0
- data/lib/rails_gae.rb +52 -0
- data/rails_gae.gemspec +70 -0
- metadata +134 -0
data/.document
ADDED
data/Gemfile
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
source "http://rubygems.org"
|
2
|
+
# Add dependencies required to use your gem here.
|
3
|
+
# Example:
|
4
|
+
# gem "activesupport", ">= 2.3.5"
|
5
|
+
|
6
|
+
# Add dependencies to develop your gem here.
|
7
|
+
# Include everything needed to run rake, tests, features, etc.
|
8
|
+
group :development do
|
9
|
+
gem "jeweler", "~> 1.5.2"
|
10
|
+
gem "rcov", ">= 0"
|
11
|
+
end
|
12
|
+
|
data/Gemfile.lock
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2011 jordinl
|
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,19 @@
|
|
1
|
+
= rails_gae
|
2
|
+
|
3
|
+
Description goes here.
|
4
|
+
|
5
|
+
== Contributing to rails_gae
|
6
|
+
|
7
|
+
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
|
8
|
+
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
|
9
|
+
* Fork the project
|
10
|
+
* Start a feature/bugfix branch
|
11
|
+
* Commit and push until you are happy with your contribution
|
12
|
+
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
|
13
|
+
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
|
14
|
+
|
15
|
+
== Copyright
|
16
|
+
|
17
|
+
Copyright (c) 2011 jordinl. See LICENSE.txt for
|
18
|
+
further details.
|
19
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1,52 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'bundler'
|
3
|
+
begin
|
4
|
+
Bundler.setup(:default, :development)
|
5
|
+
rescue Bundler::BundlerError => e
|
6
|
+
$stderr.puts e.message
|
7
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
8
|
+
exit e.status_code
|
9
|
+
end
|
10
|
+
require 'rake'
|
11
|
+
|
12
|
+
require 'jeweler'
|
13
|
+
Jeweler::Tasks.new do |gem|
|
14
|
+
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
15
|
+
gem.name = "rails_gae"
|
16
|
+
gem.homepage = "http://github.com/hackdd/rails_gae"
|
17
|
+
gem.license = "MIT"
|
18
|
+
gem.summary = %Q{Utility functions to make life easier}
|
19
|
+
gem.description = %Q{Utility functions to make life easier}
|
20
|
+
gem.email = "jordi@hackdd.com"
|
21
|
+
gem.authors = ["jordinl"]
|
22
|
+
|
23
|
+
gem.add_dependency 'google-appengine', '=0.0.19'
|
24
|
+
#gem.add_dependency 'rails_dm_datastore'
|
25
|
+
end
|
26
|
+
Jeweler::RubygemsDotOrgTasks.new
|
27
|
+
|
28
|
+
require 'rake/testtask'
|
29
|
+
Rake::TestTask.new(:test) do |test|
|
30
|
+
test.libs << 'lib' << 'test'
|
31
|
+
test.pattern = 'test/**/test_*.rb'
|
32
|
+
test.verbose = true
|
33
|
+
end
|
34
|
+
|
35
|
+
require 'rcov/rcovtask'
|
36
|
+
Rcov::RcovTask.new do |test|
|
37
|
+
test.libs << 'test'
|
38
|
+
test.pattern = 'test/**/test_*.rb'
|
39
|
+
test.verbose = true
|
40
|
+
end
|
41
|
+
|
42
|
+
task :default => :test
|
43
|
+
|
44
|
+
require 'rake/rdoctask'
|
45
|
+
Rake::RDocTask.new do |rdoc|
|
46
|
+
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
47
|
+
|
48
|
+
rdoc.rdoc_dir = 'rdoc'
|
49
|
+
rdoc.title = "rails_gae #{version}"
|
50
|
+
rdoc.rdoc_files.include('README*')
|
51
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
52
|
+
end
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.0.1
|
data/bin/rails_gae
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
class Rails::InfoController < ActionController::Base
|
2
|
+
def properties
|
3
|
+
info = [['Ruby version', "#{RUBY_VERSION} (#{RUBY_PLATFORM})"]]
|
4
|
+
if defined? Gem::RubyGemsVersion
|
5
|
+
info << ['RubyGems version', Gem::RubyGemsVersion]
|
6
|
+
else
|
7
|
+
info << ['RubyGems','disabled']
|
8
|
+
end
|
9
|
+
info << ['Rack version', Rack.release]
|
10
|
+
# get versions from rails frameworks
|
11
|
+
info << ['Rails version', Rails::VERSION::STRING]
|
12
|
+
frameworks = %w{action_pack active_support}
|
13
|
+
if defined? ActiveRecord
|
14
|
+
frameworks.unshift('active_record')
|
15
|
+
db_adapter = ActiveRecord::Base.configurations[RAILS_ENV]['adapter']
|
16
|
+
end
|
17
|
+
frameworks.push('active_resource') if defined? ActiveResource
|
18
|
+
frameworks.push('action_mailer') if defined? ActionMailer
|
19
|
+
frameworks.each do |f|
|
20
|
+
require "#{f}/version"
|
21
|
+
info << [ "#{f.titlecase} version",
|
22
|
+
"#{f.classify}::VERSION::STRING".constantize]
|
23
|
+
end
|
24
|
+
info << ['Bumble version', Bumble::VERSION] if defined? Bumble
|
25
|
+
info << ['TinyDS version', TinyDS::VERSION] if defined? TinyDS
|
26
|
+
info << ['DataMapper version', DataMapper::VERSION] if defined? DataMapper
|
27
|
+
info << ['Environment', RAILS_ENV]
|
28
|
+
info << ['Database adapter', db_adapter ] if defined? ActiveRecord
|
29
|
+
info << ['Bundler version', Bundler::VERSION] if defined? Bundler::VERSION
|
30
|
+
# get versions from jruby environment
|
31
|
+
if defined?(JRuby::Rack::VERSION)
|
32
|
+
info << ['JRuby Runtime version', JRUBY_VERSION]
|
33
|
+
info << ['JRuby-Rack version', JRuby::Rack::VERSION]
|
34
|
+
end
|
35
|
+
# get information from app engine
|
36
|
+
if defined?(AppEngine::ApiProxy)
|
37
|
+
require 'appengine-apis' # for VERSION
|
38
|
+
import com.google.appengine.api.utils.SystemProperty
|
39
|
+
sdk = SystemProperty.version.get.to_s
|
40
|
+
env = AppEngine::ApiProxy.current_environment
|
41
|
+
ver = env.getVersionId[0,env.getVersionId.rindex(".")]
|
42
|
+
info << ['AppEngine SDK version', sdk]
|
43
|
+
info << ['AppEngine APIs version', AppEngine::VERSION]
|
44
|
+
info << ['Auth domain', env.getAuthDomain]
|
45
|
+
info << ['Application id:version', env.getAppId + ":#{ver}"]
|
46
|
+
end
|
47
|
+
# render as an HTML table
|
48
|
+
html = "<table><tbody>"
|
49
|
+
info.each { |k,v| html += "<tr><td>#{k}</td><td>#{v}</td></tr>" }
|
50
|
+
html += "</tbody></table>"
|
51
|
+
render :text => html
|
52
|
+
end
|
53
|
+
end
|
@@ -0,0 +1,119 @@
|
|
1
|
+
# Don't change this file!
|
2
|
+
# Configure your app in config/environment.rb and config/environments/*.rb
|
3
|
+
|
4
|
+
RAILS_ROOT = "#{File.dirname(__FILE__)}/.." unless defined?(RAILS_ROOT)
|
5
|
+
|
6
|
+
module Rails
|
7
|
+
class << self
|
8
|
+
def boot!
|
9
|
+
unless booted?
|
10
|
+
preinitialize
|
11
|
+
pick_boot.run
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
def booted?
|
16
|
+
defined? Rails::Initializer
|
17
|
+
end
|
18
|
+
|
19
|
+
def pick_boot
|
20
|
+
(vendor_rails? ? VendorBoot : GemBoot).new
|
21
|
+
end
|
22
|
+
|
23
|
+
def vendor_rails?
|
24
|
+
File.exist?("#{RAILS_ROOT}/vendor/rails")
|
25
|
+
end
|
26
|
+
|
27
|
+
def preinitialize
|
28
|
+
load(preinitializer_path) if File.exist?(preinitializer_path)
|
29
|
+
end
|
30
|
+
|
31
|
+
def preinitializer_path
|
32
|
+
"#{RAILS_ROOT}/config/preinitializer.rb"
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
class Boot
|
37
|
+
def run
|
38
|
+
load_initializer
|
39
|
+
Rails::Initializer.run(:set_load_path)
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
class VendorBoot < Boot
|
44
|
+
def load_initializer
|
45
|
+
require "#{RAILS_ROOT}/vendor/rails/railties/lib/initializer"
|
46
|
+
Rails::Initializer.run(:install_gem_spec_stubs)
|
47
|
+
Rails::GemDependency.add_frozen_gem_path
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
class GemBoot < Boot
|
52
|
+
def load_initializer
|
53
|
+
self.class.load_rubygems
|
54
|
+
load_rails_gem
|
55
|
+
require 'initializer'
|
56
|
+
end
|
57
|
+
|
58
|
+
def load_rails_gem
|
59
|
+
if version = self.class.gem_version
|
60
|
+
gem 'rails', version
|
61
|
+
else
|
62
|
+
gem 'rails'
|
63
|
+
end
|
64
|
+
rescue Gem::LoadError => load_error
|
65
|
+
if load_error.message =~ /Could not find RubyGem rails/
|
66
|
+
STDERR.puts %(Missing the Rails #{version} gem. Please `gem install -v=#{version} rails`, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed.)
|
67
|
+
exit 1
|
68
|
+
else
|
69
|
+
raise
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
class << self
|
74
|
+
def rubygems_version
|
75
|
+
Gem::RubyGemsVersion rescue nil
|
76
|
+
end
|
77
|
+
|
78
|
+
def gem_version
|
79
|
+
if defined? RAILS_GEM_VERSION
|
80
|
+
RAILS_GEM_VERSION
|
81
|
+
elsif ENV.include?('RAILS_GEM_VERSION')
|
82
|
+
ENV['RAILS_GEM_VERSION']
|
83
|
+
else
|
84
|
+
parse_gem_version(read_environment_rb)
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
def load_rubygems
|
89
|
+
min_version = '1.3.2'
|
90
|
+
require 'rubygems'
|
91
|
+
unless rubygems_version >= min_version
|
92
|
+
$stderr.puts %Q(Rails requires RubyGems >= #{min_version} (you have #{rubygems_version}). Please `gem update --system` and try again.)
|
93
|
+
exit 1
|
94
|
+
end
|
95
|
+
|
96
|
+
rescue LoadError
|
97
|
+
$stderr.puts %Q(Rails requires RubyGems >= #{min_version}. Please install RubyGems and try again: http://rubygems.rubyforge.org)
|
98
|
+
exit 1
|
99
|
+
end
|
100
|
+
|
101
|
+
def parse_gem_version(text)
|
102
|
+
$1 if text =~ /^[^#]*RAILS_GEM_VERSION\s*=\s*["']([!~<>=]*\s*[\d.]+)["']/
|
103
|
+
end
|
104
|
+
|
105
|
+
private
|
106
|
+
def read_environment_rb
|
107
|
+
File.read("#{RAILS_ROOT}/config/environment.rb")
|
108
|
+
end
|
109
|
+
if defined? JRUBY_VERSION
|
110
|
+
require "rails_appengine/active_support_vendored"
|
111
|
+
require "rails_appengine/bundler_boot"
|
112
|
+
end
|
113
|
+
|
114
|
+
end
|
115
|
+
end
|
116
|
+
end
|
117
|
+
|
118
|
+
# All that for this:
|
119
|
+
Rails.boot!
|
@@ -0,0 +1,56 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file
|
2
|
+
|
3
|
+
# Specifies gem version of Rails to use when vendor/rails is not present
|
4
|
+
RAILS_GEM_VERSION = '2.3.11' unless defined? RAILS_GEM_VERSION
|
5
|
+
|
6
|
+
# Bootstrap the Rails environment, frameworks, and default configuration
|
7
|
+
require File.join(File.dirname(__FILE__), 'boot')
|
8
|
+
|
9
|
+
Rails::Initializer.run do |config|
|
10
|
+
# Settings in config/environments/* take precedence over those specified here.
|
11
|
+
# Application configuration should go into files in config/initializers
|
12
|
+
# -- all .rb files in that directory are automatically loaded.
|
13
|
+
|
14
|
+
# Add additional load paths for your own custom dirs
|
15
|
+
# config.autoload_paths += %W( #{RAILS_ROOT}/extras )
|
16
|
+
|
17
|
+
# Specify gems that this application depends on and have them installed with rake gems:install
|
18
|
+
# config.gem "bj"
|
19
|
+
# config.gem "hpricot", :version => '0.6', :source => "http://code.whytheluckystiff.net"
|
20
|
+
# config.gem "sqlite3-ruby", :lib => "sqlite3"
|
21
|
+
# config.gem "aws-s3", :lib => "aws/s3"
|
22
|
+
|
23
|
+
# Only load the plugins named here, in the order given (default is alphabetical).
|
24
|
+
# :all can be used as a placeholder for all plugins not explicitly named
|
25
|
+
# config.plugins = [ :exception_notification, :ssl_requirement, :all ]
|
26
|
+
|
27
|
+
# Skip frameworks you're not going to use. To use Rails without a database,
|
28
|
+
# you must remove the Active Record framework.
|
29
|
+
# config.frameworks -= [ :active_record, :active_resource, :action_mailer ]
|
30
|
+
|
31
|
+
# Skip these so generators can run from MRI
|
32
|
+
if defined? JRUBY_VERSION
|
33
|
+
# Patch Rails Framework
|
34
|
+
require 'rails_appengine'
|
35
|
+
# Use DataMapper to access datastore
|
36
|
+
require 'rails_dm_datastore'
|
37
|
+
# Set Logger from appengine-apis, all environments
|
38
|
+
require 'appengine-apis/logger'
|
39
|
+
config.logger = AppEngine::Logger.new
|
40
|
+
# Skip frameworks you're not going to use.
|
41
|
+
config.frameworks -= [ :active_record, :active_resource, :action_mailer ]
|
42
|
+
end
|
43
|
+
# Skip plugin locators
|
44
|
+
config.plugin_locators -= [Rails::Plugin::GemLocator]
|
45
|
+
|
46
|
+
# Activate observers that should always be running
|
47
|
+
# config.active_record.observers = :cacher, :garbage_collector, :forum_observer
|
48
|
+
|
49
|
+
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
50
|
+
# Run "rake -D time" for a list of tasks for finding time zone names.
|
51
|
+
config.time_zone = 'UTC'
|
52
|
+
|
53
|
+
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
54
|
+
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}')]
|
55
|
+
# config.i18n.default_locale = :de
|
56
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'appengine-rack'
|
2
|
+
|
3
|
+
ENV['RAILS_ENV'] = AppEngine::Rack.environment
|
4
|
+
|
5
|
+
#deferred_dispatcher = AppEngine::Rack::DeferredDispatcher.new(
|
6
|
+
# :require => File.expand_path('../config/environment', __FILE__),
|
7
|
+
# :dispatch => 'ActionController::Dispatcher')
|
8
|
+
#
|
9
|
+
#map '/' do
|
10
|
+
# run deferred_dispatcher
|
11
|
+
#end
|
12
|
+
|
13
|
+
require 'config/environment'
|
14
|
+
run ActionController::Dispatcher.new
|
@@ -0,0 +1,38 @@
|
|
1
|
+
application: <%= @app_name %>
|
2
|
+
version: 1
|
3
|
+
runtime: jruby
|
4
|
+
|
5
|
+
handlers:
|
6
|
+
- url: /remote_api/*
|
7
|
+
login: admin
|
8
|
+
servlet: com.google.apphosting.utils.remoteapi.RemoteApiServlet
|
9
|
+
|
10
|
+
- url: /contacts/*
|
11
|
+
login: required
|
12
|
+
|
13
|
+
resource_files:
|
14
|
+
- exclude: /README
|
15
|
+
- exclude: /Rakefile
|
16
|
+
- exclude: /db/**
|
17
|
+
- exclude: /doc/**
|
18
|
+
- exclude: /bin/**
|
19
|
+
- exclude: /log/**
|
20
|
+
- exclude: /script/**
|
21
|
+
- exclude: /test/**
|
22
|
+
- exclude: /tmp/**
|
23
|
+
|
24
|
+
static_files:
|
25
|
+
- include: /**/*.ico
|
26
|
+
expiration: 365d
|
27
|
+
- include: /**/*.gif
|
28
|
+
expiration: 365d
|
29
|
+
- include: /**/*.jpeg
|
30
|
+
expiration: 365d
|
31
|
+
- include: /**/*.jpg
|
32
|
+
expiration: 365d
|
33
|
+
- include: /**/*.png
|
34
|
+
expiration: 365d
|
35
|
+
- include: /**/*.js
|
36
|
+
expiration: 365d
|
37
|
+
- include: /**/*.css
|
38
|
+
expiration: 365d
|
data/lib/rails_gae.rb
ADDED
@@ -0,0 +1,52 @@
|
|
1
|
+
require File.join(File.dirname(__FILE__), 'generator')
|
2
|
+
|
3
|
+
class RailsGae
|
4
|
+
|
5
|
+
attr_reader :app_name, :rails_version
|
6
|
+
|
7
|
+
alias_method :destination_folder, :app_name
|
8
|
+
|
9
|
+
def initialize(app_name)
|
10
|
+
rails_version = '2.3.10'
|
11
|
+
@app_name = app_name
|
12
|
+
@rails_version = rails_version
|
13
|
+
end
|
14
|
+
|
15
|
+
def run!
|
16
|
+
create_rails_project
|
17
|
+
copy_files
|
18
|
+
generate_templates
|
19
|
+
end
|
20
|
+
|
21
|
+
def create_rails_project
|
22
|
+
puts `rails _#{rails_version}_ #{app_name}`
|
23
|
+
end
|
24
|
+
|
25
|
+
def copy_files
|
26
|
+
FileUtils.cp_r(File.join(files_dir, '.'), destination_folder)
|
27
|
+
end
|
28
|
+
|
29
|
+
def generate_templates
|
30
|
+
FileUtils.cp_r(File.join(templates_dir, '.'), destination_folder)
|
31
|
+
templates.each do |template|
|
32
|
+
file = ERB.new(File.open(template).read)
|
33
|
+
File.open(template, 'w+').write(file.result(binding))
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
def files_dir
|
38
|
+
File.join(File.dirname(__FILE__), 'generator', 'files')
|
39
|
+
end
|
40
|
+
|
41
|
+
def templates_dir
|
42
|
+
File.join(File.dirname(__FILE__), 'generator', 'templates')
|
43
|
+
end
|
44
|
+
|
45
|
+
def templates
|
46
|
+
templates = Dir.glob(File.join(templates_dir, '**', '*')).select{ |f| File.file?(f) }
|
47
|
+
templates.map do |template_path|
|
48
|
+
relative_path = template_path.sub(templates_dir, '')
|
49
|
+
File.join(destination_folder, relative_path)
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
data/rails_gae.gemspec
ADDED
@@ -0,0 +1,70 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{rails_gae}
|
8
|
+
s.version = "0.0.1"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["jordinl"]
|
12
|
+
s.date = %q{2011-03-16}
|
13
|
+
s.default_executable = %q{rails_gae}
|
14
|
+
s.description = %q{Utility functions to make life easier}
|
15
|
+
s.email = %q{jordi@hackdd.com}
|
16
|
+
s.executables = ["rails_gae"]
|
17
|
+
s.extra_rdoc_files = [
|
18
|
+
"LICENSE.txt",
|
19
|
+
"README.rdoc"
|
20
|
+
]
|
21
|
+
s.files = [
|
22
|
+
".document",
|
23
|
+
"Gemfile",
|
24
|
+
"Gemfile.lock",
|
25
|
+
"LICENSE.txt",
|
26
|
+
"README.rdoc",
|
27
|
+
"Rakefile",
|
28
|
+
"VERSION",
|
29
|
+
"bin/rails_gae",
|
30
|
+
"lib/generator/files/app/controllers/rails/info_controller.rb",
|
31
|
+
"lib/generator/files/config.ru",
|
32
|
+
"lib/generator/files/config/boot.rb",
|
33
|
+
"lib/generator/files/config/database.yml",
|
34
|
+
"lib/generator/files/config/environment.rb",
|
35
|
+
"lib/generator/files/config/initializers/gae_init_patch.rb",
|
36
|
+
"lib/generator/files/script/console",
|
37
|
+
"lib/generator/files/script/generate",
|
38
|
+
"lib/generator/files/script/publish",
|
39
|
+
"lib/generator/files/script/server",
|
40
|
+
"lib/generator/templates/Gemfile",
|
41
|
+
"lib/generator/templates/WEB-INF/app.yaml",
|
42
|
+
"lib/rails_gae.rb",
|
43
|
+
"rails_gae.gemspec"
|
44
|
+
]
|
45
|
+
s.homepage = %q{http://github.com/hackdd/rails_gae}
|
46
|
+
s.licenses = ["MIT"]
|
47
|
+
s.require_paths = ["lib"]
|
48
|
+
s.rubygems_version = %q{1.3.7}
|
49
|
+
s.summary = %q{Utility functions to make life easier}
|
50
|
+
|
51
|
+
if s.respond_to? :specification_version then
|
52
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
53
|
+
s.specification_version = 3
|
54
|
+
|
55
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
56
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
|
57
|
+
s.add_development_dependency(%q<rcov>, [">= 0"])
|
58
|
+
s.add_runtime_dependency(%q<google-appengine>, ["= 0.0.19"])
|
59
|
+
else
|
60
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
61
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
62
|
+
s.add_dependency(%q<google-appengine>, ["= 0.0.19"])
|
63
|
+
end
|
64
|
+
else
|
65
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
66
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
67
|
+
s.add_dependency(%q<google-appengine>, ["= 0.0.19"])
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
metadata
ADDED
@@ -0,0 +1,134 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rails_gae
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 29
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
- 1
|
10
|
+
version: 0.0.1
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- jordinl
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2011-03-16 00:00:00 +00:00
|
19
|
+
default_executable: rails_gae
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
22
|
+
prerelease: false
|
23
|
+
name: jeweler
|
24
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
hash: 7
|
30
|
+
segments:
|
31
|
+
- 1
|
32
|
+
- 5
|
33
|
+
- 2
|
34
|
+
version: 1.5.2
|
35
|
+
requirement: *id001
|
36
|
+
type: :development
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
prerelease: false
|
39
|
+
name: rcov
|
40
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ">="
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
hash: 3
|
46
|
+
segments:
|
47
|
+
- 0
|
48
|
+
version: "0"
|
49
|
+
requirement: *id002
|
50
|
+
type: :development
|
51
|
+
- !ruby/object:Gem::Dependency
|
52
|
+
prerelease: false
|
53
|
+
name: google-appengine
|
54
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
55
|
+
none: false
|
56
|
+
requirements:
|
57
|
+
- - "="
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
hash: 57
|
60
|
+
segments:
|
61
|
+
- 0
|
62
|
+
- 0
|
63
|
+
- 19
|
64
|
+
version: 0.0.19
|
65
|
+
requirement: *id003
|
66
|
+
type: :runtime
|
67
|
+
description: Utility functions to make life easier
|
68
|
+
email: jordi@hackdd.com
|
69
|
+
executables:
|
70
|
+
- rails_gae
|
71
|
+
extensions: []
|
72
|
+
|
73
|
+
extra_rdoc_files:
|
74
|
+
- LICENSE.txt
|
75
|
+
- README.rdoc
|
76
|
+
files:
|
77
|
+
- .document
|
78
|
+
- Gemfile
|
79
|
+
- Gemfile.lock
|
80
|
+
- LICENSE.txt
|
81
|
+
- README.rdoc
|
82
|
+
- Rakefile
|
83
|
+
- VERSION
|
84
|
+
- bin/rails_gae
|
85
|
+
- lib/generator/files/app/controllers/rails/info_controller.rb
|
86
|
+
- lib/generator/files/config.ru
|
87
|
+
- lib/generator/files/config/boot.rb
|
88
|
+
- lib/generator/files/config/database.yml
|
89
|
+
- lib/generator/files/config/environment.rb
|
90
|
+
- lib/generator/files/config/initializers/gae_init_patch.rb
|
91
|
+
- lib/generator/files/script/console
|
92
|
+
- lib/generator/files/script/generate
|
93
|
+
- lib/generator/files/script/publish
|
94
|
+
- lib/generator/files/script/server
|
95
|
+
- lib/generator/templates/Gemfile
|
96
|
+
- lib/generator/templates/WEB-INF/app.yaml
|
97
|
+
- lib/rails_gae.rb
|
98
|
+
- rails_gae.gemspec
|
99
|
+
has_rdoc: true
|
100
|
+
homepage: http://github.com/hackdd/rails_gae
|
101
|
+
licenses:
|
102
|
+
- MIT
|
103
|
+
post_install_message:
|
104
|
+
rdoc_options: []
|
105
|
+
|
106
|
+
require_paths:
|
107
|
+
- lib
|
108
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
109
|
+
none: false
|
110
|
+
requirements:
|
111
|
+
- - ">="
|
112
|
+
- !ruby/object:Gem::Version
|
113
|
+
hash: 3
|
114
|
+
segments:
|
115
|
+
- 0
|
116
|
+
version: "0"
|
117
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
118
|
+
none: false
|
119
|
+
requirements:
|
120
|
+
- - ">="
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
hash: 3
|
123
|
+
segments:
|
124
|
+
- 0
|
125
|
+
version: "0"
|
126
|
+
requirements: []
|
127
|
+
|
128
|
+
rubyforge_project:
|
129
|
+
rubygems_version: 1.3.7
|
130
|
+
signing_key:
|
131
|
+
specification_version: 3
|
132
|
+
summary: Utility functions to make life easier
|
133
|
+
test_files: []
|
134
|
+
|