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

Update docs 6 #17526

Merged
merged 1 commit into from
Nov 6, 2014
Merged

Update docs 6 #17526

merged 1 commit into from
Nov 6, 2014

Conversation

rishijain
Copy link

  1. Added example of squish!
  2. Added example of remove
  3. Added example of remove!
  4. Added test case for removal of multiple occurrences of pattern.

@@ -273,7 +279,7 @@ def test_remove!
assert_equal "This is a good day", original.remove!(" to ", /die/)
assert_equal "This is a good day", original
end

Copy link
Member

Choose a reason for hiding this comment

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

✂️

Copy link
Author

Choose a reason for hiding this comment

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

I don't know why that came in the diff. As you can see I have just one line break above test_constantize.

screen shot 2014-11-06 at 07 22 13

Copy link
Member

Choose a reason for hiding this comment

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

It's not a line break it's whitespace. Looks like you have an extra added space or 2 😸

I add this to my .vimrc to highlight whitespace in bright red. Hope that helps!

" Hightlight whitespace and tabs
highlight ExtraWhitespace ctermbg=red guibg=red
match ExtraWhitespace /\s\+$/
autocmd BufWinEnter * match ExtraWhitespace /\s\+$/
autocmd InsertEnter * match ExtraWhitespace /\s\+\%#\@<!$/
autocmd InsertLeave * match ExtraWhitespace /\s\+$/

Copy link
Author

Choose a reason for hiding this comment

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

And yes indeed. There were whitespaces. Thanks @eileencodes
screen shot 2014-11-06 at 07 53 13

@vijaydev
Copy link
Member

vijaydev commented Nov 6, 2014

Can you please squash all the commits to one?

@rishijain
Copy link
Author

Added a new PR (#17532) with squashed commits.

@seuros
Copy link
Member

seuros commented Nov 6, 2014

Just force push in this branch, i closed the other. Without the ci_skip since there is a new test.

@rishijain
Copy link
Author

Done.

@seuros
Copy link
Member

seuros commented Nov 6, 2014

Please remove the [ci_skip] from the commit message.

pattern removal

added example for string#remove and test case for remove of multiple occurence of pattern

removed extra whitespaces
@rishijain
Copy link
Author

Done. Thankyou @seuros for the patience.

@seuros seuros assigned seuros and zzak and unassigned seuros Nov 6, 2014
vijaydev added a commit that referenced this pull request Nov 6, 2014
@vijaydev vijaydev merged commit 60c45b0 into rails:master Nov 6, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants