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

Commit

Permalink
Rename "Locked" to "Current"
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez committed Oct 12, 2019
1 parent a7cec29 commit 76b1d89
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 54 deletions.
2 changes: 1 addition & 1 deletion lib/bundler/cli/outdated.rb
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ def print_indented(matrix)
end

def table_header
header = ["Gem", "Locked", "Latest", "Requested", "Groups"]
header = ["Gem", "Current", "Latest", "Requested", "Groups"]
header << "Path" if Bundler.ui.debug?
header
end
Expand Down
102 changes: 51 additions & 51 deletions spec/commands/outdated_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
bundle "outdated"

expected_output = <<~TABLE.gsub("x", "\\\h").tr(".", "\.").strip
Gem Locked Latest Requested Groups
Gem Current Latest Requested Groups
activesupport 2.3.5 3.0 = 2.3.5 default
foo 1.0 xxxxxxx 1.0 xxxxxxx >= 0 default
weakling 0.0.3 0.2 ~> 0.0.1 default
Expand All @@ -53,8 +53,8 @@
bundle "outdated"

expected_output = <<~TABLE
Gem Locked Latest Requested Groups
AAA 1.0.0 2.0.0 = 1.0.0 default
Gem Current Latest Requested Groups
AAA 1.0.0 2.0.0 = 1.0.0 default
TABLE

expect(out).to include(expected_output.strip)
Expand Down Expand Up @@ -94,9 +94,9 @@
bundle "outdated"

expected_output = <<~TABLE.strip
Gem Locked Latest Requested Groups
activesupport 2.3.5 3.0 = 2.3.5 development, test
terranova 8 9 = 8 default
Gem Current Latest Requested Groups
activesupport 2.3.5 3.0 = 2.3.5 development, test
terranova 8 9 = 8 default
TABLE

expect(out).to end_with(expected_output)
Expand Down Expand Up @@ -127,9 +127,9 @@
bundle "outdated --verbose"

expected_output = <<~TABLE.strip
Gem Locked Latest Requested Groups Path
activesupport 2.3.5 3.0 = 2.3.5 default
terranova 8 9 = 8 default #{default_bundle_path("specifications/terranova-9.gemspec")}
Gem Current Latest Requested Groups Path
activesupport 2.3.5 3.0 = 2.3.5 default
terranova 8 9 = 8 default #{default_bundle_path("specifications/terranova-9.gemspec")}
TABLE

expect(out).to end_with(expected_output)
Expand Down Expand Up @@ -169,8 +169,8 @@ def test_group_option(group)
test_group_option("default")

expected_output = <<~TABLE.strip
Gem Locked Latest Requested Groups
terranova 8 9 = 8 default
Gem Current Latest Requested Groups
terranova 8 9 = 8 default
TABLE

expect(out).to end_with(expected_output)
Expand All @@ -180,9 +180,9 @@ def test_group_option(group)
test_group_option("development")

expected_output = <<~TABLE.strip
Gem Locked Latest Requested Groups
activesupport 2.3.5 3.0 = 2.3.5 development, test
duradura 7.0 8.0 = 7.0 development, test
Gem Current Latest Requested Groups
activesupport 2.3.5 3.0 = 2.3.5 development, test
duradura 7.0 8.0 = 7.0 development, test
TABLE

expect(out).to end_with(expected_output)
Expand All @@ -192,9 +192,9 @@ def test_group_option(group)
test_group_option("test")

expected_output = <<~TABLE.strip
Gem Locked Latest Requested Groups
activesupport 2.3.5 3.0 = 2.3.5 development, test
duradura 7.0 8.0 = 7.0 development, test
Gem Current Latest Requested Groups
activesupport 2.3.5 3.0 = 2.3.5 development, test
duradura 7.0 8.0 = 7.0 development, test
TABLE

expect(out).to end_with(expected_output)
Expand Down Expand Up @@ -226,8 +226,8 @@ def test_group_option(group)
bundle "outdated --groups"

