goose 0.7.1 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,5 @@
1
+ README.rdoc
2
+ lib/**/*.rb
3
+ bin/*
4
+ features/**/*.feature
5
+ LICENSE
@@ -0,0 +1,23 @@
1
+ ## MAC OS
2
+ .DS_Store
3
+
4
+ ## TEXTMATE
5
+ *.tmproj
6
+ tmtags
7
+
8
+ ## EMACS
9
+ *~
10
+ \#*
11
+ .\#*
12
+
13
+ ## VIM
14
+ *.swp
15
+
16
+ ## PROJECT::GENERAL
17
+ coverage
18
+ rdoc
19
+ pkg
20
+
21
+ ## PROJECT::SPECIFIC
22
+ goose.gemspec
23
+ *.gem
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in goose.gemspec
4
+ gemspec
@@ -0,0 +1,22 @@
1
+ require 'rubygems'
2
+ require 'rake'
3
+ require 'rake/testtask'
4
+
5
+ $LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
6
+ require "goose/version"
7
+
8
+ Rake::TestTask.new(:test) do |test|
9
+ test.libs << 'lib' << 'test'
10
+ test.pattern = 'test/**/test_*.rb'
11
+ test.verbose = true
12
+ end
13
+
14
+ task :build do
15
+ system "gem build goose.gemspec"
16
+ end
17
+
18
+ task :release => :build do
19
+ system "gem push goose-#{Goose::VERSION}.gem"
20
+ end
21
+
22
+ task :default => :test
@@ -11,8 +11,9 @@ module Goose
11
11
  goose.current_address.resolve(url)
12
12
  options.update(Goose.config.active_options)
13
13
  end
14
- content = link_to(place, url) if url
15
- content_tag(Goose.config.wrapper_tag, content, options, &block)
14
+ content = url ? link_to(place, url) : ''
15
+ content << capture(&block) if block
16
+ content_tag(Goose.config.wrapper_tag, content, options)
16
17
  end
17
18
 
18
19
  def nav_at(*places)
@@ -1,3 +1,3 @@
1
1
  module Goose
2
- VERSION = '0.7.1'
2
+ VERSION = '0.8.0'
3
3
  end
@@ -0,0 +1,10 @@
1
+ require 'rubygems'
2
+ require 'test/unit'
3
+ require 'shoulda'
4
+
5
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
6
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
7
+ require 'goose'
8
+
9
+ class Test::Unit::TestCase
10
+ end
@@ -0,0 +1,7 @@
1
+ require 'helper'
2
+
3
+ class TestGoose < Test::Unit::TestCase
4
+ should "probably rename this file and start testing for real" do
5
+ flunk "hey buddy, you should probably rename this file and start testing for real"
6
+ end
7
+ end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: goose
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.7.1
5
+ version: 0.8.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - Bruce Williams
@@ -10,32 +10,37 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-06-10 00:00:00 -07:00
14
- default_executable:
13
+ date: 2012-01-21 00:00:00 Z
15
14
  dependencies: []
16
15
 
17
- description: Flexible, simple support for navigation
18
- email: bruce@codefluency.com
16
+ description: A flexible, simple Rails plugin that simplifies navigation and breadcrumbs.
17
+ email:
18
+ - bruce@codefluency.com
19
19
  executables: []
20
20
 
21
21
  extensions: []
22
22
 
23
- extra_rdoc_files:
24
- - README.md
23
+ extra_rdoc_files: []
24
+
25
25
  files:
26
+ - .document
27
+ - .gitignore
28
+ - Gemfile
29
+ - LICENSE
30
+ - README.md
31
+ - Rakefile
32
+ - lib/generators/goose/USAGE
26
33
  - lib/generators/goose/install_generator.rb
27
34
  - lib/generators/goose/templates/goose.rb
28
- - lib/generators/goose/USAGE
35
+ - lib/goose.rb
29
36
  - lib/goose/address.rb
30
37
  - lib/goose/config.rb
31
38
  - lib/goose/ext/action_view.rb
32
39
  - lib/goose/helper.rb
33
40
  - lib/goose/state.rb
34
41
  - lib/goose/version.rb
35
- - lib/goose.rb
36
- - LICENSE
37
- - README.md
38
- has_rdoc: true
42
+ - test/helper.rb
43
+ - test/test_goose.rb
39
44
  homepage: http://github.com/bruce/goose
40
45
  licenses: []
41
46
 
@@ -55,13 +60,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
55
60
  requirements:
56
61
  - - ">="
57
62
  - !ruby/object:Gem::Version
58
- version: 1.3.6
63
+ version: "0"
59
64
  requirements: []
60
65
 
61
66
  rubyforge_project:
62
- rubygems_version: 1.6.2
67
+ rubygems_version: 1.8.10
63
68
  signing_key:
64
69
  specification_version: 3
65
- summary: Top Gun navigation for your Rails application
66
- test_files: []
67
-
70
+ summary: Goose is a navigation plugin for Rails whose aim it is to make adding smart, context-aware navigation to your application as easy as possible
71
+ test_files:
72
+ - test/helper.rb
73
+ - test/test_goose.rb