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

Offences clean #7

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

Offences clean #7

wants to merge 1 commit into from

Conversation

ryanfox1985
Copy link
Owner

@ryanfox1985 ryanfox1985 commented Nov 26, 2016

Moved load yml to configuration.
Moved CLI code.

@coveralls
Copy link

coveralls commented Nov 26, 2016

Coverage Status

Coverage increased (+0.3%) to 96.61% when pulling 1e771ff on offences-clean into c51b063 on master.

@coveralls
Copy link

coveralls commented Dec 18, 2016

Coverage Status

Coverage increased (+0.3%) to 96.61% when pulling 16c8068 on offences-clean into c51b063 on master.

3 similar comments
@coveralls
Copy link

Coverage Status

Coverage increased (+0.3%) to 96.61% when pulling 16c8068 on offences-clean into c51b063 on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.3%) to 96.61% when pulling 16c8068 on offences-clean into c51b063 on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.3%) to 96.61% when pulling 16c8068 on offences-clean into c51b063 on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.3%) to 96.61% when pulling ba8d4ec on offences-clean into c51b063 on master.

1 similar comment
@coveralls
Copy link

coveralls commented Dec 18, 2016

Coverage Status

Coverage increased (+0.3%) to 96.61% when pulling ba8d4ec on offences-clean into c51b063 on master.

@coveralls
Copy link

coveralls commented Dec 18, 2016

Coverage Status

Coverage increased (+0.3%) to 96.61% when pulling 50e9add on offences-clean into c51b063 on master.

Reduced code.

Removed configurations.

Fix test.
More refactors.

Moved load yml to configuration.

Fixed slack exception.

Updated readme according YAML config file.
@coveralls
Copy link

coveralls commented Dec 19, 2016

Coverage Status

Coverage increased (+0.3%) to 96.61% when pulling 768e279 on offences-clean into b317439 on master.

3 similar comments
@coveralls
Copy link

Coverage Status

Coverage increased (+0.3%) to 96.61% when pulling 768e279 on offences-clean into b317439 on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.3%) to 96.61% when pulling 768e279 on offences-clean into b317439 on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.3%) to 96.61% when pulling 768e279 on offences-clean into b317439 on master.

Comment on lines +9 to +11
ATTRIBUTES = %w(required_variables optional_variables environment
config_file slack_webhook_url environments).freeze
OBJECTS = %w(logger slack_notifier configurations).freeze

Choose a reason for hiding this comment

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

Using %i instead of %w would avoid having to later call .map(&.to_sym), for example:

    ATTRIBUTES = %i(required_variables optional_variables environment
                    config_file slack_webhook_url environments).freeze

Comment on lines +78 to +81
configuration.public_send("#{a}=", options[a])

options[a.to_sym] &&
configuration.public_send("#{a}=", options[a.to_sym])

Choose a reason for hiding this comment

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

These might change based on previous comment.

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.

3 participants