link2 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +8 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +73 -0
- data/Rakefile +3 -44
- data/TODO +11 -13
- data/lib/link2/brain.rb +2 -2
- data/lib/link2/locales/en.yml +5 -5
- data/lib/link2/version.rb +1 -1
- data/link2.gemspec +28 -0
- data/test/brain_test.rb +3 -3
- data/test/i18n_test.rb +3 -3
- data/test/integration/helpers_integration_test.rb +2 -0
- data/test/integration/rails_app/app/views/home/index.html.erb +49 -0
- data/test/integration/rails_app/app/views/layouts/application.html.erb +10 -0
- data/test/integration/rails_app/app/views/ponies/index.html.erb +3 -0
- data/test/integration/rails_app/app/views/ponies/new.html.erb +3 -0
- data/test/integration/rails_app/config/database.yml +3 -0
- data/test/integration/rails_app/config/environment.rb +1 -1
- data/test/integration/rails_app/public/javascripts/application.js +0 -0
- data/test/test_helper.rb +1 -1
- metadata +70 -10
data/.gitignore
ADDED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,73 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
link2 (0.1.8)
|
5
|
+
actionpack (>= 2.3.0)
|
6
|
+
activesupport (>= 2.3.0)
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: http://rubygems.org/
|
10
|
+
specs:
|
11
|
+
abstract (1.0.0)
|
12
|
+
actionpack (3.0.1)
|
13
|
+
activemodel (= 3.0.1)
|
14
|
+
activesupport (= 3.0.1)
|
15
|
+
builder (~> 2.1.2)
|
16
|
+
erubis (~> 2.6.6)
|
17
|
+
i18n (~> 0.4.1)
|
18
|
+
rack (~> 1.2.1)
|
19
|
+
rack-mount (~> 0.6.12)
|
20
|
+
rack-test (~> 0.5.4)
|
21
|
+
tzinfo (~> 0.3.23)
|
22
|
+
activemodel (3.0.1)
|
23
|
+
activesupport (= 3.0.1)
|
24
|
+
builder (~> 2.1.2)
|
25
|
+
i18n (~> 0.4.1)
|
26
|
+
activerecord (3.0.1)
|
27
|
+
activemodel (= 3.0.1)
|
28
|
+
activesupport (= 3.0.1)
|
29
|
+
arel (~> 1.0.0)
|
30
|
+
tzinfo (~> 0.3.23)
|
31
|
+
activesupport (3.0.1)
|
32
|
+
arel (1.0.1)
|
33
|
+
activesupport (~> 3.0.0)
|
34
|
+
builder (2.1.2)
|
35
|
+
erubis (2.6.6)
|
36
|
+
abstract (>= 1.0.0)
|
37
|
+
hoe (2.6.2)
|
38
|
+
rake (>= 0.8.7)
|
39
|
+
rubyforge (>= 2.0.4)
|
40
|
+
i18n (0.4.1)
|
41
|
+
json_pure (1.4.6)
|
42
|
+
leftright (0.9.0)
|
43
|
+
mocha (0.9.8)
|
44
|
+
rake
|
45
|
+
nokogiri (1.4.3.1)
|
46
|
+
rack (1.2.1)
|
47
|
+
rack-mount (0.6.13)
|
48
|
+
rack (>= 1.0.0)
|
49
|
+
rack-test (0.5.6)
|
50
|
+
rack (>= 1.0)
|
51
|
+
rake (0.8.7)
|
52
|
+
rubyforge (2.0.4)
|
53
|
+
json_pure (>= 1.1.7)
|
54
|
+
test-unit (1.2.3)
|
55
|
+
hoe (>= 1.5.1)
|
56
|
+
tzinfo (0.3.23)
|
57
|
+
webrat (0.7.1)
|
58
|
+
nokogiri (>= 1.2.0)
|
59
|
+
rack (>= 1.0)
|
60
|
+
rack-test (>= 0.5.3)
|
61
|
+
|
62
|
+
PLATFORMS
|
63
|
+
ruby
|
64
|
+
|
65
|
+
DEPENDENCIES
|
66
|
+
actionpack (>= 2.3.0)
|
67
|
+
activerecord (>= 2.3.0)
|
68
|
+
activesupport (>= 2.3.0)
|
69
|
+
leftright (>= 0.0.3)
|
70
|
+
link2!
|
71
|
+
mocha (>= 0.9.8)
|
72
|
+
test-unit (= 1.2.3)
|
73
|
+
webrat (>= 0.7.0)
|
data/Rakefile
CHANGED
@@ -1,56 +1,15 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
require 'bundler'
|
2
|
+
Bundler::GemHelper.install_tasks
|
3
3
|
require 'rake'
|
4
4
|
require 'rake/testtask'
|
5
5
|
require 'rake/rdoctask'
|
6
|
-
require File.join(File.dirname(__FILE__), 'lib', 'link2', 'version')
|
7
6
|
|
8
7
|
# Gem managment tasks.
|
9
8
|
#
|
10
|
-
# == Generate gemspec, build & install locally:
|
11
|
-
#
|
12
|
-
# rake gemspec
|
13
|
-
# rake build
|
14
|
-
# sudo rake install
|
15
|
-
#
|
16
9
|
# == Git tag & push to origin/master and push gem to Rubygems.org:
|
17
10
|
#
|
18
|
-
# rake release
|
19
|
-
#
|
20
|
-
# == Release to Rubygems.org:
|
11
|
+
# $ rake release
|
21
12
|
#
|
22
|
-
# rake gemcutter:release
|
23
|
-
#
|
24
|
-
begin
|
25
|
-
gem 'jeweler'
|
26
|
-
require 'jeweler'
|
27
|
-
|
28
|
-
Jeweler::Tasks.new do |spec|
|
29
|
-
spec.name = "link2"
|
30
|
-
spec.version = ::Link2::VERSION
|
31
|
-
spec.summary = %{Generation next link_to-helper for Rails: Spiced with intelligence, and semantic beauty.}
|
32
|
-
spec.description = spec.summary
|
33
|
-
spec.homepage = "http://github.com/grimen/#{spec.name}"
|
34
|
-
spec.authors = ["Jonas Grimfelt"]
|
35
|
-
spec.email = "grimen@gmail.com"
|
36
|
-
|
37
|
-
spec.files = FileList["[A-Z]*", File.join(*%w[{generators,lib,rails} ** *]).to_s]
|
38
|
-
|
39
|
-
spec.add_dependency 'activesupport', '>= 2.3.0'
|
40
|
-
spec.add_dependency 'actionpack', '>= 2.3.0'
|
41
|
-
|
42
|
-
spec.add_development_dependency 'test-unit', '= 1.2.3'
|
43
|
-
spec.add_development_dependency 'mocha', '>= 0.9.8'
|
44
|
-
spec.add_development_dependency 'webrat', '>= 0.7.0'
|
45
|
-
spec.add_development_dependency 'leftright', '>= 0.0.3'
|
46
|
-
spec.add_development_dependency 'activerecord', '>= 2.3.0'
|
47
|
-
end
|
48
|
-
|
49
|
-
Jeweler::GemcutterTasks.new
|
50
|
-
rescue LoadError
|
51
|
-
puts "Jeweler - or one of its dependencies - is not available. " <<
|
52
|
-
"Install it with: sudo gem install jeweler -s http://gemcutter.org"
|
53
|
-
end
|
54
13
|
|
55
14
|
desc 'Default: run unit tests.'
|
56
15
|
task :default => :test
|
data/TODO
CHANGED
@@ -1,19 +1,21 @@
|
|
1
1
|
TODO
|
2
2
|
|
3
|
+
* [COMPAT:] Check Rails 3 compatibility.
|
4
|
+
|
5
|
+
* [BUG:] link "+", @post failed
|
6
|
+
|
7
|
+
* [BUG:] XSS-issue with labels. (NOTE: Needs more details when this happen, could not reproduce in integration test)
|
8
|
+
|
3
9
|
* [FEATURE:] Fix action mapping procs to handle named scopes. Should work, but do not for some reason. =/
|
4
10
|
|
5
11
|
* [FEATURE:] Fix action mapping procs to receive session, params, etc in a options hash. My mocking/stubbing don't want to work. ='(
|
6
12
|
|
7
13
|
* [TEST:] Integration tests for namespaced controllers/models
|
8
14
|
|
9
|
-
* [DESIGN:] Link2::Brain#link_to_args
|
15
|
+
* [DESIGN:] Link2::Brain#link_to_args should maybe be split into multiple methods when API is settled.
|
10
16
|
|
11
17
|
* [DESIGN:] Merge #label_and_url_for_resource and #url_for_args
|
12
18
|
|
13
|
-
* [TEST:] ORM-tests: DataMapper, MongoMapper
|
14
|
-
|
15
|
-
* [COMPAT:] Check Rails 3 compatibility.
|
16
|
-
|
17
19
|
* [ENHANCEMENT:] Check with Rails routes (RouteSet) if current action is a :member or :collection:
|
18
20
|
|
19
21
|
link(:show) => link(:show, @post)
|
@@ -21,18 +23,14 @@ TODO
|
|
21
23
|
|
22
24
|
NOT SURE:
|
23
25
|
|
26
|
+
* [TEST:] ORM-tests: DataMapper, MongoMapper
|
27
|
+
|
24
28
|
* Make Link2 parse label and title-attribute for the link based on configuration: Link2.label_method = :to_s, Link2.attr_methods = {:title => :description}
|
25
29
|
|
26
30
|
* This works:
|
27
31
|
link_to x, :terms => link_to x, terms_path
|
28
32
|
|
29
33
|
So maybe this should work the same?:
|
30
|
-
|
31
|
-
|
32
|
-
The middle part (auto-detect route for :fraggle before resource :fraggle) maybe too abstract DSL, not sure.
|
33
|
-
|
34
|
-
* Add support for: #link_to_remote + #button_to_remote in Rails 2.x, with:
|
35
|
-
|
36
|
-
link(..., :remote => true)
|
34
|
+
link :terms => link :terms, terms_pat ( <=> link :terms, :terms )
|
37
35
|
|
38
|
-
|
36
|
+
The middle part (auto-detect route for :fraggle before resource :fraggle) maybe too abstract DSL, not sure.
|
data/lib/link2/brain.rb
CHANGED
@@ -292,9 +292,9 @@ module Link2
|
|
292
292
|
|
293
293
|
if ::Link2::Support.record_object?(resource)
|
294
294
|
# Skip any ugly default to_s-value:
|
295
|
-
custom_name = resource.to_s =~ CLASS_INSTANCE_STRING ? resource_class.human_name.downcase : resource.to_s
|
295
|
+
custom_name = resource.to_s =~ CLASS_INSTANCE_STRING ? (resource_class.model_name.human rescue resource_class.human_name).downcase : resource.to_s
|
296
296
|
end
|
297
|
-
custom_name = resource_class.human_name.downcase if custom_name.blank?
|
297
|
+
custom_name = (resource_class.model_name.human rescue resource_class.human_name).downcase if custom_name.blank?
|
298
298
|
custom_name
|
299
299
|
end
|
300
300
|
|
data/lib/link2/locales/en.yml
CHANGED
@@ -2,8 +2,8 @@ en:
|
|
2
2
|
links:
|
3
3
|
home: "Home"
|
4
4
|
back: "Back"
|
5
|
-
new: "New {
|
6
|
-
edit: "Edit {
|
7
|
-
delete: "Delete {
|
8
|
-
show: "Show {
|
9
|
-
index: "Index of {
|
5
|
+
new: "New %{resource}"
|
6
|
+
edit: "Edit %{resource}"
|
7
|
+
delete: "Delete %{resource}"
|
8
|
+
show: "Show %{resource}"
|
9
|
+
index: "Index of %{resources}"
|
data/lib/link2/version.rb
CHANGED
data/link2.gemspec
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "link2/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = "link2"
|
7
|
+
s.version = Link2::VERSION
|
8
|
+
s.platform = Gem::Platform::RUBY
|
9
|
+
s.authors = ["Jonas Grimfelt"]
|
10
|
+
s.email = ["grimen@gmail.com"]
|
11
|
+
s.homepage = "http://github.com/grimen/#{s.name}"
|
12
|
+
s.summary = %{Generation next link_to-helper for Rails: Spiced with intelligence, and semantic beauty.}
|
13
|
+
s.description = s.summary
|
14
|
+
|
15
|
+
s.add_dependency 'activesupport', '>= 2.3.0'
|
16
|
+
s.add_dependency 'actionpack', '>= 2.3.0'
|
17
|
+
|
18
|
+
s.add_development_dependency 'test-unit', '= 1.2.3'
|
19
|
+
s.add_development_dependency 'mocha', '>= 0.9.8'
|
20
|
+
s.add_development_dependency 'webrat', '>= 0.7.0'
|
21
|
+
s.add_development_dependency 'leftright', '>= 0.0.3'
|
22
|
+
s.add_development_dependency 'activerecord', '>= 2.3.0'
|
23
|
+
|
24
|
+
s.files = `git ls-files`.split("\n")
|
25
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
26
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
27
|
+
s.require_paths = ["lib"]
|
28
|
+
end
|
data/test/brain_test.rb
CHANGED
@@ -87,13 +87,13 @@ class BrainTest < ActionView::TestCase
|
|
87
87
|
end
|
88
88
|
|
89
89
|
test "#label_and_url_for_resource: should parse a label and url from a object (e.g. @post)" do
|
90
|
-
store_translations :en, {:links => {:show => "Show {
|
90
|
+
store_translations :en, {:links => {:show => "Show %{resource}"}} do
|
91
91
|
assert_equal ["Show fraggle", fraggle_path(@mookey)], label_and_url_for_resource(@mookey)
|
92
92
|
end
|
93
93
|
end
|
94
94
|
|
95
95
|
test "#label_and_url_for_resource: should parse a label and url from a object (e.g. @post) with respect to to_s-value" do
|
96
|
-
store_translations :en, {:links => {:show => "Show {
|
96
|
+
store_translations :en, {:links => {:show => "Show %{name}"}} do
|
97
97
|
@mookey.class_eval do
|
98
98
|
def to_s
|
99
99
|
""
|
@@ -113,7 +113,7 @@ class BrainTest < ActionView::TestCase
|
|
113
113
|
test "#label_and_url_for_resource: should parse correct label and url from a polymorphic args (e.g. [@user, :blog, @post])" do
|
114
114
|
@mookeys_cool_aid = ::CoolAid.create(:name => 'Super-tasty')
|
115
115
|
|
116
|
-
store_translations :en, {:links => {:show => "Show {
|
116
|
+
store_translations :en, {:links => {:show => "Show %{name}"}} do
|
117
117
|
@mookeys_cool_aid.class_eval do
|
118
118
|
def to_s
|
119
119
|
self.name
|
data/test/i18n_test.rb
CHANGED
@@ -47,9 +47,9 @@ class I18nTest < ActiveSupport::TestCase
|
|
47
47
|
end
|
48
48
|
end
|
49
49
|
|
50
|
-
test "i18n: should be able to translate action with respect to any valid
|
50
|
+
test "i18n: should be able to translate action with respect to any valid " do
|
51
51
|
swap ::Link2, :i18n_scopes => ['links.{{action}}'] do
|
52
|
-
store_translations :en, {:links => {:shout => 'Hello {
|
52
|
+
store_translations :en, {:links => {:shout => 'Hello %{nick}!'}} do
|
53
53
|
i18n_options = {:scope => 'links', :nick => 'Mokey'}
|
54
54
|
|
55
55
|
assert_equal ::I18n.t(:shout, i18n_options), ::Link2::I18n.t(:shout, ::Fraggle.new, :nick => 'Mokey')
|
@@ -59,7 +59,7 @@ class I18nTest < ActiveSupport::TestCase
|
|
59
59
|
|
60
60
|
test "i18n: should not interpolate values for any reserved interpolation keys" do
|
61
61
|
swap ::Link2, :i18n_scopes => ['links.{{action}}'] do
|
62
|
-
store_translations :en, {:links => {:shout => 'Hello {
|
62
|
+
store_translations :en, {:links => {:shout => 'Hello %{scope}!'}} do
|
63
63
|
i18n_options = {:scope => 'links', :name => 'Mokey'}
|
64
64
|
|
65
65
|
assert_raise(I18n::ReservedInterpolationKey) { ::Link2::I18n.t(:shout, ::Fraggle.new, :scope => 'Mokey') }
|
@@ -0,0 +1,49 @@
|
|
1
|
+
<h1><%= "Link2 + Rails = ♥" %></h1>
|
2
|
+
|
3
|
+
<%= link "WIN" %>
|
4
|
+
|
5
|
+
<%= link2 "WIN x 2" %>
|
6
|
+
|
7
|
+
<%= button "WIN x 3" %>
|
8
|
+
|
9
|
+
<%= button2 "WIN x 4" %>
|
10
|
+
|
11
|
+
<%= link "http://rubygems.org" %>
|
12
|
+
|
13
|
+
<%= link "Ruby + Gems = ♥", "http://rubygems.org" %>
|
14
|
+
|
15
|
+
<%= link :home, "/about" %>
|
16
|
+
|
17
|
+
<%= link :home %>
|
18
|
+
|
19
|
+
<%= link :back %>
|
20
|
+
|
21
|
+
<%= link @blue_pony %>
|
22
|
+
|
23
|
+
<%= link [@blue_pony, @pink_pony] %>
|
24
|
+
|
25
|
+
<%= link "Home", :home %>
|
26
|
+
|
27
|
+
<%= link "Back", :back %>
|
28
|
+
|
29
|
+
<%= link :new, Pony %>
|
30
|
+
|
31
|
+
<%= link :new, :pony %>
|
32
|
+
|
33
|
+
<%= link :new, Pony %>
|
34
|
+
|
35
|
+
<%= link :new, Pony.new %>
|
36
|
+
|
37
|
+
<%= link :edit, @blue_pony %>
|
38
|
+
|
39
|
+
<% # TODO: link :edit, [Pony.create, Pony.create] %>
|
40
|
+
|
41
|
+
<%= link :shut_up, @blue_pony %>
|
42
|
+
|
43
|
+
<%= link "New Pony!", :new, Pony, {:color => 'white'}, :class => 'smaller' %>
|
44
|
+
|
45
|
+
<%= link(:new, Pony) { 'Purple Pony!' } %>
|
46
|
+
|
47
|
+
<% link :new, Pony do %>
|
48
|
+
Magenta!
|
49
|
+
<% end %>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# Be sure to restart your server when you modify this file
|
2
2
|
|
3
3
|
# Specifies gem version of Rails to use when vendor/rails is not present
|
4
|
-
RAILS_GEM_VERSION = '2.3.
|
4
|
+
RAILS_GEM_VERSION = '2.3.9' unless defined? RAILS_GEM_VERSION
|
5
5
|
TEST_ORM = :active_record unless defined? TEST_ORM
|
6
6
|
|
7
7
|
# Bootstrap the Rails environment, frameworks, and default configuration
|
File without changes
|
data/test/test_helper.rb
CHANGED
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: link2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 11
|
4
5
|
prerelease: false
|
5
6
|
segments:
|
6
7
|
- 0
|
7
8
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
9
|
+
- 8
|
10
|
+
version: 0.1.8
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Jonas Grimfelt
|
@@ -14,16 +15,18 @@ autorequire:
|
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date: 2010-
|
18
|
+
date: 2010-10-18 00:00:00 +02:00
|
18
19
|
default_executable:
|
19
20
|
dependencies:
|
20
21
|
- !ruby/object:Gem::Dependency
|
21
22
|
name: activesupport
|
22
23
|
prerelease: false
|
23
24
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
24
26
|
requirements:
|
25
27
|
- - ">="
|
26
28
|
- !ruby/object:Gem::Version
|
29
|
+
hash: 3
|
27
30
|
segments:
|
28
31
|
- 2
|
29
32
|
- 3
|
@@ -35,9 +38,11 @@ dependencies:
|
|
35
38
|
name: actionpack
|
36
39
|
prerelease: false
|
37
40
|
requirement: &id002 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
38
42
|
requirements:
|
39
43
|
- - ">="
|
40
44
|
- !ruby/object:Gem::Version
|
45
|
+
hash: 3
|
41
46
|
segments:
|
42
47
|
- 2
|
43
48
|
- 3
|
@@ -49,9 +54,11 @@ dependencies:
|
|
49
54
|
name: test-unit
|
50
55
|
prerelease: false
|
51
56
|
requirement: &id003 !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
52
58
|
requirements:
|
53
59
|
- - "="
|
54
60
|
- !ruby/object:Gem::Version
|
61
|
+
hash: 25
|
55
62
|
segments:
|
56
63
|
- 1
|
57
64
|
- 2
|
@@ -63,9 +70,11 @@ dependencies:
|
|
63
70
|
name: mocha
|
64
71
|
prerelease: false
|
65
72
|
requirement: &id004 !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
66
74
|
requirements:
|
67
75
|
- - ">="
|
68
76
|
- !ruby/object:Gem::Version
|
77
|
+
hash: 43
|
69
78
|
segments:
|
70
79
|
- 0
|
71
80
|
- 9
|
@@ -77,9 +86,11 @@ dependencies:
|
|
77
86
|
name: webrat
|
78
87
|
prerelease: false
|
79
88
|
requirement: &id005 !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
80
90
|
requirements:
|
81
91
|
- - ">="
|
82
92
|
- !ruby/object:Gem::Version
|
93
|
+
hash: 3
|
83
94
|
segments:
|
84
95
|
- 0
|
85
96
|
- 7
|
@@ -91,9 +102,11 @@ dependencies:
|
|
91
102
|
name: leftright
|
92
103
|
prerelease: false
|
93
104
|
requirement: &id006 !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
94
106
|
requirements:
|
95
107
|
- - ">="
|
96
108
|
- !ruby/object:Gem::Version
|
109
|
+
hash: 25
|
97
110
|
segments:
|
98
111
|
- 0
|
99
112
|
- 0
|
@@ -105,9 +118,11 @@ dependencies:
|
|
105
118
|
name: activerecord
|
106
119
|
prerelease: false
|
107
120
|
requirement: &id007 !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
108
122
|
requirements:
|
109
123
|
- - ">="
|
110
124
|
- !ruby/object:Gem::Version
|
125
|
+
hash: 3
|
111
126
|
segments:
|
112
127
|
- 2
|
113
128
|
- 3
|
@@ -116,15 +131,18 @@ dependencies:
|
|
116
131
|
type: :development
|
117
132
|
version_requirements: *id007
|
118
133
|
description: "Generation next link_to-helper for Rails: Spiced with intelligence, and semantic beauty."
|
119
|
-
email:
|
134
|
+
email:
|
135
|
+
- grimen@gmail.com
|
120
136
|
executables: []
|
121
137
|
|
122
138
|
extensions: []
|
123
139
|
|
124
|
-
extra_rdoc_files:
|
125
|
-
|
126
|
-
- TODO
|
140
|
+
extra_rdoc_files: []
|
141
|
+
|
127
142
|
files:
|
143
|
+
- .gitignore
|
144
|
+
- Gemfile
|
145
|
+
- Gemfile.lock
|
128
146
|
- MIT-LICENSE
|
129
147
|
- README.textile
|
130
148
|
- Rakefile
|
@@ -138,34 +156,70 @@ files:
|
|
138
156
|
- lib/link2/locales/en.yml
|
139
157
|
- lib/link2/support.rb
|
140
158
|
- lib/link2/version.rb
|
159
|
+
- link2.gemspec
|
141
160
|
- rails/init.rb
|
161
|
+
- test/brain_test.rb
|
162
|
+
- test/helpers_test.rb
|
163
|
+
- test/i18n_test.rb
|
164
|
+
- test/integration/helpers_integration_test.rb
|
165
|
+
- test/integration/rails_app/app/controllers/application_controller.rb
|
166
|
+
- test/integration/rails_app/app/controllers/home_controller.rb
|
167
|
+
- test/integration/rails_app/app/controllers/ponies_controller.rb
|
168
|
+
- test/integration/rails_app/app/helpers/application_helper.rb
|
169
|
+
- test/integration/rails_app/app/models/active_record/pony.rb
|
170
|
+
- test/integration/rails_app/app/views/home/index.html.erb
|
171
|
+
- test/integration/rails_app/app/views/layouts/application.html.erb
|
172
|
+
- test/integration/rails_app/app/views/ponies/index.html.erb
|
173
|
+
- test/integration/rails_app/app/views/ponies/new.html.erb
|
174
|
+
- test/integration/rails_app/config/boot.rb
|
175
|
+
- test/integration/rails_app/config/database.yml
|
176
|
+
- test/integration/rails_app/config/environment.rb
|
177
|
+
- test/integration/rails_app/config/environments/test.rb
|
178
|
+
- test/integration/rails_app/config/initializers/inflections.rb
|
179
|
+
- test/integration/rails_app/config/initializers/link2.rb
|
180
|
+
- test/integration/rails_app/config/initializers/new_rails_defaults.rb
|
181
|
+
- test/integration/rails_app/config/initializers/session_store.rb
|
182
|
+
- test/integration/rails_app/config/routes.rb
|
183
|
+
- test/integration/rails_app/public/javascripts/application.js
|
184
|
+
- test/link2_test.rb
|
185
|
+
- test/orm/active_record.rb
|
186
|
+
- test/support/assertions_helper.rb
|
187
|
+
- test/support/debug_helper.rb
|
188
|
+
- test/support/substitutions_helper.rb
|
189
|
+
- test/support/webrat_setup.rb
|
190
|
+
- test/support_test.rb
|
191
|
+
- test/test_helper.rb
|
142
192
|
has_rdoc: true
|
143
193
|
homepage: http://github.com/grimen/link2
|
144
194
|
licenses: []
|
145
195
|
|
146
196
|
post_install_message:
|
147
|
-
rdoc_options:
|
148
|
-
|
197
|
+
rdoc_options: []
|
198
|
+
|
149
199
|
require_paths:
|
150
200
|
- lib
|
151
201
|
required_ruby_version: !ruby/object:Gem::Requirement
|
202
|
+
none: false
|
152
203
|
requirements:
|
153
204
|
- - ">="
|
154
205
|
- !ruby/object:Gem::Version
|
206
|
+
hash: 3
|
155
207
|
segments:
|
156
208
|
- 0
|
157
209
|
version: "0"
|
158
210
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
211
|
+
none: false
|
159
212
|
requirements:
|
160
213
|
- - ">="
|
161
214
|
- !ruby/object:Gem::Version
|
215
|
+
hash: 3
|
162
216
|
segments:
|
163
217
|
- 0
|
164
218
|
version: "0"
|
165
219
|
requirements: []
|
166
220
|
|
167
221
|
rubyforge_project:
|
168
|
-
rubygems_version: 1.3.
|
222
|
+
rubygems_version: 1.3.7
|
169
223
|
signing_key:
|
170
224
|
specification_version: 3
|
171
225
|
summary: "Generation next link_to-helper for Rails: Spiced with intelligence, and semantic beauty."
|
@@ -179,7 +233,12 @@ test_files:
|
|
179
233
|
- test/integration/rails_app/app/controllers/ponies_controller.rb
|
180
234
|
- test/integration/rails_app/app/helpers/application_helper.rb
|
181
235
|
- test/integration/rails_app/app/models/active_record/pony.rb
|
236
|
+
- test/integration/rails_app/app/views/home/index.html.erb
|
237
|
+
- test/integration/rails_app/app/views/layouts/application.html.erb
|
238
|
+
- test/integration/rails_app/app/views/ponies/index.html.erb
|
239
|
+
- test/integration/rails_app/app/views/ponies/new.html.erb
|
182
240
|
- test/integration/rails_app/config/boot.rb
|
241
|
+
- test/integration/rails_app/config/database.yml
|
183
242
|
- test/integration/rails_app/config/environment.rb
|
184
243
|
- test/integration/rails_app/config/environments/test.rb
|
185
244
|
- test/integration/rails_app/config/initializers/inflections.rb
|
@@ -187,6 +246,7 @@ test_files:
|
|
187
246
|
- test/integration/rails_app/config/initializers/new_rails_defaults.rb
|
188
247
|
- test/integration/rails_app/config/initializers/session_store.rb
|
189
248
|
- test/integration/rails_app/config/routes.rb
|
249
|
+
- test/integration/rails_app/public/javascripts/application.js
|
190
250
|
- test/link2_test.rb
|
191
251
|
- test/orm/active_record.rb
|
192
252
|
- test/support/assertions_helper.rb
|