fooltip 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/fooltip/containers.js +6 -0
- data/app/assets/stylesheets/fooltip/containers.css.sass +5 -1
- data/app/controllers/fooltip/application_controller.rb +0 -1
- data/app/models/fooltip/container.rb +7 -1
- data/app/models/fooltip/link.rb +1 -1
- data/app/models/fooltip/popup.rb +3 -1
- data/app/uploaders/fooltip/image_uploader.rb +7 -5
- data/app/views/fooltip/containers/_container.html.haml +6 -3
- data/app/views/layouts/fooltip/application.html.haml +12 -0
- data/lib/fooltip/version.rb +1 -1
- data/spec/controllers/fooltip/containers_controller_spec.rb +15 -0
- data/spec/data/logo.gif +0 -0
- data/spec/data/models.rb +6 -0
- data/spec/data/schema.rb +10 -0
- data/spec/dummy/README.rdoc +261 -0
- data/spec/dummy/Rakefile +7 -0
- data/spec/dummy/app/assets/javascripts/application.js +15 -0
- data/spec/dummy/app/assets/stylesheets/application.css +13 -0
- data/spec/dummy/app/controllers/application_controller.rb +3 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/views/layouts/application.html.haml +12 -0
- data/spec/dummy/config/application.rb +66 -0
- data/spec/dummy/config/boot.rb +10 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +37 -0
- data/spec/dummy/config/environments/production.rb +67 -0
- data/spec/dummy/config/environments/test.rb +37 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/inflections.rb +15 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +7 -0
- data/spec/dummy/config/initializers/session_store.rb +8 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +5 -0
- data/spec/dummy/config/routes.rb +3 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/schema.rb +78 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +185 -0
- data/spec/dummy/log/test.log +2045 -0
- data/spec/dummy/public/404.html +26 -0
- data/spec/dummy/public/422.html +26 -0
- data/spec/dummy/public/500.html +25 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/public/uploads/fooltip/container/image/1/test_small.png +0 -0
- data/spec/dummy/public/uploads/fooltip/container/image/2/test_small.png +0 -0
- data/spec/dummy/script/rails +6 -0
- data/spec/dummy/tmp/cache/assets/C12/540/sprockets%2Fe422409b4963557190ca3040c56224d4 +0 -0
- data/spec/dummy/tmp/cache/assets/C79/930/sprockets%2Fa861857146e1fa262607477ba63f1c11 +0 -0
- data/spec/dummy/tmp/cache/assets/C7F/650/sprockets%2F3de8c7412fcd74f3312447a314241996 +0 -0
- data/spec/dummy/tmp/cache/assets/C84/410/sprockets%2F42ce1bfac21ec9611479472375848076 +0 -0
- data/spec/dummy/tmp/cache/assets/C89/3D0/sprockets%2Fa512a3e92488d8934374b378fb24c661 +0 -0
- data/spec/dummy/tmp/cache/assets/C98/310/sprockets%2Faecb14440227a14ead43126938621c90 +0 -0
- data/spec/dummy/tmp/cache/assets/CA5/070/sprockets%2F48d7b46452832d4e3c50c046ca73343a +0 -0
- data/spec/dummy/tmp/cache/assets/CB8/B60/sprockets%2F4768e955671fc74af259c134d5110c4e +0 -0
- data/spec/dummy/tmp/cache/assets/CBD/D00/sprockets%2Fb849096bf7cd430d3700e5759049d7f3 +0 -0
- data/spec/dummy/tmp/cache/assets/CDF/290/sprockets%2Ffa27582045d91bbc326d5562bf8a7373 +0 -0
- data/spec/dummy/tmp/cache/assets/CE3/7B0/sprockets%2F71092d61418cb58524fed3b9c074e94b +0 -0
- data/spec/dummy/tmp/cache/assets/CE5/E40/sprockets%2Fa795bdff77229a1315b860808b6730de +0 -0
- data/spec/dummy/tmp/cache/assets/CF0/DF0/sprockets%2F0c483472874e202fbef178f8464ea6e9 +0 -0
- data/spec/dummy/tmp/cache/assets/CF2/4B0/sprockets%2F42258a65f48286a3d8f8db4e196192fd +0 -0
- data/spec/dummy/tmp/cache/assets/CF3/CA0/sprockets%2F6474384eabec6e9079a5c7761486bd36 +0 -0
- data/spec/dummy/tmp/cache/assets/CFF/E40/sprockets%2F56f3043dbd5f13183feab1a87f072320 +0 -0
- data/spec/dummy/tmp/cache/assets/D09/5C0/sprockets%2Fa39c464abd94230a0e8be429304f67d4 +0 -0
- data/spec/dummy/tmp/cache/assets/D13/6B0/sprockets%2F584dd69de5c4afc42b6f1055b2778034 +0 -0
- data/spec/dummy/tmp/cache/assets/D15/9C0/sprockets%2F88bb29d5e96a3b8b76dd6f15061a2129 +0 -0
- data/spec/dummy/tmp/cache/assets/D1F/AF0/sprockets%2Fb5b10ab08e5ce010be8004ab7f722661 +0 -0
- data/spec/dummy/tmp/cache/assets/D21/7E0/sprockets%2F6547fdc4d7de9ab888b1d47834c12825 +0 -0
- data/spec/dummy/tmp/cache/assets/D24/3F0/sprockets%2F6fdf659d2ac27d36a91a78b814d25889 +0 -0
- data/spec/dummy/tmp/cache/assets/D24/5D0/sprockets%2Fb8180b99b5595c2ef880e77b8edf4430 +0 -0
- data/spec/dummy/tmp/cache/assets/D30/860/sprockets%2F33d83f499569ca6dd83c5d85e55b387f +0 -0
- data/spec/dummy/tmp/cache/assets/D33/9D0/sprockets%2F9ad41c00a47c157c591a507afc3ed493 +0 -0
- data/spec/dummy/tmp/cache/assets/D34/0E0/sprockets%2F12f74b83c9905a0a2eccbdb4d7427127 +0 -0
- data/spec/dummy/tmp/cache/assets/D36/E50/sprockets%2Fca333e38e361e5c848a44052a58bcfb2 +0 -0
- data/spec/dummy/tmp/cache/assets/D38/810/sprockets%2F0655ac6dcfb25a6313b99e15bcd31936 +0 -0
- data/spec/dummy/tmp/cache/assets/D4A/070/sprockets%2F693f1f55237e8ddbaa4e83784e4810be +0 -0
- data/spec/dummy/tmp/cache/assets/D58/700/sprockets%2Fb0d7a4813afa6c1e2c3c24b116668dc1 +0 -0
- data/spec/dummy/tmp/cache/assets/D5C/EC0/sprockets%2Fc83ee051397beae62ea012bd8c20e171 +0 -0
- data/spec/dummy/tmp/cache/assets/D5E/8F0/sprockets%2F58bf1fcb9dd93c6c09928e083a99d957 +0 -0
- data/spec/dummy/tmp/cache/assets/D63/060/sprockets%2Fe43c7422ad2991a737c506a6cfbaca08 +0 -0
- data/spec/dummy/tmp/cache/assets/D66/0B0/sprockets%2F599a0905bec5dff2ba5a03ba3524909d +0 -0
- data/spec/dummy/tmp/cache/assets/D66/920/sprockets%2F882924b1d1a0f7223cb2f1ee3dcb578d +0 -0
- data/spec/dummy/tmp/cache/assets/D66/960/sprockets%2F4bd5ea023e4ae3e19b0971a78684cab4 +0 -0
- data/spec/dummy/tmp/cache/assets/D67/BC0/sprockets%2F84c3e32721189b020cdb2ccaff7cc785 +0 -0
- data/spec/dummy/tmp/cache/assets/D6B/DD0/sprockets%2F7db3efa083c4a38597a1dadd835b0528 +0 -0
- data/spec/dummy/tmp/cache/assets/D6C/540/sprockets%2Fe23ba0d755bb180a2961d478e4a9dff4 +0 -0
- data/spec/dummy/tmp/cache/assets/D71/F80/sprockets%2F82e84d453d4341c77efdc557aabea318 +0 -0
- data/spec/dummy/tmp/cache/assets/D76/F30/sprockets%2Fe6cb8503cd99180bae3e862cb7f9d144 +0 -0
- data/spec/dummy/tmp/cache/assets/D93/6F0/sprockets%2F22b6e10f919d331bff2e6fa53cb55e2a +0 -0
- data/spec/dummy/tmp/cache/assets/D97/1A0/sprockets%2F8f4efba1871fb62583020cb1c6afdf35 +0 -0
- data/spec/dummy/tmp/cache/assets/D9D/710/sprockets%2F0250dfadb4c8d56a5c2701ed688c8a9d +0 -0
- data/spec/dummy/tmp/cache/assets/D9E/E70/sprockets%2F4b9ec8cdf5dbb2a621373b2667c68c4a +0 -0
- data/spec/dummy/tmp/cache/assets/DCB/A30/sprockets%2Fa7a93a5918614b7bfd4ede5a0f63c2db +0 -0
- data/spec/dummy/tmp/cache/assets/DCB/B70/sprockets%2F2c844f6fbf82ba0cbe7e8730c21ad64f +0 -0
- data/spec/dummy/tmp/cache/assets/DD2/810/sprockets%2F8e12ead9fea63a8ff44db33c62f4f505 +0 -0
- data/spec/dummy/tmp/cache/assets/DD8/610/sprockets%2Fd1976891ce3b0e86cfdd6dde213eda56 +0 -0
- data/spec/dummy/tmp/cache/assets/DF6/500/sprockets%2Fcef2687afea3a5f96ad213b11b9abf52 +0 -0
- data/spec/dummy/tmp/cache/assets/E55/040/sprockets%2F4e9fdbdfcaf848e4cee03db1c4005ba4 +0 -0
- data/spec/dummy/tmp/cache/sass/05c61e3b86f6e79287c8b349be7825cc5217eb30/application.css.sassc +0 -0
- data/spec/dummy/tmp/cache/sass/05c61e3b86f6e79287c8b349be7825cc5217eb30/containers.css.sassc +0 -0
- data/spec/dummy/tmp/cache/sass/b95cdf227345c18646630d554608b9276b4e1657/bootstrap.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/c42e1695c1e1b1c6ff23323f220608a8738467c8/_accordion.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/c42e1695c1e1b1c6ff23323f220608a8738467c8/_alerts.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/c42e1695c1e1b1c6ff23323f220608a8738467c8/_breadcrumbs.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/c42e1695c1e1b1c6ff23323f220608a8738467c8/_button-groups.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/c42e1695c1e1b1c6ff23323f220608a8738467c8/_buttons.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/c42e1695c1e1b1c6ff23323f220608a8738467c8/_carousel.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/c42e1695c1e1b1c6ff23323f220608a8738467c8/_close.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/c42e1695c1e1b1c6ff23323f220608a8738467c8/_code.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/c42e1695c1e1b1c6ff23323f220608a8738467c8/_component-animations.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/c42e1695c1e1b1c6ff23323f220608a8738467c8/_dropdowns.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/c42e1695c1e1b1c6ff23323f220608a8738467c8/_forms.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/c42e1695c1e1b1c6ff23323f220608a8738467c8/_grid.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/c42e1695c1e1b1c6ff23323f220608a8738467c8/_hero-unit.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/c42e1695c1e1b1c6ff23323f220608a8738467c8/_labels-badges.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/c42e1695c1e1b1c6ff23323f220608a8738467c8/_layouts.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/c42e1695c1e1b1c6ff23323f220608a8738467c8/_media.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/c42e1695c1e1b1c6ff23323f220608a8738467c8/_mixins.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/c42e1695c1e1b1c6ff23323f220608a8738467c8/_modals.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/c42e1695c1e1b1c6ff23323f220608a8738467c8/_navbar.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/c42e1695c1e1b1c6ff23323f220608a8738467c8/_navs.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/c42e1695c1e1b1c6ff23323f220608a8738467c8/_pager.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/c42e1695c1e1b1c6ff23323f220608a8738467c8/_pagination.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/c42e1695c1e1b1c6ff23323f220608a8738467c8/_popovers.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/c42e1695c1e1b1c6ff23323f220608a8738467c8/_progress-bars.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/c42e1695c1e1b1c6ff23323f220608a8738467c8/_reset.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/c42e1695c1e1b1c6ff23323f220608a8738467c8/_scaffolding.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/c42e1695c1e1b1c6ff23323f220608a8738467c8/_sprites.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/c42e1695c1e1b1c6ff23323f220608a8738467c8/_tables.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/c42e1695c1e1b1c6ff23323f220608a8738467c8/_thumbnails.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/c42e1695c1e1b1c6ff23323f220608a8738467c8/_tooltip.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/c42e1695c1e1b1c6ff23323f220608a8738467c8/_type.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/c42e1695c1e1b1c6ff23323f220608a8738467c8/_utilities.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/c42e1695c1e1b1c6ff23323f220608a8738467c8/_variables.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/c42e1695c1e1b1c6ff23323f220608a8738467c8/_wells.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/c42e1695c1e1b1c6ff23323f220608a8738467c8/bootstrap.scssc +0 -0
- data/spec/factories/fooltip/containers.rb +6 -0
- data/spec/factories/fooltip/links.rb +10 -0
- data/spec/factories/fooltip/popups.rb +7 -0
- data/spec/factories_spec.rb +10 -0
- data/spec/fooltip_spec.rb +40 -0
- data/spec/helpers/fooltip/containers_helper_spec.rb +17 -0
- data/spec/models/fooltip/association_spec.rb +25 -0
- data/spec/models/fooltip/container_spec.rb +16 -0
- data/spec/models/fooltip/link_spec.rb +34 -0
- data/spec/models/fooltip/popup_spec.rb +17 -0
- data/spec/spec_helper.rb +82 -0
- data/spec/uploaders/image_uploader_spec.rb +45 -0
- metadata +298 -3
@@ -0,0 +1,37 @@
|
|
1
|
+
Dummy::Application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb
|
3
|
+
|
4
|
+
# In the development environment your application's code is reloaded on
|
5
|
+
# every request. This slows down response time but is perfect for development
|
6
|
+
# since you don't have to restart the web server when you make code changes.
|
7
|
+
config.cache_classes = false
|
8
|
+
|
9
|
+
# Log error messages when you accidentally call methods on nil.
|
10
|
+
config.whiny_nils = true
|
11
|
+
|
12
|
+
# Show full error reports and disable caching
|
13
|
+
config.consider_all_requests_local = true
|
14
|
+
config.action_controller.perform_caching = false
|
15
|
+
|
16
|
+
# Don't care if the mailer can't send
|
17
|
+
config.action_mailer.raise_delivery_errors = false
|
18
|
+
|
19
|
+
# Print deprecation notices to the Rails logger
|
20
|
+
config.active_support.deprecation = :log
|
21
|
+
|
22
|
+
# Only use best-standards-support built into browsers
|
23
|
+
config.action_dispatch.best_standards_support = :builtin
|
24
|
+
|
25
|
+
# Raise exception on mass assignment protection for Active Record models
|
26
|
+
config.active_record.mass_assignment_sanitizer = :strict
|
27
|
+
|
28
|
+
# Log the query plan for queries taking more than this (works
|
29
|
+
# with SQLite, MySQL, and PostgreSQL)
|
30
|
+
config.active_record.auto_explain_threshold_in_seconds = 0.5
|
31
|
+
|
32
|
+
# Do not compress assets
|
33
|
+
config.assets.compress = false
|
34
|
+
|
35
|
+
# Expands the lines which load the assets
|
36
|
+
config.assets.debug = true
|
37
|
+
end
|
@@ -0,0 +1,67 @@
|
|
1
|
+
Dummy::Application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb
|
3
|
+
|
4
|
+
# Code is not reloaded between requests
|
5
|
+
config.cache_classes = true
|
6
|
+
|
7
|
+
# Full error reports are disabled and caching is turned on
|
8
|
+
config.consider_all_requests_local = false
|
9
|
+
config.action_controller.perform_caching = true
|
10
|
+
|
11
|
+
# Disable Rails's static asset server (Apache or nginx will already do this)
|
12
|
+
config.serve_static_assets = false
|
13
|
+
|
14
|
+
# Compress JavaScripts and CSS
|
15
|
+
config.assets.compress = true
|
16
|
+
|
17
|
+
# Don't fallback to assets pipeline if a precompiled asset is missed
|
18
|
+
config.assets.compile = false
|
19
|
+
|
20
|
+
# Generate digests for assets URLs
|
21
|
+
config.assets.digest = true
|
22
|
+
|
23
|
+
# Defaults to nil and saved in location specified by config.assets.prefix
|
24
|
+
# config.assets.manifest = YOUR_PATH
|
25
|
+
|
26
|
+
# Specifies the header that your server uses for sending files
|
27
|
+
# config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
|
28
|
+
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
|
29
|
+
|
30
|
+
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
31
|
+
# config.force_ssl = true
|
32
|
+
|
33
|
+
# See everything in the log (default is :info)
|
34
|
+
# config.log_level = :debug
|
35
|
+
|
36
|
+
# Prepend all log lines with the following tags
|
37
|
+
# config.log_tags = [ :subdomain, :uuid ]
|
38
|
+
|
39
|
+
# Use a different logger for distributed setups
|
40
|
+
# config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
|
41
|
+
|
42
|
+
# Use a different cache store in production
|
43
|
+
# config.cache_store = :mem_cache_store
|
44
|
+
|
45
|
+
# Enable serving of images, stylesheets, and JavaScripts from an asset server
|
46
|
+
# config.action_controller.asset_host = "http://assets.example.com"
|
47
|
+
|
48
|
+
# Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
|
49
|
+
# config.assets.precompile += %w( search.js )
|
50
|
+
|
51
|
+
# Disable delivery errors, bad email addresses will be ignored
|
52
|
+
# config.action_mailer.raise_delivery_errors = false
|
53
|
+
|
54
|
+
# Enable threaded mode
|
55
|
+
# config.threadsafe!
|
56
|
+
|
57
|
+
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
58
|
+
# the I18n.default_locale when a translation can not be found)
|
59
|
+
config.i18n.fallbacks = true
|
60
|
+
|
61
|
+
# Send deprecation notices to registered listeners
|
62
|
+
config.active_support.deprecation = :notify
|
63
|
+
|
64
|
+
# Log the query plan for queries taking more than this (works
|
65
|
+
# with SQLite, MySQL, and PostgreSQL)
|
66
|
+
# config.active_record.auto_explain_threshold_in_seconds = 0.5
|
67
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
Dummy::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
|
+
Dummy::Application.config.secret_token = 'cf498940d07d01054c9a39040adf052c907947f1738ee56460d31f5d03a955d7f13f7fa0db0b87a28778aa5b8cfeee6a44a889c3923455e98e73e3c3f57db537'
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
Dummy::Application.config.session_store :cookie_store, key: '_dummy_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
|
+
# Dummy::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
|
Binary file
|
@@ -0,0 +1,78 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
# This file is auto-generated from the current state of the database. Instead
|
3
|
+
# of editing this file, please use the migrations feature of Active Record to
|
4
|
+
# incrementally modify your database, and then regenerate this schema definition.
|
5
|
+
#
|
6
|
+
# Note that this schema.rb definition is the authoritative source for your
|
7
|
+
# database schema. If you need to create the application database on another
|
8
|
+
# system, you should be using db:schema:load, not running all the migrations
|
9
|
+
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
10
|
+
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
11
|
+
#
|
12
|
+
# It's strongly recommended to check this file into your version control system.
|
13
|
+
|
14
|
+
ActiveRecord::Schema.define(:version => 20130402091259) do
|
15
|
+
|
16
|
+
create_table "fooltip_associations", :force => true do |t|
|
17
|
+
t.string "owner_type"
|
18
|
+
t.integer "owner_id"
|
19
|
+
t.integer "container_id"
|
20
|
+
t.datetime "created_at", :null => false
|
21
|
+
t.datetime "updated_at", :null => false
|
22
|
+
end
|
23
|
+
|
24
|
+
create_table "fooltip_container_translations", :force => true do |t|
|
25
|
+
t.integer "fooltip_container_id"
|
26
|
+
t.string "locale"
|
27
|
+
t.string "title"
|
28
|
+
t.text "description"
|
29
|
+
t.datetime "created_at", :null => false
|
30
|
+
t.datetime "updated_at", :null => false
|
31
|
+
end
|
32
|
+
|
33
|
+
add_index "fooltip_container_translations", ["fooltip_container_id"], :name => "index_fooltip_container_translations_on_fooltip_container_id"
|
34
|
+
add_index "fooltip_container_translations", ["locale"], :name => "index_fooltip_container_translations_on_locale"
|
35
|
+
|
36
|
+
create_table "fooltip_containers", :force => true do |t|
|
37
|
+
t.string "image"
|
38
|
+
t.datetime "created_at", :null => false
|
39
|
+
t.datetime "updated_at", :null => false
|
40
|
+
end
|
41
|
+
|
42
|
+
create_table "fooltip_links", :force => true do |t|
|
43
|
+
t.integer "container_id"
|
44
|
+
t.integer "popup_id"
|
45
|
+
t.integer "placement"
|
46
|
+
t.integer "trigger"
|
47
|
+
t.integer "x"
|
48
|
+
t.integer "y"
|
49
|
+
t.datetime "created_at", :null => false
|
50
|
+
t.datetime "updated_at", :null => false
|
51
|
+
end
|
52
|
+
|
53
|
+
add_index "fooltip_links", ["container_id"], :name => "index_fooltip_links_on_container_id"
|
54
|
+
add_index "fooltip_links", ["popup_id"], :name => "index_fooltip_links_on_popup_id"
|
55
|
+
|
56
|
+
create_table "fooltip_popup_translations", :force => true do |t|
|
57
|
+
t.integer "fooltip_popup_id"
|
58
|
+
t.string "locale"
|
59
|
+
t.string "title"
|
60
|
+
t.text "content"
|
61
|
+
t.datetime "created_at", :null => false
|
62
|
+
t.datetime "updated_at", :null => false
|
63
|
+
end
|
64
|
+
|
65
|
+
add_index "fooltip_popup_translations", ["fooltip_popup_id"], :name => "index_fooltip_popup_translations_on_fooltip_popup_id"
|
66
|
+
add_index "fooltip_popup_translations", ["locale"], :name => "index_fooltip_popup_translations_on_locale"
|
67
|
+
|
68
|
+
create_table "fooltip_popups", :force => true do |t|
|
69
|
+
t.string "identifier"
|
70
|
+
t.integer "min_height"
|
71
|
+
t.integer "min_width"
|
72
|
+
t.integer "max_height"
|
73
|
+
t.integer "max_width"
|
74
|
+
t.datetime "created_at", :null => false
|
75
|
+
t.datetime "updated_at", :null => false
|
76
|
+
end
|
77
|
+
|
78
|
+
end
|
Binary file
|
@@ -0,0 +1,185 @@
|
|
1
|
+
Connecting to database specified by database.yml
|
2
|
+
|
3
|
+
|
4
|
+
Started GET "/fooltip/" for 127.0.0.1 at 2013-04-24 11:53:04 +0200
|
5
|
+
|
6
|
+
ActionController::RoutingError (No route matches [GET] "/fooltip"):
|
7
|
+
actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
|
8
|
+
actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
|
9
|
+
railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
|
10
|
+
railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
|
11
|
+
activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
|
12
|
+
railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
|
13
|
+
actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
|
14
|
+
rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
|
15
|
+
rack (1.4.5) lib/rack/runtime.rb:17:in `call'
|
16
|
+
activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
|
17
|
+
rack (1.4.5) lib/rack/lock.rb:15:in `call'
|
18
|
+
actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
|
19
|
+
railties (3.2.13) lib/rails/engine.rb:479:in `call'
|
20
|
+
railties (3.2.13) lib/rails/application.rb:223:in `call'
|
21
|
+
rack (1.4.5) lib/rack/content_length.rb:14:in `call'
|
22
|
+
railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
|
23
|
+
rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
|
24
|
+
/opt/rbenv/versions/2.0.0-p0/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
|
25
|
+
/opt/rbenv/versions/2.0.0-p0/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
|
26
|
+
/opt/rbenv/versions/2.0.0-p0/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
|
27
|
+
|
28
|
+
|
29
|
+
Rendered /opt/rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (12.5ms)
|
30
|
+
|
31
|
+
|
32
|
+
Started GET "/fooltip/containers/" for 127.0.0.1 at 2013-04-24 11:53:06 +0200
|
33
|
+
|
34
|
+
ActionController::RoutingError (No route matches [GET] "/fooltip/containers"):
|
35
|
+
actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
|
36
|
+
actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
|
37
|
+
railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
|
38
|
+
railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
|
39
|
+
activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
|
40
|
+
railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
|
41
|
+
actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
|
42
|
+
rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
|
43
|
+
rack (1.4.5) lib/rack/runtime.rb:17:in `call'
|
44
|
+
activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
|
45
|
+
rack (1.4.5) lib/rack/lock.rb:15:in `call'
|
46
|
+
actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
|
47
|
+
railties (3.2.13) lib/rails/engine.rb:479:in `call'
|
48
|
+
railties (3.2.13) lib/rails/application.rb:223:in `call'
|
49
|
+
rack (1.4.5) lib/rack/content_length.rb:14:in `call'
|
50
|
+
railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
|
51
|
+
rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
|
52
|
+
/opt/rbenv/versions/2.0.0-p0/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
|
53
|
+
/opt/rbenv/versions/2.0.0-p0/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
|
54
|
+
/opt/rbenv/versions/2.0.0-p0/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
|
55
|
+
|
56
|
+
|
57
|
+
Rendered /opt/rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (2.5ms)
|
58
|
+
|
59
|
+
|
60
|
+
Started GET "/fooltip/containers/1" for 127.0.0.1 at 2013-04-24 11:53:09 +0200
|
61
|
+
Processing by Fooltip::ContainersController#show as HTML
|
62
|
+
Parameters: {"id"=>"1"}
|
63
|
+
[1m[36mFooltip::Container Load (0.1ms)[0m [1mSELECT "fooltip_containers".* FROM "fooltip_containers" WHERE "fooltip_containers"."id" = ? LIMIT 1[0m [["id", "1"]]
|
64
|
+
[1m[35mFooltip::Container::Translation Load (0.1ms)[0m SELECT "fooltip_container_translations".* FROM "fooltip_container_translations" WHERE "fooltip_container_translations"."fooltip_container_id" = 1
|
65
|
+
[1m[36mFooltip::Link Load (0.1ms)[0m [1mSELECT "fooltip_links".* FROM "fooltip_links" WHERE "fooltip_links"."container_id" = 1[0m
|
66
|
+
[1m[35mFooltip::Popup Load (0.1ms)[0m SELECT "fooltip_popups".* FROM "fooltip_popups" WHERE "fooltip_popups"."id" = 1 LIMIT 1
|
67
|
+
[1m[36mFooltip::Popup::Translation Load (0.1ms)[0m [1mSELECT "fooltip_popup_translations".* FROM "fooltip_popup_translations" WHERE "fooltip_popup_translations"."fooltip_popup_id" = 1[0m
|
68
|
+
[1m[35mFooltip::Popup Load (0.2ms)[0m SELECT "fooltip_popups".* FROM "fooltip_popups" WHERE "fooltip_popups"."id" = 2 LIMIT 1
|
69
|
+
[1m[36mFooltip::Popup::Translation Load (0.1ms)[0m [1mSELECT "fooltip_popup_translations".* FROM "fooltip_popup_translations" WHERE "fooltip_popup_translations"."fooltip_popup_id" = 2[0m
|
70
|
+
[1m[35mFooltip::Popup Load (0.1ms)[0m SELECT "fooltip_popups".* FROM "fooltip_popups" WHERE "fooltip_popups"."id" = 3 LIMIT 1
|
71
|
+
[1m[36mFooltip::Popup::Translation Load (0.1ms)[0m [1mSELECT "fooltip_popup_translations".* FROM "fooltip_popup_translations" WHERE "fooltip_popup_translations"."fooltip_popup_id" = 3[0m
|
72
|
+
Rendered /home/web/railsprojects/fooltip/app/views/fooltip/containers/_container.html.haml (97.9ms)
|
73
|
+
Rendered /home/web/railsprojects/fooltip/app/views/fooltip/containers/show.html.haml within layouts/application (101.8ms)
|
74
|
+
Compiled fooltip/application.css (1569ms) (pid 19075)
|
75
|
+
Compiled fooltip/containers.js (0ms) (pid 19075)
|
76
|
+
Compiled fooltip/application.js (3ms) (pid 19075)
|
77
|
+
Completed 200 OK in 1877ms (Views: 1865.7ms | ActiveRecord: 4.1ms)
|
78
|
+
|
79
|
+
|
80
|
+
Started GET "/assets/fooltip/application.css?body=1" for 127.0.0.1 at 2013-04-24 11:53:11 +0200
|
81
|
+
Served asset /fooltip/application.css - 200 OK (37ms)
|
82
|
+
|
83
|
+
|
84
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-04-24 11:53:11 +0200
|
85
|
+
Served asset /jquery.js - 200 OK (21ms)
|
86
|
+
|
87
|
+
|
88
|
+
Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2013-04-24 11:53:11 +0200
|
89
|
+
Served asset /bootstrap-alert.js - 200 OK (1ms)
|
90
|
+
|
91
|
+
|
92
|
+
Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2013-04-24 11:53:11 +0200
|
93
|
+
Served asset /bootstrap-affix.js - 200 OK (1ms)
|
94
|
+
|
95
|
+
|
96
|
+
Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2013-04-24 11:53:11 +0200
|
97
|
+
Served asset /bootstrap-transition.js - 200 OK (2ms)
|
98
|
+
|
99
|
+
|
100
|
+
Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2013-04-24 11:53:11 +0200
|
101
|
+
Served asset /bootstrap-button.js - 200 OK (1ms)
|
102
|
+
|
103
|
+
|
104
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-04-24 11:53:11 +0200
|
105
|
+
Served asset /jquery_ujs.js - 200 OK (1ms)
|
106
|
+
|
107
|
+
|
108
|
+
Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2013-04-24 11:53:11 +0200
|
109
|
+
Served asset /bootstrap-dropdown.js - 200 OK (1ms)
|
110
|
+
|
111
|
+
|
112
|
+
Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2013-04-24 11:53:11 +0200
|
113
|
+
Served asset /bootstrap-collapse.js - 200 OK (1ms)
|
114
|
+
|
115
|
+
|
116
|
+
Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2013-04-24 11:53:11 +0200
|
117
|
+
Served asset /bootstrap-carousel.js - 200 OK (3ms)
|
118
|
+
|
119
|
+
|
120
|
+
Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2013-04-24 11:53:11 +0200
|
121
|
+
Served asset /bootstrap-modal.js - 200 OK (1ms)
|
122
|
+
|
123
|
+
|
124
|
+
Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2013-04-24 11:53:11 +0200
|
125
|
+
Served asset /bootstrap-scrollspy.js - 200 OK (1ms)
|
126
|
+
|
127
|
+
|
128
|
+
Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2013-04-24 11:53:11 +0200
|
129
|
+
Served asset /bootstrap-tab.js - 200 OK (1ms)
|
130
|
+
|
131
|
+
|
132
|
+
Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2013-04-24 11:53:11 +0200
|
133
|
+
Served asset /bootstrap-tooltip.js - 200 OK (1ms)
|
134
|
+
|
135
|
+
|
136
|
+
Started GET "/assets/fooltip/containers.js?body=1" for 127.0.0.1 at 2013-04-24 11:53:11 +0200
|
137
|
+
Served asset /fooltip/containers.js - 200 OK (1ms)
|
138
|
+
|
139
|
+
|
140
|
+
Started GET "/assets/fooltip/application.js?body=1" for 127.0.0.1 at 2013-04-24 11:53:11 +0200
|
141
|
+
Served asset /fooltip/application.js - 200 OK (42ms)
|
142
|
+
|
143
|
+
|
144
|
+
Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2013-04-24 11:53:11 +0200
|
145
|
+
Served asset /bootstrap-popover.js - 200 OK (1ms)
|
146
|
+
|
147
|
+
|
148
|
+
Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2013-04-24 11:53:11 +0200
|
149
|
+
Served asset /bootstrap.js - 200 OK (24ms)
|
150
|
+
|
151
|
+
|
152
|
+
Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2013-04-24 11:53:11 +0200
|
153
|
+
Served asset /bootstrap-typeahead.js - 200 OK (1ms)
|
154
|
+
|
155
|
+
|
156
|
+
Started GET "/assets/fooltip/link.png" for 127.0.0.1 at 2013-04-24 11:53:11 +0200
|
157
|
+
Served asset /fooltip/link.png - 200 OK (1ms)
|
158
|
+
|
159
|
+
|
160
|
+
Started GET "/us/en/fooltip/containers/1" for 127.0.0.1 at 2013-04-24 11:53:32 +0200
|
161
|
+
|
162
|
+
ActionController::RoutingError (No route matches [GET] "/us/en/fooltip/containers/1"):
|
163
|
+
actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
|
164
|
+
actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
|
165
|
+
railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
|
166
|
+
railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
|
167
|
+
activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
|
168
|
+
railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
|
169
|
+
actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
|
170
|
+
rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
|
171
|
+
rack (1.4.5) lib/rack/runtime.rb:17:in `call'
|
172
|
+
activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
|
173
|
+
rack (1.4.5) lib/rack/lock.rb:15:in `call'
|
174
|
+
actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
|
175
|
+
railties (3.2.13) lib/rails/engine.rb:479:in `call'
|
176
|
+
railties (3.2.13) lib/rails/application.rb:223:in `call'
|
177
|
+
rack (1.4.5) lib/rack/content_length.rb:14:in `call'
|
178
|
+
railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
|
179
|
+
rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
|
180
|
+
/opt/rbenv/versions/2.0.0-p0/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
|
181
|
+
/opt/rbenv/versions/2.0.0-p0/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
|
182
|
+
/opt/rbenv/versions/2.0.0-p0/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
|
183
|
+
|
184
|
+
|
185
|
+
Rendered /opt/rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.5ms)
|