goose 0.7.1 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/.gitignore +23 -0
- data/Gemfile +4 -0
- data/Rakefile +22 -0
- data/lib/goose/helper.rb +3 -2
- data/lib/goose/version.rb +1 -1
- data/test/helper.rb +10 -0
- data/test/test_goose.rb +7 -0
- metadata +23 -17
data/.document
ADDED
data/.gitignore
ADDED
data/Gemfile
ADDED
data/Rakefile
ADDED
@@ -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
|
data/lib/goose/helper.rb
CHANGED
@@ -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)
|
15
|
-
|
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)
|
data/lib/goose/version.rb
CHANGED
data/test/helper.rb
ADDED
data/test/test_goose.rb
ADDED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: goose
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.
|
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:
|
14
|
-
default_executable:
|
13
|
+
date: 2012-01-21 00:00:00 Z
|
15
14
|
dependencies: []
|
16
15
|
|
17
|
-
description:
|
18
|
-
email:
|
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
|
-
|
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/
|
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
|
-
-
|
36
|
-
-
|
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:
|
63
|
+
version: "0"
|
59
64
|
requirements: []
|
60
65
|
|
61
66
|
rubyforge_project:
|
62
|
-
rubygems_version: 1.
|
67
|
+
rubygems_version: 1.8.10
|
63
68
|
signing_key:
|
64
69
|
specification_version: 3
|
65
|
-
summary:
|
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
|