expected_output = <<~TABLE.strip
Gem Locked Latest Requested Groups
bar 2.0.0 3.0.0
Gem Current Latest Requested Groups
bar 2.0.0 3.0.0
TABLE

expect(out).to end_with(expected_output)
Expand Down Expand Up @@ -263,10 +263,10 @@ def test_group_option(group)
bundle "outdated --groups"

expected_output = <<~TABLE.strip
Gem Locked Latest Requested Groups
activesupport 2.3.5 3.0 = 2.3.5 development, test
duradura 7.0 8.0 = 7.0 development, test
terranova 8 9 = 8 default
Gem Current Latest Requested Groups
activesupport 2.3.5 3.0 = 2.3.5 development, test
duradura 7.0 8.0 = 7.0 development, test
terranova 8 9 = 8 default
TABLE

expect(out).to end_with(expected_output)
Expand All @@ -289,8 +289,8 @@ def test_group_option(group)
bundle "outdated --local"

expected_output = <<~TABLE.strip
Gem Locked Latest Requested Groups
activesupport 2.3.4 2.3.5 = 2.3.4 default
Gem Current Latest Requested Groups
activesupport 2.3.4 2.3.5 = 2.3.4 default
TABLE

expect(out).to end_with(expected_output)
Expand Down Expand Up @@ -351,7 +351,7 @@ def test_group_option(group)
bundle "outdated foo"

expected_output = <<~TABLE.gsub("x", "\\\h").tr(".", "\.").strip
Gem Locked Latest Requested Groups
Gem Current Latest Requested Groups
foo 1.0 xxxxxxx 1.0 xxxxxxx >= 0 default
TABLE

Expand Down Expand Up @@ -381,8 +381,8 @@ def test_group_option(group)
bundle "outdated --pre"

expected_output = <<~TABLE.strip
Gem Locked Latest Requested Groups
activesupport 2.3.5 3.0.0.beta = 2.3.5 default
Gem Current Latest Requested Groups
activesupport 2.3.5 3.0.0.beta = 2.3.5 default
TABLE

expect(out).to end_with(expected_output)
Expand All @@ -404,7 +404,7 @@ def test_group_option(group)
bundle "outdated"

expected_output = <<~TABLE.strip
Gem Locked Latest Requested Groups
Gem Current Latest Requested Groups
activesupport 3.0.0.beta.1 3.0.0.beta.2 = 3.0.0.beta.1 default
TABLE

Expand All @@ -424,8 +424,8 @@ def test_group_option(group)
bundle :outdated, filter_strict_option => true

expected_output = <<~TABLE.strip
Gem Locked Latest Requested Groups
weakling 0.0.3 0.0.5 ~> 0.0.1 default
Gem Current Latest Requested Groups
weakling 0.0.3 0.0.5 ~> 0.0.1 default
TABLE

expect(out).to end_with(expected_output)
Expand Down Expand Up @@ -458,8 +458,8 @@ def test_group_option(group)
bundle :outdated, filter_strict_option => true, "filter-patch" => true

expected_output = <<~TABLE.strip
Gem Locked Latest Requested Groups
weakling 0.0.3 0.0.5 >= 0.0.1 default
Gem Current Latest Requested Groups
weakling 0.0.3 0.0.5 >= 0.0.1 default
TABLE

expect(out).to end_with(expected_output)
Expand All @@ -480,8 +480,8 @@ def test_group_option(group)
bundle :outdated, filter_strict_option => true, "filter-minor" => true

expected_output = <<~TABLE.strip
Gem Locked Latest Requested Groups
weakling 0.0.3 0.1.5 >= 0.0.1 default
Gem Current Latest Requested Groups
weakling 0.0.3 0.1.5 >= 0.0.1 default
TABLE

