momentjs-rails-updated 2.11.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (122) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +34 -0
  4. data/lib/momentjs-rails.rb +8 -0
  5. data/news.md +89 -0
  6. data/test/dummy/Rakefile +7 -0
  7. data/test/dummy/config.ru +4 -0
  8. data/test/dummy/config/application.rb +65 -0
  9. data/test/dummy/config/boot.rb +10 -0
  10. data/test/dummy/config/environment.rb +5 -0
  11. data/test/dummy/config/environments/development.rb +31 -0
  12. data/test/dummy/config/environments/production.rb +64 -0
  13. data/test/dummy/config/environments/test.rb +35 -0
  14. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  15. data/test/dummy/config/initializers/inflections.rb +15 -0
  16. data/test/dummy/config/initializers/mime_types.rb +5 -0
  17. data/test/dummy/config/initializers/secret_token.rb +7 -0
  18. data/test/dummy/config/initializers/session_store.rb +8 -0
  19. data/test/dummy/config/initializers/wrap_parameters.rb +10 -0
  20. data/test/dummy/config/locales/en.yml +5 -0
  21. data/test/dummy/config/routes.rb +2 -0
  22. data/test/integration/navigation_test.rb +18 -0
  23. data/test/momentjs-rails_test.rb +7 -0
  24. data/test/test_helper.rb +15 -0
  25. data/vendor/assets/javascripts/moment.js +3606 -0
  26. data/vendor/assets/javascripts/moment/af.js +73 -0
  27. data/vendor/assets/javascripts/moment/ar-ma.js +59 -0
  28. data/vendor/assets/javascripts/moment/ar-sa.js +103 -0
  29. data/vendor/assets/javascripts/moment/ar-tn.js +57 -0
  30. data/vendor/assets/javascripts/moment/ar.js +136 -0
  31. data/vendor/assets/javascripts/moment/az.js +104 -0
  32. data/vendor/assets/javascripts/moment/be.js +134 -0
  33. data/vendor/assets/javascripts/moment/bg.js +90 -0
  34. data/vendor/assets/javascripts/moment/bn.js +113 -0
  35. data/vendor/assets/javascripts/moment/bo.js +110 -0
  36. data/vendor/assets/javascripts/moment/br.js +107 -0
  37. data/vendor/assets/javascripts/moment/bs.js +141 -0
  38. data/vendor/assets/javascripts/moment/ca.js +79 -0
  39. data/vendor/assets/javascripts/moment/cs.js +171 -0
  40. data/vendor/assets/javascripts/moment/cv.js +63 -0
  41. data/vendor/assets/javascripts/moment/cy.js +79 -0
  42. data/vendor/assets/javascripts/moment/da.js +60 -0
  43. data/vendor/assets/javascripts/moment/de-at.js +77 -0
  44. data/vendor/assets/javascripts/moment/de.js +76 -0
  45. data/vendor/assets/javascripts/moment/dv.js +99 -0
  46. data/vendor/assets/javascripts/moment/el.js +98 -0
  47. data/vendor/assets/javascripts/moment/en-au.js +66 -0
  48. data/vendor/assets/javascripts/moment/en-ca.js +63 -0
  49. data/vendor/assets/javascripts/moment/en-gb.js +67 -0
  50. data/vendor/assets/javascripts/moment/en-ie.js +67 -0
  51. data/vendor/assets/javascripts/moment/en-nz.js +66 -0
  52. data/vendor/assets/javascripts/moment/eo.js +73 -0
  53. data/vendor/assets/javascripts/moment/es.js +79 -0
  54. data/vendor/assets/javascripts/moment/et.js +80 -0
  55. data/vendor/assets/javascripts/moment/eu.js +64 -0
  56. data/vendor/assets/javascripts/moment/fa.js +105 -0
  57. data/vendor/assets/javascripts/moment/fi.js +107 -0
  58. data/vendor/assets/javascripts/moment/fo.js +60 -0
  59. data/vendor/assets/javascripts/moment/fr-ca.js +58 -0
  60. data/vendor/assets/javascripts/moment/fr-ch.js +62 -0
  61. data/vendor/assets/javascripts/moment/fr.js +62 -0
  62. data/vendor/assets/javascripts/moment/fy.js +71 -0
  63. data/vendor/assets/javascripts/moment/gd.js +76 -0
  64. data/vendor/assets/javascripts/moment/gl.js +75 -0
  65. data/vendor/assets/javascripts/moment/he.js +82 -0
  66. data/vendor/assets/javascripts/moment/hi.js +123 -0
  67. data/vendor/assets/javascripts/moment/hr.js +143 -0
  68. data/vendor/assets/javascripts/moment/hu.js +109 -0
  69. data/vendor/assets/javascripts/moment/hy-am.js +95 -0
  70. data/vendor/assets/javascripts/moment/id.js +83 -0
  71. data/vendor/assets/javascripts/moment/is.js +127 -0
  72. data/vendor/assets/javascripts/moment/it.js +70 -0
  73. data/vendor/assets/javascripts/moment/ja.js +65 -0
  74. data/vendor/assets/javascripts/moment/jv.js +83 -0
  75. data/vendor/assets/javascripts/moment/ka.js +89 -0
  76. data/vendor/assets/javascripts/moment/kk.js +87 -0
  77. data/vendor/assets/javascripts/moment/km.js +58 -0
  78. data/vendor/assets/javascripts/moment/ko.js +68 -0
  79. data/vendor/assets/javascripts/moment/lb.js +134 -0
  80. data/vendor/assets/javascripts/moment/lo.js +69 -0
  81. data/vendor/assets/javascripts/moment/lt.js +115 -0
  82. data/vendor/assets/javascripts/moment/lv.js +96 -0
  83. data/vendor/assets/javascripts/moment/me.js +109 -0
  84. data/vendor/assets/javascripts/moment/mk.js +90 -0
  85. data/vendor/assets/javascripts/moment/ml.js +71 -0
  86. data/vendor/assets/javascripts/moment/mr.js +158 -0
  87. data/vendor/assets/javascripts/moment/ms-my.js +82 -0
  88. data/vendor/assets/javascripts/moment/ms.js +82 -0
  89. data/vendor/assets/javascripts/moment/my.js +93 -0
  90. data/vendor/assets/javascripts/moment/nb.js +61 -0
  91. data/vendor/assets/javascripts/moment/ne.js +121 -0
  92. data/vendor/assets/javascripts/moment/nl.js +71 -0
  93. data/vendor/assets/javascripts/moment/nn.js +60 -0
  94. data/vendor/assets/javascripts/moment/pl.js +105 -0
  95. data/vendor/assets/javascripts/moment/pt-br.js +60 -0
  96. data/vendor/assets/javascripts/moment/pt.js +64 -0
  97. data/vendor/assets/javascripts/moment/ro.js +74 -0
  98. data/vendor/assets/javascripts/moment/ru.js +166 -0
  99. data/vendor/assets/javascripts/moment/se.js +61 -0
  100. data/vendor/assets/javascripts/moment/si.js +66 -0
  101. data/vendor/assets/javascripts/moment/sk.js +150 -0
  102. data/vendor/assets/javascripts/moment/sl.js +160 -0
  103. data/vendor/assets/javascripts/moment/sq.js +69 -0
  104. data/vendor/assets/javascripts/moment/sr-cyrl.js +108 -0
  105. data/vendor/assets/javascripts/moment/sr.js +108 -0
  106. data/vendor/assets/javascripts/moment/sv.js +67 -0
  107. data/vendor/assets/javascripts/moment/sw.js +58 -0
  108. data/vendor/assets/javascripts/moment/ta.js +129 -0
  109. data/vendor/assets/javascripts/moment/te.js +88 -0
  110. data/vendor/assets/javascripts/moment/th.js +65 -0
  111. data/vendor/assets/javascripts/moment/tl-ph.js +62 -0
  112. data/vendor/assets/javascripts/moment/tlh.js +119 -0
  113. data/vendor/assets/javascripts/moment/tr.js +90 -0
  114. data/vendor/assets/javascripts/moment/tzl.js +87 -0
  115. data/vendor/assets/javascripts/moment/tzm-latn.js +58 -0
  116. data/vendor/assets/javascripts/moment/tzm.js +58 -0
  117. data/vendor/assets/javascripts/moment/uk.js +146 -0
  118. data/vendor/assets/javascripts/moment/uz.js +58 -0
  119. data/vendor/assets/javascripts/moment/vi.js +66 -0
  120. data/vendor/assets/javascripts/moment/zh-cn.js +127 -0
  121. data/vendor/assets/javascripts/moment/zh-tw.js +101 -0
  122. metadata +226 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 5636518e7bd73a83a158e9df1b5ced897cb2746b
