Skip to content

Offences clean - #7

Open
ryanfox1985 wants to merge 1 commit into
masterfrom
offences-clean
Open

Offences clean#7
ryanfox1985 wants to merge 1 commit into
masterfrom
offences-clean

Conversation

@ryanfox1985

@ryanfox1985 ryanfox1985 commented Nov 26, 2016

Copy link
Copy Markdown
Owner

Moved load yml to configuration.
Moved CLI code.

@coveralls

coveralls commented Nov 26, 2016

Copy link
Copy Markdown

Coverage Status

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

@coveralls

coveralls commented Dec 18, 2016

Copy link
Copy Markdown

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
Copy Markdown

Coverage Status

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

@coveralls

Copy link
Copy Markdown

Coverage Status

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

@coveralls

Copy link
Copy Markdown

Coverage Status

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

@coveralls

Copy link
Copy Markdown

Coverage Status

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

1 similar comment
@coveralls

coveralls commented Dec 18, 2016

Copy link
Copy Markdown

Coverage Status

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

@coveralls

coveralls commented Dec 18, 2016

Copy link
Copy Markdown

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

coveralls commented Dec 19, 2016

Copy link
Copy Markdown

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
Copy Markdown

Coverage Status

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

@coveralls

Copy link
Copy Markdown

Coverage Status

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

@coveralls

Copy link
Copy Markdown

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

Copy link
Copy Markdown

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])

Copy link
Copy Markdown

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