Commit Graph

19220 Commits

Author SHA1 Message Date
Piotr Sarnacki
489b279fc4 Don't be verbose while creating dummy application in plugin new generator 2010-11-02 17:14:52 +01:00
Piotr Sarnacki
013fc0a418 No need to require 'app_base', it's required in app_generator 2010-11-02 17:14:51 +01:00
Piotr Sarnacki
46fdb3197d Pass more options to test/dummy in 'plugin new' generator 2010-11-02 17:14:51 +01:00
Piotr Sarnacki
671d1469c6 Add --full option to 'plugin new' generator, which generates rails engine 2010-11-02 17:14:51 +01:00
Piotr Sarnacki
fdbd9df21e No need for say_step in 'plugin new' generator 2010-11-02 17:14:51 +01:00
Piotr Sarnacki
d995953869 DRY up app generator and plugin new generator. Moved shared options to AppBase generator 2010-11-02 17:14:51 +01:00
Piotr Sarnacki
68295bc693 Remove integration tests and ActionModel/ActiveRecord calls from 'rake plugin new' generator, it shouldn't be available as default option 2010-11-02 17:14:51 +01:00
Piotr Sarnacki
ac8f9276f5 We don't need gem tasks, we have a gemspec 2010-11-02 17:14:51 +01:00
Piotr Sarnacki
48fef64cb5 Builder should not be responsible for running store_application_definition method 2010-11-02 17:14:50 +01:00
Piotr Sarnacki
ae1debd442 Make tests for app and plugin generators more DRY 2010-11-02 17:14:50 +01:00
Piotr Sarnacki
b36fa51a3f Allow easy overriding of test framework in 'rake plugin new' generator, using PluginBuilder 2010-11-02 17:14:50 +01:00
Piotr Sarnacki
fd1562af8c Ensure that tests run properly 2010-11-02 17:14:50 +01:00
Piotr Sarnacki
59d52229f9 Change // style regexp to %r{}, to not confuse editors code highlighting 2010-11-02 17:14:50 +01:00
Piotr Sarnacki
e51e9e2db0 Add --dev and --edge options to rails plugin new 2010-11-02 17:14:50 +01:00
Piotr Sarnacki
5c8b48ab4b Added USAGE for rails plugin new 2010-11-02 17:14:50 +01:00
Piotr Sarnacki
bbf02ffea4 That method is already declared at AppBase 2010-11-02 17:14:50 +01:00
Piotr Sarnacki
bcd414fd10 Add support for templates for rails plugin new 2010-11-02 17:14:50 +01:00
Piotr Sarnacki
b8a0fabe18 Ensure that options for plugin new generator are not passed to application generator 2010-11-02 17:14:49 +01:00
Piotr Sarnacki
b37938eff7 Refactored AppGenerator and PluginNewGenerator to inherit from AppBase. 2010-11-02 17:14:49 +01:00
Piotr Sarnacki
cfcea1d53a Added 'rails plugin new' generator which generates gem plugin skeleton.
This command is based on enginex gem by José Valim. It generates gem structure
and ads dummy application into test/dummy. This can be used to start developing
any kind of extension for rails 3.
2010-11-02 17:14:49 +01:00
Andrew White
d446392f76 Add additional HTTP request methods from the following RFCs:
* Hypertext Transfer Protocol -- HTTP/1.1
  http://www.ietf.org/rfc/rfc2616.txt)

* HTTP Extensions for Distributed Authoring -- WEBDAV
  http://www.ietf.org/rfc/rfc2518.txt

* Versioning Extensions to WebDAV
  http://www.ietf.org/rfc/rfc3253.txt

* Ordered Collections Protocol (WebDAV)
  http://www.ietf.org/rfc/rfc3648.txt

* Web Distributed Authoring and Versioning (WebDAV) Access Control Protocol
  http://www.ietf.org/rfc/rfc3744.txt

* Web Distributed Authoring and Versioning (WebDAV) SEARCH
  http://www.ietf.org/rfc/rfc5323.txt

* PATCH Method for HTTP
  http://www.ietf.org/rfc/rfc5789.txt

