Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #273 #274

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

alexiscreuzot
Copy link

Summary

Here's an implementation of a possible improvement linked to issue #273.
Please do review it carefully as Ruby isn't my strong suit.

Feature

You can now optionally specify an array of suffixes that need to be processed by liftoff as resource (ie not be added to the Compile Sources phase), using the key additional_resource_suffixes.

Example

additional_resource_suffixes:
 - txt
 - yaml
 - ttf

Test

See https://github.com/kirualex/liftoff/blob/feature/%23273/spec/project_configuration_spec.rb#L76-L84


config = Liftoff::ProjectConfiguration.new({:additional_resource_suffixes => additional_resource_suffixes})

expect(config.additional_resource_suffixes).to eq(['foo', 'bar'])

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.

@gfontenot gfontenot changed the base branch from master to main June 27, 2020 18:22
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.

2 participants