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

Add pathname which is implicitly referenced #1134

Closed
wants to merge 1 commit into from

Conversation

nickcharlton
Copy link
Member

@nickcharlton nickcharlton commented Oct 13, 2023

On Ruby 3.2.2 - and especially when installing the current main version of the Gem via specific_install - installing fails because there's an implicit reference to pathname:

$ gem specific_install thoughtbot/suspenders
git version 2.42.0
Installing from [email protected]:thoughtbot/suspenders.git
Cloning into '/var/folders/z_/7_lg8ty95s9f7gybbr5_5nqr0000gn/T/d20231013-60937-72rbst'...
remote: Enumerating objects: 7101, done.
remote: Counting objects: 100% (590/590), done.
remote: Compressing objects: 100% (329/329), done.
remote: Total 7101 (delta 310), reused 422 (delta 232), pack-reused 6511
Receiving objects: 100% (7101/7101), 1.72 MiB | 3.33 MiB/s, done.
Resolving deltas: 100% (3672/3672), done.
Invalid gemspec in [suspenders.gemspec]: undefined method `Pathname' for Suspenders:Module
ERROR:  While executing gem ... (NoMethodError)
   undefined method `file_name' for nil:NilClass

   gem_file = file_name || spec.file_name

This commit adds pathname so that it can be installed.

On Ruby 3.2.2 - and especially when installing the current `main`
version of the Gem via `specific_install` - installing fails because
there's an implicit reference to `pathname`:

  $ gem specific_install thoughtbot/suspenders
  git version 2.42.0
  Installing from [email protected]:thoughtbot/suspenders.git
  Cloning into '/var/folders/z_/7_lg8ty95s9f7gybbr5_5nqr0000gn/T/d20231013-60937-72rbst'...
  remote: Enumerating objects: 7101, done.
  remote: Counting objects: 100% (590/590), done.
  remote: Compressing objects: 100% (329/329), done.
  remote: Total 7101 (delta 310), reused 422 (delta 232), pack-reused 6511
  Receiving objects: 100% (7101/7101), 1.72 MiB | 3.33 MiB/s, done.
  Resolving deltas: 100% (3672/3672), done.
  Invalid gemspec in [suspenders.gemspec]: undefined method `Pathname' for Suspenders:Module
  ERROR:  While executing gem ... (NoMethodError)
      undefined method `file_name' for nil:NilClass

      gem_file = file_name || spec.file_name

This commit adds `pathname` so that it can be installed.
@stevepolitodesign
Copy link
Contributor

@nickcharlton is this still relevant now that the latest release removed the suspenders executable?

@nickcharlton
Copy link
Member Author

I think we can safely close this. I've not been able to test it (and I suspect I won't get around to it any time soon), but I know you've made so many changes it's probably now irrelevant. And I'll just open another if it's still a problem!

@nickcharlton nickcharlton deleted the nc-require-pathname branch May 31, 2024 11:13
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.

2 participants