inspiredigital-engine_plugin_generator 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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.rdoc ADDED
@@ -0,0 +1,14 @@
1
+ = Engine Plugin Generator
2
+
3
+ Engine Plugin Generator for easy generation of an engine plugin skeleton.
4
+
5
+ == Example
6
+
7
+ * In your environment.rb file:
8
+
9
+ config.gem "inspiredigital-engine_plugin_generator", :lib => "engine_plugin", :source => "http://gems.github.com"
10
+
11
+ * Command line to generator your engine plugin
12
+
13
+ script/generate engine_plugin plugin_name
14
+
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,2 @@
1
+ ---
2
+ :version: 0.0.2
@@ -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
@@ -0,0 +1,5 @@
1
+ ActionController::Routing::Routes.draw do |map|
2
+ # Engine routes go here
3
+ end
4
+
5
+
data/init.rb ADDED
@@ -0,0 +1 @@
1
+ # Include hook code here
@@ -0,0 +1 @@
1
+ # EnginePlugin
metadata ADDED
@@ -0,0 +1,66 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: inspiredigital-engine_plugin_generator
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.3
5
+ platform: ruby
6
+ authors:
7
+ - Inspire Digital
8
+ - Michael Air
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+
13
+ date: 2009-09-03 00:00:00 -07:00
14
+ default_executable:
15
+ dependencies: []
16
+
17
+ description: Engine Plugin Generator generators an engine plugin skeleton.
18
+ email: systems@inspiredigital.com.au
19
+ executables: []
20
+
21
+ extensions: []
22
+
23
+ extra_rdoc_files: []
24
+
25
+ files:
26
+ - MIT-LICENSE
27
+ - README.rdoc
28
+ - Rakefile
29
+ - VERSION.yml
30
+ - generators/engine_plugin/engine_plugin_generator.rb
31
+ - generators/engine_plugin/templates/routes.rb
32
+ - generators/engine_plugin/templates/empty_file
33
+ - init.rb
34
+ - lib/engine_plugin.rb
35
+ has_rdoc: false
36
+ homepage: http://github.com/inspiredigital/engine_plugin_generator
37
+ licenses:
38
+ post_install_message:
39
+ rdoc_options:
40
+ - --main
41
+ - README.rdoc
42
+ - --inline-source
43
+ - --line-numbers
44
+ require_paths:
45
+ - lib
46
+ required_ruby_version: !ruby/object:Gem::Requirement
47
+ requirements:
48
+ - - ">="
49
+ - !ruby/object:Gem::Version
50
+ version: "0"
51
+ version:
52
+ required_rubygems_version: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ version: "0"
57
+ version:
58
+ requirements: []
59
+
60
+ rubyforge_project: engine_plugin_generator
61
+ rubygems_version: 1.3.5
62
+ signing_key:
63
+ specification_version: 3
64
+ summary: Engine Plugin Generator generators an engine plugin skeleton.
65
+ test_files: []
66
+