gitlab-derailed_benchmarks 1.6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. checksums.yaml +7 -0
  2. data/.github/workflows/check_changelog.yml +10 -0
  3. data/.gitignore +8 -0
  4. data/.gitlab-ci.yml +56 -0
  5. data/.travis.yml +18 -0
  6. data/Appraisals +26 -0
  7. data/CHANGELOG.md +105 -0
  8. data/Gemfile +9 -0
  9. data/README.md +692 -0
  10. data/Rakefile +29 -0
  11. data/bin/derailed +93 -0
  12. data/derailed_benchmarks.gemspec +39 -0
  13. data/gemfiles/.bundle/config +2 -0
  14. data/gemfiles/rails_5_1.gemfile +15 -0
  15. data/gemfiles/rails_5_2.gemfile +15 -0
  16. data/gemfiles/rails_6_0.gemfile +15 -0
  17. data/gemfiles/rails_git.gemfile +19 -0
  18. data/lib/derailed_benchmarks.rb +51 -0
  19. data/lib/derailed_benchmarks/auth_helper.rb +34 -0
  20. data/lib/derailed_benchmarks/auth_helpers/devise.rb +41 -0
  21. data/lib/derailed_benchmarks/core_ext/kernel_require.rb +88 -0
  22. data/lib/derailed_benchmarks/load_tasks.rb +145 -0
  23. data/lib/derailed_benchmarks/require_tree.rb +65 -0
  24. data/lib/derailed_benchmarks/stats_from_dir.rb +128 -0
  25. data/lib/derailed_benchmarks/stats_in_file.rb +60 -0
  26. data/lib/derailed_benchmarks/tasks.rb +292 -0
  27. data/lib/derailed_benchmarks/version.rb +5 -0
  28. data/test/derailed_benchmarks/core_ext/kernel_require_test.rb +33 -0
  29. data/test/derailed_benchmarks/require_tree_test.rb +95 -0
  30. data/test/derailed_benchmarks/stats_from_dir_test.rb +125 -0
  31. data/test/derailed_test.rb +14 -0
  32. data/test/fixtures/require/child_one.rb +4 -0
  33. data/test/fixtures/require/child_two.rb +9 -0
  34. data/test/fixtures/require/parent_one.rb +8 -0
  35. data/test/fixtures/require/raise_child.rb +6 -0
  36. data/test/fixtures/require/relative_child.rb +4 -0
  37. data/test/fixtures/require/relative_child_two.rb +4 -0
  38. data/test/fixtures/stats/significant/loser.bench.txt +100 -0
  39. data/test/fixtures/stats/significant/winner.bench.txt +100 -0
  40. data/test/integration/tasks_test.rb +132 -0
  41. data/test/rails_app/Rakefile +9 -0
  42. data/test/rails_app/app/assets/config/manifest.js +0 -0
  43. data/test/rails_app/app/assets/javascripts/authenticated.js +2 -0
  44. data/test/rails_app/app/assets/stylesheets/authenticated.css +4 -0
  45. data/test/rails_app/app/controllers/application_controller.rb +17 -0
  46. data/test/rails_app/app/controllers/authenticated_controller.rb +8 -0
  47. data/test/rails_app/app/controllers/pages_controller.rb +14 -0
  48. data/test/rails_app/app/helpers/application_helper.rb +4 -0
  49. data/test/rails_app/app/helpers/authenticated_helper.rb +4 -0
  50. data/test/rails_app/app/models/user.rb +13 -0
  51. data/test/rails_app/app/views/authenticated/index.html.erb +1 -0
  52. data/test/rails_app/app/views/layouts/application.html.erb +14 -0
  53. data/test/rails_app/app/views/pages/index.html.erb +1 -0
  54. data/test/rails_app/config.ru +6 -0
  55. data/test/rails_app/config/application.rb +52 -0
  56. data/test/rails_app/config/boot.rb +12 -0
  57. data/test/rails_app/config/database.yml +22 -0
  58. data/test/rails_app/config/environment.rb +11 -0
  59. data/test/rails_app/config/environments/development.rb +27 -0
  60. data/test/rails_app/config/environments/production.rb +51 -0
  61. data/test/rails_app/config/environments/test.rb +37 -0
  62. data/test/rails_app/config/initializers/backtrace_silencers.rb +9 -0
  63. data/test/rails_app/config/initializers/devise.rb +258 -0
  64. data/test/rails_app/config/initializers/inflections.rb +12 -0
  65. data/test/rails_app/config/initializers/mime_types.rb +7 -0
  66. data/test/rails_app/config/initializers/secret_token.rb +13 -0
  67. data/test/rails_app/config/initializers/session_store.rb +10 -0
  68. data/test/rails_app/config/locales/devise.en.yml +59 -0
  69. data/test/rails_app/config/locales/en.yml +9 -0
  70. data/test/rails_app/config/locales/es.yml +10 -0
  71. data/test/rails_app/config/routes.rb +67 -0
  72. data/test/rails_app/db/migrate/20141210070547_devise_create_users.rb +45 -0
  73. data/test/rails_app/db/schema.rb +35 -0
  74. data/test/rails_app/perf.rake +10 -0
  75. data/test/rails_app/public/404.html +26 -0
  76. data/test/rails_app/public/422.html +26 -0
  77. data/test/rails_app/public/500.html +26 -0
  78. data/test/rails_app/public/favicon.ico +0 -0
  79. data/test/rails_app/public/javascripts/application.js +2 -0
  80. data/test/rails_app/public/javascripts/controls.js +965 -0
  81. data/test/rails_app/public/javascripts/dragdrop.js +974 -0
  82. data/test/rails_app/public/javascripts/effects.js +1123 -0
  83. data/test/rails_app/public/javascripts/prototype.js +6001 -0
  84. data/test/rails_app/public/javascripts/rails.js +202 -0
  85. data/test/rails_app/public/stylesheets/.gitkeep +0 -0
  86. data/test/rails_app/script/rails +8 -0
  87. data/test/support/integration_case.rb +7 -0
  88. data/test/test_helper.rb +65 -0
  89. metadata +398 -0
