merb_has_rails_plugins 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. data/LICENSE +20 -0
  2. data/README +8 -0
  3. data/Rakefile +35 -0
  4. data/TODO +5 -0
  5. data/lib/merb_has_rails_plugins.rb +18 -0
  6. metadata +52 -0
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2007 Michael D. Ivey
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,8 @@
1
+ merb_has_rails_plugins
2
+ =================
3
+
4
+ A plugin for the Merb framework that provides autoloading of Rails
5
+ plugins from plugins/ dir.
6
+
7
+ Please send bug reports to Michael Ivey directly for the time being:
8
+ ivey@gweezlebur.com or ivey on #merb
data/Rakefile ADDED
@@ -0,0 +1,35 @@
1
+ require 'rubygems'
2
+ require 'rake/gempackagetask'
3
+
4
+ PLUGIN = "merb_has_rails_plugins"
5
+ NAME = "merb_has_rails_plugins"
6
+ VERSION = "0.0.1"
7
+ AUTHOR = "Michael D. Ivey"
8
+ EMAIL = "ivey@gweezlebur.com"
9
+ HOMEPAGE = "http://merb-plugins.rubyforge.org/merb_has_rails_plugins/"
10
+ SUMMARY = "Merb plugin that provides autoloading of Rails plugins from plugins/ dir"
11
+
12
+ spec = Gem::Specification.new do |s|
13
+ s.name = NAME
14
+ s.version = VERSION
15
+ s.platform = Gem::Platform::RUBY
16
+ s.has_rdoc = true
17
+ s.extra_rdoc_files = ["README", "LICENSE", 'TODO']
18
+ s.summary = SUMMARY
19
+ s.description = s.summary
20
+ s.author = AUTHOR
21
+ s.email = EMAIL
22
+ s.homepage = HOMEPAGE
23
+ s.requirements << 'merb'
24
+ s.require_path = 'lib'
25
+ s.autorequire = PLUGIN
26
+ s.files = %w(LICENSE README Rakefile TODO) + Dir.glob("{lib,specs}/**/*")
27
+ end
28
+
29
+ Rake::GemPackageTask.new(spec) do |pkg|
30
+ pkg.gem_spec = spec
31
+ end
32
+
33
+ task :install => [:package] do
34
+ sh %{sudo gem install pkg/#{NAME}-#{VERSION}}
35
+ end
data/TODO ADDED
@@ -0,0 +1,5 @@
1
+ TODO:
2
+ Fix LICENSE with your name
3
+ Fix Rakefile with your name and contact info
4
+ Add your code to lib/merb_has_rails_plugins.rb
5
+ Add your Merb rake tasks to lib/merb_has_rails_plugins/merbtasks.rb
@@ -0,0 +1,18 @@
1
+ # make sure we're running inside Merb
2
+ if defined?(Merb::Plugins)
3
+ puts "Loading Rails plugins from plugins/"
4
+ Dir["#{MERB_ROOT}/plugins/*"].each do |dir|
5
+ plugin_init = dir / 'init.rb'
6
+ plugin_lib = dir / 'lib'
7
+
8
+ if File.directory?(plugin_lib)
9
+ if defined?(ActiveSupport)
10
+ Dependencies.load_paths << plugin_lib
11
+ Dependencies.load_once_paths << plugin_lib
12
+ else
13
+ $LOAD_PATH << plugin_lib
14
+ end
15
+ end
16
+ require plugin_init if File.exist?(plugin_init)
17
+ end
18
+ end
metadata ADDED
@@ -0,0 +1,52 @@
1
+ --- !ruby/object:Gem::Specification
2
+ rubygems_version: 0.9.2
3
+ specification_version: 1
4
+ name: merb_has_rails_plugins
5
+ version: !ruby/object:Gem::Version
6
+ version: 0.0.1
7
+ date: 2007-10-31 00:00:00 -05:00
8
+ summary: Merb plugin that provides autoloading of Rails plugins from plugins/ dir
9
+ require_paths:
10
+ - lib
11
+ email: ivey@gweezlebur.com
12
+ homepage: http://merb-plugins.rubyforge.org/merb_has_rails_plugins/
13
+ rubyforge_project:
14
+ description: Merb plugin that provides autoloading of Rails plugins from plugins/ dir
15
+ autorequire: merb_has_rails_plugins
16
+ default_executable:
17
+ bindir: bin
18
+ has_rdoc: true
19
+ required_ruby_version: !ruby/object:Gem::Version::Requirement
20
+ requirements:
21
+ - - ">"
22
+ - !ruby/object:Gem::Version
23
+ version: 0.0.0
24
+ version:
25
+ platform: ruby
26
+ signing_key:
27
+ cert_chain:
28
+ post_install_message:
29
+ authors:
30
+ - Michael D. Ivey
31
+ files:
32
+ - LICENSE
33
+ - README
34
+ - Rakefile
35
+ - TODO
36
+ - lib/merb_has_rails_plugins.rb
37
+ test_files: []
38
+
39
+ rdoc_options: []
40
+
41
+ extra_rdoc_files:
42
+ - README
43
+ - LICENSE
44
+ - TODO
45
+ executables: []
46
+
47
+ extensions: []
48
+
49
+ requirements:
50
+ - merb
51
+ dependencies: []
52
+