[#2809 state:resolved] [#5895 state:resolved]
2010-11-02 10:56:14 +00:00
Pratik Naik
18b6aa6538 Make should_record_timestamps? serialization aware rather than object#changed? 2010-11-02 01:45:30 +00:00
Pratik Naik
e911ed1f0f Ensure save always updates timestamps when serialized attributes are present 2010-11-02 01:42:49 +00:00
Pratik Naik
c5c2e4fefd Add timestamps to Topic 2010-11-02 01:24:31 +00:00
Xavier Noria
3cf85fb4fc Merge branch 'master' of git://github.com/lifo/docrails 2010-10-30 23:28:16 +02:00
Aaron Patterson
296467fcc4 only returning where values for the corresponding relation, also filtering where value hash based on table name [#5234 state:resolved] [#5184 state:resolved] 2010-10-30 13:25:49 -07:00
Aaron Patterson
cbca12f908 adding tests for #5234 and #5184. Tests were from Akira Matsuda. Thanks Akira! 2010-10-30 13:20:54 -07:00
Aaron Patterson
7d5762d2c2 no need to merge where values if no new where values have been added 2010-10-30 12:28:49 -07:00
Aaron Patterson
2b48e47654 ruby-debug19 does not work with 1.9.3, so I am removing it 2010-10-30 11:30:08 -07:00
Denis Odorcic
cc9742920c Convert :primary_key in association to a string before comparing to column names, so that for example :primary_key => :another_pk works as well [#5605 state:resolved] 2010-10-30 11:24:36 -07:00
Aaron Patterson
67a3a70295 refactoring find_join_association 2010-10-30 08:45:40 -07:00
Ernie Miller
0bb85ed9ff Fix issues when including the same association multiple times and mixing joins/includes together. 2010-10-30 06:48:44 -07:00
Jon Leighton
b82fab25f9 Refactoring: replace the mix of variables like @finder_sql, @counter_sql, etc with just a single scope hash (created on initialization of the proxy). This is now used consistently across all associations. Therefore, all you have to do to ensure finding/counting etc is done correctly is implement the scope correctly. 2010-10-30 06:30:00 -07:00
Aaron Patterson
2a47e7ef10 only do string substitution on column names once, remove intermediate data structures 2010-10-30 06:16:54 -07:00
Aaron Patterson
2e07260f36 columns are always strings 2010-10-30 06:12:50 -07:00
Aaron Patterson
6cf44a1bd6 no need to to_i, sqlite does that for us 2010-10-30 06:11:06 -07:00
snusnu
973b908777 Added missing AS require to active_model/naming.rb
We saw a failing spec when running the DataMapper
ActiveModel compliance specs for dm-active_model.

  ActiveModel::Naming#model_name

relies on the Module#parents method defined in

  active_support/core_ext/module/introspection.rb

Adding the appropriate require statement of course
fixed our specs.
2010-10-30 00:20:31 +08:00
Aditya Sanghi
3ca1665038 reverting last change to javascript helper; needs more investigation 2010-10-29 10:13:48 +05:30
Aditya Sanghi
74f3f74b6e fixed javascript helper doc to close issue #10 raised by jialin 2010-10-29 10:01:43 +05:30
Aaron Patterson
6a3d6b7f13 select_all() should always return an array, so no need to test 2010-10-27 14:39:24 -07:00
Aaron Patterson
f6ddb3553a fisting test name 2010-10-27 14:33:02 -07:00
Aaron Patterson
9ce0211806 speeding up query cache 2010-10-27 14:23:01 -07:00
Aaron Patterson
7104122cc3 making query cache work with prepared statements 2010-10-27 14:05:40 -07:00
Andrew White
47ceb135c6 Ensure that Rails.env is defined first 2010-10-27 10:30:14 +01:00
Aaron Patterson
e73b0b84d9 renaming bind_values to binds where it makes sense 2010-10-26 13:44:11 -07:00
Aaron Patterson
104d0b263e adding backwards compatibility for non-prepare statement handling drivers 2010-10-26 13:44:11 -07:00
Aaron Patterson
fca229e205 caching column values 2010-10-26 13:44:11 -07:00
Aaron Patterson
02128d628c setting the authorized session clears the statement cache 2010-10-26 13:44:11 -07:00
Aaron Patterson
9d9aed433b add a session authorization setter to the pg connection 2010-10-26 13:44:11 -07:00
Aaron Patterson
1741bbe2d5 avoiding statement cache if there are no bind values 2010-10-26 13:44:10 -07:00