expect(out).to end_with(expected_output)
Expand All @@ -502,8 +502,8 @@ def test_group_option(group)
bundle :outdated, filter_strict_option => true, "filter-major" => true

expected_output = <<~TABLE.strip
Gem Locked Latest Requested Groups
weakling 0.0.3 1.1.5 >= 0.0.1 default
Gem Current Latest Requested Groups
weakling 0.0.3 1.1.5 >= 0.0.1 default
TABLE

expect(out).to end_with(expected_output)
Expand Down Expand Up @@ -616,8 +616,8 @@ def test_group_option(group)
bundle "outdated"

expected_output = <<~TABLE.strip
Gem Locked Latest Requested Groups
laduradura 5.15.2 5.15.3 = 5.15.2 default
Gem Current Latest Requested Groups
laduradura 5.15.2 5.15.3 = 5.15.2 default
TABLE

expect(out).to end_with(expected_output)
Expand Down Expand Up @@ -817,10 +817,10 @@ def test_group_option(group)
bundle "outdated --patch --filter-patch"

expected_output = <<~TABLE.strip
Gem Locked Latest Requested Groups
major 1.0.0 1.0.1 >= 0 default
minor 1.0.0 1.0.1 >= 0 default
patch 1.0.0 1.0.1 >= 0 default
Gem Current Latest Requested Groups
major 1.0.0 1.0.1 >= 0 default
minor 1.0.0 1.0.1 >= 0 default
patch 1.0.0 1.0.1 >= 0 default
TABLE

expect(out).to end_with(expected_output)
Expand All @@ -830,9 +830,9 @@ def test_group_option(group)
bundle "outdated --minor --filter-minor"

expected_output = <<~TABLE.strip
Gem Locked Latest Requested Groups
major 1.0.0 1.1.0 >= 0 default
minor 1.0.0 1.1.0 >= 0 default
Gem Current Latest Requested Groups
major 1.0.0 1.1.0 >= 0 default
minor 1.0.0 1.1.0 >= 0 default
TABLE

expect(out).to end_with(expected_output)
Expand Down Expand Up @@ -884,9 +884,9 @@ def test_group_option(group)
bundle "outdated --patch --update-strict --filter-patch"

expected_output = <<~TABLE.strip
Gem Locked Latest Requested Groups
bar 2.0.3 2.0.5
foo 1.4.3 1.4.4 >= 0 default
Gem Current Latest Requested Groups
bar 2.0.3 2.0.5
foo 1.4.3 1.4.4 >= 0 default
TABLE

expect(out).to end_with(expected_output)
Expand Down Expand Up @@ -917,8 +917,8 @@ def test_group_option(group)
bundle "outdated --only-explicit"

expected_output = <<~TABLE.strip
Gem Locked Latest Requested Groups
weakling 0.2 0.3 >= 0 default
Gem Current Latest Requested Groups
weakling 0.2 0.3 >= 0 default
TABLE

expect(out).to end_with(expected_output)
Expand Down
4 changes: 2 additions & 2 deletions spec/other/platform_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1187,7 +1187,7 @@ def should_be_patchlevel_fixnum
bundle "outdated"

expected_output = <<~TABLE.gsub("x", "\\\h").tr(".", "\.").strip
Gem Locked Latest Requested Groups
Gem Current Latest Requested Groups
activesupport 2.3.5 3.0 = 2.3.5 default
foo 1.0 xxxxxxx 1.0 xxxxxxx >= 0 default
TABLE
Expand All @@ -1214,7 +1214,7 @@ def should_be_patchlevel_fixnum
bundle "outdated"

expected_output = <<~TABLE.gsub("x", "\\\h").tr(".", "\.").strip
Gem Locked Latest Requested Groups
Gem Current Latest Requested Groups
activesupport 2.3.5 3.0 = 2.3.5 default
foo 1.0 xxxxxxx 1.0 xxxxxxx >= 0 default
TABLE
Expand Down

0 comments on commit 76b1d89

Please sign in to comment.