Jorge Bejar
674dab30bc
Routes resources avoid :new and :edit endpoints if api_only is enabled
2015-06-11 16:54:14 -03:00
Santiago Pastorino
440b334cbb
Use new hash syntax
2015-06-11 16:54:13 -03:00
Santiago Pastorino
3d3730040d
Disable jbuilder for Rails API apps, meanwhile it doesn't play nicely
2015-06-11 16:54:12 -03:00
Santiago Pastorino
7d17269be3
Add test to show api only apps allow overriding generator options
2015-06-11 16:54:12 -03:00
Santiago Pastorino
e9e94c1d15
Add config.api_only = true to config/application.rb when using rails new --api
2015-06-11 16:54:12 -03:00
Santiago Pastorino
98a9936228
config.api_only = true implies config.generators.api_only = true
2015-06-11 16:54:12 -03:00
Santiago Pastorino
decc4e8f82
Do not generate lib/assets directory for api apps
2015-06-11 16:54:12 -03:00
Santiago Pastorino
94fdba9c92
Api apps scaffold does not generate assets
2015-06-11 16:54:12 -03:00
Santiago Pastorino
e5b6188b47
Api apps scaffold does not generate helpers
2015-06-11 16:54:12 -03:00
Santiago Pastorino
6d2b405a4e
Api apps scaffold does not generate views
2015-06-11 16:54:12 -03:00
Santiago Pastorino
451b1e3574
Add api scaffold test for route, controller and its tests
2015-06-11 16:54:11 -03:00
Santiago Pastorino
d4fe23c76b
API apps scaffold generator generates an apropriate controller
2015-06-11 16:54:11 -03:00
Santiago Pastorino
20939b3fcc
config.generators.api_only = true set rails api option on generators
2015-06-11 16:54:11 -03:00
Santiago Pastorino
e8100fc4e3
Api apps scaffold generates routes without new and edit actions
2015-06-11 16:54:11 -03:00
Santiago Pastorino
c19035299a
Hide assets, helper, css and js namespaces for api only apps
2015-06-11 16:54:11 -03:00
Santiago Pastorino
101df203eb
Add api_only option to Generators
2015-06-11 16:54:11 -03:00
Santiago Pastorino
7b47e4250d
Do not generate test/helpers directory for api apps
2015-06-11 16:54:11 -03:00
Santiago Pastorino
3847e485b6
Do not generate app/views directory for api apps
2015-06-11 16:54:10 -03:00
Santiago Pastorino
9b66071a3e
Do not generate app/helpers directory for api apps
2015-06-11 16:54:10 -03:00
Santiago Pastorino
1718683016
Do not generate app/assets directory for api apps
2015-06-11 16:54:10 -03:00
Santiago Pastorino
e8915d098c
api option implies skipping javascript & sprockets
2015-06-11 16:54:10 -03:00
Santiago Pastorino
c09a401660
Generate appropriate initializers for an api app
2015-06-11 16:54:10 -03:00
Santiago Pastorino
2a9cf48a61
rails new --api generates an api app skeleton
2015-06-11 16:54:10 -03:00
Santiago Pastorino
212a099ab0
Add AC::API + its middleware stack integration test
2015-06-11 16:54:10 -03:00
Santiago Pastorino
135c059d6f
Add config.api_only option to application and remove appropriate middleware when true
2015-06-11 16:54:09 -03:00
Yuki Nishijima
a888c3cdc9
Change the index
arg of ActionDispatch::Static#new
to a kwarg
2015-06-11 04:34:11 -07:00
masarakki
83b7bf4d3b
add option to avoid generating scaffold.css
2015-06-09 04:41:19 +09:00
Yves Senn
e8d02ccf8c
Merge pull request #19571 from kaspth/improve-runner-integration
...
Improve Test Runner's Minitest integration.
2015-06-08 12:05:12 +02:00
Rafael Mendonça França
847a5ea7db
Merge pull request #20444 from y-yagi/can_use_path_helper_method_in_console
...
modify console of app method in that can use the path helpers
2015-06-06 00:07:45 -03:00
yuuji.yaginuma
4fded7c069
modify console of app method in that can use the path helpers
2015-06-05 18:38:53 +09:00
Arun Agrawal
382f52ddbb
Remove warning for setting eager_load
...
AppTemplate::Application.new does not run load hooks.
To load this configuration we need to use create which will
run load hooks to load this configuration.
2015-06-05 11:07:16 +02:00
Kasper Timm Hansen
b6fc8e25a1
Improve test runner's Minitest integration.
...
This also adds free mix and matching of directories, files and lines filters.
Like so:
bin/rails test models/post_test.rb test/integration models/person_test.rb:26
You can also mix in a traditional Minitest filter:
bin/rails test test/integration -n /check_it_out/
2015-06-04 20:57:08 +02:00
Ronak Jangir
a68ffa731e
Removed duplicate test cases for template execution
2015-06-04 01:55:54 +05:30
Rafael Mendonça França
cecbf9ed32
Merge pull request #18587 from chrismcg/allow_deliver_later_queue_name_to_be_configured
...
Allow configuration of ActionMailer queue name
2015-06-03 13:25:32 -03:00
Yves Senn
939d5a4932
Merge pull request #20387 from y-yagi/fix_engine_generated_controller_test
...
set engine's route in the functional test is generated in the engine
2015-06-02 16:20:40 +02:00
Chris McGrath
f5a131aaea
Allow configuration of ActionMailer queue name
2015-06-02 10:49:49 +01:00
yuuji.yaginuma
3612793475
add test to run generated test files inside mountable engine
2015-06-02 09:11:48 +09:00
Rafael Mendonça França
8b67f28f4a
Merge pull request #20357 from ronakjangir47/remove_mocha1
...
Removed use of mocha from railties actions_test
2015-06-01 13:44:01 -03:00
Santiago Pastorino
651fa5edcd
Merge pull request #20406 from yoongkang/add_edge_sprockets
...
Use sprockets-rails from github repo
2015-06-01 13:35:31 -03:00
Ronak Jangir
655b8be814
Removed use of mocha from railties actions_test
2015-06-01 21:56:12 +05:30
Yoong Kang Lim
757dd93c7f
Use sprockets-rails from github repo
...
See #20397
2015-06-02 02:02:01 +10:00
Rafael Mendonça França
bdfc662a11
Merge pull request #20138 from tgxworld/deprecated_assert_template
...
Deprecate `assert_template` and `assigns()`.
2015-06-01 12:39:03 -03:00
yuuji.yaginuma
c861ef283f
add engine's namespace to fixture name
2015-05-31 21:28:51 +09:00
yuuji.yaginuma
6a8d91897b
set engine's route in the functional test is generated in the engine
2015-05-31 12:54:38 +09:00
Yoong Kang Lim
0cb327c549
Add test to ensure tmp:clear works when tmp is missing
...
See #20299 .
2015-05-30 00:44:12 -07:00
Yoong Kang Lim
f06ce4c12a
Generate a .keep
file in tmp
folder
...
A lot of scripts assumes the existence of this folder and most would fail if it
is absent.
One example of this is `rake restart` (before the previous commit) – it tries to
`touch tmp/restart.txt`, which would fail if `tmp` does not exist, which was the
case for a freshly-cloned project as `tmp` is `.gitignored` by default.
See #20299 .
[Yoong Kang Lim, Sunny Juneja]
2015-05-30 00:44:12 -07:00
Yoong Kang Lim
6fc83f8efe
rake restart
should work without a tmp
folder
...
In restart.rake, the creation of tmp/restart.txt
would fail if the tmp folder does not exist in the
app. This is a problem because apps cloned using
git would not have the tmp folder, as the folder is
in .gitignore. This commit creates the tmp folder
if it does not exist.
Fixes #20299
[Yoong Kang Lim, Sunny Juneja]
2015-05-30 00:44:05 -07:00
Guo Xiang Tan
ca83436d1b
Remove assigns
and assert_template
.
2015-05-30 14:13:57 +08:00
Rafael Mendonça França
73aab036ee
Merge pull request #20017 from eliotsykes/configurable-static-index-filename
...
config.static_index configures directory Index "index.html" filename
2015-05-28 18:53:00 -03:00
Rafael Mendonça França
233ceda594
Merge pull request #20331 from arunagw/arunagw-remove-unused-package-tasks
...
Remove unused package tasks
2015-05-28 18:48:21 -03:00