xebec 2.6.0 → 2.6.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/developer_tasks/doc.rake +3 -3
- data/developer_tasks/test.rake +1 -1
- data/doc/example_app/app/controllers/application_controller.rb +4 -4
- data/doc/example_app/app/controllers/pages_controller.rb +1 -1
- data/doc/example_app/app/controllers/projects_controller.rb +9 -9
- data/doc/example_app/app/views/layouts/_site_nav_bar.html.erb +1 -1
- data/generators/xebec_stylesheet/templates/xebec.css.erb +3 -3
- data/lib/xebec.rb +6 -6
- data/lib/xebec/controller_support.rb +11 -11
- data/lib/xebec/has_nav_bars.rb +7 -7
- data/lib/xebec/html5.rb +8 -8
- data/lib/xebec/nav_bar.rb +10 -10
- data/lib/xebec/nav_bar_helper.rb +11 -11
- data/lib/xebec/nav_bar_renderer.rb +22 -22
- data/lib/xebec/nav_item.rb +5 -5
- data/lib/xebec/stylesheet_generator.rb +8 -8
- data/lib/xebec/title_enhanced_nav_bar_renderer.rb +6 -6
- data/lib/xebec/web_app_theme_renderer.rb +5 -5
- data/test/controller_support_test.rb +11 -12
- data/test/html5_test.rb +14 -14
- data/test/nav_bar_helper_test.rb +17 -17
- data/test/nav_bar_renderer_test.rb +33 -22
- data/test/nav_bar_test.rb +10 -10
- data/test/test_helper.rb +14 -16
- data/test/title_enhanced_nav_bar_renderer_test.rb +10 -10
- data/test/web_app_theme_renderer_test.rb +5 -5
- data/xebec.gemspec +5 -7
- metadata +13 -11
- data/VERSION +0 -1
- data/developer_tasks/gem.rake +0 -34
data/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
2.6.0
|
data/developer_tasks/gem.rake
DELETED
@@ -1,34 +0,0 @@
|
|
1
|
-
namespace :gem do
|
2
|
-
begin
|
3
|
-
require 'jeweler'
|
4
|
-
Jeweler::Tasks.new do |gemspec|
|
5
|
-
gemspec.name = "xebec"
|
6
|
-
gemspec.summary = "Navigation helpers"
|
7
|
-
gemspec.description = "Helpers for generating navigation bars"
|
8
|
-
gemspec.email = "james.a.rosen@gmail.com"
|
9
|
-
gemspec.homepage = "http://github.com/jamesarosen/xebec"
|
10
|
-
gemspec.authors = ["James A. Rosen"]
|
11
|
-
gemspec.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Xebec Documentation", "--charset", "utf-8"]
|
12
|
-
gemspec.platform = Gem::Platform::RUBY
|
13
|
-
gemspec.add_development_dependency 'shoulda', '~> 2.10.3'
|
14
|
-
gemspec.add_development_dependency 'mocha', '~> 0.9.8'
|
15
|
-
gemspec.add_development_dependency 'redgreen', '~> 1.2.2'
|
16
|
-
end
|
17
|
-
rescue LoadError
|
18
|
-
puts "Jeweler not available. Install it with [sudo] gem install jeweler -s http://gemscutter.org"
|
19
|
-
end
|
20
|
-
|
21
|
-
task :push => 'gem:build' do
|
22
|
-
command = ('gem push')
|
23
|
-
command << " -p $#{ENV['http_proxy']}" if ENV['http_proxy'] && !ENV['http_proxy'].empty?
|
24
|
-
command << " #{latest_gem}"
|
25
|
-
puts "Pushing gem..."
|
26
|
-
IO.popen(command) { |io| io.each { |line| puts ' ' + line } }
|
27
|
-
end
|
28
|
-
|
29
|
-
def latest_gem
|
30
|
-
result = File.expand_path(Dir.glob(File.join(File.dirname(__FILE__), '..', 'pkg', '*.gem')).sort.last)
|
31
|
-
abort "No gems found in pkg/. Did you run gem:build?" if result.nil?
|
32
|
-
result
|
33
|
-
end
|
34
|
-
end
|