mra-engine_plugin_generator 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +20 -0
- data/README +14 -0
- data/Rakefile +23 -0
- data/VERSION.yml +2 -0
- data/generators/engine_plugin/engine_plugin_generator.rb +22 -0
- data/generators/engine_plugin/templates/empty_file +0 -0
- data/generators/engine_plugin/templates/routes.rb +5 -0
- data/init.rb +1 -0
- data/lib/engine_plugin.rb +1 -0
- metadata +64 -0
data/MIT-LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2009 [name of plugin creator]
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
EnginePlugin
|
2
|
+
============
|
3
|
+
|
4
|
+
Engine Plugin Generator for easy generation of an engine plugin skeleton.
|
5
|
+
|
6
|
+
|
7
|
+
Example
|
8
|
+
=======
|
9
|
+
|
10
|
+
Usage:
|
11
|
+
script/generate engine_plugin plugin_name
|
12
|
+
|
13
|
+
|
14
|
+
Copyright (c) 2009 Michael Air, released under the MIT license
|
data/Rakefile
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'rake'
|
2
|
+
require 'rake/testtask'
|
3
|
+
require 'rake/rdoctask'
|
4
|
+
|
5
|
+
desc 'Default: run unit tests.'
|
6
|
+
task :default => :test
|
7
|
+
|
8
|
+
desc 'Test the engine_plugin plugin.'
|
9
|
+
Rake::TestTask.new(:test) do |t|
|
10
|
+
t.libs << 'lib'
|
11
|
+
t.libs << 'test'
|
12
|
+
t.pattern = 'test/**/*_test.rb'
|
13
|
+
t.verbose = true
|
14
|
+
end
|
15
|
+
|
16
|
+
desc 'Generate documentation for the engine_plugin plugin.'
|
17
|
+
Rake::RDocTask.new(:rdoc) do |rdoc|
|
18
|
+
rdoc.rdoc_dir = 'rdoc'
|
19
|
+
rdoc.title = 'EnginePlugin'
|
20
|
+
rdoc.options << '--line-numbers' << '--inline-source'
|
21
|
+
rdoc.rdoc_files.include('README')
|
22
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
23
|
+
end
|
data/VERSION.yml
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
class EnginePluginGenerator < Rails::Generator::NamedBase
|
2
|
+
def manifest
|
3
|
+
record do |m|
|
4
|
+
m.directory "vendor/plugins/#{file_name}"
|
5
|
+
|
6
|
+
m.directory "vendor/plugins/#{file_name}/app"
|
7
|
+
m.directory "vendor/plugins/#{file_name}/app/controllers"
|
8
|
+
m.directory "vendor/plugins/#{file_name}/app/helpers"
|
9
|
+
m.directory "vendor/plugins/#{file_name}/app/models"
|
10
|
+
m.directory "vendor/plugins/#{file_name}/app/views"
|
11
|
+
|
12
|
+
m.directory "vendor/plugins/#{file_name}/config"
|
13
|
+
m.template "routes.rb", "vendor/plugins/#{file_name}/config/routes.rb"
|
14
|
+
|
15
|
+
m.directory "vendor/plugins/#{file_name}/lib"
|
16
|
+
|
17
|
+
m.directory "vendor/plugins/#{file_name}/tasks"
|
18
|
+
|
19
|
+
m.file "empty_file", "vendor/plugins/#{file_name}/init.rb"
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
File without changes
|
data/init.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
# Include hook code here
|
@@ -0,0 +1 @@
|
|
1
|
+
# EnginePlugin
|
metadata
ADDED
@@ -0,0 +1,64 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: mra-engine_plugin_generator
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Michael Air
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2009-09-03 00:00:00 -07:00
|
13
|
+
default_executable:
|
14
|
+
dependencies: []
|
15
|
+
|
16
|
+
description: Engine Plugin Generator generators an engine plugin skeleton.
|
17
|
+
email: michael.air@gmail.com
|
18
|
+
executables: []
|
19
|
+
|
20
|
+
extensions: []
|
21
|
+
|
22
|
+
extra_rdoc_files: []
|
23
|
+
|
24
|
+
files:
|
25
|
+
- MIT-LICENSE
|
26
|
+
- README
|
27
|
+
- Rakefile
|
28
|
+
- VERSION.yml
|
29
|
+
- generators/engine_plugin/engine_plugin_generator.rb
|
30
|
+
- generators/engine_plugin/templates/routes.rb
|
31
|
+
- generators/engine_plugin/templates/empty_file
|
32
|
+
- init.rb
|
33
|
+
- lib/engine_plugin.rb
|
34
|
+
has_rdoc: false
|
35
|
+
homepage: http://github.com/mra/engine_plugin_generator
|
36
|
+
post_install_message:
|
37
|
+
rdoc_options:
|
38
|
+
- --main
|
39
|
+
- README.rdoc
|
40
|
+
- --inline-source
|
41
|
+
- --line-numbers
|
42
|
+
require_paths:
|
43
|
+
- lib
|
44
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - ">="
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: "0"
|
49
|
+
version:
|
50
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: "0"
|
55
|
+
version:
|
56
|
+
requirements: []
|
57
|
+
|
58
|
+
rubyforge_project: engine_plugin_generator
|
59
|
+
rubygems_version: 1.2.0
|
60
|
+
signing_key:
|
61
|
+
specification_version: 3
|
62
|
+
summary: Engine Plugin Generator generators an engine plugin skeleton.
|
63
|
+
test_files: []
|
64
|
+
|