4
+ data.tar.gz: cdcf29a0dc4eb1058052bd43e04994902f5321d4
5
+ SHA512:
6
+ metadata.gz: 4bb89f3b4fb20f914f6b21f4f1ad5bb2896c3a45782582d8c31aedd1084eb0c0f87b0e080e0f2a91a0060e8a428c0f8dd9e912314fdf28146b0d93c8fb89d552
7
+ data.tar.gz: 87e85e818ccfdff97b4aa9d041cd99c6576a9134694070bbbd184e759354d587151a7d12c8d8ec6b447c98728133e1cf25ced9e8922eb039ea4ee6f7d8853cc9
@@ -0,0 +1,20 @@
1
+ Copyright 2011 Derek Prior
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,34 @@
1
+ # momentjs-rails
2
+
3
+ momentjs-rails wraps the [Moment.js](http://momentjs.com/) library in a rails
4
+ engine for simple use with the asset pipeline provided by Rails 3.1 and higher.
5
+ The gem includes the development (non-minified) source for ease of exploration.
6
+ The asset pipeline will minify in production.
7
+
8
+ Moment.js is "a lightweight javascript date library for parsing, manipulating,
9
+ and formatting dates." Moment.js does not modify the native Date object. Rather,
10
+ it creates a wrapper for it. Please see the
11
+ [documentation](http://momentjs.com/docs/) for details.
12
+
13
+ ## Usage
14
+
15
+ Add the following to your gemfile:
16
+
17
+ gem 'momentjs-rails'
18
+
19
+ Add the following directive to your Javascript manifest file (application.js):
20
+
21
+ //= require moment
22
+
23
+ If you want to include a localization file, also add the following directive:
24
+
25
+ //= require moment/<locale>.js
26
+
27
+ ## Versioning
28
+
29
+ momentjs-rails 2.11.1 == Moment.js 2.11.1
30
+
31
+ Every attempt is made to mirror the currently shipping Moment.js version number
32
+ wherever possible. The major, minor, and patch version numbers will always
33
+ represent the Moment.js version. Should a gem bug be discovered, a 4th version
34
+ identifier will be added and incremented.
@@ -0,0 +1,8 @@
1
+ module Momentjs
2
+ module Rails
3
+ class Engine < ::Rails::Engine
4
+ # Get rails to add app, lib, vendor to load path
5
+ end
6
+ end
7
+ end
8
+
data/news.md ADDED
@@ -0,0 +1,89 @@
1
+ ### Version 2.11.0 (2016-01-27)
2
+ - Updated Moment.js to 2.11.1
3
+
4
+ ### Version 2.11.0 (2016-01-08)
5
+ - Updated Moment.js to 2.11.0
6
+
7
+ ### Version 2.10.6 (2015-10-06)
8
+ - Updated Moment.js to 2.10.6
9
+
10
+ ### Version 2.10.3 (2015-06-09)
11
+ - Updated Moment.js to 2.10.3
12
+
13
+ ### Version 2.10.2 (2015-04-23)
14
+ - Updated Moment.js to 2.10.2
15
+
16
+ ### Version 2.9.0 (2015-01-12)
17
+ - Updated Moment.js to 2.9.0
18
+
19
+ ### Version 2.8.4 (2015-01-12)
20
+ - Updated Moment.js to 2.8.4
21
+
22
+ ### Version 2.8.3 (2014-09-11)
23
+ - Updated Moment.js to 2.8.3
24
+
25
+ ### Version 2.8.2 (2014-09-11)
26
+ - Updated Moment.js to 2.8.2
27
+
28
+ ### Version 2.8.1 (2014-08-06)
29
+ - Updated Moment.js to 2.8.1
30
+
31
+ ### Version 2.8.0 (2014-08-06)
32
+ - Updated Moment.js to 2.8.0
33
+
34
+ ### Version 2.7.0 (2014-06-13)
35
+ - Updated Moment.js to 2.7.0
36
+
37
+ ### Version 2.6.0 (2014-04-25)
38
+ - Updated Moment.js to 2.6.0
39
+
40
+ ### Version 2.5.1 (2014-01-28)
41
+ - Updated Moment.js to 2.5.1
42
+
43
+ ### Version 2.5.0 (2014-01-05)
44
+ - Updated Moment.js to 2.5.0
45
+
46
+ ### Version 2.4.0 (2013-11-13)
47
+ - Updated Moment.js to 2.4.0
48
+
49
+ ### Version 2.2.1 (2013-09-19)
50
+ - Updated Moment.js to 2.2.1
51
+
52
+ ### Version 2.1.0 (2013-07-20)
53
+ - Updated Moment.js to 2.1.0
54
+ - Updated localization files using compressed versions (ready for browser)
55
+
56
+ ### Version 2.0.0.2 (2013-06-06)
57
+ - Fix localization files (thanks, eddloschi).
58
+
59
+ ### Version 2.0.0.1 (2013-03-16)
60
+ - Actually update Moment.js to 2.0.0 (whoops).
61
+ - gem version 2.0.0 was yanked. It was only live for two minutes, so hopefully
62
+ there was no harm done.
63
+
64
+ ### Version 2.0.0 (2013-03-16)
65
+ - Upgrade Moment.js to 2.0.0
66
+ - Upgrade localization files to 2.0.0 tagged versions.
67
+ - Update Railties dependency to allow Rails 4
68
+ - Added automated tests
69
+
70
+ ### Version 1.7.2 (2012-12-17)
71
+ - Upgrade Moment.js to 1.7.2
72
+ - Upgrade localization files to 1.7.2 tagged versions.
73
+
74
+ ### Version 1.7.0 (2012-08-06)
75
+ - Upgrade Moment.js to 1.7.0
76
+ - Upgrade localization files to 1.7.0 tagged versions.
77
+
78
+ ### Version 1.6.2 (2012-06-07)
79
+ - Upgraded Moment.js to 1.6.2
80
+ - Added localization files
81
+
82
+ ### Version 1.5.0 (2012-03-30)
83
+ - Upgraded Moment.js to 1.5.0
84
+
85
+ ### Version 1.4.0 (2012-02-09)
86
+ - Upgraded Moment.js to 1.4.0
87
+
88
+ ### Version 1.3.0 (2012-01-10)
89
+ - Initial Release
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env rake
2
+ # Add your own tasks in files placed in lib/tasks ending in .rake,
3
+ # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
4
+
5
+ require File.expand_path('../config/application', __FILE__)
6
+
7
+ Dummy::Application.load_tasks
@@ -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 Dummy::Application
@@ -0,0 +1,65 @@
1
+ require File.expand_path('../boot', __FILE__)
2
+
3
+ # Pick the frameworks you want:
4
+ # require "active_record/railtie"
5
+ # require "action_controller/railtie"
6
+ require "action_mailer/railtie"
7
+ # require "active_resource/railtie"
8
+ require "sprockets/railtie"
9
+ # require "rails/test_unit/railtie"
10
+
11
+ Bundler.require
12
+ require "momentjs-rails"
13
+
14
+ module Dummy
15
+ class Application < Rails::Application
16
+ # Settings in config/environments/* take precedence over those specified here.
17
+ # Application configuration should go into files in config/initializers
18
+ # -- all .rb files in that directory are automatically loaded.
19
+
20
+ # Custom directories with classes and modules you want to be autoloadable.
21
+ # config.autoload_paths += %W(#{config.root}/extras)
22
+
23
+ # Only load the plugins named here, in the order given (default is alphabetical).
24
+ # :all can be used as a placeholder for all plugins not explicitly named.
25
+ # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
26
+
27
+ # Activate observers that should always be running.
28
+ # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
29
+
30
+ # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
31
+ # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
32
+ # config.time_zone = 'Central Time (US & Canada)'
33
+
34
+ # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
35
+ # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
36
+ # config.i18n.default_locale = :de
37
+
38
+ # Configure the default encoding used in templates for Ruby 1.9.
39
+ config.encoding = "utf-8"
40
+
41
+ # Configure sensitive parameters which will be filtered from the log file.
42
+ config.filter_parameters += [:password]
43
+
44
+ # Enable escaping HTML in JSON.
45
+ config.active_support.escape_html_entities_in_json = true
46
+
47
+ # Use SQL instead of Active Record's schema dumper when creating the database.
48
+ # This is necessary if your schema can't be completely dumped by the schema dumper,
49
+ # like if you have constraints or database-specific column types
50
+ # config.active_record.schema_format = :sql
51
+
52
+ # Enforce whitelist mode for mass assignment.
53
+ # This will create an empty whitelist of attributes available for mass-assignment for all models
54
+ # in your app. As such, your models will need to explicitly whitelist or blacklist accessible
55
+ # parameters by using an attr_accessible or attr_protected declaration.
56
+ # config.active_record.whitelist_attributes = true
57
+
58
+ # Enable the asset pipeline
59
+ config.assets.enabled = true
60
+
61
+ # Version of your assets, change this if you want to expire all your assets
62
+ config.assets.version = '1.0'
63
+ end
64
+ end
65
+
@@ -0,0 +1,10 @@
1
+ require 'rubygems'
2
+ gemfile = File.expand_path('../../../../Gemfile', __FILE__)
3
+
4
+ if File.exist?(gemfile)
5
+ ENV['BUNDLE_GEMFILE'] = gemfile
6
+ require 'bundler'
7
+ Bundler.setup
8
+ end
9
+
10
+ $:.unshift File.expand_path('../../../../lib', __FILE__)
@@ -0,0 +1,5 @@
1
+ # Load the rails application
2
+ require File.expand_path('../application', __FILE__)
3
+
4
+ # Initialize the rails application
5
+ Dummy::Application.initialize!
@@ -0,0 +1,31 @@
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
+
26
+ # Do not compress assets
27
+ config.assets.compress = false
28
+
29
+ # Expands the lines which load the assets
30
+ config.assets.debug = true
31
+ end
@@ -0,0 +1,64 @@
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
+ end
@@ -0,0 +1,35 @@
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
+
33
+ # Print deprecation notices to the stderr
34
+ config.active_support.deprecation = :stderr
35
+ 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,5 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
5
+ # Mime::Type.register_alias "text/html", :iphone
@@ -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 = '49dfd6e5e224394dc63086a6507249b44ff1ca26e4a474ceb4e57f19aeacc345d514ee349e42e82b7a83d287041cf85487c0753f213534e4dbd02f355202a00b'
@@ -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