novector 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +52 -0
  4. data/Rakefile +34 -0
  5. data/app/assets/javascripts/novector/application.js.coffee +0 -0
  6. data/app/assets/stylesheets/novector/application.css +13 -0
  7. data/app/controllers/novector/application_controller.rb +27 -0
  8. data/app/controllers/novector/vector_fallback_controller.rb +79 -0
  9. data/app/helpers/novector/application_helper.rb +27 -0
  10. data/app/views/layouts/novector/application.html.erb +14 -0
  11. data/config/routes.rb +26 -0
  12. data/lib/novector/engine.rb +28 -0
  13. data/lib/novector/railtie.rb +32 -0
  14. data/lib/novector/vector_tag_helper.rb +32 -0
  15. data/lib/novector/version.rb +26 -0
  16. data/lib/novector.rb +29 -0
  17. data/lib/tasks/novector_tasks.rake +0 -0
  18. data/test/dummy/README.rdoc +28 -0
  19. data/test/dummy/Rakefile +6 -0
  20. data/test/dummy/app/assets/images/test.svg +18 -0
  21. data/test/dummy/app/assets/javascripts/application.js.coffee +25 -0
  22. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  23. data/test/dummy/app/controllers/application_controller.rb +28 -0
  24. data/test/dummy/app/controllers/novector_js_test_controller.rb +27 -0
  25. data/test/dummy/app/helpers/application_helper.rb +25 -0
  26. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  27. data/test/dummy/app/views/novector_js_test/test_fallback.html.erb +1 -0
  28. data/test/dummy/bin/bundle +3 -0
  29. data/test/dummy/bin/rails +4 -0
  30. data/test/dummy/bin/rake +4 -0
  31. data/test/dummy/config/application.rb +46 -0
  32. data/test/dummy/config/boot.rb +28 -0
  33. data/test/dummy/config/database.yml +25 -0
  34. data/test/dummy/config/environment.rb +28 -0
  35. data/test/dummy/config/environments/development.rb +52 -0
  36. data/test/dummy/config/environments/production.rb +103 -0
  37. data/test/dummy/config/environments/test.rb +59 -0
  38. data/test/dummy/config/initializers/backtrace_silencers.rb +22 -0
  39. data/test/dummy/config/initializers/filter_parameter_logging.rb +24 -0
  40. data/test/dummy/config/initializers/inflections.rb +22 -0
  41. data/test/dummy/config/initializers/mime_types.rb +22 -0
  42. data/test/dummy/config/initializers/secret_token.rb +24 -0
  43. data/test/dummy/config/initializers/session_store.rb +25 -0
  44. data/test/dummy/config/initializers/wrap_parameters.rb +26 -0
  45. data/test/dummy/config/locales/en.yml +23 -0
  46. data/test/dummy/config/routes.rb +28 -0
  47. data/test/dummy/config.ru +4 -0
  48. data/test/dummy/db/development.sqlite3 +0 -0
  49. data/test/dummy/db/test.sqlite3 +0 -0
  50. data/test/dummy/log/development.log +4390 -0
  51. data/test/dummy/log/test.log +28 -0
  52. data/test/dummy/public/404.html +58 -0
  53. data/test/dummy/public/422.html +58 -0
  54. data/test/dummy/public/500.html +57 -0
  55. data/test/dummy/public/favicon.ico +0 -0
  56. data/test/dummy/public/index.html +5 -0
  57. data/test/dummy/tmp/cache/8B3/9F1/%23%7Bsource%7D_%23%7Basset_mtime%7D_%23%7Bwidth%7D_%23%7Bheight%7D_%23%7Bformat%7D +0 -0
  58. data/test/dummy/tmp/cache/assets/development/sprockets/0d3881005b0646df783d5c24683d34f5 +0 -0
  59. data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  60. data/test/dummy/tmp/cache/assets/development/sprockets/1a6846f0a837ae2524e2f9ec89e6ef43 +0 -0
  61. data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  62. data/test/dummy/tmp/cache/assets/development/sprockets/3e0125f4f13be82bc5a02281674477ed +0 -0
  63. data/test/dummy/tmp/cache/assets/development/sprockets/4f718aff2230953fe8be999580618732 +0 -0
  64. data/test/dummy/tmp/cache/assets/development/sprockets/86e145a39f85cceeaffdff91ebb61449 +0 -0
  65. data/test/dummy/tmp/cache/assets/development/sprockets/b63b013eb2c61daded11152bb299bc21 +0 -0
  66. data/test/dummy/tmp/cache/assets/development/sprockets/c97695b571e457e7a757b449f8a1e4db +0 -0
  67. data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  68. data/test/dummy/tmp/cache/assets/development/sprockets/dca8a548218e0f8da42d69a1e8564bf4 +0 -0
  69. data/test/dummy/tmp/cache/assets/development/sprockets/de6a4845f72245338bbbcd74eb42dbc5 +0 -0
  70. data/test/dummy/tmp/cache/assets/development/sprockets/eff8385ae06988716d71bc33ba55546a +0 -0
  71. data/test/dummy/tmp/cache/assets/development/sprockets/f1460ae88a741d099a1375a9ffd77e1d +0 -0
  72. data/test/dummy/tmp/cache/assets/test/sprockets/c97695b571e457e7a757b449f8a1e4db +0 -0
  73. data/test/dummy/tmp/cache/assets/test/sprockets/dca8a548218e0f8da42d69a1e8564bf4 +0 -0
  74. data/test/integration/navigation_test.rb +10 -0
  75. data/test/novector_test.rb +35 -0
  76. data/test/test_helper.rb +38 -0
  77. data/vendor/assets/javascripts/novector.js.coffee +33 -0
  78. metadata +279 -0