@@ -0,0 +1,37 @@
1
+ # frozen_string_literal: true
2
+
3
+ Dummy::Application.configure do
4
+ # Settings specified here will take precedence over those in config/application.rb
5
+
6
+ # The test environment is used exclusively to run your application's
7
+ # test suite. You never need to work with it otherwise. Remember that
8
+ # your test database is "scratch space" for the test suite and is wiped
9
+ # and recreated between test runs. Don't rely on the data there!
10
+ config.cache_classes = true
11
+
12
+ # Log error messages when you accidentally call methods on nil.
13
+ config.whiny_nils = true
14
+
15
+ # Show full error reports and disable caching
16
+ config.consider_all_requests_local = true
17
+ config.action_controller.perform_caching = false
18
+
19
+ # Raise exceptions instead of rendering exception templates
20
+ config.action_dispatch.show_exceptions = false
21
+
22
+ # Disable request forgery protection in test environment
23
+ config.action_controller.allow_forgery_protection = false
24
+
25
+ # Tell Action Mailer not to deliver emails to the real world.
26
+ # The :test delivery method accumulates sent emails in the
27
+ # ActionMailer::Base.deliveries array.
28
+ config.action_mailer.delivery_method = :test
29
+
30
+ # Use SQL instead of Active Record's schema dumper when creating the test database.
31
+ # This is necessary if your schema can't be completely dumped by the schema dumper,
32
+ # like if you have constraints or database-specific column types
33
+ # config.active_record.schema_format = :sql
34
+
35
+ # Print deprecation notices to the stderr
36
+ config.active_support.deprecation = :stderr
37
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Be sure to restart your server when you modify this file.
4
+
5
+ # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
6
+ # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
7
+
8
+ # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
9
+ # Rails.backtrace_cleaner.remove_silencers!
@@ -0,0 +1,258 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Use this hook to configure devise mailer, warden hooks and so forth.
4
+ # Many of these configuration options can be set straight in your model.
5
+ Devise.setup do |config|
6
+ # The secret key used by Devise. Devise uses this key to generate
7
+ # random tokens. Changing this key will render invalid all existing
8
+ # confirmation, reset password and unlock tokens in the database.
9
+ config.secret_key = '527617f417a15170a26737856777918ab0e2665b59d41a183160eba6b038aaf81a3ebde5b5a8463cd2de1455462e40a37bcae057d580fbc4b251ceba3e85be84'
10
+
11
+ # ==> Mailer Configuration
12
+ # Configure the e-mail address which will be shown in Devise::Mailer,
13
+ # note that it will be overwritten if you use your own mailer class
14
+ # with default "from" parameter.
15
+ config.mailer_sender = 'please-change-me-at-config-initializers-devise@example.com'
16
+
17
+ # Configure the class responsible to send e-mails.
18
+ # config.mailer = 'Devise::Mailer'
19
+
20
+ # ==> ORM configuration
21
+ # Load and configure the ORM. Supports :active_record (default) and
22
+ # :mongoid (bson_ext recommended) by default. Other ORMs may be
23
+ # available as additional gems.
24
+ require 'devise/orm/active_record'
25
+
26
+ # ==> Configuration for any authentication mechanism
27
+ # Configure which keys are used when authenticating a user. The default is
28
+ # just :email. You can configure it to use [:username, :subdomain], so for
29
+ # authenticating a user, both parameters are required. Remember that those
30
+ # parameters are used only when authenticating and not when retrieving from
31
+ # session. If you need permissions, you should implement that in a before filter.
32
+ # You can also supply a hash where the value is a boolean determining whether
33
+ # or not authentication should be aborted when the value is not present.
34
+ # config.authentication_keys = [ :email ]
35
+
36
+ # Configure parameters from the request object used for authentication. Each entry
37
+ # given should be a request method and it will automatically be passed to the
38
+ # find_for_authentication method and considered in your model lookup. For instance,
39
+ # if you set :request_keys to [:subdomain], :subdomain will be used on authentication.
40
+ # The same considerations mentioned for authentication_keys also apply to request_keys.
41
+ # config.request_keys = []
42
+
43
+ # Configure which authentication keys should be case-insensitive.
44
+ # These keys will be downcased upon creating or modifying a user and when used
45
+ # to authenticate or find a user. Default is :email.
46
+ config.case_insensitive_keys = [ :email ]
47
+
48
+ # Configure which authentication keys should have whitespace stripped.
49
+ # These keys will have whitespace before and after removed upon creating or
50
+ # modifying a user and when used to authenticate or find a user. Default is :email.
51
+ config.strip_whitespace_keys = [ :email ]
52
+
53
+ # Tell if authentication through request.params is enabled. True by default.
54
+ # It can be set to an array that will enable params authentication only for the
55
+ # given strategies, for example, `config.params_authenticatable = [:database]` will
56
+ # enable it only for database (email + password) authentication.
57
+ # config.params_authenticatable = true
58
+
59
+ # Tell if authentication through HTTP Auth is enabled. False by default.
60
+ # It can be set to an array that will enable http authentication only for the
61
+ # given strategies, for example, `config.http_authenticatable = [:database]` will
62
+ # enable it only for database authentication. The supported strategies are:
63
+ # :database = Support basic authentication with authentication key + password
64
+ # config.http_authenticatable = false
65
+
66
+ # If http headers should be returned for AJAX requests. True by default.
67
+ # config.http_authenticatable_on_xhr = true
68
+
69
+ # The realm used in Http Basic Authentication. 'Application' by default.
70
+ # config.http_authentication_realm = 'Application'
71
+
72
+ # It will change confirmation, password recovery and other workflows
73
+ # to behave the same regardless if the e-mail provided was right or wrong.
74
+ # Does not affect registerable.
75
+ # config.paranoid = true
76
+
77
+ # By default Devise will store the user in session. You can skip storage for
78
+ # particular strategies by setting this option.
79
+ # Notice that if you are skipping storage for all authentication paths, you
80
+ # may want to disable generating routes to Devise's sessions controller by
81
+ # passing skip: :sessions to `devise_for` in your config/routes.rb
82
+ config.skip_session_storage = [:http_auth]
83
+
84
+ # By default, Devise cleans up the CSRF token on authentication to
85
+ # avoid CSRF token fixation attacks. This means that, when using AJAX
86
+ # requests for sign in and sign up, you need to get a new CSRF token
87
+ # from the server. You can disable this option at your own risk.
88
+ # config.clean_up_csrf_token_on_authentication = true
89
+
90
+ # ==> Configuration for :database_authenticatable
91
+ # For bcrypt, this is the cost for hashing the password and defaults to 10. If
92
+ # using other encryptors, it sets how many times you want the password re-encrypted.
93
+ #
94
+ # Limiting the stretches to just one in testing will increase the performance of
95
+ # your test suite dramatically. However, it is STRONGLY RECOMMENDED to not use
96
+ # a value less than 10 in other environments. Note that, for bcrypt (the default
97
+ # encryptor), the cost increases exponentially with the number of stretches (e.g.
98
+ # a value of 20 is already extremely slow: approx. 60 seconds for 1 calculation).
99
+ config.stretches = Rails.env.test? ? 1 : 10
100
+
101
+ # Setup a pepper to generate the encrypted password.
102
+ # config.pepper = '5cecc5d3d942e712c236b7f2b0ebda84c47642864d58b5ff4c76b7f6f5523d5d6ffdeed82ea742792889393527f67f684c00aa72ef1530d81b84713ee8fecca8'
103
+
104
+ # ==> Configuration for :confirmable
105
+ # A period that the user is allowed to access the website even without
106
+ # confirming their account. For instance, if set to 2.days, the user will be
107
+ # able to access the website for two days without confirming their account,
108
+ # access will be blocked just in the third day. Default is 0.days, meaning
109
+ # the user cannot access the website without confirming their account.
110
+ # config.allow_unconfirmed_access_for = 2.days
111
+
112
+ # A period that the user is allowed to confirm their account before their
113
+ # token becomes invalid. For example, if set to 3.days, the user can confirm
114
+ # their account within 3 days after the mail was sent, but on the fourth day
115
+ # their account can't be confirmed with the token any more.
116
+ # Default is nil, meaning there is no restriction on how long a user can take
117
+ # before confirming their account.
118
+ # config.confirm_within = 3.days
119
+
120
+ # If true, requires any email changes to be confirmed (exactly the same way as
121
+ # initial account confirmation) to be applied. Requires additional unconfirmed_email
122
+ # db field (see migrations). Until confirmed, new email is stored in
123
+ # unconfirmed_email column, and copied to email column on successful confirmation.
124
+ config.reconfirmable = true
125
+
126
+ # Defines which key will be used when confirming an account
127
+ # config.confirmation_keys = [ :email ]
128
+
129
+ # ==> Configuration for :rememberable
130
+ # The time the user will be remembered without asking for credentials again.
131
+ # config.remember_for = 2.weeks
132
+
133
+ # If true, extends the user's remember period when remembered via cookie.
134
+ # config.extend_remember_period = false
135
+
136
+ # Options to be passed to the created cookie. For instance, you can set
137
+ # secure: true in order to force SSL only cookies.
138
+ # config.rememberable_options = {}
139
+
140
+ # ==> Configuration for :validatable
141
+ # Range for password length.
142
+ config.password_length = 8..128
143
+
144
+ # Email regex used to validate email formats. It simply asserts that
145
+ # one (and only one) @ exists in the given string. This is mainly
146
+ # to give user feedback and not to assert the e-mail validity.
147
+ # config.email_regexp = /\A[^@]+@[^@]+\z/
148
+
149
+ # ==> Configuration for :timeoutable
150
+ # The time you want to timeout the user session without activity. After this
151
+ # time the user will be asked for credentials again. Default is 30 minutes.
152
+ # config.timeout_in = 30.minutes
153
+
154
+ # If true, expires auth token on session timeout.
155
+ # config.expire_auth_token_on_timeout = false
156
+
157
+ # ==> Configuration for :lockable
158
+ # Defines which strategy will be used to lock an account.
159
+ # :failed_attempts = Locks an account after a number of failed attempts to sign in.
160
+ # :none = No lock strategy. You should handle locking by yourself.
161
+ # config.lock_strategy = :failed_attempts
162
+
163
+ # Defines which key will be used when locking and unlocking an account
164
+ # config.unlock_keys = [ :email ]
165
+
166
+ # Defines which strategy will be used to unlock an account.
167
+ # :email = Sends an unlock link to the user email
168
+ # :time = Re-enables login after a certain amount of time (see :unlock_in below)
169
+ # :both = Enables both strategies
170
+ # :none = No unlock strategy. You should handle unlocking by yourself.
171
+ # config.unlock_strategy = :both
172
+
173
+ # Number of authentication tries before locking an account if lock_strategy
174
+ # is failed attempts.
175
+ # config.maximum_attempts = 20
176
+
177
+ # Time interval to unlock the account if :time is enabled as unlock_strategy.
178
+ # config.unlock_in = 1.hour
179
+
180
+ # Warn on the last attempt before the account is locked.
181
+ # config.last_attempt_warning = false
182
+
183
+ # ==> Configuration for :recoverable
184
+ #
185
+ # Defines which key will be used when recovering the password for an account
186
+ # config.reset_password_keys = [ :email ]
187
+
188
+ # Time interval you can reset your password with a reset password key.
189
+ # Don't put a too small interval or your users won't have the time to
190
+ # change their passwords.
191
+ config.reset_password_within = 6.hours
192
+
193
+ # ==> Configuration for :encryptable
194
+ # Allow you to use another encryption algorithm besides bcrypt (default). You can use
195
+ # :sha1, :sha512 or encryptors from others authentication tools as :clearance_sha1,
196
+ # :authlogic_sha512 (then you should set stretches above to 20 for default behavior)
197
+ # and :restful_authentication_sha1 (then you should set stretches to 10, and copy
198
+ # REST_AUTH_SITE_KEY to pepper).
199
+ #
200
+ # Require the `devise-encryptable` gem when using anything other than bcrypt
201
+ # config.encryptor = :sha512
202
+
203
+ # ==> Scopes configuration
204
+ # Turn scoped views on. Before rendering "sessions/new", it will first check for
205
+ # "users/sessions/new". It's turned off by default because it's slower if you
206
+ # are using only default views.
207
+ # config.scoped_views = false
208
+
209
+ # Configure the default scope given to Warden. By default it's the first
210
+ # devise role declared in your routes (usually :user).
211
+ # config.default_scope = :user
212
+
213
+ # Set this configuration to false if you want /users/sign_out to sign out
214
+ # only the current scope. By default, Devise signs out all scopes.
215
+ # config.sign_out_all_scopes = true
216
+
217
+ # ==> Navigation configuration
218
+ # Lists the formats that should be treated as navigational. Formats like
219
+ # :html, should redirect to the sign in page when the user does not have
220
+ # access, but formats like :xml or :json, should return 401.
221
+ #
222
+ # If you have any extra navigational formats, like :iphone or :mobile, you
223
+ # should add them to the navigational formats lists.
224
+ #
225
+ # The "*/*" below is required to match Internet Explorer requests.
226
+ # config.navigational_formats = ['*/*', :html]
227
+
228
+ # The default HTTP method used to sign out a resource. Default is :delete.
229
+ config.sign_out_via = :delete
230
+
231
+ # ==> OmniAuth
232
+ # Add a new OmniAuth provider. Check the wiki for more information on setting
233
+ # up on your models and hooks.
234
+ # config.omniauth :github, 'APP_ID', 'APP_SECRET', scope: 'user,public_repo'
235
+
236
+ # ==> Warden configuration
237
+ # If you want to use other strategies, that are not supported by Devise, or
238
+ # change the failure app, you can configure them inside the config.warden block.
239
+ #
240
+ # config.warden do |manager|
241
+ # manager.intercept_401 = false
242
+ # manager.default_strategies(scope: :user).unshift :some_external_strategy
243
+ # end
244
+
245
+ # ==> Mountable engine configurations
246
+ # When using Devise inside an engine, let's call it `MyEngine`, and this engine
247
+ # is mountable, there are some extra configurations to be taken into account.
248
+ # The following options are available, assuming the engine is mounted as:
249
+ #
250
+ # mount MyEngine, at: '/my_engine'
251
+ #
252
+ # The router that invoked `devise_for`, in the example above, would be:
253
+ # config.router_name = :my_engine
254
+ #
255
+ # When using omniauth, Devise cannot automatically set Omniauth path,
256
+ # so you need to do it manually. For the users scope, it would be:
257
+ # config.omniauth_path_prefix = '/my_engine/users/auth'
258
+ end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Be sure to restart your server when you modify this file.
4
+
5
+ # Add new inflection rules using the following format
6
+ # (all these examples are active by default):
7
+ # ActiveSupport::Inflector.inflections do |inflect|
8
+ # inflect.plural /^(ox)$/i, '\1en'
9
+ # inflect.singular /^(ox)en/i, '\1'
10
+ # inflect.irregular 'person', 'people'
11
+ # inflect.uncountable %w( fish sheep )
12
+ # end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Be sure to restart your server when you modify this file.
4
+
5
+ # Add new mime types for use in respond_to blocks:
6
+ # Mime::Type.register "text/richtext", :rtf
7
+ # Mime::Type.register_alias "text/html", :iphone
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Be sure to restart your server when you modify this file.
4
+
5
+ # Your secret key for verifying the integrity of signed cookies.
6
+ # If you change this key, all old signed cookies will become invalid!
7
+ # Make sure the secret is at least 30 characters and all random,
8
+ # no regular words or you'll be exposed to dictionary attacks.
9
+ if Dummy::Application.config.respond_to?(:secret_key_base)
10
+ Dummy::Application.config.secret_key_base = 'bedc31c5fff702ea808045bbbc5123455f1c00ecd005a1f667a5f04332100a6abf22cfcee2b3d39b8f677c03bb6503cf1c3b65c1287b9e13bd0d20c6431ec6ab'
11
+ else
12
+ Dummy::Application.config.secret_token = 'bedc31c5fff702ea808045bbbc5123455f1c00ecd005a1f667a5f04332100a6abf22cfcee2b3d39b8f677c03bb6503cf1c3b65c1287b9e13bd0d20c6431ec6ab'
13
+ end
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Be sure to restart your server when you modify this file.
4
+
5
+ Dummy::Application.config.session_store :cookie_store, :key => '_dummy_session'
6
+
7
+ # Use the database for sessions instead of the cookie-based default,
8
+ # which shouldn't be used to store highly confidential information
9
+ # (create the session table with "rails generate session_migration")
10
+ # Dummy::Application.config.session_store :active_record_store
@@ -0,0 +1,59 @@
1
+ # Additional translations at https://github.com/plataformatec/devise/wiki/I18n
2
+
3
+ en:
4
+ devise:
5
+ confirmations:
6
+ confirmed: "Your account was successfully confirmed."
7
+ send_instructions: "You will receive an email with instructions about how to confirm your account in a few minutes."
8
+ send_paranoid_instructions: "If your email address exists in our database, you will receive an email with instructions about how to confirm your account in a few minutes."
9
+ failure:
10
+ already_authenticated: "You are already signed in."
11
+ inactive: "Your account is not activated yet."
12
+ invalid: "Invalid email or password."
13
+ locked: "Your account is locked."
14
+ last_attempt: "You have one more attempt before your account will be locked."
15
+ not_found_in_database: "Invalid email or password."
16
+ timeout: "Your session expired. Please sign in again to continue."
17
+ unauthenticated: "You need to sign in or sign up before continuing."
18
+ unconfirmed: "You have to confirm your account before continuing."
19
+ mailer:
20
+ confirmation_instructions:
21
+ subject: "Confirmation instructions"
22
+ reset_password_instructions:
23
+ subject: "Reset password instructions"
24
+ unlock_instructions:
25
+ subject: "Unlock Instructions"
26
+ omniauth_callbacks:
27
+ failure: "Could not authenticate you from %{kind} because \"%{reason}\"."
28
+ success: "Successfully authenticated from %{kind} account."
29
+ passwords:
30
+ no_token: "You can't access this page without coming from a password reset email. If you do come from a password reset email, please make sure you used the full URL provided."
31
+ send_instructions: "You will receive an email with instructions on how to reset your password in a few minutes."
32
+ send_paranoid_instructions: "If your email address exists in our database, you will receive a password recovery link at your email address in a few minutes."
33
+ updated: "Your password was changed successfully. You are now signed in."
34
+ updated_not_active: "Your password was changed successfully."
35
+ registrations:
36
+ destroyed: "Bye! Your account was successfully cancelled. We hope to see you again soon."
37
+ signed_up: "Welcome! You have signed up successfully."
38
+ signed_up_but_inactive: "You have signed up successfully. However, we could not sign you in because your account is not yet activated."
39
+ signed_up_but_locked: "You have signed up successfully. However, we could not sign you in because your account is locked."
40
+ signed_up_but_unconfirmed: "A message with a confirmation link has been sent to your email address. Please open the link to activate your account."
41
+ update_needs_confirmation: "You updated your account successfully, but we need to verify your new email address. Please check your email and click on the confirm link to finalize confirming your new email address."
42
+ updated: "You updated your account successfully."
43
+ sessions:
44
+ signed_in: "Signed in successfully."
45
+ signed_out: "Signed out successfully."
46
+ unlocks:
47
+ send_instructions: "You will receive an email with instructions about how to unlock your account in a few minutes."
48
+ send_paranoid_instructions: "If your account exists, you will receive an email with instructions about how to unlock it in a few minutes."
49
+ unlocked: "Your account has been unlocked successfully. Please sign in to continue."
50
+ errors:
51
+ messages:
52
+ already_confirmed: "was already confirmed, please try signing in"
53
+ confirmation_period_expired: "needs to be confirmed within %{period}, please request a new one"
54
+ expired: "has expired, please request a new one"
55
+ not_found: "not found"
56
+ not_locked: "was not locked"
57
+ not_saved:
58
+ one: "1 error prohibited this %{resource} from being saved:"
59
+ other: "%{count} errors prohibited this %{resource} from being saved:"
@@ -0,0 +1,9 @@
1
+ # Sample localization file for English. Add more files in this directory for other locales.
2
+ # See http://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
3
+
4
+ en:
5
+ hello: "Hello world"
6
+ wicked:
7
+ first: "first"
8
+ second: "second"
9
+ last_step: "last_step"
@@ -0,0 +1,10 @@
1
+ # Sample localization file for Spanish. Add more files in this directory for other locales.
2
+ # See http://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
3
+
4
+ es:
5
+ hello: "hola mundo"
6
+ wicked:
7
+ first: "uno"
8
+ second: "dos"
9
+ last_step: "último_paso"
10
+
@@ -0,0 +1,67 @@
1
+ # frozen_string_literal: true
2
+
3
+ Dummy::Application.routes.draw do
4
+ devise_for :users
5
+
6
+ # The priority is based upon order of creation:
7
+ # first created -> highest priority.
8
+
9
+ # Sample of regular route:
10
+ # match 'products/:id' => 'catalog#view'
11
+ # Keep in mind you can assign values other than :controller and :action
12
+
13
+ # Sample of named route:
14
+ # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
15
+ # This route can be invoked with purchase_url(:id => product.id)
16
+
17
+ # Sample resource route (maps HTTP verbs to controller actions automatically):
18
+ # resources :products
19
+
20
+ # Sample resource route with options:
21
+ # resources :products do
22
+ # member do
23
+ # get 'short'
24
+ # post 'toggle'
25
+ # end
26
+ #
27
+ # collection do
28
+ # get 'sold'
29
+ # end
30
+ # end
31
+
32
+ # Sample resource route with sub-resources:
33
+ # resources :products do
34
+ # resources :comments, :sales
35
+ # resource :seller
36
+ # end
37
+
38
+ # Sample resource route with more complex sub-resources
39
+ # resources :products do
40
+ # resources :comments
41
+ # resources :sales do
42
+ # get 'recent', :on => :collection
43
+ # end
44
+ # end
45
+
46
+ # Sample resource route within a namespace:
47
+ # namespace :admin do
48
+ # # Directs /admin/products/* to Admin::ProductsController
49
+ # # (app/controllers/admin/products_controller.rb)
50
+ # resources :products
51
+ # end
52
+
53
+ # You can have the root of your site routed with "root"
54
+ # just remember to delete public/index.html.
55
+ root to: "pages#index"
56
+
57
+ get "foo", to: "pages#index"
58
+ get "foo_secret", to: "pages#secret"
59
+
60
+ get "authenticated", to: "authenticated#index"
61
+
62
+ # See how all your routes lay out with "rake routes"
63
+
64
+ # This is a legacy wild controller route that's not recommended for RESTful applications.
65
+ # Note: This route will make all actions in every controller accessible via GET requests.
66
+ # match ':controller(/:action(/:id(.:format)))'
67
+ end