suprails 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/COPYING +674 -0
- data/README +88 -0
- data/TODO +29 -0
- data/bin/suprails +72 -0
- data/facets/haml.rb +28 -0
- data/lib/db.rb +80 -0
- data/lib/facet.rb +52 -0
- data/lib/gems.rb +46 -0
- data/lib/runner.rb +167 -0
- data/lib/suprails.rb +41 -0
- data/suprails.config.example +124 -0
- metadata +72 -0
@@ -0,0 +1,124 @@
|
|
1
|
+
#
|
2
|
+
# This is the example configuration file for Suprails
|
3
|
+
#
|
4
|
+
|
5
|
+
# It is important to realize that this file is essentially a ruby source file.
|
6
|
+
# Every statement that is not commented out with a '#' character, will be
|
7
|
+
# executed as a ruby expression. The most important aspect of this is that all
|
8
|
+
# string-based arguments must either be a symbol (where syntax allows) or
|
9
|
+
# enclosed in quotes. Additionally, arguments must be separated by a comma,
|
10
|
+
# just like a ruby method call.
|
11
|
+
#
|
12
|
+
# Example (will NOT work):
|
13
|
+
# gems.update rspec rspec-rails haml
|
14
|
+
# Example (will work):
|
15
|
+
# gems.update :rspec, "rspec-rails", :haml
|
16
|
+
#
|
17
|
+
# Also, the commands in this file are run in order. In other words, this file
|
18
|
+
# is functional, rather than declarative. If you try to update the rails gem
|
19
|
+
# after running the rails command, the update to rails will NOT take effect.
|
20
|
+
|
21
|
+
# Declare the location for your files to copy from. Let's say you have a
|
22
|
+
# helper file you always have, and you'd like it to be installed into the
|
23
|
+
# lib/ folder. This command defines the location of your master helper file
|
24
|
+
# (or any other similar files). Ideally, this should be one of your first
|
25
|
+
# commands
|
26
|
+
# Example (also the default):
|
27
|
+
# sources "~/.suprails/sources"
|
28
|
+
|
29
|
+
# Declare the gems you'd like to update. Keep in mind that this will likely
|
30
|
+
# require you to enter your root password, as sudo will probably be called
|
31
|
+
# You should probably do this before issuing the rails command
|
32
|
+
# Example:
|
33
|
+
# gems.update :rspec, "rspec-rails", :haml, :capistrano
|
34
|
+
# NOTE: symbols will generally work, but if the gem has a hyphen, it needs to
|
35
|
+
# be enclosed in quotes
|
36
|
+
#
|
37
|
+
# You could instead update all gems
|
38
|
+
# Example:
|
39
|
+
# gems.update
|
40
|
+
|
41
|
+
# There are two ways to run the rails generator: rails and frozen_rails.
|
42
|
+
# Only one should be called, so if you want frozen rails, comment out the
|
43
|
+
# rails command
|
44
|
+
#
|
45
|
+
# frozen_rails
|
46
|
+
rails
|
47
|
+
|
48
|
+
# Now, define the gems you wish to mention in the config/environment.rb file
|
49
|
+
# Example:
|
50
|
+
# gems.config :haml
|
51
|
+
|
52
|
+
# You can unpack the gems that you defined with gems.config by calling
|
53
|
+
# gems.unpack
|
54
|
+
# Example:
|
55
|
+
# gems.unpack
|
56
|
+
|
57
|
+
# Plugins are also available for installation.
|
58
|
+
# plugin "git://github.com/rails/exception_notification"
|
59
|
+
|
60
|
+
# And you can generate stuff, too
|
61
|
+
# Example:
|
62
|
+
# generate :rspec
|
63
|
+
# generate "model", "Model", "name:string"
|
64
|
+
|
65
|
+
# Creating new folders is easy. Here's one for Haml/Sass
|
66
|
+
# Example:
|
67
|
+
# folder "public/stylesheets/sass"
|
68
|
+
|
69
|
+
# You can also create new files with pre-existing content. Suprails looks for
|
70
|
+
# the existing file in the folder specified above in sources
|
71
|
+
# Example:
|
72
|
+
# file "site.sass", "public/stylesheets/sass/"
|
73
|
+
|
74
|
+
# You can delete files too
|
75
|
+
# Example:
|
76
|
+
# delete "public/index.html"
|
77
|
+
delete "public/index.html"
|
78
|
+
|
79
|
+
# There's a convenience method for the GPL. Because... you know... the GPL
|
80
|
+
# is good. and stuff. Note: this method accesses the GPL from the net.
|
81
|
+
# Example:
|
82
|
+
# gpl
|
83
|
+
|
84
|
+
# You can setup your database, too. Unfortunately, this is not yet implemented.
|
85
|
+
# Use 'file' to copy your database.yml file instead.
|
86
|
+
# Examples:
|
87
|
+
# db.development.adapter :sqlite3
|
88
|
+
# db.development.db "db/development.sqlite3"
|
89
|
+
# db.development.timeout 5000
|
90
|
+
# db.create
|
91
|
+
# db.migrate
|
92
|
+
|
93
|
+
# Rake works too
|
94
|
+
# Example:
|
95
|
+
# rake
|
96
|
+
|
97
|
+
# Like Git? Set it up!
|
98
|
+
# Example:
|
99
|
+
# git
|
100
|
+
git
|
101
|
+
|
102
|
+
# Perhaps you like subversion? Use that instead!
|
103
|
+
# Example:
|
104
|
+
# svn
|
105
|
+
|
106
|
+
# Need a command not supplied (yet!) by suprails?
|
107
|
+
# You can extend it by using runinside
|
108
|
+
# Example:
|
109
|
+
# runinside "capify ."
|
110
|
+
|
111
|
+
# Oh yeah, you can use suprails plugins, too. Except, to prevent confusion with
|
112
|
+
# real rails plugins, we call them facets for suprails. They should be
|
113
|
+
# installed at:
|
114
|
+
# ~/.suprails/facets
|
115
|
+
# Haml is one such facet. It requires special attention because installing it
|
116
|
+
# as a plugin does not complete its installation into the rails app
|
117
|
+
# Example:
|
118
|
+
# haml
|
119
|
+
|
120
|
+
# Finally, you can save a copy of this configuration file into your rails app's
|
121
|
+
# doc directory with the 'save' command
|
122
|
+
# Example:
|
123
|
+
# save
|
124
|
+
save
|
metadata
ADDED
@@ -0,0 +1,72 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: suprails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.3
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Bradley Grzesiak
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2008-11-09 00:00:00 -06:00
|
13
|
+
default_executable:
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: rails
|
17
|
+
type: :runtime
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: "0"
|
24
|
+
version:
|
25
|
+
description: This project is intended to be a replacement for the "rails" command. It does not replace the rails framework but rather provides a starting point for a rails application far beyond what the "rails" command provides. During execution, in fact, the suprails command calls the rails command.
|
26
|
+
email: listrophy@gmail.com
|
27
|
+
executables:
|
28
|
+
- suprails
|
29
|
+
extensions: []
|
30
|
+
|
31
|
+
extra_rdoc_files: []
|
32
|
+
|
33
|
+
files:
|
34
|
+
- README
|
35
|
+
- COPYING
|
36
|
+
- TODO
|
37
|
+
- lib/db.rb
|
38
|
+
- lib/facet.rb
|
39
|
+
- lib/gems.rb
|
40
|
+
- lib/runner.rb
|
41
|
+
- lib/suprails.rb
|
42
|
+
- facets/haml.rb
|
43
|
+
- bin/suprails
|
44
|
+
- suprails.config.example
|
45
|
+
has_rdoc: false
|
46
|
+
homepage: http://suprails.org
|
47
|
+
post_install_message:
|
48
|
+
rdoc_options: []
|
49
|
+
|
50
|
+
require_paths:
|
51
|
+
- lib
|
52
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
53
|
+
requirements:
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: "0"
|
57
|
+
version:
|
58
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - ">="
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: "0"
|
63
|
+
version:
|
64
|
+
requirements: []
|
65
|
+
|
66
|
+
rubyforge_project: suprails
|
67
|
+
rubygems_version: 1.3.1
|
68
|
+
signing_key:
|
69
|
+
specification_version: 2
|
70
|
+
summary: Suprails provides a wrapper to the rails command
|
71
|
+
test_files: []
|
72
|
+
|