Skip to content

Conversation

@DavidS
Copy link
Contributor

@DavidS DavidS commented Feb 13, 2020

No description provided.

@DavidS DavidS force-pushed the maint-updates branch 4 times, most recently from 4d43d19 to 276f230 Compare February 17, 2020 11:25
@DavidS
Copy link
Contributor Author

DavidS commented Feb 17, 2020

I didn't manage to get a remotely useful test pipeline up and running with ruby2.1 (see DavidS@4d43d19 for my last state before I gave up). So this only contains the lowering of the ruby lower bound.

@DavidS DavidS marked this pull request as ready for review February 17, 2020 11:27
@DavidS DavidS requested a review from a team as a code owner February 17, 2020 11:27
@DavidS DavidS requested a review from a team February 17, 2020 11:28
Copy link
Contributor

@glennsarti glennsarti left a comment

Choose a reason for hiding this comment

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

Can't say I'm a fan of committing Gemfile.lock.

It causes problems in Cross Platform development e.g. on Windows.

PLATFORMS
  x64-mingw32

@DavidS
Copy link
Contributor Author

DavidS commented Feb 17, 2020

Without it dependabot doesn't work. is this a case of either/or?

@glennsarti
Copy link
Contributor

glennsarti commented Feb 17, 2020

Given that the only thing that this gem will depend on is minitar and pathspec is dependabot even needed?

And it's causing complications with Travis testing as per your attempt at getting it run Ruby 2.1.9

@DavidS
Copy link
Contributor Author

DavidS commented Feb 18, 2020

I gave this another go on my windows test VM. Adding the platform for windows didn't impact functionality on linux, even when installing gems with native binaries like puppet. so DavidS@eddc90e can go in with no bother.

When adding the rubocop changes (see DavidS@3e6ef8e) it breaks with

  • if rubocop is installed: "Error: RuboCop found unsupported Ruby version 2.1 in TargetRubyVersion parameter (in .rubocop.yml). 2.1-compatible analysis was dropped after version 0.58."
  • if rubocop is not installed: "LoadError: cannot load such file -- rubocop/rake_task"

both of which are not related to the lock file

@scotje
Copy link

scotje commented Feb 18, 2020

Agree with @glennsarti about not including Gemfile.lock, it is considered a bad practice to version control Gemfile.lock in a gem that is intended to be composed into other projects. The runtime and development dependencies should be listed in the .gemspec unless that's not possible for some reason.

https://yehudakatz.com/2010/12/16/clarifying-the-roles-of-the-gemspec-and-gemfile/ (I know this is 10 years old at this point but I don't think the logic has fundamentally changed?)

@DavidS
Copy link
Contributor Author

DavidS commented Feb 19, 2020

TIL: dependabot can update the gemspec: https://dependabot.com/ruby/; I'll get that fixed.

@DavidS DavidS changed the title Various base maintenance adjustments (maint) Various base maintenance adjustments Feb 20, 2020
@DavidS DavidS added the maintenance maintenance label Feb 20, 2020
@DavidS DavidS force-pushed the maint-updates branch 5 times, most recently from 9052803 to 0593235 Compare February 20, 2020 11:05
@codecov-io
Copy link

codecov-io commented Feb 20, 2020

Codecov Report

❗ No coverage uploaded for pull request base (master@8450209). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master       #4   +/-   ##
=========================================
  Coverage          ?   71.79%           
=========================================
  Files             ?        2           
  Lines             ?      156           
  Branches          ?        0           
=========================================
  Hits              ?      112           
  Misses            ?       44           
  Partials          ?        0

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8450209...3e100b7. Read the comment docs.

DavidS and others added 4 commits February 20, 2020 11:12
dependabot can work directly with gemspec and Gemfile
Also adds running tests with 2.1.9 (puppet 4) and 2.4.9 (puppet 5.5) on travis.

Fixes puppetlabs#2
@glennsarti glennsarti merged commit d85b40d into puppetlabs:master Feb 20, 2020
@DavidS DavidS deleted the maint-updates branch February 20, 2020 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance maintenance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants