diff options
author | Piotr Sarnacki <drogus@gmail.com> | 2010-10-15 17:46:31 +0300 |
---|---|---|
committer | Piotr Sarnacki <drogus@gmail.com> | 2010-11-02 17:14:49 +0100 |
commit | cfcea1d53ae5ce38a7cbeb41e05958dc009988b0 (patch) | |
tree | f581de5327011c5a9108fac46783aa05d676b03d /railties/test/fixtures/lib | |
parent | d446392f76c063d9f04396a1d3ca9e314a521671 (diff) | |
download | rails-cfcea1d53ae5ce38a7cbeb41e05958dc009988b0.tar.gz rails-cfcea1d53ae5ce38a7cbeb41e05958dc009988b0.tar.bz2 rails-cfcea1d53ae5ce38a7cbeb41e05958dc009988b0.zip |
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.
Diffstat (limited to 'railties/test/fixtures/lib')
3 files changed, 16 insertions, 0 deletions
diff --git a/railties/test/fixtures/lib/plugin_builders/empty_builder.rb b/railties/test/fixtures/lib/plugin_builders/empty_builder.rb new file mode 100644 index 0000000000..5c5607621c --- /dev/null +++ b/railties/test/fixtures/lib/plugin_builders/empty_builder.rb @@ -0,0 +1,2 @@ +class PluginBuilder +end diff --git a/railties/test/fixtures/lib/plugin_builders/simple_builder.rb b/railties/test/fixtures/lib/plugin_builders/simple_builder.rb new file mode 100644 index 0000000000..08f6c5535d --- /dev/null +++ b/railties/test/fixtures/lib/plugin_builders/simple_builder.rb @@ -0,0 +1,7 @@ +class PluginBuilder + def gitignore + create_file ".gitignore", <<-R.strip +foobar + R + end +end diff --git a/railties/test/fixtures/lib/plugin_builders/tweak_builder.rb b/railties/test/fixtures/lib/plugin_builders/tweak_builder.rb new file mode 100644 index 0000000000..1e801409a4 --- /dev/null +++ b/railties/test/fixtures/lib/plugin_builders/tweak_builder.rb @@ -0,0 +1,7 @@ +class PluginBuilder < Rails::PluginBuilder + def gitignore + create_file ".gitignore", <<-R.strip +foobar + R + end +end |