dynamic_menu 2.0.2 → 3.0.0.pre1
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +20 -0
- data/Rakefile +32 -17
- data/lib/dynamic_menu/base.rb +17 -0
- data/lib/dynamic_menu/inheritable_menus.rb +10 -0
- data/lib/dynamic_menu/version.rb +3 -0
- data/lib/dynamic_menu.rb +6 -26
- data/lib/engine.rb +6 -8
- data/lib/generators/dynamic_menu/install_generator.rb +9 -0
- data/lib/tasks/dynamic_menu_tasks.rake +4 -0
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/javascripts/application.js +13 -0
- data/test/dummy/app/assets/javascripts/tests.js +2 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/dummy/app/assets/stylesheets/tests.css +4 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/controllers/tests_controller.rb +5 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/helpers/tests_helper.rb +2 -0
- data/test/dummy/app/menus/posts/basic_menu.rb +3 -0
- data/test/dummy/app/menus/posts/edit_menu.rb +3 -0
- data/test/dummy/app/menus/tests/index.rb +8 -0
- data/test/dummy/app/models/test.rb +2 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/app/views/tests/index.html.erb +5 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/config/application.rb +23 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +29 -0
- data/test/dummy/config/environments/production.rb +80 -0
- data/test/dummy/config/environments/test.rb +36 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +12 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/routes.rb +57 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20130701143737_create_tests.rb +9 -0
- data/test/dummy/db/schema.rb +22 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +1525 -0
- data/test/dummy/public/404.html +58 -0
- data/test/dummy/public/422.html +58 -0
- data/test/dummy/public/500.html +57 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/test/fixtures/tests.yml +7 -0
- data/test/dummy/test/functional/tests_controller_test.rb +7 -0
- data/test/dummy/test/models/test_test.rb +7 -0
- data/test/dummy/test/unit/helpers/tests_helper_test.rb +4 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/032e248be6eea6bc08d9f4e7545bdb87 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/1af8985855dd1d94073a535d054d703e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5e3c87da2440127e7053354c20c25b1e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a928392a6eef213eb3bdcf61fdff30f6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ad14978905c55a37b0ff34c6d01da15c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/fb73ad3c1bb98bc69153c7f8a81f41aa +0 -0
- data/test/dynamic_menu_test.rb +7 -0
- data/test/test_helper.rb +15 -0
- metadata +168 -30
- data/Manifest +0 -4
- data/README.md +0 -57
- data/dynamic_menu.gemspec +0 -30
@@ -0,0 +1,58 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<style>
|
6
|
+
body {
|
7
|
+
background-color: #EFEFEF;
|
8
|
+
color: #2E2F30;
|
9
|
+
text-align: center;
|
10
|
+
font-family: arial, sans-serif;
|
11
|
+
}
|
12
|
+
|
13
|
+
div.dialog {
|
14
|
+
width: 25em;
|
15
|
+
margin: 4em auto 0 auto;
|
16
|
+
border: 1px solid #CCC;
|
17
|
+
border-right-color: #999;
|
18
|
+
border-left-color: #999;
|
19
|
+
border-bottom-color: #BBB;
|
20
|
+
border-top: #B00100 solid 4px;
|
21
|
+
border-top-left-radius: 9px;
|
22
|
+
border-top-right-radius: 9px;
|
23
|
+
background-color: white;
|
24
|
+
padding: 7px 4em 0 4em;
|
25
|
+
}
|
26
|
+
|
27
|
+
h1 {
|
28
|
+
font-size: 100%;
|
29
|
+
color: #730E15;
|
30
|
+
line-height: 1.5em;
|
31
|
+
}
|
32
|
+
|
33
|
+
body > p {
|
34
|
+
width: 33em;
|
35
|
+
margin: 0 auto 1em;
|
36
|
+
padding: 1em 0;
|
37
|
+
background-color: #F7F7F7;
|
38
|
+
border: 1px solid #CCC;
|
39
|
+
border-right-color: #999;
|
40
|
+
border-bottom-color: #999;
|
41
|
+
border-bottom-left-radius: 4px;
|
42
|
+
border-bottom-right-radius: 4px;
|
43
|
+
border-top-color: #DADADA;
|
44
|
+
color: #666;
|
45
|
+
box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
|
46
|
+
}
|
47
|
+
</style>
|
48
|
+
</head>
|
49
|
+
|
50
|
+
<body>
|
51
|
+
<!-- This file lives in public/404.html -->
|
52
|
+
<div class="dialog">
|
53
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
54
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
55
|
+
</div>
|
56
|
+
<p>If you are the application owner check the logs for more information.</p>
|
57
|
+
</body>
|
58
|
+
</html>
|
@@ -0,0 +1,58 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<style>
|
6
|
+
body {
|
7
|
+
background-color: #EFEFEF;
|
8
|
+
color: #2E2F30;
|
9
|
+
text-align: center;
|
10
|
+
font-family: arial, sans-serif;
|
11
|
+
}
|
12
|
+
|
13
|
+
div.dialog {
|
14
|
+
width: 25em;
|
15
|
+
margin: 4em auto 0 auto;
|
16
|
+
border: 1px solid #CCC;
|
17
|
+
border-right-color: #999;
|
18
|
+
border-left-color: #999;
|
19
|
+
border-bottom-color: #BBB;
|
20
|
+
border-top: #B00100 solid 4px;
|
21
|
+
border-top-left-radius: 9px;
|
22
|
+
border-top-right-radius: 9px;
|
23
|
+
background-color: white;
|
24
|
+
padding: 7px 4em 0 4em;
|
25
|
+
}
|
26
|
+
|
27
|
+
h1 {
|
28
|
+
font-size: 100%;
|
29
|
+
color: #730E15;
|
30
|
+
line-height: 1.5em;
|
31
|
+
}
|
32
|
+
|
33
|
+
body > p {
|
34
|
+
width: 33em;
|
35
|
+
margin: 0 auto 1em;
|
36
|
+
padding: 1em 0;
|
37
|
+
background-color: #F7F7F7;
|
38
|
+
border: 1px solid #CCC;
|
39
|
+
border-right-color: #999;
|
40
|
+
border-bottom-color: #999;
|
41
|
+
border-bottom-left-radius: 4px;
|
42
|
+
border-bottom-right-radius: 4px;
|
43
|
+
border-top-color: #DADADA;
|
44
|
+
color: #666;
|
45
|
+
box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
|
46
|
+
}
|
47
|
+
</style>
|
48
|
+
</head>
|
49
|
+
|
50
|
+
<body>
|
51
|
+
<!-- This file lives in public/422.html -->
|
52
|
+
<div class="dialog">
|
53
|
+
<h1>The change you wanted was rejected.</h1>
|
54
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
55
|
+
</div>
|
56
|
+
<p>If you are the application owner check the logs for more information.</p>
|
57
|
+
</body>
|
58
|
+
</html>
|
@@ -0,0 +1,57 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<style>
|
6
|
+
body {
|
7
|
+
background-color: #EFEFEF;
|
8
|
+
color: #2E2F30;
|
9
|
+
text-align: center;
|
10
|
+
font-family: arial, sans-serif;
|
11
|
+
}
|
12
|
+
|
13
|
+
div.dialog {
|
14
|
+
width: 25em;
|
15
|
+
margin: 4em auto 0 auto;
|
16
|
+
border: 1px solid #CCC;
|
17
|
+
border-right-color: #999;
|
18
|
+
border-left-color: #999;
|
19
|
+
border-bottom-color: #BBB;
|
20
|
+
border-top: #B00100 solid 4px;
|
21
|
+
border-top-left-radius: 9px;
|
22
|
+
border-top-right-radius: 9px;
|
23
|
+
background-color: white;
|
24
|
+
padding: 7px 4em 0 4em;
|
25
|
+
}
|
26
|
+
|
27
|
+
h1 {
|
28
|
+
font-size: 100%;
|
29
|
+
color: #730E15;
|
30
|
+
line-height: 1.5em;
|
31
|
+
}
|
32
|
+
|
33
|
+
body > p {
|
34
|
+
width: 33em;
|
35
|
+
margin: 0 auto 1em;
|
36
|
+
padding: 1em 0;
|
37
|
+
background-color: #F7F7F7;
|
38
|
+
border: 1px solid #CCC;
|
39
|
+
border-right-color: #999;
|
40
|
+
border-bottom-color: #999;
|
41
|
+
border-bottom-left-radius: 4px;
|
42
|
+
border-bottom-right-radius: 4px;
|
43
|
+
border-top-color: #DADADA;
|
44
|
+
color: #666;
|
45
|
+
box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
|
46
|
+
}
|
47
|
+
</style>
|
48
|
+
</head>
|
49
|
+
|
50
|
+
<body>
|
51
|
+
<!-- This file lives in public/500.html -->
|
52
|
+
<div class="dialog">
|
53
|
+
<h1>We're sorry, but something went wrong.</h1>
|
54
|
+
</div>
|
55
|
+
<p>If you are the application owner check the logs for more information.</p>
|
56
|
+
</body>
|
57
|
+
</html>
|
File without changes
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
# Configure Rails Environment
|
2
|
+
ENV["RAILS_ENV"] = "test"
|
3
|
+
|
4
|
+
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
5
|
+
require "rails/test_help"
|
6
|
+
|
7
|
+
Rails.backtrace_cleaner.remove_silencers!
|
8
|
+
|
9
|
+
# Load support files
|
10
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
11
|
+
|
12
|
+
# Load fixtures from the engine
|
13
|
+
if ActiveSupport::TestCase.method_defined?(:fixture_path=)
|
14
|
+
ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
|
15
|
+
end
|
metadata
CHANGED
@@ -1,56 +1,131 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dynamic_menu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
5
|
-
prerelease:
|
4
|
+
version: 3.0.0.pre1
|
5
|
+
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
|
-
- Travis
|
8
|
+
- Travis Pessetto
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-07-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
15
|
+
name: rails
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 4.0.0
|
22
|
+
type: :development
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 4.0.0
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: sqlite3
|
16
32
|
requirement: !ruby/object:Gem::Requirement
|
17
33
|
none: false
|
18
34
|
requirements:
|
19
35
|
- - ! '>='
|
20
36
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
22
|
-
type: :
|
37
|
+
version: '0'
|
38
|
+
type: :development
|
23
39
|
prerelease: false
|
24
40
|
version_requirements: !ruby/object:Gem::Requirement
|
25
41
|
none: false
|
26
42
|
requirements:
|
27
43
|
- - ! '>='
|
28
44
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
30
|
-
description:
|
31
|
-
email:
|
45
|
+
version: '0'
|
46
|
+
description: Dynamic_menu is a gem aimed at making menus more DRY with inheritance
|
47
|
+
email:
|
48
|
+
- support@pessetto.com
|
32
49
|
executables: []
|
33
50
|
extensions: []
|
34
|
-
extra_rdoc_files:
|
35
|
-
- README.md
|
36
|
-
- lib/dynamic_menu.rb
|
51
|
+
extra_rdoc_files: []
|
37
52
|
files:
|
38
|
-
-
|
39
|
-
-
|
53
|
+
- lib/dynamic_menu/base.rb
|
54
|
+
- lib/dynamic_menu/inheritable_menus.rb
|
55
|
+
- lib/dynamic_menu/version.rb
|
40
56
|
- lib/dynamic_menu.rb
|
41
57
|
- lib/engine.rb
|
42
|
-
-
|
43
|
-
-
|
44
|
-
|
58
|
+
- lib/generators/dynamic_menu/install_generator.rb
|
59
|
+
- lib/tasks/dynamic_menu_tasks.rake
|
60
|
+
- MIT-LICENSE
|
61
|
+
- Rakefile
|
62
|
+
- test/dummy/app/assets/javascripts/application.js
|
63
|
+
- test/dummy/app/assets/javascripts/tests.js
|
64
|
+
- test/dummy/app/assets/stylesheets/application.css
|
65
|
+
- test/dummy/app/assets/stylesheets/tests.css
|
66
|
+
- test/dummy/app/controllers/application_controller.rb
|
67
|
+
- test/dummy/app/controllers/tests_controller.rb
|
68
|
+
- test/dummy/app/helpers/application_helper.rb
|
69
|
+
- test/dummy/app/helpers/tests_helper.rb
|
70
|
+
- test/dummy/app/menus/posts/basic_menu.rb
|
71
|
+
- test/dummy/app/menus/posts/edit_menu.rb
|
72
|
+
- test/dummy/app/menus/tests/index.rb
|
73
|
+
- test/dummy/app/models/test.rb
|
74
|
+
- test/dummy/app/views/layouts/application.html.erb
|
75
|
+
- test/dummy/app/views/tests/index.html.erb
|
76
|
+
- test/dummy/bin/bundle
|
77
|
+
- test/dummy/bin/rails
|
78
|
+
- test/dummy/bin/rake
|
79
|
+
- test/dummy/config/application.rb
|
80
|
+
- test/dummy/config/boot.rb
|
81
|
+
- test/dummy/config/database.yml
|
82
|
+
- test/dummy/config/environment.rb
|
83
|
+
- test/dummy/config/environments/development.rb
|
84
|
+
- test/dummy/config/environments/production.rb
|
85
|
+
- test/dummy/config/environments/test.rb
|
86
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
87
|
+
- test/dummy/config/initializers/filter_parameter_logging.rb
|
88
|
+
- test/dummy/config/initializers/inflections.rb
|
89
|
+
- test/dummy/config/initializers/mime_types.rb
|
90
|
+
- test/dummy/config/initializers/secret_token.rb
|
91
|
+
- test/dummy/config/initializers/session_store.rb
|
92
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
93
|
+
- test/dummy/config/locales/en.yml
|
94
|
+
- test/dummy/config/routes.rb
|
95
|
+
- test/dummy/config.ru
|
96
|
+
- test/dummy/db/development.sqlite3
|
97
|
+
- test/dummy/db/migrate/20130701143737_create_tests.rb
|
98
|
+
- test/dummy/db/schema.rb
|
99
|
+
- test/dummy/db/test.sqlite3
|
100
|
+
- test/dummy/log/development.log
|
101
|
+
- test/dummy/public/404.html
|
102
|
+
- test/dummy/public/422.html
|
103
|
+
- test/dummy/public/500.html
|
104
|
+
- test/dummy/public/favicon.ico
|
105
|
+
- test/dummy/Rakefile
|
106
|
+
- test/dummy/README.rdoc
|
107
|
+
- test/dummy/test/fixtures/tests.yml
|
108
|
+
- test/dummy/test/functional/tests_controller_test.rb
|
109
|
+
- test/dummy/test/models/test_test.rb
|
110
|
+
- test/dummy/test/unit/helpers/tests_helper_test.rb
|
111
|
+
- test/dummy/tmp/cache/assets/development/sprockets/032e248be6eea6bc08d9f4e7545bdb87
|
112
|
+
- test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705
|
113
|
+
- test/dummy/tmp/cache/assets/development/sprockets/1af8985855dd1d94073a535d054d703e
|
114
|
+
- test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af
|
115
|
+
- test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953
|
116
|
+
- test/dummy/tmp/cache/assets/development/sprockets/5e3c87da2440127e7053354c20c25b1e
|
117
|
+
- test/dummy/tmp/cache/assets/development/sprockets/a928392a6eef213eb3bdcf61fdff30f6
|
118
|
+
- test/dummy/tmp/cache/assets/development/sprockets/ad14978905c55a37b0ff34c6d01da15c
|
119
|
+
- test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994
|
120
|
+
- test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6
|
121
|
+
- test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655
|
122
|
+
- test/dummy/tmp/cache/assets/development/sprockets/fb73ad3c1bb98bc69153c7f8a81f41aa
|
123
|
+
- test/dynamic_menu_test.rb
|
124
|
+
- test/test_helper.rb
|
125
|
+
homepage: https://github.com/plowdawg/dynamic_menu
|
45
126
|
licenses: []
|
46
127
|
post_install_message:
|
47
|
-
rdoc_options:
|
48
|
-
- --line-numbers
|
49
|
-
- --inline-source
|
50
|
-
- --title
|
51
|
-
- Dynamic_menu
|
52
|
-
- --main
|
53
|
-
- README.rdoc
|
128
|
+
rdoc_options: []
|
54
129
|
require_paths:
|
55
130
|
- lib
|
56
131
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -62,13 +137,76 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
62
137
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
63
138
|
none: false
|
64
139
|
requirements:
|
65
|
-
- - ! '
|
140
|
+
- - ! '>'
|
66
141
|
- !ruby/object:Gem::Version
|
67
|
-
version:
|
142
|
+
version: 1.3.1
|
68
143
|
requirements: []
|
69
|
-
rubyforge_project:
|
144
|
+
rubyforge_project:
|
70
145
|
rubygems_version: 1.8.24
|
71
146
|
signing_key:
|
72
147
|
specification_version: 3
|
73
|
-
summary:
|
74
|
-
test_files:
|
148
|
+
summary: Dynamic_menu is a gem aimed at making menus more DRY with inheritance.
|
149
|
+
test_files:
|
150
|
+
- test/dummy/app/assets/javascripts/application.js
|
151
|
+
- test/dummy/app/assets/javascripts/tests.js
|
152
|
+
- test/dummy/app/assets/stylesheets/application.css
|
153
|
+
- test/dummy/app/assets/stylesheets/tests.css
|
154
|
+
- test/dummy/app/controllers/application_controller.rb
|
155
|
+
- test/dummy/app/controllers/tests_controller.rb
|
156
|
+
- test/dummy/app/helpers/application_helper.rb
|
157
|
+
- test/dummy/app/helpers/tests_helper.rb
|
158
|
+
- test/dummy/app/menus/posts/basic_menu.rb
|
159
|
+
- test/dummy/app/menus/posts/edit_menu.rb
|
160
|
+
- test/dummy/app/menus/tests/index.rb
|
161
|
+
- test/dummy/app/models/test.rb
|
162
|
+
- test/dummy/app/views/layouts/application.html.erb
|
163
|
+
- test/dummy/app/views/tests/index.html.erb
|
164
|
+
- test/dummy/bin/bundle
|
165
|
+
- test/dummy/bin/rails
|
166
|
+
- test/dummy/bin/rake
|
167
|
+
- test/dummy/config/application.rb
|
168
|
+
- test/dummy/config/boot.rb
|
169
|
+
- test/dummy/config/database.yml
|
170
|
+
- test/dummy/config/environment.rb
|
171
|
+
- test/dummy/config/environments/development.rb
|
172
|
+
- test/dummy/config/environments/production.rb
|
173
|
+
- test/dummy/config/environments/test.rb
|
174
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
175
|
+
- test/dummy/config/initializers/filter_parameter_logging.rb
|
176
|
+
- test/dummy/config/initializers/inflections.rb
|
177
|
+
- test/dummy/config/initializers/mime_types.rb
|
178
|
+
- test/dummy/config/initializers/secret_token.rb
|
179
|
+
- test/dummy/config/initializers/session_store.rb
|
180
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
181
|
+
- test/dummy/config/locales/en.yml
|
182
|
+
- test/dummy/config/routes.rb
|
183
|
+
- test/dummy/config.ru
|
184
|
+
- test/dummy/db/development.sqlite3
|
185
|
+
- test/dummy/db/migrate/20130701143737_create_tests.rb
|
186
|
+
- test/dummy/db/schema.rb
|
187
|
+
- test/dummy/db/test.sqlite3
|
188
|
+
- test/dummy/log/development.log
|
189
|
+
- test/dummy/public/404.html
|
190
|
+
- test/dummy/public/422.html
|
191
|
+
- test/dummy/public/500.html
|
192
|
+
- test/dummy/public/favicon.ico
|
193
|
+
- test/dummy/Rakefile
|
194
|
+
- test/dummy/README.rdoc
|
195
|
+
- test/dummy/test/fixtures/tests.yml
|
196
|
+
- test/dummy/test/functional/tests_controller_test.rb
|
197
|
+
- test/dummy/test/models/test_test.rb
|
198
|
+
- test/dummy/test/unit/helpers/tests_helper_test.rb
|
199
|
+
- test/dummy/tmp/cache/assets/development/sprockets/032e248be6eea6bc08d9f4e7545bdb87
|
200
|
+
- test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705
|
201
|
+
- test/dummy/tmp/cache/assets/development/sprockets/1af8985855dd1d94073a535d054d703e
|
202
|
+
- test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af
|
203
|
+
- test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953
|
204
|
+
- test/dummy/tmp/cache/assets/development/sprockets/5e3c87da2440127e7053354c20c25b1e
|
205
|
+
- test/dummy/tmp/cache/assets/development/sprockets/a928392a6eef213eb3bdcf61fdff30f6
|
206
|
+
- test/dummy/tmp/cache/assets/development/sprockets/ad14978905c55a37b0ff34c6d01da15c
|
207
|
+
- test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994
|
208
|
+
- test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6
|
209
|
+
- test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655
|
210
|
+
- test/dummy/tmp/cache/assets/development/sprockets/fb73ad3c1bb98bc69153c7f8a81f41aa
|
211
|
+
- test/dynamic_menu_test.rb
|
212
|
+
- test/test_helper.rb
|
data/Manifest
DELETED
data/README.md
DELETED
@@ -1,57 +0,0 @@
|
|
1
|
-
# Dynamic Menu
|
2
|
-
|
3
|
-
This gem provides an easy way to generate a menu that changes according to the controller
|
4
|
-
action. It stores everything in an array which can later be accessed via the view.
|
5
|
-
|
6
|
-
#Getting Help
|
7
|
-
|
8
|
-
*Email me directly at support@pessetto.com and I will see what I can do
|
9
|
-
|
10
|
-
#Installation
|
11
|
-
|
12
|
-
The latest version, and probably the best to use, is 2.0.0 which no longer requires you to
|
13
|
-
manually declare the array. To install just put the following in your Gemfile and run
|
14
|
-
bundle install or bundle update:
|
15
|
-
|
16
|
-
```ruby
|
17
|
-
gem 'dynamic_menu','~>2.0.0'
|
18
|
-
```
|
19
|
-
|
20
|
-
Note: This gem was developed for Rails 3 and will most not work with anything under Rails 3.
|
21
|
-
|
22
|
-
##Getting Started
|
23
|
-
|
24
|
-
This gem features an engine that will automatically load it into your controllers. However,
|
25
|
-
you will need to include in your views
|
26
|
-
|
27
|
-
```erb
|
28
|
-
<% @actionMenuItems.each do |menuitem|%>
|
29
|
-
|
30
|
-
<%= menuitem %>
|
31
|
-
|
32
|
-
<%end%>
|
33
|
-
```
|
34
|
-
|
35
|
-
Note: your array must be @actionMenuItems, do not define this in the controller, the Gem will
|
36
|
-
do it automatically for you unless you are using a pre-2.0 release.
|
37
|
-
|
38
|
-
To add a link in your menu from your controller it is just a matter of using newmenuitem()
|
39
|
-
Example
|
40
|
-
|
41
|
-
```ruby
|
42
|
-
def index
|
43
|
-
|
44
|
-
#...code here
|
45
|
-
|
46
|
-
newmenuitem("New Thing",new_thing_path)
|
47
|
-
|
48
|
-
#...code here
|
49
|
-
```
|
50
|
-
|
51
|
-
##Functions
|
52
|
-
There is only one function, newmenuitem, that this gem currently has, but can have various
|
53
|
-
values sent to it.
|
54
|
-
|
55
|
-
* newmenuitem(<string>name,<string>link) provides a regular get link to to link and displays name on the menu
|
56
|
-
* newmenuitem(<string>name,<string>link,:delete,<string>confirm) will send a delete request to link with the confirmation message of confirm
|
57
|
-
* newmenuitem(<string>name,:submit) will create a link to submit the form on the page assumming you don't want the regular button and listen for an enter via JavaScript
|
data/dynamic_menu.gemspec
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
2
|
-
|
3
|
-
Gem::Specification.new do |s|
|
4
|
-
s.name = %q{dynamic_menu}
|
5
|
-
s.version = "2.0.2"
|
6
|
-
|
7
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
|
-
s.authors = [%q{Travis Pessettto}]
|
9
|
-
s.date = Date.today
|
10
|
-
s.description = %q{Allow the creation of Menus}
|
11
|
-
s.email = %q{travis@pessetto.com}
|
12
|
-
s.extra_rdoc_files = [%q{README.md}, %q{lib/dynamic_menu.rb}]
|
13
|
-
s.files = [%q{README.md}, %q{Rakefile}, %q{lib/dynamic_menu.rb},%q{lib/engine.rb}, %q{Manifest}, %q{dynamic_menu.gemspec}]
|
14
|
-
s.homepage = %q{http://pessetto.com}
|
15
|
-
s.rdoc_options = [%q{--line-numbers}, %q{--inline-source}, %q{--title}, %q{Dynamic_menu}, %q{--main}, %q{README.rdoc}]
|
16
|
-
s.require_paths = [%q{lib}]
|
17
|
-
s.rubyforge_project = %q{dynamic_menu}
|
18
|
-
s.rubygems_version = %q{1.8.6}
|
19
|
-
s.summary = %q{Allow the creation of Menus}
|
20
|
-
s.add_dependency('jquery_cheats', '>= 5.2.2')
|
21
|
-
|
22
|
-
if s.respond_to? :specification_version then
|
23
|
-
s.specification_version = 3
|
24
|
-
|
25
|
-
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
26
|
-
else
|
27
|
-
end
|
28
|
-
else
|
29
|
-
end
|
30
|
-
end
|