Skip to content

Instantly share code, notes, and snippets.

@rmzelle
Created March 23, 2016 22:16
Show Gist options
  • Save rmzelle/99d7021f38481e0e67bd to your computer and use it in GitHub Desktop.
Save rmzelle/99d7021f38481e0e67bd to your computer and use it in GitHub Desktop.
require 'json'
STYLE_ROOT = File.expand_path('../..', __FILE__)
RENAMED_STYLES_KEYS = []
RENAMED_STYLES_VALUES = []
# Read renamed-styles.json
begin
renamed_styles = JSON.parse(File.join("#{STYLE_ROOT}", "renamed-styles.json"))
RENAMED_STYLES_KEYS.push(renamed_styles.keys)
RENAMED_STYLES_VALUES.push(renamed_styles.values)
# make sure all keys are absent from basename collection
# make sure all values are present in basename collection
rescue
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment