merb_has_rails_plugins 0.0.2 → 0.1.0

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.
Files changed (3) hide show
  1. data/Rakefile +7 -3
  2. data/lib/merb_has_rails_plugins.rb +3 -4
  3. metadata +51 -44
data/Rakefile CHANGED
@@ -3,7 +3,7 @@ require 'rake/gempackagetask'
3
3
 
4
4
  PLUGIN = "merb_has_rails_plugins"
5
5
  NAME = "merb_has_rails_plugins"
6
- VERSION = "0.0.2"
6
+ VERSION = "0.1.0"
7
7
  AUTHOR = "Michael D. Ivey"
8
8
  EMAIL = "ivey@gweezlebur.com"
9
9
  HOMEPAGE = "http://merb-plugins.rubyforge.org/merb_has_rails_plugins/"
@@ -20,7 +20,7 @@ spec = Gem::Specification.new do |s|
20
20
  s.author = AUTHOR
21
21
  s.email = EMAIL
22
22
  s.homepage = HOMEPAGE
23
- s.add_dependency('merb', '>= 0.4.0')
23
+ s.add_dependency('merb', '>= 0.5.0')
24
24
  s.require_path = 'lib'
25
25
  s.autorequire = PLUGIN
26
26
  s.files = %w(LICENSE README Rakefile TODO) + Dir.glob("{lib,specs}/**/*")
@@ -32,4 +32,8 @@ end
32
32
 
33
33
  task :install => [:package] do
34
34
  sh %{sudo gem install pkg/#{NAME}-#{VERSION}}
35
- end
35
+ end
36
+
37
+ task :release => :package do
38
+ sh %{rubyforge add_release merb-plugins #{PLUGIN} #{VERSION} pkg/#{NAME}-#{VERSION}.gem}
39
+ end
@@ -1,7 +1,7 @@
1
1
  # make sure we're running inside Merb
2
2
  if defined?(Merb::Plugins)
3
3
  puts "Loading Rails plugins from plugins/"
4
- Dir["#{MERB_ROOT}/plugins/*"].each do |dir|
4
+ Dir["#{Merb.root}/plugins/*"].each do |dir|
5
5
  plugin_init = dir / 'init.rb'
6
6
  plugin_lib = dir / 'lib'
7
7
 
@@ -9,10 +9,9 @@ if defined?(Merb::Plugins)
9
9
  if defined?(ActiveSupport)
10
10
  Dependencies.load_paths << plugin_lib
11
11
  Dependencies.load_once_paths << plugin_lib
12
- else
13
- $LOAD_PATH << plugin_lib
14
12
  end
13
+ $LOAD_PATH << plugin_lib
15
14
  end
16
15
  require plugin_init if File.exist?(plugin_init)
17
16
  end
18
- end
17
+ end
metadata CHANGED
@@ -1,60 +1,67 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.9.2
3
- specification_version: 1
4
2
  name: merb_has_rails_plugins
5
3
  version: !ruby/object:Gem::Version
6
- version: 0.0.2
7
- date: 2007-11-06 00:00:00 -06: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:
4
+ version: 0.1.0
25
5
  platform: ruby
26
- signing_key:
27
- cert_chain:
28
- post_install_message:
29
6
  authors:
30
7
  - Michael D. Ivey
8
+ autorequire: merb_has_rails_plugins
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2008-01-09 00:00:00 -06:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: merb
17
+ version_requirement:
18
+ version_requirements: !ruby/object:Gem::Requirement
19
+ requirements:
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 0.5.0
23
+ version:
24
+ description: Merb plugin that provides autoloading of Rails plugins from plugins/ dir
25
+ email: ivey@gweezlebur.com
26
+ executables: []
27
+
28
+ extensions: []
29
+
30
+ extra_rdoc_files:
31
+ - README
32
+ - LICENSE
33
+ - TODO
31
34
  files:
32
35
  - LICENSE
33
36
  - README
34
37
  - Rakefile
35
38
  - TODO
36
39
  - lib/merb_has_rails_plugins.rb
37
- test_files: []
38
-
40
+ has_rdoc: true
41
+ homepage: http://merb-plugins.rubyforge.org/merb_has_rails_plugins/
42
+ post_install_message:
39
43
  rdoc_options: []
40
44
 
41
- extra_rdoc_files:
42
- - README
43
- - LICENSE
44
- - TODO
45
- executables: []
46
-
47
- extensions: []
48
-
45
+ require_paths:
46
+ - lib
47
+ required_ruby_version: !ruby/object:Gem::Requirement
48
+ requirements:
49
+ - - ">="
50
+ - !ruby/object:Gem::Version
51
+ version: "0"
52
+ version:
53
+ required_rubygems_version: !ruby/object:Gem::Requirement
54
+ requirements:
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ version: "0"
58
+ version:
49
59
  requirements: []
50
60
 
51
- dependencies:
52
- - !ruby/object:Gem::Dependency
53
- name: merb
54
- version_requirement:
55
- version_requirements: !ruby/object:Gem::Version::Requirement
56
- requirements:
57
- - - ">="
58
- - !ruby/object:Gem::Version
59
- version: 0.4.0
60
- version:
61
+ rubyforge_project:
62
+ rubygems_version: 0.9.5
63
+ signing_key:
64
+ specification_version: 2
65
+ summary: Merb plugin that provides autoloading of Rails plugins from plugins/ dir
66
+ test_files: []
67
+