menu_helper 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +4 -0
- data/LICENSE +1 -1
- data/Rakefile +18 -16
- metadata +16 -21
data/CHANGELOG.rdoc
CHANGED
data/LICENSE
CHANGED
data/Rakefile
CHANGED
@@ -1,13 +1,15 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'rake'
|
1
3
|
require 'rake/testtask'
|
2
4
|
require 'rake/rdoctask'
|
3
5
|
require 'rake/gempackagetask'
|
4
|
-
require 'rake/contrib/sshpublisher'
|
5
6
|
|
6
7
|
spec = Gem::Specification.new do |s|
|
7
8
|
s.name = 'menu_helper'
|
8
|
-
s.version = '0.3.
|
9
|
+
s.version = '0.3.1'
|
9
10
|
s.platform = Gem::Platform::RUBY
|
10
|
-
s.summary = 'Adds a helper method for generating a menubar'
|
11
|
+
s.summary = 'Adds a helper method for generating a menubar in Rails'
|
12
|
+
s.description = s.summary
|
11
13
|
|
12
14
|
s.files = FileList['{lib,test}/**/*'] + %w(CHANGELOG.rdoc init.rb LICENSE Rakefile README.rdoc) - FileList['test/app_root/{log,log/*,script,script/*}']
|
13
15
|
s.require_path = 'lib'
|
@@ -52,20 +54,27 @@ Rake::RDocTask.new(:rdoc) do |rdoc|
|
|
52
54
|
rdoc.options << '--line-numbers' << '--inline-source'
|
53
55
|
rdoc.rdoc_files.include('README.rdoc', 'CHANGELOG.rdoc', 'LICENSE', 'lib/**/*.rb')
|
54
56
|
end
|
55
|
-
|
57
|
+
|
58
|
+
desc 'Generate a gemspec file.'
|
59
|
+
task :gemspec do
|
60
|
+
File.open("#{spec.name}.gemspec", 'w') do |f|
|
61
|
+
f.write spec.to_ruby
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
56
65
|
Rake::GemPackageTask.new(spec) do |p|
|
57
66
|
p.gem_spec = spec
|
58
|
-
p.need_tar = true
|
59
|
-
p.need_zip = true
|
60
67
|
end
|
61
68
|
|
62
69
|
desc 'Publish the beta gem.'
|
63
70
|
task :pgem => [:package] do
|
71
|
+
require 'rake/contrib/sshpublisher'
|
64
72
|
Rake::SshFilePublisher.new('aaron@pluginaweek.org', '/home/aaron/gems.pluginaweek.org/public/gems', 'pkg', "#{spec.name}-#{spec.version}.gem").upload
|
65
73
|
end
|
66
74
|
|
67
75
|
desc 'Publish the API documentation.'
|
68
76
|
task :pdoc => [:rdoc] do
|
77
|
+
require 'rake/contrib/sshpublisher'
|
69
78
|
Rake::SshDirPublisher.new('aaron@pluginaweek.org', "/home/aaron/api.pluginaweek.org/public/#{spec.name}", 'rdoc').upload
|
70
79
|
end
|
71
80
|
|
@@ -74,15 +83,8 @@ task :publish => [:pgem, :pdoc, :release]
|
|
74
83
|
|
75
84
|
desc 'Publish the release files to RubyForge.'
|
76
85
|
task :release => [:gem, :package] do
|
77
|
-
require '
|
78
|
-
|
79
|
-
ruby_forge = RubyForge.new.configure
|
80
|
-
ruby_forge.login
|
86
|
+
require 'rake/gemcutter'
|
81
87
|
|
82
|
-
|
83
|
-
|
84
|
-
puts "Releasing #{File.basename(file)}..."
|
85
|
-
|
86
|
-
ruby_forge.add_release(spec.rubyforge_project, spec.name, spec.version, file)
|
87
|
-
end
|
88
|
+
Rake::Gemcutter::Tasks.new(spec)
|
89
|
+
Rake::Task['gem:push'].invoke
|
88
90
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: menu_helper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Pfeifer
|
@@ -9,11 +9,11 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
12
|
+
date: 2010-03-07 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
16
|
-
description:
|
16
|
+
description: Adds a helper method for generating a menubar in Rails
|
17
17
|
email: aaron@pluginaweek.org
|
18
18
|
executables: []
|
19
19
|
|
@@ -22,26 +22,19 @@ extensions: []
|
|
22
22
|
extra_rdoc_files: []
|
23
23
|
|
24
24
|
files:
|
25
|
-
- lib/menu_helper
|
25
|
+
- lib/menu_helper.rb
|
26
|
+
- lib/menu_helper/menu_bar.rb
|
26
27
|
- lib/menu_helper/html_element.rb
|
27
28
|
- lib/menu_helper/menu.rb
|
28
|
-
- lib/menu_helper/menu_bar.rb
|
29
|
-
- lib/menu_helper.rb
|
30
|
-
- test/test_helper.rb
|
31
|
-
- test/unit
|
32
|
-
- test/unit/menu_bar_test.rb
|
33
29
|
- test/unit/html_element_test.rb
|
30
|
+
- test/unit/menu_bar_test.rb
|
34
31
|
- test/unit/menu_test.rb
|
35
|
-
- test/helpers
|
36
|
-
- test/helpers/menu_helper_test.rb
|
37
|
-
- test/app_root
|
38
|
-
- test/app_root/config
|
39
|
-
- test/app_root/config/routes.rb
|
40
|
-
- test/app_root/app
|
41
|
-
- test/app_root/app/controllers
|
42
|
-
- test/app_root/app/controllers/home_controller.rb
|
43
32
|
- test/app_root/app/controllers/contact_controller.rb
|
44
33
|
- test/app_root/app/controllers/about_us_controller.rb
|
34
|
+
- test/app_root/app/controllers/home_controller.rb
|
35
|
+
- test/app_root/config/routes.rb
|
36
|
+
- test/test_helper.rb
|
37
|
+
- test/helpers/menu_helper_test.rb
|
45
38
|
- CHANGELOG.rdoc
|
46
39
|
- init.rb
|
47
40
|
- LICENSE
|
@@ -49,6 +42,8 @@ files:
|
|
49
42
|
- README.rdoc
|
50
43
|
has_rdoc: true
|
51
44
|
homepage: http://www.pluginaweek.org
|
45
|
+
licenses: []
|
46
|
+
|
52
47
|
post_install_message:
|
53
48
|
rdoc_options: []
|
54
49
|
|
@@ -69,12 +64,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
64
|
requirements: []
|
70
65
|
|
71
66
|
rubyforge_project: pluginaweek
|
72
|
-
rubygems_version: 1.3.
|
67
|
+
rubygems_version: 1.3.5
|
73
68
|
signing_key:
|
74
|
-
specification_version:
|
75
|
-
summary: Adds a helper method for generating a menubar
|
69
|
+
specification_version: 3
|
70
|
+
summary: Adds a helper method for generating a menubar in Rails
|
76
71
|
test_files:
|
77
|
-
- test/unit/menu_bar_test.rb
|
78
72
|
- test/unit/html_element_test.rb
|
73
|
+
- test/unit/menu_bar_test.rb
|
79
74
|
- test/unit/menu_test.rb
|
80
75
|
- test/helpers/menu_helper_test.rb
|