Commit Graph

19423 Commits

Author SHA1 Message Date
Carl Lerche
d20eab85bf Removing the old release.rb script 2010-11-16 17:19:47 -08:00
Carl Lerche
c3dd1238c5 Small cleanup of the release task 2010-11-16 17:19:47 -08:00
Carl Lerche
df5fe4d83c Add a task to tag the commit and push 2010-11-16 17:19:47 -08:00
Carl Lerche
aa0732dc00 Ignore the dist directory 2010-11-16 17:19:47 -08:00
Carl Lerche
482790db6c Add a task to commit the changes 2010-11-16 17:19:47 -08:00
Carl Lerche
dab1d8dcc6 Add some sanity checks to the gem push script 2010-11-16 17:19:47 -08:00
Carl Lerche
6b3f521b80 Remove some useless comments from the release task 2010-11-16 17:19:47 -08:00
Carl Lerche
4ff8c59fb7 Update the main Rakefile to use the new release tasks 2010-11-16 17:19:47 -08:00
Carl Lerche
fb5b2ba186 Add a new file containing tasks related to releasing 2010-11-16 17:19:47 -08:00
Carl Lerche
ccd2f3ede5 Update the version.rb files to include a PRE part 2010-11-16 17:19:46 -08:00
Carl Lerche
7e4f9dbd67 Remove the old gem release task 2010-11-16 17:19:46 -08:00
Aaron Patterson
2738ec891b removing many unused variables 2010-11-16 17:06:50 -08:00
Aaron Patterson
08c64bbd39 super automatically passes on the implicit block 2010-11-16 14:28:19 -08:00
Aaron Patterson
05320e3788 use unless instead of if ! 2010-11-16 14:28:19 -08:00
Aaron Patterson
5f608fc7c4 removing space errors 2010-11-16 14:28:19 -08:00
Aaron Patterson
c801f233df reloading an association will properly set attributes of instantiated objects. Thanks Brian Palmer [#5802 state:resolved] 2010-11-16 14:28:19 -08:00
Piotr Sarnacki
1395545404 Do not run migrations from mounted engine separately.
There is no good way now to run migrations for mounted engine in test application,
but that way of running migrations makes it really hard to run
engine in development mode and test it (you need to copy migrations
in dev mode and in that case in tests they will be run twice).

Signed-off-by: José Valim <jose.valim@gmail.com>
2010-11-16 22:58:13 +01:00
Aaron Patterson
59ba800698 refactoring uniq method 2010-11-16 13:34:18 -08:00
Aaron Patterson
7ebd36d1c4 refactor to reduce method calls 2010-11-16 11:43:11 -08:00
Alexandru Catighera
a5cdf0b9eb Fix ActiveRecord calculations when grouped by multiple fields 2010-11-16 10:38:47 -08:00
Aaron Patterson
254b0a4bbb using a merge with a Hash[] rather than a loop to add SAX parsed attributes 2010-11-16 10:09:42 -08:00
Piotr Sarnacki
437ceab139 Create directory before copying migrations if it does not exist 2010-11-16 17:00:01 +01:00
Piotr Sarnacki
510375b501 Fix plugin new --mountable: ActionController instead of ActiveController 2010-11-16 16:41:37 +01:00
Piotr Sarnacki
ced8ebcee0 Change inside_namespace method to inside_template and use it in all templates by default
The initial implementation of namespacing was based on wrong
assumptions. Namespacing path and class names in templates
should be based on current namespace and skip_namespace attribute,
but it should be not necessary to wrap content on all the templates
into additional block methods.
2010-11-16 16:38:14 +01:00
Xavier Noria
a820d0afdd revises RDoc of AR::Base#== 2010-11-16 15:58:37 +01:00
Santiago Pastorino
4718d097ff Models should be equals even after destroyed
[#5978 state:committed]
2010-11-16 12:40:40 -02:00
Xavier Noria
dff0dfb7f8 adds a publish_docs task to force stable docs generation and publishing after a new stable tag has been pushed 2010-11-16 14:07:55 +01:00
Josh Kalderimis
e1e780a31d Brought the domain method in AD http url inline with subdomain where @@tld_length is used by default. Also set the default value of @@tld_length to 1. 2010-11-16 18:57:51 +08:00
Doug Ireton
ecd0310e14 Fix misspelling of 'deprecation' in plugin_generator. 2010-11-16 15:37:29 +08:00
Aaron Patterson
ace84a003c support finding by a ruby class [#5979 state:resolved] 2010-11-15 20:25:43 -08:00
Aaron Patterson
7bf9cbb766 adding more test coverage around finding with active record objects 2010-11-15 15:30:58 -08:00
José Valim
bd96e45641 Fix failing tests. 2010-11-16 00:04:38 +01:00
Josh Kalderimis
1d5842b27c updated the rails guide to reflect changes in the action view railtie relating to the asset id cache code 2010-11-16 00:04:37 +01:00
Josh Kalderimis
2bed4d94e6 changed asset_timestamps_cache to asset_ids_cache, added an rdoc comment to the new public api, and updated the railtie 2010-11-16 00:04:37 +01:00
Josh Kalderimis
ce1f87673c corrected the AV railtie to use the new home for cache_asset_timestamps, and merged asset id caching and asset paths together. 2010-11-16 00:04:37 +01:00
Josh Kalderimis
0ff1c5935f reorganised the the common asset helpers module into a class and have it include the id caching module, this class is now shared from the view instance to the asset include tag helpers (js and css) 2010-11-16 00:04:37 +01:00
Josh Kalderimis
6a609dbc82 incorporated most of the feedback from José 2010-11-16 00:04:37 +01:00
Josh Kalderimis
6747ae2708 reduced duplication between the javascript and stylesheet asset tag methods, also split the asset id caching methods into a separate module for easy inclusion and use by the asset include tag class and base asset tag helpers 2010-11-16 00:04:36 +01:00
Josh Kalderimis
7a38c8b9f5 removed an assert from a test as it was testing a private method 2010-11-16 00:04:36 +01:00
Josh Kalderimis
1c129f8f8e separated the asset id methods to a separate module, removed some dupliation with the various path methods, and moved the base asset tag methods to a base module so the asset id module can play nice with the path generation 2010-11-16 00:04:36 +01:00
Josh Kalderimis
91b0b65834 split the javascript and stylesheet tag helpers into separate files as a precusor before removing the duplication between the two 2010-11-16 00:04:36 +01:00
Piotr Sarnacki
bf176e9c7a Do not allow to use plugin_new generator directly, you should use Usage:
rails new APP_PATH [options]

Options:
  -G, [--skip-git]            # Skip Git ignores and keeps
  -r, [--ruby=PATH]           # Path to the Ruby binary of your choice
                              # Default: /Users/drogus/.rvm/rubies/ruby-1.8.7-p302/bin/ruby
  -b, [--builder=BUILDER]     # Path to an application builder (can be a filesystem path or URL)
      [--edge]                # Setup the application with Gemfile pointing to Rails repository
      [--dev]                 # Setup the application with Gemfile pointing to your Rails checkout
      [--skip-gemfile]        # Don't create a Gemfile
  -d, [--database=DATABASE]   # Preconfigure for selected database (options: mysql/oracle/postgresql/sqlite3/frontbase/ibm_db)
                              # Default: sqlite3
  -O, [--skip-active-record]  # Skip Active Record files
  -m, [--template=TEMPLATE]   # Path to an application template (can be a filesystem path or URL)
  -J, [--skip-prototype]      # Skip Prototype files
  -T, [--skip-test-unit]      # Skip Test::Unit files

Runtime options:
  -s, [--skip]     # Skip files that already exist
  -p, [--pretend]  # Run but do not make any changes
  -f, [--force]    # Overwrite files that already exist
  -q, [--quiet]    # Supress status output

Rails options:
  -v, [--version]  # Show Rails version number and quit
  -h, [--help]     # Show this help message and quit

Description:
    The 'rails new' command creates a new Rails application with a default
    directory structure and configuration at the path you specify.

Example:
    rails new ~/Code/Ruby/weblog

    This generates a skeletal Rails installation in ~/Code/Ruby/weblog.
    See the README in the newly created application to get going. command
2010-11-16 00:04:35 +01:00
Piotr Sarnacki
b0665345f8 Allow running rails plugin new command inside rails application 2010-11-16 00:04:35 +01:00
Piotr Sarnacki
4da6d95604 Bye bye bang bang. 2010-11-16 00:04:35 +01:00
Piotr Sarnacki
ef4afed81c There is no need to make isolated? method with bang-bang, just alias isolated 2010-11-16 00:04:35 +01:00
Piotr Sarnacki
dc1250265c Deprecate plugin generator 2010-11-16 00:04:35 +01:00
Piotr Sarnacki
73443329de Add skip-gemspec option to 'plugin new' generator 2010-11-16 00:04:34 +01:00
Piotr Sarnacki
d988fa820a Update changelog with rails plugin new 2010-11-16 00:04:34 +01:00
Piotr Sarnacki
fefce1262b Don't need to support rails plugin --version 2010-11-16 00:04:34 +01:00
Aaron Patterson
2b2082eb09 rejecting blank strings 2010-11-15 15:02:18 -08:00