Skip to content

Conversation

@bronzdoc
Copy link
Contributor

@bronzdoc bronzdoc commented Jul 17, 2019

Description:

Remove autorequire, maybe this should have been removed in RG3? 😬

autorequire was used by old RubyGems, it is neither supported nor functional.

I will abide by the code of conduct.

@deivid-rodriguez
Copy link
Contributor

I've never seen this attribute used anywhere, but since it's a gemspec attribute, we should go through a deprecation cycle, right?

@deivid-rodriguez
Copy link
Contributor

The comment actually says it doesn't really work, so maybe we can actually remove it? 🤔 What do you think @hsbt?

@bronzdoc
Copy link
Contributor Author

@bundlerbot r+

ghost pushed a commit that referenced this pull request Jul 25, 2019
2832: Remove autorequire spec attribute r=bronzdoc a=bronzdoc

# Description:

Remove `autorequire`, maybe this should have been removed in RG3? 😬 

`autorequire` was used by old RubyGems, it is neither supported nor functional.

I will abide by the [code of conduct](https://github.com/rubygems/rubygems/blob/master/CODE_OF_CONDUCT.md).


Co-authored-by: bronzdoc <lsagastume1990@gmail.com>
@ghost
Copy link

ghost commented Jul 25, 2019

Build succeeded

@ghost ghost merged commit cadb660 into master Jul 25, 2019
@ghost ghost deleted the remove-autorquire-spec-attribute branch July 25, 2019 18:34
@deivid-rodriguez
Copy link
Contributor

@bronzdoc Unfortunately I think we need to revert this PR and go through a proper deprecation cycle, letting users know they need to remove this setting. I just tried last master branch of rubygems, and it crashed because I had a gem installed using this attribute... 😞

@bronzdoc
Copy link
Contributor Author

bronzdoc commented Jul 31, 2019

That sucks.... Ok, Will revert @deivid-rodriguez

@hsbt
Copy link
Member

hsbt commented Jul 31, 2019

A lot of gems still uses autorequire with Hoe.

~/D/g/r/rubygems (deprecate-constants) > gemsearch "s.autorequire ="
3mix-castronaut-0.5.0.2/vendor/activerecord/Rakefile:  s.autorequire = 'active_record'
47primes-amatch-0.2.3/Rakefile:  s.autorequire = 'amatch'
Carpark-26/Rakefile:    s.autorequire = 'carpark'
DBrb-0.1.1/Rakefile:    s.autorequire = 'DB.rb'
DanaDanger-plist-3.1.6/Rakefile:  s.autorequire = 'plist'
Dependency-1.0.0/rakefile.rb:  s.autorequire = 'dependency'
Flipper-1.1/Rakefile:  s.autorequire = 'flipper'
GUI-mini_magick-1.2.3/Rakefile:  s.autorequire = 'mini_magick'
GavinJoyce-actionwebservice-2.2.3/Rakefile:  s.autorequire = 'actionwebservice'
HTTPal-30/Rakefile:     s.autorequire = 'httpal'
Imlib2-Ruby-0.5.2/imlib2.gemspec:  s.autorequire = 'imlib2'
RailsTop-0.0.2/Rakefile:  s.autorequire = "name"
ReinH-git-changelog-0.9.0/Rakefile:  s.autorequire = GEM
ReinH-track-1.1.0/Rakefile:  s.autorequire = GEM
RuCodeGen-0.3.2/Rakefile:       s.autorequire = "rucodegen"
RubyRun_CE-0.9.0/Rakefile:  s.autorequire = "rubyrunm"
Shunt-0.2/rakefile.rb:  s.autorequire = 'shunt'
ToolParade-0.0.2/Rakefile:  s.autorequire = "name"
UG_RRobots-2.2/Rakefile:  #  s.autorequire = "name"
WALoeIII-contacts-1.0.12/Rakefile:  s.autorequire = 'contacts'
X12-1.1.0/Rakefile:  s.autorequire = 'x12'
abhi-contacts-1.0.0/Rakefile:  s.autorequire = 'contacts'
actionmailer_csi-2.3.5.20130130071128/Rakefile:  s.autorequire = 'action_mailer'
actionservice-0.3.0/Rakefile:  s.autorequire = 'action_service'
actionwebservice-1.2.6/Rakefile:  s.autorequire = 'action_web_service'
active_unimod_generator-0.1.0/Rakefile: s.autorequire = "active_unimod"
(snip)
...

I'm okay to remove this attribute in RG 4.0, But It's good to warn to deprecated message in 3.1 or 3.2 👍

ghost pushed a commit that referenced this pull request Aug 5, 2019
2858: Revert cadb66 and deprecate specification autorequire  r=hsbt a=bronzdoc

# Description:
See: #2832
______________
I will abide by the [code of conduct](https://github.com/rubygems/rubygems/blob/master/CODE_OF_CONDUCT.md).


Co-authored-by: bronzdoc <lsagastume1990@gmail.com>
This pull request was closed.
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.

4 participants