-
Notifications
You must be signed in to change notification settings - Fork 0
Conversation
$ bundle
Using flip_fab 1.0.6 from source at `.`
Bundle complete! 7 Gemfile dependencies, 25 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
$ GEM_PRE_RELEASE=hacking bundle
Fetching gem metadata from https://rubygems.org/..........
Resolving dependencies...
Using flip_fab 1.0.6.hacking (was 1.0.6) from source at `.`
Bundle complete! 7 Gemfile dependencies, 25 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
$ GEM_PRE_RELEASE= bundle
Fetching gem metadata from https://rubygems.org/..........
Resolving dependencies...
Using flip_fab 1.0.6 (was 1.0.6.hacking) from source at `.`
Bundle complete! 7 Gemfile dependencies, 25 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
$ GEM_PRE_RELEASE=' ' bundle
Using flip_fab 1.0.6 from source at `.`
Bundle complete! 7 Gemfile dependencies, 25 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed. |
Hmm, not sure TBH, as per #16 (comment) ...
Which one is it... Personally, I prefer to have all version-related logic nicely encapsulated in the version file (and as a result also avoid the highlighted discrepancy) ... but could be convinced otherwise, I guess 😃 |
Not just today, but also going forward: if Dependabot makes any future changes to its "gemspec sanitizer" which our gemspec munging is incompatible with, we need to refactor our 40+ repos all over again. |
Sure, but same is true of bumping. What we're doing version wise is, frankly, hacky. The correct way to do this is probably to actually change the version that is built, via a PR, right? (That's the correct way of tackling this, not sure it works for us though.) |
Rubocop not too happy about this version:
(style guide for |
It might just be a dependabot bug. See this from dependabot's own gemspec: Gem::Specification.new do |spec|
common_gemspec =
Bundler.load_gemspec_uncached("../common/dependabot-common.gemspec")
spec.name = "dependabot-bundler"
spec.summary = "Ruby (bundler) support for dependabot"
spec.version = common_gemspec.version |
Here's my breaking test on dependabot:
context "with a combination of version constant and variables" do
let(:content) {
%q(gem_version = if false
Example::VERSION
else
"#{Example::VERSION}.test_version"
end
Spec.new { |s| s.version = gem_version })
}
it { is_expected.to eq( %q(gem_version = if false
"1.5.0"
else
"#{"1.5.0"}.test_version"
end
Spec.new { |s| s.version = "1.5.0" }) ) }
end Which outputs:
|
We have a different rubocop ignore :) |
Superseded by #21 ... closing PR. |
I like this version of the version gemspec better, but need to be sure it flies with dependabot.