Created
March 23, 2016 22:16
-
-
Save rmzelle/99d7021f38481e0e67bd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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