Skip to content

Conversation

@timdorr
Copy link
Contributor

@timdorr timdorr commented Sep 13, 2021

This loosens the version query for spring to support the newly released 3.0. The changes appear to be mostly around dropping support for older Rails versions, so there shouldn't be any changes needed in this library.

Closes #25

This loosens the version query for spring to support [the newly released 3.0](https://github.com/rails/spring/blob/master/CHANGELOG.md#300). [The changes](rails/spring@v2.1.1...v3.0.0) appear to be mostly around dropping support for older Rails versions, so there shouldn't be any changes needed in this library.
@timdorr
Copy link
Contributor Author

timdorr commented Sep 13, 2021

BTW, if folks want to use this now, just use my repo temporarily:

gem 'spring-watcher-listen', github: 'timdorr/spring-watcher-listen'

You should have it in a :development group, so it won't affect your production workloads, in case you're worried about me doing evil things 😃

@humphreyja
Copy link

@timdorr Thanks for doing this! Rails 7 alpha2 won't run without this change due to a change that breaks Spring. It is fixed in 3.0. Looking forward to having this merged in.

@FraDim
Copy link

FraDim commented Oct 28, 2021

Hey @jonleighton 👋

In case this missed you, do you have any plans on releasing this?

@jonleighton
Copy link
Member

@FraDim thanks for the ping, I hadn't seen this.

I'm no longer really involved in maintaining Spring (I'm actually 100% using Elixir these days...)

Given that this gem is a dependency of Rails, and Spring itself is already managed by the Rails org, I think it would make sense to transfer this repo and the gem management to the Rails org. WDYT @fxn @rafaelfranca?

@rafaelfranca
Copy link
Member

Sounds good to me.

@h0jeZvgoxFepBQ2C
Copy link

@rafaelfranca Could you merge this PR? Thank you!

@rafaelfranca
Copy link
Member

I can't merge anything yet. Jon needs to transfer first.

@jonleighton jonleighton merged commit c943180 into rails:master Nov 3, 2021
@h0jeZvgoxFepBQ2C
Copy link

Thanks so much @jonleighton ! ❤️

@jonleighton
Copy link
Member

@rafaelfranca OK, I have done the following:

  • Initiate transfer of the repo to your personal GitHub. I couldn't tranfser to Rails because I got the error "You don't have permission to create public repos in this org". I think it's because I'm in the Rails org but don't have full permissions. You could accept the transfer and then transfer onwards to the Rails org.
  • Added you to the gem owners
  • Merged this PR and fixed up tests

I intended to release a new version with this change, but there is still one failing test (due to rails/spring@87dc8ce):

  1) Error:
ListenWatcherTest#test_add_directory_with_dangling_symlink:
NoMethodError: undefined method `check_stale' for #<Spring::Watcher::Listen:0x000055e32be04fe8 @_mutex=#<Thread::Mutex:0x000055e32be04db8>, @root="/tmp/d20211104-1368267-iy8664", @latency=0.001, @files=#<Set: {}>, @directories=#<Set: {"/tmp/d20211104-1368267-iy8664/subdir"}>, @stale=false, @listeners=[], @on_debug=nil>
    /home/turnip/.gem/ruby/3.0.0/bundler/gems/spring-7ca995584bed/test/support/watcher_test.rb:189:in `block in <class:WatcherTest>'

So I thought I'd let you decide what's the best solution for that.

Thanks 🙏

@afdev82
Copy link

afdev82 commented Dec 2, 2021

I can't merge anything yet. Jon needs to transfer first.

@rafaelfranca jonleighton did that, but we need a new version (#27). The repo is still under jonleighton, I don't see any repo in your account / Rails org. Thanks!

@rafaelfranca
Copy link
Member

Oh, that is right. It seems the transfer expired before I could accept. @jonleighton can you start it again please?

@jonleighton
Copy link
Member

@rafaelfranca I have re-initiated the transfer. I also added you to as a repo collaborator because I thought then I could make you an owner and you can do it in your own time, but I can't actually see a way to achieve that (maybe because I'm not paying for GitHub...)

@toobulkeh
Copy link

Bump for @rafaelfranca after the holidays :)

@afdev82
Copy link

afdev82 commented Jan 28, 2022

Bump for @rafaelfranca after the holidays :)

This PR is merged, it's missing only a new version.
See this open issue for the support for Spring v4.

@toobulkeh
Copy link

It's merged—but not released as a gem. Since the transfer it needs a new release!

@feliperaul
Copy link

While a new release doesn't happen, you can fix it by pointing your gemfile to use the master branch, since the patch was already merged:

gem 'spring-watcher-listen', github: "rails/spring-watcher-listen", branch: "master"

Also, if you're updating (to rails 7 for instance), use bundle update spring spring-watcher-listen afterwards (be sure to unlock your spring version in your gemfile if it's locked, you need at least version 3)

@konalegi
Copy link

Do you have any plans to release it anytime soon?
Thanks!

@Mange
Copy link

Mange commented Jul 5, 2022

Please don't let "perfect" become the enemy of the "good". Just because the gem cannot support Spring 4 doesn't mean some people would like to update older codebases to Spring 3 first.
Upgrading everything right up until the edge of requiring newer versions of Ruby, then upgrading Ruby, and then moving along, for example.

I don't think there should be anything blocking this from being released in a new version and when Spring 4 support is added later, then that is just another new release.

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.

New Version of Spring 3.0