mariner 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.autotest +10 -0
- data/.gitignore +18 -0
- data/.pairs +6 -0
- data/.rspec +1 -0
- data/.travis.yml +5 -0
- data/Gemfile +12 -0
- data/LICENSE +22 -0
- data/README.md +59 -0
- data/Rakefile +13 -0
- data/lib/mariner.rb +49 -0
- data/lib/mariner/errors.rb +26 -0
- data/lib/mariner/helper.rb +96 -0
- data/lib/mariner/railtie.rb +21 -0
- data/lib/mariner/renderer/base.rb +42 -0
- data/lib/mariner/store.rb +76 -0
- data/lib/mariner/unordered_list_renderer.rb +202 -0
- data/lib/mariner/url.rb +54 -0
- data/lib/mariner/version.rb +3 -0
- data/mariner.gemspec +20 -0
- data/spec/integrations/unordered_list_renderer_spec.rb +90 -0
- data/spec/mariner_spec.rb +29 -0
- data/spec/navigation/helper_spec.rb +131 -0
- data/spec/navigation/railtie_spec.rb +17 -0
- data/spec/navigation/renderer/base_spec.rb +25 -0
- data/spec/navigation/store_spec.rb +80 -0
- data/spec/navigation/unordered_list_render_spec.rb +93 -0
- data/spec/navigation/url_spec.rb +45 -0
- data/spec/rails_app/.gitignore +15 -0
- data/spec/rails_app/Rakefile +7 -0
- data/spec/rails_app/app/assets/javascripts/application.js +15 -0
- data/spec/rails_app/app/assets/stylesheets/application.css +13 -0
- data/spec/rails_app/app/controllers/application_controller.rb +6 -0
- data/spec/rails_app/app/helpers/application_helper.rb +2 -0
- data/spec/rails_app/app/mailers/.gitkeep +0 -0
- data/spec/rails_app/app/models/.gitkeep +0 -0
- data/spec/rails_app/app/views/application/condensed.html.erb +1 -0
- data/spec/rails_app/app/views/application/normal.html.erb +1 -0
- data/spec/rails_app/app/views/layouts/application.html.erb +12 -0
- data/spec/rails_app/config.ru +4 -0
- data/spec/rails_app/config/application.rb +64 -0
- data/spec/rails_app/config/boot.rb +3 -0
- data/spec/rails_app/config/database.yml +3 -0
- data/spec/rails_app/config/environment.rb +5 -0
- data/spec/rails_app/config/environments/test.rb +37 -0
- data/spec/rails_app/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/rails_app/config/initializers/inflections.rb +15 -0
- data/spec/rails_app/config/initializers/mime_types.rb +5 -0
- data/spec/rails_app/config/initializers/secret_token.rb +7 -0
- data/spec/rails_app/config/initializers/session_store.rb +8 -0
- data/spec/rails_app/config/initializers/wrap_parameters.rb +14 -0
- data/spec/rails_app/config/locales/en.yml +5 -0
- data/spec/rails_app/config/routes.rb +9 -0
- data/spec/rails_app/db/.gitkeep +0 -0
- data/spec/rails_app/lib/assets/.gitkeep +0 -0
- data/spec/rails_app/lib/tasks/.gitkeep +0 -0
- data/spec/rails_app/log/.gitkeep +0 -0
- data/spec/rails_app/script/rails +6 -0
- data/spec/rails_app/vendor/assets/javascripts/.gitkeep +0 -0
- data/spec/rails_app/vendor/assets/stylesheets/.gitkeep +0 -0
- data/spec/rails_app/vendor/plugins/.gitkeep +0 -0
- data/spec/spec_helper.rb +8 -0
- metadata +175 -0
@@ -0,0 +1,37 @@
|
|
1
|
+
RailsApp::Application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb
|
3
|
+
|
4
|
+
# The test environment is used exclusively to run your application's
|
5
|
+
# test suite. You never need to work with it otherwise. Remember that
|
6
|
+
# your test database is "scratch space" for the test suite and is wiped
|
7
|
+
# and recreated between test runs. Don't rely on the data there!
|
8
|
+
config.cache_classes = true
|
9
|
+
|
10
|
+
# Configure static asset server for tests with Cache-Control for performance
|
11
|
+
config.serve_static_assets = true
|
12
|
+
config.static_cache_control = "public, max-age=3600"
|
13
|
+
|
14
|
+
# Log error messages when you accidentally call methods on nil
|
15
|
+
config.whiny_nils = true
|
16
|
+
|
17
|
+
# Show full error reports and disable caching
|
18
|
+
config.consider_all_requests_local = true
|
19
|
+
config.action_controller.perform_caching = false
|
20
|
+
|
21
|
+
# Raise exceptions instead of rendering exception templates
|
22
|
+
config.action_dispatch.show_exceptions = false
|
23
|
+
|
24
|
+
# Disable request forgery protection in test environment
|
25
|
+
config.action_controller.allow_forgery_protection = false
|
26
|
+
|
27
|
+
# Tell Action Mailer not to deliver emails to the real world.
|
28
|
+
# The :test delivery method accumulates sent emails in the
|
29
|
+
# ActionMailer::Base.deliveries array.
|
30
|
+
config.action_mailer.delivery_method = :test
|
31
|
+
|
32
|
+
# Raise exception on mass assignment protection for Active Record models
|
33
|
+
# config.active_record.mass_assignment_sanitizer = :strict
|
34
|
+
|
35
|
+
# Print deprecation notices to the stderr
|
36
|
+
config.active_support.deprecation = :stderr
|
37
|
+
end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
|
4
|
+
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
|
5
|
+
|
6
|
+
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
|
7
|
+
# Rails.backtrace_cleaner.remove_silencers!
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Add new inflection rules using the following format
|
4
|
+
# (all these examples are active by default):
|
5
|
+
# ActiveSupport::Inflector.inflections do |inflect|
|
6
|
+
# inflect.plural /^(ox)$/i, '\1en'
|
7
|
+
# inflect.singular /^(ox)en/i, '\1'
|
8
|
+
# inflect.irregular 'person', 'people'
|
9
|
+
# inflect.uncountable %w( fish sheep )
|
10
|
+
# end
|
11
|
+
#
|
12
|
+
# These inflection rules are supported but not enabled by default:
|
13
|
+
# ActiveSupport::Inflector.inflections do |inflect|
|
14
|
+
# inflect.acronym 'RESTful'
|
15
|
+
# end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Your secret key for verifying the integrity of signed cookies.
|
4
|
+
# If you change this key, all old signed cookies will become invalid!
|
5
|
+
# Make sure the secret is at least 30 characters and all random,
|
6
|
+
# no regular words or you'll be exposed to dictionary attacks.
|
7
|
+
RailsApp::Application.config.secret_token = '597a9c5a3fdca578ebf510a7d1f133615c83f9a94f655722b30b19df4146b5d141bb5fd7f20ea4dadade0ce9d682e451b8cd38d8ffc262a23260f805c5802cbf'
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
RailsApp::Application.config.session_store :cookie_store, :key => '_rails_app_session'
|
4
|
+
|
5
|
+
# Use the database for sessions instead of the cookie-based default,
|
6
|
+
# which shouldn't be used to store highly confidential information
|
7
|
+
# (create the session table with "rails generate session_migration")
|
8
|
+
# RailsApp::Application.config.session_store :active_record_store
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
#
|
3
|
+
# This file contains settings for ActionController::ParamsWrapper which
|
4
|
+
# is enabled by default.
|
5
|
+
|
6
|
+
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
7
|
+
ActiveSupport.on_load(:action_controller) do
|
8
|
+
wrap_parameters :format => [:json]
|
9
|
+
end
|
10
|
+
|
11
|
+
# Disable root element in JSON by default.
|
12
|
+
ActiveSupport.on_load(:active_record) do
|
13
|
+
self.include_root_in_json = false
|
14
|
+
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,6 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
|
+
|
4
|
+
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
5
|
+
require File.expand_path('../../config/boot', __FILE__)
|
6
|
+
require 'rails/commands'
|
File without changes
|
File without changes
|
File without changes
|
data/spec/spec_helper.rb
ADDED
metadata
ADDED
@@ -0,0 +1,175 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: mariner
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Jesse Trimble
|
9
|
+
- Adam Albrecht
|
10
|
+
autorequire:
|
11
|
+
bindir: bin
|
12
|
+
cert_chain: []
|
13
|
+
date: 2012-05-24 00:00:00.000000000 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: abyss
|
17
|
+
requirement: &70198988231340 !ruby/object:Gem::Requirement
|
18
|
+
none: false
|
19
|
+
requirements:
|
20
|
+
- - ! '>='
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '0'
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: *70198988231340
|
26
|
+
- !ruby/object:Gem::Dependency
|
27
|
+
name: rails
|
28
|
+
requirement: &70198984120560 !ruby/object:Gem::Requirement
|
29
|
+
none: false
|
30
|
+
requirements:
|
31
|
+
- - ~>
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 3.2.0
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: *70198984120560
|
37
|
+
description: A DSL for creating navigation structures based on the Rails routing table
|
38
|
+
using Abyss.
|
39
|
+
email:
|
40
|
+
- jlowelltrim@gmail.com
|
41
|
+
- adam.albrecht@gmail.com
|
42
|
+
executables: []
|
43
|
+
extensions: []
|
44
|
+
extra_rdoc_files: []
|
45
|
+
files:
|
46
|
+
- .autotest
|
47
|
+
- .gitignore
|
48
|
+
- .pairs
|
49
|
+
- .rspec
|
50
|
+
- .travis.yml
|
51
|
+
- Gemfile
|
52
|
+
- LICENSE
|
53
|
+
- README.md
|
54
|
+
- Rakefile
|
55
|
+
- lib/mariner.rb
|
56
|
+
- lib/mariner/errors.rb
|
57
|
+
- lib/mariner/helper.rb
|
58
|
+
- lib/mariner/railtie.rb
|
59
|
+
- lib/mariner/renderer/base.rb
|
60
|
+
- lib/mariner/store.rb
|
61
|
+
- lib/mariner/unordered_list_renderer.rb
|
62
|
+
- lib/mariner/url.rb
|
63
|
+
- lib/mariner/version.rb
|
64
|
+
- mariner.gemspec
|
65
|
+
- spec/integrations/unordered_list_renderer_spec.rb
|
66
|
+
- spec/mariner_spec.rb
|
67
|
+
- spec/navigation/helper_spec.rb
|
68
|
+
- spec/navigation/railtie_spec.rb
|
69
|
+
- spec/navigation/renderer/base_spec.rb
|
70
|
+
- spec/navigation/store_spec.rb
|
71
|
+
- spec/navigation/unordered_list_render_spec.rb
|
72
|
+
- spec/navigation/url_spec.rb
|
73
|
+
- spec/rails_app/.gitignore
|
74
|
+
- spec/rails_app/Rakefile
|
75
|
+
- spec/rails_app/app/assets/javascripts/application.js
|
76
|
+
- spec/rails_app/app/assets/stylesheets/application.css
|
77
|
+
- spec/rails_app/app/controllers/application_controller.rb
|
78
|
+
- spec/rails_app/app/helpers/application_helper.rb
|
79
|
+
- spec/rails_app/app/mailers/.gitkeep
|
80
|
+
- spec/rails_app/app/models/.gitkeep
|
81
|
+
- spec/rails_app/app/views/application/condensed.html.erb
|
82
|
+
- spec/rails_app/app/views/application/normal.html.erb
|
83
|
+
- spec/rails_app/app/views/layouts/application.html.erb
|
84
|
+
- spec/rails_app/config.ru
|
85
|
+
- spec/rails_app/config/application.rb
|
86
|
+
- spec/rails_app/config/boot.rb
|
87
|
+
- spec/rails_app/config/database.yml
|
88
|
+
- spec/rails_app/config/environment.rb
|
89
|
+
- spec/rails_app/config/environments/test.rb
|
90
|
+
- spec/rails_app/config/initializers/backtrace_silencers.rb
|
91
|
+
- spec/rails_app/config/initializers/inflections.rb
|
92
|
+
- spec/rails_app/config/initializers/mime_types.rb
|
93
|
+
- spec/rails_app/config/initializers/secret_token.rb
|
94
|
+
- spec/rails_app/config/initializers/session_store.rb
|
95
|
+
- spec/rails_app/config/initializers/wrap_parameters.rb
|
96
|
+
- spec/rails_app/config/locales/en.yml
|
97
|
+
- spec/rails_app/config/routes.rb
|
98
|
+
- spec/rails_app/db/.gitkeep
|
99
|
+
- spec/rails_app/lib/assets/.gitkeep
|
100
|
+
- spec/rails_app/lib/tasks/.gitkeep
|
101
|
+
- spec/rails_app/log/.gitkeep
|
102
|
+
- spec/rails_app/script/rails
|
103
|
+
- spec/rails_app/vendor/assets/javascripts/.gitkeep
|
104
|
+
- spec/rails_app/vendor/assets/stylesheets/.gitkeep
|
105
|
+
- spec/rails_app/vendor/plugins/.gitkeep
|
106
|
+
- spec/spec_helper.rb
|
107
|
+
homepage: ''
|
108
|
+
licenses: []
|
109
|
+
post_install_message:
|
110
|
+
rdoc_options: []
|
111
|
+
require_paths:
|
112
|
+
- lib
|
113
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
114
|
+
none: false
|
115
|
+
requirements:
|
116
|
+
- - ! '>='
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: '0'
|
119
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
120
|
+
none: false
|
121
|
+
requirements:
|
122
|
+
- - ! '>='
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
requirements: []
|
126
|
+
rubyforge_project:
|
127
|
+
rubygems_version: 1.8.10
|
128
|
+
signing_key:
|
129
|
+
specification_version: 3
|
130
|
+
summary: A DSL for creating navigation structures based on the Rails routing table
|
131
|
+
using Abyss.
|
132
|
+
test_files:
|
133
|
+
- spec/integrations/unordered_list_renderer_spec.rb
|
134
|
+
- spec/mariner_spec.rb
|
135
|
+
- spec/navigation/helper_spec.rb
|
136
|
+
- spec/navigation/railtie_spec.rb
|
137
|
+
- spec/navigation/renderer/base_spec.rb
|
138
|
+
- spec/navigation/store_spec.rb
|
139
|
+
- spec/navigation/unordered_list_render_spec.rb
|
140
|
+
- spec/navigation/url_spec.rb
|
141
|
+
- spec/rails_app/.gitignore
|
142
|
+
- spec/rails_app/Rakefile
|
143
|
+
- spec/rails_app/app/assets/javascripts/application.js
|
144
|
+
- spec/rails_app/app/assets/stylesheets/application.css
|
145
|
+
- spec/rails_app/app/controllers/application_controller.rb
|
146
|
+
- spec/rails_app/app/helpers/application_helper.rb
|
147
|
+
- spec/rails_app/app/mailers/.gitkeep
|
148
|
+
- spec/rails_app/app/models/.gitkeep
|
149
|
+
- spec/rails_app/app/views/application/condensed.html.erb
|
150
|
+
- spec/rails_app/app/views/application/normal.html.erb
|
151
|
+
- spec/rails_app/app/views/layouts/application.html.erb
|
152
|
+
- spec/rails_app/config.ru
|
153
|
+
- spec/rails_app/config/application.rb
|
154
|
+
- spec/rails_app/config/boot.rb
|
155
|
+
- spec/rails_app/config/database.yml
|
156
|
+
- spec/rails_app/config/environment.rb
|
157
|
+
- spec/rails_app/config/environments/test.rb
|
158
|
+
- spec/rails_app/config/initializers/backtrace_silencers.rb
|
159
|
+
- spec/rails_app/config/initializers/inflections.rb
|
160
|
+
- spec/rails_app/config/initializers/mime_types.rb
|
161
|
+
- spec/rails_app/config/initializers/secret_token.rb
|
162
|
+
- spec/rails_app/config/initializers/session_store.rb
|
163
|
+
- spec/rails_app/config/initializers/wrap_parameters.rb
|
164
|
+
- spec/rails_app/config/locales/en.yml
|
165
|
+
- spec/rails_app/config/routes.rb
|
166
|
+
- spec/rails_app/db/.gitkeep
|
167
|
+
- spec/rails_app/lib/assets/.gitkeep
|
168
|
+
- spec/rails_app/lib/tasks/.gitkeep
|
169
|
+
- spec/rails_app/log/.gitkeep
|
170
|
+
- spec/rails_app/script/rails
|
171
|
+
- spec/rails_app/vendor/assets/javascripts/.gitkeep
|
172
|
+
- spec/rails_app/vendor/assets/stylesheets/.gitkeep
|
173
|
+
- spec/rails_app/vendor/plugins/.gitkeep
|
174
|
+
- spec/spec_helper.rb
|
175
|
+
has_rdoc:
|