Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • eb-rails-openbao-auth
  • ph/518678/removeVueMergeRequestListFeatureFlag
  • glql-crud
  • fcatteau-master-patch-73699
  • migrate-previously-created-runners-dedicated
  • bl-reorder-git-file-history-headings
  • 505201_ldap_outstanding_promo
  • docs-yaml-codeblocks-updates
  • backfill-desired-sharding-key-small-table-packages_debian_project_component_files
  • sharding-key-backfill-keeps
  • b_freitas-master-patch-f6a5
  • 514146-add-sharding-key-for-redirect_routes
  • 523627-policies-fix-compliance-frameworks
  • 523750-vue3-migration-labels_select_root_spec
  • ph/519717/mrDashboardListTypeRendering
  • jmd/auto-explain-on-mr
  • 522911/aslota-move-status-widget-to-ee
  • 523838-conversation-type
  • jmd/fix-es-service-auto-explain-leakage
  • v17.7.6-ee protected
  • v17.8.4-ee protected
  • v17.9.1-ee protected
  • v17.8.3-ee protected
  • v17.7.5-ee protected
  • v17.9.0-ee protected
  • v17.9.0-rc42-ee protected
  • v17.6.5-ee protected
  • v17.7.4-ee protected
  • v17.8.2-ee protected
  • v17.6.4-ee protected
  • v17.7.3-ee protected
  • v17.8.1-ee protected
  • v17.8.0-ee protected
  • v17.7.2-ee protected
  • v17.8.0-rc42-ee protected
  • v17.5.5-ee protected
  • v17.6.3-ee protected
  • v17.7.1-ee protected
  • v17.7.0-ee protected
40 results

api.rb

  • Stan Hu's avatar
    f31bac1d
    Upgrade Grape v1.1.0 to v1.3.2 · f31bac1d
    Stan Hu authored
    This brings in Ruby 2.7 suport and a number of fixes:
    https://github.com/ruby-grape/grape/blob/master/CHANGELOG.md
    
    1. Move all inherited Grape::API -> Grape::API::Instance
    2. Remove use of Virtus since this has been removed from Grape.
    3. Extract Rack::Response from API error
    4. Grape v1.2.3 pulled in a fix used in SafeFile:
    https://github.com/ruby-grape/grape/pull/1844, so we no longer need
    to maintain our custom type.
    5. Adapt WorkhorseFile with the latest changes to make custom types work
    with Grape and dry-types.
    6. Ensure Array[String] is coerced properly.
    
    The change from Virtus to dry-types now requires all strings to be
    coerced to arrays. Before this was done within Virtus.
    
    7. Coerce Array[Integer] types to arrays of integers
    
    The change from Virtus to dry-types now requires all strings to be
    coerced to arrays of integers. Before this was done within Virtus.
    f31bac1d
    History
    Upgrade Grape v1.1.0 to v1.3.2
    Stan Hu authored
    This brings in Ruby 2.7 suport and a number of fixes:
    https://github.com/ruby-grape/grape/blob/master/CHANGELOG.md
    
    1. Move all inherited Grape::API -> Grape::API::Instance
    2. Remove use of Virtus since this has been removed from Grape.
    3. Extract Rack::Response from API error
    4. Grape v1.2.3 pulled in a fix used in SafeFile:
    https://github.com/ruby-grape/grape/pull/1844, so we no longer need
    to maintain our custom type.
    5. Adapt WorkhorseFile with the latest changes to make custom types work
    with Grape and dry-types.
    6. Ensure Array[String] is coerced properly.
    
    The change from Virtus to dry-types now requires all strings to be
    coerced to arrays. Before this was done within Virtus.
    
    7. Coerce Array[Integer] types to arrays of integers
    
    The change from Virtus to dry-types now requires all strings to be
    coerced to arrays of integers. Before this was done within Virtus.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.