Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

bundle outdated --minor --patch does not work properly for patch updates #4396

Closed
RochesterinNYC opened this issue Mar 26, 2016 · 0 comments
Closed
Assignees

Comments

@RochesterinNYC
Copy link
Contributor

Sample Gemfile:

source "https://rubygems.org"

gem 'resque'
gem 'typhoeus'

Sample Gemfile.lock:

source "https://rubygems.org"

gem 'resque'
gem 'typhoeus'
Rochester:test Rochester$ cat Gemfile.lock
GEM
  remote: https://rubygems.org/
  specs:
    ethon (0.8.1)
      ffi (>= 1.3.0)
    ffi (1.9.10)
    mono_logger (1.1.0)
    multi_json (1.11.2)
    rack (1.6.4)
    rack-protection (1.5.3)
      rack
    redis (3.2.2)
    redis-namespace (1.5.2)
      redis (~> 3.0, >= 3.0.4)
    resque (1.25.2)
      mono_logger (~> 1.0)
      multi_json (~> 1.0)
      redis-namespace (~> 1.3)
      sinatra (>= 0.9.2)
      vegas (~> 0.1.2)
    sinatra (1.4.7)
      rack (~> 1.5)
      rack-protection (~> 1.4)
      tilt (>= 1.3, < 3)
    tilt (2.0.2)
    typhoeus (1.0.0)
      ethon (>= 0.8.0)
    vegas (0.1.11)
      rack (>= 1.0.0)

PLATFORMS
  ruby

DEPENDENCIES
  resque (= 1.25.2)
  typhoeus (= 1.0.0)

BUNDLED WITH
   1.12.0.pre.2

Sample bundle outdated outputs:

$ dbundle outdated
Fetching source index from https://rubygems.org/
Resolving dependencies..................

Outdated gems included in the bundle:
  * resque (newest 1.26.0, installed 1.25.2) in group "default"
  * typhoeus (newest 1.0.1, installed 1.0.0) in group "default"

$ dbundle outdated --minor
Fetching source index from https://rubygems.org/
Resolving dependencies..................

Outdated gems included in the bundle:
  * resque (newest 1.26.0, installed 1.25.2) in group "default"

$ dbundle outdated --patch
Fetching source index from https://rubygems.org/
Resolving dependencies..................

Outdated gems included in the bundle:
  * typhoeus (newest 1.0.1, installed 1.0.0) in group "default"

$ dbundle outdated --patch --minor
Fetching source index from https://rubygems.org/
Resolving dependencies..................

Outdated gems included in the bundle:
  * resque (newest 1.26.0, installed 1.25.2) in group "default"

The patch update in typhoeus is not detected/displayed when both --minor and --patch flags are used for bundle outdated. Some work and test coverage is required to make sure that the --major, --minor, and --patch flags still work properly when combined.

@indirect, the desired output for using bundle outdated --minor --patch would be to show both updates in the minor and patch version sections right?

@RochesterinNYC RochesterinNYC self-assigned this Mar 26, 2016
indirect pushed a commit that referenced this issue Mar 28, 2016
`--minor`, and `--patch` flags

- Add test coverage for these combination sets
- Fixes #4396
@homu homu closed this as completed in 2e39a8e Mar 28, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant