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 rspec #203

Merged
merged 34 commits into from
Apr 11, 2016
Merged

Update rspec #203

merged 34 commits into from
Apr 11, 2016

Conversation

bastelfreak
Copy link
Member

I'm playing around a bit and updating stuff

  • remove much trailing whitespace
  • bumped rubocop to latest
  • adjusted rubocop conf
  • update code to be ruobcop complaint
  • add missing facts in spec tests
  • use correct scoping in classes
  • implement inheritance where needed
  • fix tests

@bastelfreak
Copy link
Member Author

I really really like the new HashSyntax in Ruby:

{symbol: 'myvalue'}

We could enforce this be enabling HashSyntax in rubocop. Any thoughts on this? This isn't valid syntax on anything prior Ruby1.9.3, but the modules doesn't support older versions.

@bastelfreak
Copy link
Member Author

w00p w00p almost done \o/

@bastelfreak
Copy link
Member Author

we're getting closer

@bastelfreak bastelfreak changed the title [WIP]Update rspec Update rspec Apr 9, 2016
@bastelfreak
Copy link
Member Author

Can someone please take a look and review? If anybody wants to adjust the .rubocop.yml: I'm willing to contribute a bit more work, especially in the new HashSyntax, but in a seperate PR.

Signed-off-by: Tim Meusel <tim@bastelfreak.de>
Signed-off-by: Tim Meusel <tim@bastelfreak.de>
this fixes Style/ConditionalAssignment from rubocop

Signed-off-by: Tim Meusel <tim@bastelfreak.de>
this fixes Style/ConditionalAssignment from rubocop 0.39.0

Signed-off-by: Tim Meusel <tim@bastelfreak.de>
fixes Style/ConditionalAssignment

Signed-off-by: Tim Meusel <tim@bastelfreak.de>
fixes "assigned but unused variable"

Signed-off-by: Tim Meusel <tim@bastelfreak.de>
TODO: maybe we can supply the int directly without converting it?
Signed-off-by: Tim Meusel <tim@bastelfreak.de>
Signed-off-by: Tim Meusel <tim@bastelfreak.de>
Signed-off-by: Tim Meusel <tim@bastelfreak.de>
they are needed since forever. The old rspec just didn't check correctly

Signed-off-by: Tim Meusel <tim@bastelfreak.de>
Signed-off-by: Tim Meusel <tim@bastelfreak.de>
Signed-off-by: Tim Meusel <tim@bastelfreak.de>
Signed-off-by: Tim Meusel <tim@bastelfreak.de>
Signed-off-by: Tim Meusel <tim@bastelfreak.de>
Signed-off-by: Tim Meusel <tim@bastelfreak.de>
Signed-off-by: Tim Meusel <tim@bastelfreak.de>
Signed-off-by: Tim Meusel <tim@bastelfreak.de>
Signed-off-by: Tim Meusel <tim@bastelfreak.de>
Signed-off-by: Tim Meusel <tim@bastelfreak.de>
Signed-off-by: Tim Meusel <tim@bastelfreak.de>
Signed-off-by: Tim Meusel <tim@bastelfreak.de>
Signed-off-by: Tim Meusel <tim@bastelfreak.de>
Signed-off-by: Tim Meusel <tim@bastelfreak.de>
Signed-off-by: Tim Meusel <tim@bastelfreak.de>
Signed-off-by: Tim Meusel <tim@bastelfreak.de>
Signed-off-by: Tim Meusel <tim@bastelfreak.de>
Signed-off-by: Tim Meusel <tim@bastelfreak.de>
Signed-off-by: Tim Meusel <tim@bastelfreak.de>
Signed-off-by: Tim Meusel <tim@bastelfreak.de>
Signed-off-by: Tim Meusel <tim@bastelfreak.de>
Signed-off-by: Tim Meusel <tim@bastelfreak.de>
Signed-off-by: Tim Meusel <tim@bastelfreak.de>
this is currently broken, see
rodjek/rspec-puppet#352

Signed-off-by: Tim Meusel <tim@bastelfreak.de>
Signed-off-by: Tim Meusel <tim@bastelfreak.de>
@dj-wasabi
Copy link
Contributor

Hi,

From what I can see this looks very good. @ericsysmin do you want to verify this too before we merge?

@dj-wasabi dj-wasabi merged commit d3dbe7f into voxpupuli:master Apr 11, 2016
@dj-wasabi
Copy link
Contributor

Thanks!!!

@bastelfreak bastelfreak deleted the update-rspec branch April 11, 2016 19:27
@dj-wasabi
Copy link
Contributor

@bastelfreak

If you think that updating the '.rubocop.yml' would increase the performance/reliability/maintenance/or ... please be my guest. If you do create new pr for this, I'll wait with creating a new release.

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.

None yet

3 participants