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

Rubocop #38

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

Rubocop #38

wants to merge 1 commit into from

Conversation

Marthyn
Copy link
Member

@Marthyn Marthyn commented Jun 10, 2015

Since at Hoppinger we use rubocop now, i decided while reading the code to fix some issues. I was a little lenient wit AbcSize and Methodlength

@sebastiaandegeus
Copy link
Member

You used a very different rubocop ruleset than we use in other Hoppinger projects. For instance you changed all quotations to double quotes while the latest default rubocop ruleset uses single quotes simple strings.

@sebastiaandegeus
Copy link
Member

Also in the readme single quotes have been changed where it should be a single code. It is not guaranteed that all WP"s processing is complete (some actions may still fire) by the time the webhook call is made.

@@ -20,3 +20,4 @@ tmp
*.o
*.a
mkmf.log
.DS_Store
Copy link
Member

Choose a reason for hiding this comment

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

@Marthyn Please add this to your personal global .gitignore file.

@Marthyn
Copy link
Member Author

Marthyn commented Jun 10, 2015

I thought I got the rubocop file from the dotfiles repo, but I'll check again

Sent from my iPhone

On Wed, Jun 10, 2015 at 8:16 AM -0700, "Sebastiaan" [email protected] wrote:
You used a very different rubocop ruleset than we use in other Hoppinger projects. For instance you changed all quotations to double quotes while the latest default rubocop ruleset uses single quotes simple strings.


Reply to this email directly or view it on GitHub:
#38 (comment)

@@ -10,7 +10,7 @@ This library is part of the [**WP on Rails**](https://github.com/wponrails) proj

To prepare a WP installation to be used in a **WP on Rails** architecture the [**wp-relinquish**](https://github.com/wponrails/wp-relinquish) plugin is provided. It provides a means to configure WP actions to send notifications as webhook calls to a Rails application equipped with **wp-connector**.

When using **WP on Rails** the content's *master data* resides in WP's database, as that's where is it created and modified. The Rails application that is connected to WP stores merely a copy of the data, a cache, on the basis of which the public requests are served.
When using **WP on Rails** the content"s *master data* resides in WP"s database, as that"s where is it created and modified. The Rails application that is connected to WP stores merely a copy of the data, a cache, on the basis of which the public requests are served.
Copy link
Member

Choose a reason for hiding this comment

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

@Marthyn Here single quotes are actually valid. Regardless of the rubocop setting. Did rubocop report this as wrong inside a .md file?

Copy link
Member Author

Choose a reason for hiding this comment

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

I should run rubocop only on lib and app folders probably

Sent from my iPhone

On Wed, Jun 10, 2015 at 8:22 AM -0700, "Sebastiaan" [email protected] wrote:

@@ -10,7 +10,7 @@ This library is part of the WP on Rails proj

To prepare a WP installation to be used in a WP on Rails architecture the wp-relinquish plugin is provided. It provides a means to configure WP actions to send notifications as webhook calls to a Rails application equipped with wp-connector.

-When using WP on Rails the content's master data resides in WP's database, as that's where is it created and modified. The Rails application that is connected to WP stores merely a copy of the data, a cache, on the basis of which the public requests are served.
+When using WP on Rails the content"s master data resides in WP"s database, as that"s where is it created and modified. The Rails application that is connected to WP stores merely a copy of the data, a cache, on the basis of which the public requests are served.

@Marthyn Here single quotes are actually valid. Regardless of the rubocop setting. Did rubocop report this as wrong inside a .md file?


Reply to this email directly or view it on GitHub:
https://github.com/wponrails/wp-connector/pull/38/files#r32129172

@Marthyn Marthyn force-pushed the boyscouting/rubocop branch from a22540f to 5ece33b Compare June 11, 2015 08:41
@Marthyn
Copy link
Member Author

Marthyn commented Jun 11, 2015

I rebased out the non lib/app files.

@dunyakirkali
Copy link
Contributor

👍

@dunyakirkali dunyakirkali added this to the V1.1.0 milestone Jun 17, 2015
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