@@ -0,0 +1,14 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Dummy</title>
5
+ <%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %>
6
+ <%= javascript_include_tag "application", "data-turbolinks-track" => true %>
7
+ <%= csrf_meta_tags %>
8
+ </head>
9
+ <body>
10
+
11
+ <%= yield %>
12
+
13
+ </body>
14
+ </html>
@@ -0,0 +1 @@
1
+ <%= vector_tag 'test.svg', :size => '1024x1024' %>
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
3
+ load Gem.bin_path('bundler', 'bundle')
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
3
+ require_relative '../config/boot'
4
+ require 'rails/commands'
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+ require_relative '../config/boot'
3
+ require 'rake'
4
+ Rake.application.run
@@ -0,0 +1,46 @@
1
+ #
2
+ # Copyright 2013 (c) John Colanduoni
3
+ #
4
+ # Permission is hereby granted, free of charge, to any person obtaining
5
+ # a copy of this software and associated documentation files (the
6
+ # "Software"), to deal in the Software without restriction, including
7
+ # without limitation the rights to use, copy, modify, merge, publish,
8
+ # distribute, sublicense, and/or sell copies of the Software, and to
9
+ # permit persons to whom the Software is furnished to do so, subject to
10
+ # the following conditions:
11
+ #
12
+ # The above copyright notice and this permission notice shall be
13
+ # included in all copies or substantial portions of the Software.
14
+ #
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
+ # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17
+ # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
+ # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19
+ # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20
+ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21
+ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
+ #
23
+
24
+ require File.expand_path('../boot', __FILE__)
25
+
26
+ require 'rails/all'
27
+
28
+ Bundler.require(*Rails.groups)
29
+ require "novector"
30
+
31
+ module Dummy
32
+ class Application < Rails::Application
33
+ # Settings in config/environments/* take precedence over those specified here.
34
+ # Application configuration should go into files in config/initializers
35
+ # -- all .rb files in that directory are automatically loaded.
36
+
37
+ # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
38
+ # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
39
+ # config.time_zone = 'Central Time (US & Canada)'
40
+
41
+ # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
42
+ # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
43
+ # config.i18n.default_locale = :de
44
+ end
45
+ end
46
+
@@ -0,0 +1,28 @@
1
+ #
2
+ # Copyright 2013 (c) John Colanduoni
3
+ #
4
+ # Permission is hereby granted, free of charge, to any person obtaining
5
+ # a copy of this software and associated documentation files (the
6
+ # "Software"), to deal in the Software without restriction, including
7
+ # without limitation the rights to use, copy, modify, merge, publish,
8
+ # distribute, sublicense, and/or sell copies of the Software, and to
9
+ # permit persons to whom the Software is furnished to do so, subject to
10
+ # the following conditions:
11
+ #
12
+ # The above copyright notice and this permission notice shall be
13
+ # included in all copies or substantial portions of the Software.
14
+ #
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
+ # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17
+ # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
+ # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19
+ # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20
+ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21
+ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
+ #
23
+
24
+ # Set up gems listed in the Gemfile.
25
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../../Gemfile', __FILE__)
26
+
27
+ require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
28
+ $LOAD_PATH.unshift File.expand_path('../../../../lib', __FILE__)
@@ -0,0 +1,25 @@
1
+ # SQLite version 3.x
2
+ # gem install sqlite3
3
+ #
4
+ # Ensure the SQLite 3 gem is defined in your Gemfile
5
+ # gem 'sqlite3'
6
+ development:
7
+ adapter: sqlite3
8
+ database: db/development.sqlite3
9
+ pool: 5
10
+ timeout: 5000
11
+
12
+ # Warning: The database defined as "test" will be erased and
13
+ # re-generated from your development database when you run "rake".
14
+ # Do not set this db to the same as development or production.
15
+ test:
16
+ adapter: sqlite3
17
+ database: db/test.sqlite3
18
+ pool: 5
19
+ timeout: 5000
20
+
21
+ production:
22
+ adapter: sqlite3
23
+ database: db/production.sqlite3
24
+ pool: 5
25
+ timeout: 5000
@@ -0,0 +1,28 @@
1
+ #
2
+ # Copyright 2013 (c) John Colanduoni
3
+ #
4
+ # Permission is hereby granted, free of charge, to any person obtaining
5
+ # a copy of this software and associated documentation files (the
6
+ # "Software"), to deal in the Software without restriction, including
7
+ # without limitation the rights to use, copy, modify, merge, publish,
8
+ # distribute, sublicense, and/or sell copies of the Software, and to
9
+ # permit persons to whom the Software is furnished to do so, subject to
10
+ # the following conditions:
11
+ #
12
+ # The above copyright notice and this permission notice shall be
13
+ # included in all copies or substantial portions of the Software.
14
+ #
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
+ # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17
+ # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
+ # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19
+ # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20
+ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21
+ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
+ #
23
+
24
+ # Load the Rails application.
25
+ require File.expand_path('../application', __FILE__)
26
+
27
+ # Initialize the Rails application.
28
+ Dummy::Application.initialize!
@@ -0,0 +1,52 @@
1
+ #
2
+ # Copyright 2013 (c) John Colanduoni
3
+ #
4
+ # Permission is hereby granted, free of charge, to any person obtaining
5
+ # a copy of this software and associated documentation files (the
6
+ # "Software"), to deal in the Software without restriction, including
7
+ # without limitation the rights to use, copy, modify, merge, publish,
8
+ # distribute, sublicense, and/or sell copies of the Software, and to
9
+ # permit persons to whom the Software is furnished to do so, subject to
10
+ # the following conditions:
11
+ #
12
+ # The above copyright notice and this permission notice shall be
13
+ # included in all copies or substantial portions of the Software.
14
+ #
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
+ # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17
+ # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
+ # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19
+ # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20
+ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21
+ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
+ #
23
+
24
+ Dummy::Application.configure do
25
+ # Settings specified here will take precedence over those in config/application.rb.
26
+
27
+ # In the development environment your application's code is reloaded on
28
+ # every request. This slows down response time but is perfect for development
29
+ # since you don't have to restart the web server when you make code changes.
30
+ config.cache_classes = false
31
+
32
+ # Do not eager load code on boot.
33
+ config.eager_load = false
34
+
35
+ # Show full error reports and disable caching.
36
+ config.consider_all_requests_local = true
37
+ config.action_controller.perform_caching = false
38
+
39
+ # Don't care if the mailer can't send.
40
+ config.action_mailer.raise_delivery_errors = false
41
+
42
+ # Print deprecation notices to the Rails logger.
43
+ config.active_support.deprecation = :log
44
+
45
+ # Raise an error on page load if there are pending migrations
46
+ config.active_record.migration_error = :page_load
47
+
48
+ # Debug mode disables concatenation and preprocessing of assets.
49
+ # This option may cause significant delays in view rendering with a large
50
+ # number of complex assets.
51
+ config.assets.debug = true
52
+ end
@@ -0,0 +1,103 @@
1
+ #
2
+ # Copyright 2013 (c) John Colanduoni
3
+ #
4
+ # Permission is hereby granted, free of charge, to any person obtaining
5
+ # a copy of this software and associated documentation files (the
6
+ # "Software"), to deal in the Software without restriction, including
7
+ # without limitation the rights to use, copy, modify, merge, publish,
8
+ # distribute, sublicense, and/or sell copies of the Software, and to
9
+ # permit persons to whom the Software is furnished to do so, subject to
10
+ # the following conditions:
11
+ #
12
+ # The above copyright notice and this permission notice shall be
13
+ # included in all copies or substantial portions of the Software.
14
+ #
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
+ # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17
+ # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
+ # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19
+ # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20
+ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21
+ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
+ #
23
+
24
+ Dummy::Application.configure do
25
+ # Settings specified here will take precedence over those in config/application.rb.
26
+
27
+ # Code is not reloaded between requests.
28
+ config.cache_classes = true
29
+
30
+ # Eager load code on boot. This eager loads most of Rails and
31
+ # your application in memory, allowing both thread web servers
32
+ # and those relying on copy on write to perform better.
33
+ # Rake tasks automatically ignore this option for performance.
34
+ config.eager_load = true
35
+
36
+ # Full error reports are disabled and caching is turned on.
37
+ config.consider_all_requests_local = false
38
+ config.action_controller.perform_caching = true
39
+
40
+ # Enable Rack::Cache to put a simple HTTP cache in front of your application
41
+ # Add `rack-cache` to your Gemfile before enabling this.
42
+ # For large-scale production use, consider using a caching reverse proxy like nginx, varnish or squid.
43
+ # config.action_dispatch.rack_cache = true
44
+
45
+ # Disable Rails's static asset server (Apache or nginx will already do this).
46
+ config.serve_static_assets = false
47
+
48
+ # Compress JavaScripts and CSS.
49
+ config.assets.js_compressor = :uglifier
50
+ # config.assets.css_compressor = :sass
51
+
52
+ # Do not fallback to assets pipeline if a precompiled asset is missed.
53
+ config.assets.compile = false
54
+
55
+ # Generate digests for assets URLs.
56
+ config.assets.digest = true
57
+
58
+ # Version of your assets, change this if you want to expire all your assets.
59
+ config.assets.version = '1.0'
60
+
61
+ # Specifies the header that your server uses for sending files.
62
+ # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
63
+ # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
64
+
65
+ # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
66
+ # config.force_ssl = true
67
+
68
+ # Set to :debug to see everything in the log.
69
+ config.log_level = :info
70
+
71
+ # Prepend all log lines with the following tags.
72
+ # config.log_tags = [ :subdomain, :uuid ]
73
+
74
+ # Use a different logger for distributed setups.
75
+ # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
76
+
77
+ # Use a different cache store in production.
78
+ # config.cache_store = :mem_cache_store
79
+
80
+ # Enable serving of images, stylesheets, and JavaScripts from an asset server.
81
+ # config.action_controller.asset_host = "http://assets.example.com"
82
+
83
+ # Precompile additional assets.
84
+ # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
85
+ # config.assets.precompile += %w( search.js )
86
+
87
+ # Ignore bad email addresses and do not raise email delivery errors.
88
+ # Set this to true and configure the email server for immediate delivery to raise delivery errors.
89
+ # config.action_mailer.raise_delivery_errors = false
90
+
91
+ # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
92
+ # the I18n.default_locale when a translation can not be found).
93
+ config.i18n.fallbacks = true
94
+
95
+ # Send deprecation notices to registered listeners.
96
+ config.active_support.deprecation = :notify
97
+
98
+ # Disable automatic flushing of the log to improve performance.
99
+ # config.autoflush_log = false
100
+
101
+ # Use default logging formatter so that PID and timestamp are not suppressed.
102
+ config.log_formatter = ::Logger::Formatter.new
103
+ end
@@ -0,0 +1,59 @@
1
+ #
2
+ # Copyright 2013 (c) John Colanduoni
3
+ #
4
+ # Permission is hereby granted, free of charge, to any person obtaining
5
+ # a copy of this software and associated documentation files (the
6
+ # "Software"), to deal in the Software without restriction, including
7
+ # without limitation the rights to use, copy, modify, merge, publish,
8
+ # distribute, sublicense, and/or sell copies of the Software, and to
9
+ # permit persons to whom the Software is furnished to do so, subject to
10
+ # the following conditions:
11
+ #
12
+ # The above copyright notice and this permission notice shall be
13
+ # included in all copies or substantial portions of the Software.
14
+ #
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
+ # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17
+ # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
+ # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19
+ # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20
+ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21
+ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
+ #
23
+
24
+ Dummy::Application.configure do
25
+ # Settings specified here will take precedence over those in config/application.rb.
26
+
27
+ # The test environment is used exclusively to run your application's
28
+ # test suite. You never need to work with it otherwise. Remember that
29
+ # your test database is "scratch space" for the test suite and is wiped
30
+ # and recreated between test runs. Don't rely on the data there!
31
+ config.cache_classes = true
32
+
33
+ # Do not eager load code on boot. This avoids loading your whole application
34
+ # just for the purpose of running a single test. If you are using a tool that
35
+ # preloads Rails for running tests, you may have to set it to true.
36
+ config.eager_load = false
37
+
38
+ # Configure static asset server for tests with Cache-Control for performance.
39
+ config.serve_static_assets = true
40
+ config.static_cache_control = "public, max-age=3600"
41
+
42
+ # Show full error reports and disable caching.
43
+ config.consider_all_requests_local = true
44
+ config.action_controller.perform_caching = false
45
+
46
+ # Raise exceptions instead of rendering exception templates.
47
+ config.action_dispatch.show_exceptions = false
48
+
49
+ # Disable request forgery protection in test environment.
50
+ config.action_controller.allow_forgery_protection = false
51
+
52
+ # Tell Action Mailer not to deliver emails to the real world.
53
+ # The :test delivery method accumulates sent emails in the
54
+ # ActionMailer::Base.deliveries array.
55
+ config.action_mailer.delivery_method = :test
56
+
57
+ # Print deprecation notices to the stderr.
58
+ config.active_support.deprecation = :stderr
59
+ end
@@ -0,0 +1,22 @@
1
+ #
2
+ # Copyright 2013 (c) John Colanduoni
3
+ #
4
+ # Permission is hereby granted, free of charge, to any person obtaining
5
+ # a copy of this software and associated documentation files (the
6
+ # "Software"), to deal in the Software without restriction, including
7
+ # without limitation the rights to use, copy, modify, merge, publish,
8
+ # distribute, sublicense, and/or sell copies of the Software, and to
9
+ # permit persons to whom the Software is furnished to do so, subject to
10
+ # the following conditions:
11
+ #
12
+ # The above copyright notice and this permission notice shall be
13
+ # included in all copies or substantial portions of the Software.
14
+ #
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
+ # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17
+ # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
+ # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19
+ # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20
+ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21
+ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
+ #
@@ -0,0 +1,24 @@
1
+ #
2
+ # Copyright 2013 (c) John Colanduoni
3
+ #
4
+ # Permission is hereby granted, free of charge, to any person obtaining
5
+ # a copy of this software and associated documentation files (the
6
+ # "Software"), to deal in the Software without restriction, including
7
+ # without limitation the rights to use, copy, modify, merge, publish,
8
+ # distribute, sublicense, and/or sell copies of the Software, and to
9
+ # permit persons to whom the Software is furnished to do so, subject to
10
+ # the following conditions:
11
+ #
12
+ # The above copyright notice and this permission notice shall be
13
+ # included in all copies or substantial portions of the Software.
14
+ #
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
+ # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17
+ # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
+ # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19
+ # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20
+ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21
+ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
+ #
23
+
24
+ Rails.application.config.filter_parameters += [:password]
@@ -0,0 +1,22 @@
1
+ #
2
+ # Copyright 2013 (c) John Colanduoni
3
+ #
4
+ # Permission is hereby granted, free of charge, to any person obtaining
5
+ # a copy of this software and associated documentation files (the
6
+ # "Software"), to deal in the Software without restriction, including
7
+ # without limitation the rights to use, copy, modify, merge, publish,
8
+ # distribute, sublicense, and/or sell copies of the Software, and to
9
+ # permit persons to whom the Software is furnished to do so, subject to
10
+ # the following conditions:
11
+ #
12
+ # The above copyright notice and this permission notice shall be
13
+ # included in all copies or substantial portions of the Software.
14
+ #
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
+ # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17
+ # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
+ # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19
+ # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20
+ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21
+ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
+ #
@@ -0,0 +1,22 @@
1
+ #
2
+ # Copyright 2013 (c) John Colanduoni
3
+ #
4
+ # Permission is hereby granted, free of charge, to any person obtaining
5
+ # a copy of this software and associated documentation files (the
6
+ # "Software"), to deal in the Software without restriction, including
7
+ # without limitation the rights to use, copy, modify, merge, publish,
8
+ # distribute, sublicense, and/or sell copies of the Software, and to
9
+ # permit persons to whom the Software is furnished to do so, subject to
10
+ # the following conditions:
11
+ #
12
+ # The above copyright notice and this permission notice shall be
13
+ # included in all copies or substantial portions of the Software.
14
+ #
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
+ # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17
+ # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
+ # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19
+ # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20
+ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21
+ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
+ #
@@ -0,0 +1,24 @@
1
+ #
2
+ # Copyright 2013 (c) John Colanduoni
3
+ #
4
+ # Permission is hereby granted, free of charge, to any person obtaining
5
+ # a copy of this software and associated documentation files (the
6
+ # "Software"), to deal in the Software without restriction, including
7
+ # without limitation the rights to use, copy, modify, merge, publish,
8
+ # distribute, sublicense, and/or sell copies of the Software, and to
9
+ # permit persons to whom the Software is furnished to do so, subject to
10
+ # the following conditions:
11
+ #
12
+ # The above copyright notice and this permission notice shall be
13
+ # included in all copies or substantial portions of the Software.
14
+ #
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
+ # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17
+ # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
+ # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19
+ # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20
+ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21
+ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
+ #
23
+
24
+ Dummy::Application.config.secret_key_base = 'a693c7535762ba0857239c97893579457a4f6b35251e0143b9d83b62167614ba70ade6855cbff4d2219bbcba4c1bfc462a65f01d0b15a02ab1db86f98562b9c4'
@@ -0,0 +1,25 @@
1
+ #
2
+ # Copyright 2013 (c) John Colanduoni
3
+ #
4
+ # Permission is hereby granted, free of charge, to any person obtaining
5
+ # a copy of this software and associated documentation files (the
6
+ # "Software"), to deal in the Software without restriction, including
7
+ # without limitation the rights to use, copy, modify, merge, publish,
8
+ # distribute, sublicense, and/or sell copies of the Software, and to
9
+ # permit persons to whom the Software is furnished to do so, subject to
10
+ # the following conditions:
11
+ #
12
+ # The above copyright notice and this permission notice shall be
13
+ # included in all copies or substantial portions of the Software.
14
+ #
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
+ # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17
+ # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
+ # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19
+ # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20
+ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21
+ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
+ #
23
+
24
+
25
+ Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
@@ -0,0 +1,26 @@
1
+ #
2
+ # Copyright 2013 (c) John Colanduoni
3
+ #
4
+ # Permission is hereby granted, free of charge, to any person obtaining
5
+ # a copy of this software and associated documentation files (the
6
+ # "Software"), to deal in the Software without restriction, including
7
+ # without limitation the rights to use, copy, modify, merge, publish,
8
+ # distribute, sublicense, and/or sell copies of the Software, and to
9
+ # permit persons to whom the Software is furnished to do so, subject to
10
+ # the following conditions:
11
+ #
12
+ # The above copyright notice and this permission notice shall be
13
+ # included in all copies or substantial portions of the Software.
14
+ #
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
+ # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17
+ # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
+ # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19
+ # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20
+ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21
+ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
+ #
23
+
24
+ ActiveSupport.on_load(:action_controller) do
25
+ wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
26
+ end
@@ -0,0 +1,23 @@
1
+ # Files in the config/locales directory are used for internationalization
2
+ # and are automatically loaded by Rails. If you want to use locales other
3
+ # than English, add the necessary files in this directory.
4
+ #
5
+ # To use the locales, use `I18n.t`:
6
+ #
7
+ # I18n.t 'hello'
8
+ #
9
+ # In views, this is aliased to just `t`:
10
+ #
11
+ # <%= t('hello') %>
12
+ #
13
+ # To use a different locale, set it with `I18n.locale`:
14
+ #
15
+ # I18n.locale = :es
16
+ #
17
+ # This would use the information in config/locales/es.yml.
18
+ #
19
+ # To learn more, please read the Rails Internationalization guide
20
+ # available at http://guides.rubyonrails.org/i18n.html.
21
+
22
+ en:
23
+ hello: "Hello world"
@@ -0,0 +1,28 @@
1
+ #
2
+ # Copyright 2013 (c) John Colanduoni
3
+ #
4
+ # Permission is hereby granted, free of charge, to any person obtaining
5
+ # a copy of this software and associated documentation files (the
6
+ # "Software"), to deal in the Software without restriction, including
7
+ # without limitation the rights to use, copy, modify, merge, publish,
8
+ # distribute, sublicense, and/or sell copies of the Software, and to
9
+ # permit persons to whom the Software is furnished to do so, subject to
10
+ # the following conditions:
11
+ #
12
+ # The above copyright notice and this permission notice shall be
13
+ # included in all copies or substantial portions of the Software.
14
+ #
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
+ # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17
+ # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
+ # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19
+ # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20
+ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21
+ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
+ #
23
+
24
+ Rails.application.routes.draw do
25
+ mount Novector::Engine => '/novector'
26
+
27
+ get '/novector_js_test', to: 'novector_js_test#test_fallback'
28
+ end
@@ -0,0 +1,4 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
+ run Rails.application
File without changes
File without changes