1. 06 Jun, 2016 2 commits
    • Timothy Andrew's avatar
      Update the `browser` gem. · e5823f36
      Timothy Andrew authored
      - Need the `mobile?` detection (that the new version provides) for the
        U2F registration/ authentication flow
      e5823f36
    • Timothy Andrew's avatar
      Add a `U2fRegistrations` table/model. · 791cc913
      Timothy Andrew authored
      - To hold registrations from U2F devices, and to authenticate them.
      - Previously, `User#two_factor_enabled` was aliased to the
        `otp_required_for_login` column on `users`.
      - This commit changes things a bit:
          - `User#two_factor_enabled` is not a method anymore
          - `User#two_factor_enabled?` checks both the
            `otp_required_for_login` column, as well as `U2fRegistration`s
          - Change all instances of `User#two_factor_enabled` to
            `User#two_factor_enabled?`
      - Add the `u2f` gem, and implement registration/authentication at the
        model level.
      791cc913
  2. 03 Jun, 2016 1 commit
    • Connor Shea's avatar
      Replace colorize gem with rainbow. · 903946c7
      Connor Shea authored
      Colorize is a gem licensed under the GPLv2, so we can’t use it in GitLab without relicensing GitLab under the terms of the GPL. Rainbow is licensed under the MIT license and does the exact same thing as Colorize, so Rainbow was added in place of Colorize.
      
      The syntax is slightly different for Rainbow vs. Colorize, and was updated in accordance.
      
      The gem is still a dependency of Spinach, so it’s included in the development/test environments, but won’t be packaged with the actual product, and therefore doesn’t require we relicense the product.
      
      An attempt at relicensing Colorize was made, but didn’t succeed as the library owner never responded.
      
      Rainbow library: https://github.com/sickill/rainbow
      Relevant issue regarding licensing in GitLab's gems: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/3775
      903946c7
  3. 01 Jun, 2016 1 commit
  4. 31 May, 2016 1 commit
  5. 30 May, 2016 2 commits
  6. 25 May, 2016 1 commit
  7. 23 May, 2016 2 commits
  8. 20 May, 2016 1 commit
  9. 16 May, 2016 1 commit
  10. 11 May, 2016 2 commits
  11. 10 May, 2016 2 commits
  12. 09 May, 2016 1 commit
  13. 03 May, 2016 1 commit
  14. 02 May, 2016 1 commit
  15. 01 May, 2016 2 commits
  16. 29 Apr, 2016 1 commit
  17. 28 Apr, 2016 1 commit
  18. 26 Apr, 2016 1 commit
  19. 24 Apr, 2016 1 commit
  20. 22 Apr, 2016 1 commit
    • Robert Speicher's avatar
      Add letter_opener_web gem · 702380f1
      Robert Speicher authored
      Sent emails in the development environment will no longer automatically
      be opened in the browser. If a sent email needs to be viewed, it can be
      found at the `/rails/letter_opener` route.
      702380f1
  21. 18 Apr, 2016 3 commits
  22. 12 Apr, 2016 1 commit
  23. 11 Apr, 2016 1 commit
  24. 10 Apr, 2016 1 commit
  25. 09 Apr, 2016 1 commit
  26. 07 Apr, 2016 1 commit
  27. 06 Apr, 2016 1 commit
  28. 05 Apr, 2016 1 commit
  29. 04 Apr, 2016 1 commit
    • Yorick Peterse's avatar
      Cache Banzai projects/objects using RequestStore · 57bde0ce
      Yorick Peterse authored
      This was originally suggested by @ayufan and modified to be a bit
      cleaner and use RequestStore instead of a regular Hash.
      
      By caching the output of the two methods involved the number of queries
      is reduced significantly. For example, for an issue with 200 notes (of
      which 100 reference a number of merge requests) this cuts down the
      amount of queries from around 6300 to around 3300.
      57bde0ce
  30. 25 Mar, 2016 2 commits
  31. 21 Mar, 2016 1 commit
    • connorshea's avatar
      Update Rubocop from 0.35.1 to 0.38.0. · 6274136c
      connorshea authored
      Discussed in #14233.
      
      See [their releases](https://github.com/bbatsov/rubocop/releases) for
      more info.
      
      Changes:
      - Enable DisplayCopNames for lint output.
      - Default behavior for `Alias` changed, set to enforce `prefer_alias_method`.
      - Enabling Rails cops changed to new syntax.
      - Remove StyleGuides and move Descriptions to comments.
      - Add missing cops.
      - Add TODOs for cops that should be enabled in the future.
      - Set TargetRubyVersion to 2.1.
      6274136c