bigcommerce / bigcommerce-api-ruby

Connect Ruby applications with the Bigcommerce Platform
https://developer.bigcommerce.com
MIT License
79 stars 124 forks source link

RUBY-17: Add frozen_string_literal magic comment to all files #170

Closed splittingred closed 2 years ago

splittingred commented 2 years ago

What?

Adds frozen_string_literal: true directive to all files, allowing Ruby to refer to allocate them once and refer in its hash table to that same string, reducing overall memory usage for this library.

Also moves strings to constants where appropriate to do so.