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

gem breaks, asset file is a dangling symlink #211

Closed
duck-rh opened this issue Dec 18, 2017 · 2 comments
Closed

gem breaks, asset file is a dangling symlink #211

duck-rh opened this issue Dec 18, 2017 · 2 comments

Comments

@duck-rh
Copy link

duck-rh commented Dec 18, 2017

Quack,

I just upgraded to 2.0 and now I've got the asset file as a symlink pointing outside the ruby dir:
lrwxrwxrwx 1 duck duck 43 Dec 18 13:49 vendor/bundle/ruby/2.3.0/gems/twitter-text-2.0.0/lib/assets/tld_lib.yml -> lib/assets/../../../conformance/tld_lib.yml

The gem is now unusable.
Could you have a look please?
\_o<

@k1r8r0wn
Copy link

k1r8r0wn commented Dec 18, 2017

Same story here:

/usr/local/bundle/gems/bundler-1.16.0/lib/bundler/runtime.rb:84:in `rescue in block (2 levels) in require': There was an error while trying to load the gem 'twitter-text'. (Bundler::GemRequireError)
Gem Load Error is: No such file or directory @ rb_sysopen - /usr/local/bundle/gems/twitter-text-2.0.0/lib/assets/tld_lib.yml
Backtrace for gem load error is:
/usr/local/lib/ruby/2.4.0/psych.rb:472:in `initialize'
/usr/local/lib/ruby/2.4.0/psych.rb:472:in `open'
/usr/local/lib/ruby/2.4.0/psych.rb:472:in `load_file'
/usr/local/bundle/gems/twitter-text-2.0.0/lib/twitter-text/regex.rb:29:in `<class:Regex>'
/usr/local/bundle/gems/twitter-text-2.0.0/lib/twitter-text/regex.rb:8:in `<module:Twitter>'
/usr/local/bundle/gems/twitter-text-2.0.0/lib/twitter-text/regex.rb:3:in `<top (required)>'
/usr/local/bundle/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `require'
/usr/local/bundle/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `block in require'
/usr/local/bundle/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:258:in `load_dependency'
/usr/local/bundle/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `require'
/usr/local/bundle/gems/twitter-text-2.0.0/lib/twitter-text.rb:23:in `block in <top (required)>'
/usr/local/bundle/gems/twitter-text-2.0.0/lib/twitter-text.rb:22:in `each'
/usr/local/bundle/gems/twitter-text-2.0.0/lib/twitter-text.rb:22:in `<top (required)>'
/usr/local/bundle/gems/bundler-1.16.0/lib/bundler/runtime.rb:81:in `require'
/usr/local/bundle/gems/bundler-1.16.0/lib/bundler/runtime.rb:81:in `block (2 levels) in require'
/usr/local/bundle/gems/bundler-1.16.0/lib/bundler/runtime.rb:76:in `each'
/usr/local/bundle/gems/bundler-1.16.0/lib/bundler/runtime.rb:76:in `block in require'
/usr/local/bundle/gems/bundler-1.16.0/lib/bundler/runtime.rb:65:in `each'
/usr/local/bundle/gems/bundler-1.16.0/lib/bundler/runtime.rb:65:in `require'
/usr/local/bundle/gems/bundler-1.16.0/lib/bundler.rb:114:in `require'
/home/dockeruser/project/config/application.rb:16:in `<top (required)>'
/usr/local/bundle/gems/railties-5.1.4/lib/rails/commands/server/server_command.rb:133:in `require'
/usr/local/bundle/gems/railties-5.1.4/lib/rails/commands/server/server_command.rb:133:in `block in perform'
/usr/local/bundle/gems/railties-5.1.4/lib/rails/commands/server/server_command.rb:130:in `tap'
/usr/local/bundle/gems/railties-5.1.4/lib/rails/commands/server/server_command.rb:130:in `perform'
/usr/local/bundle/gems/thor-0.20.0/lib/thor/command.rb:27:in `run'
/usr/local/bundle/gems/thor-0.20.0/lib/thor/invocation.rb:126:in `invoke_command'
/usr/local/bundle/gems/thor-0.20.0/lib/thor.rb:387:in `dispatch'
/usr/local/bundle/gems/railties-5.1.4/lib/rails/command/base.rb:63:in `perform'
/usr/local/bundle/gems/railties-5.1.4/lib/rails/command.rb:44:in `invoke'
/usr/local/bundle/gems/railties-5.1.4/lib/rails/commands.rb:16:in `<top (required)>'
bin/rails:4:in `require'
bin/rails:4:in `<main>'
Bundler Error Backtrace:
        from /usr/local/bundle/gems/bundler-1.16.0/lib/bundler/runtime.rb:80:in `block (2 levels) in require'
        from /usr/local/bundle/gems/bundler-1.16.0/lib/bundler/runtime.rb:76:in `each'
        from /usr/local/bundle/gems/bundler-1.16.0/lib/bundler/runtime.rb:76:in `block in require'
        from /usr/local/bundle/gems/bundler-1.16.0/lib/bundler/runtime.rb:65:in `each'
        from /usr/local/bundle/gems/bundler-1.16.0/lib/bundler/runtime.rb:65:in `require'
        from /usr/local/bundle/gems/bundler-1.16.0/lib/bundler.rb:114:in `require'
        from /home/dockeruser/project/config/application.rb:16:in `<top (required)>'
        from /usr/local/bundle/gems/railties-5.1.4/lib/rails/commands/server/server_command.rb:133:in `require'
        from /usr/local/bundle/gems/railties-5.1.4/lib/rails/commands/server/server_command.rb:133:in `block in perform'
        from /usr/local/bundle/gems/railties-5.1.4/lib/rails/commands/server/server_command.rb:130:in `tap'
        from /usr/local/bundle/gems/railties-5.1.4/lib/rails/commands/server/server_command.rb:130:in `perform'
        from /usr/local/bundle/gems/thor-0.20.0/lib/thor/command.rb:27:in `run'
        from /usr/local/bundle/gems/thor-0.20.0/lib/thor/invocation.rb:126:in `invoke_command'
        from /usr/local/bundle/gems/thor-0.20.0/lib/thor.rb:387:in `dispatch'
        from /usr/local/bundle/gems/railties-5.1.4/lib/rails/command/base.rb:63:in `perform'
        from /usr/local/bundle/gems/railties-5.1.4/lib/rails/command.rb:44:in `invoke'
        from /usr/local/bundle/gems/railties-5.1.4/lib/rails/commands.rb:16:in `<top (required)>'
        from bin/rails:4:in `require'
        from bin/rails:4:in `<main>'

v1.14.7 works fine...

duck-rh added a commit to redhat-openstack/website that referenced this issue Dec 18, 2017
duck-rh added a commit to redhat-openstack/website that referenced this issue Dec 18, 2017
duck-rh added a commit to redhat-openstack/website that referenced this issue Dec 18, 2017
dlamacchia pushed a commit to dlamacchia/twitter-text that referenced this issue Dec 18, 2017
This is only an issue when packaging the ruby gem. The tld_lib.yml file
was a symlink which was missing from the gem.
dlamacchia added a commit that referenced this issue Dec 18, 2017
@duck-rh
Copy link
Author

duck-rh commented Dec 19, 2017

thanks @dlamacchia

dlamacchia pushed a commit to dlamacchia/twitter-text that referenced this issue Dec 21, 2017
The popular Twitter gem (https://github.com/sferik/twitter) uses the
Twitter::Configuration namespace and users are reporting that our new
Twitter::Configuration class is conflicting with that namespace.

This patch changes our top-level namespace from Twitter to
Twitter::TwitterText:: to resolve this conflict and prevent further
conflicts in the future. Because this is a breaking change for clients
written against older versions of the library, the version has been
bumped to 2.1.

There's also a new CHANGELOG.md file that details important changes in
this revision and will be updated going forward.
dlamacchia added a commit that referenced this issue Dec 21, 2017
[#211] Update top-level namespace to Twitter::TwitterText::
netbsd-srcmastr pushed a commit to NetBSD/pkgsrc that referenced this issue Dec 30, 2017
pkgsrc changes:
 - DEPENDS on ruby-idn gem

Upstream changes:
https://github.com/twitter/twitter-text/blob/master/rb/CHANGELOG.md

## [2.1] - 2017-12-20
### Added
- This CHANGELOG.md file

### Changed
- Top-level namespace changed from `Twitter` to `Twitter::TwitterText`. This
  resolves a namespace collision with the popular
  [twitter gem](https://github.com/sferik/twitter). This is considered
  a breaking change, so the version has been bumped to 2.1. This fixes
  issue [#221](twitter/twitter-text#221),
  "NoMethodError Exception: undefined method `[]' for nil:NilClasswhen
  using gem in rails app"

## [2.0.2] - 2017-12-18
### Changed
- Resolved issue
  [#211](twitter/twitter-text#211), "gem
  breaks, asset file is a dangling symlink"
- config files, tld_lib.yml files now copied into the right place
- Rakefile now included `prebuild`, `clean` tasks

(no changelog for 2.0; 2.0.1 changes are mentioned in the 2.0.2 entry)
FMRb pushed a commit to FalconSocial/twitter-text that referenced this issue Feb 12, 2018
This is only an issue when packaging the ruby gem. The tld_lib.yml file
was a symlink which was missing from the gem.
FMRb pushed a commit to FalconSocial/twitter-text that referenced this issue Feb 12, 2018
The popular Twitter gem (https://github.com/sferik/twitter) uses the
Twitter::Configuration namespace and users are reporting that our new
Twitter::Configuration class is conflicting with that namespace.

This patch changes our top-level namespace from Twitter to
Twitter::TwitterText:: to resolve this conflict and prevent further
conflicts in the future. Because this is a breaking change for clients
written against older versions of the library, the version has been
bumped to 2.1.

There's also a new CHANGELOG.md file that details important changes in
this revision and will be updated going forward.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants