Skip to content

Parse ERB when loading data from YAML files#7

Open
diminish7 wants to merge 2 commits intoFetcher:masterfrom
diminish7:parse_erb_in_yaml
Open

Parse ERB when loading data from YAML files#7
diminish7 wants to merge 2 commits intoFetcher:masterfrom
diminish7:parse_erb_in_yaml

Conversation

@diminish7
Copy link

This is a need we've run into using this gem with time-dependent data, where we've wanted to include, for example, the current date in YAML files we're loading.

This change would allow ERB syntax in YAML, so we can load data like:

data:
  - id: 1
    created_at: <%= Time.now %>

In addition, I've updated tests to use rspec 3 syntax to remove deprecation warnings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant