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

Awesome_print dependency #17

Open
kamil89 opened this issue Feb 10, 2017 · 3 comments
Open

Awesome_print dependency #17

kamil89 opened this issue Feb 10, 2017 · 3 comments

Comments

@kamil89
Copy link

kamil89 commented Feb 10, 2017

Hi,

it looks like togglv8 depends on awesome_print gem, however awesome_print is a development dependency. Requiring togglv8 without awesome_print installed causes an error.

Here is irb output trying to use togglv8 w/o awesome_print installed.

workspace|⇒ gem install togglv8
Successfully installed togglv8-1.2.1
1 gem installed
workspace|⇒ irb
irb(main):001:0> require 'togglv8'
LoadError: cannot load such file -- awesome_print
	from /Users/kamil/.rbenv/versions/2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /Users/kamil/.rbenv/versions/2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /Users/kamil/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/togglv8-1.2.1/lib/logging.rb:3:in `<top (required)>'
	from /Users/kamil/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/togglv8-1.2.1/lib/togglv8/connection.rb:4:in `require_relative'
	from /Users/kamil/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/togglv8-1.2.1/lib/togglv8/connection.rb:4:in `<top (required)>'
	from /Users/kamil/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/togglv8-1.2.1/lib/togglv8.rb:3:in `require_relative'
	from /Users/kamil/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/togglv8-1.2.1/lib/togglv8.rb:3:in `<top (required)>'
	from /Users/kamil/.rbenv/versions/2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:127:in `require'
	from /Users/kamil/.rbenv/versions/2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:127:in `rescue in require'
	from /Users/kamil/.rbenv/versions/2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:40:in `require'
	from (irb):1
	from /Users/kamil/.rbenv/versions/2.3.0/bin/irb:11:in `<main>'

Related files:
https://github.com/kanet77/togglv8/blob/master/lib/logging.rb#L3
https://github.com/kanet77/togglv8/blob/master/togglv8.gemspec#L26

@kanet77
Copy link
Owner

kanet77 commented Feb 22, 2017

I removed dependency on awesome_print and pry-byebug but I still couldn't get togglv8 to build in Ruby 1.9.3 because of an inherited dependency on tins (via json, I think). I'll take another look once PR #18 is merged and the master branch is stable.

In the meantime, if you want to determine if this library works in 1.9.3 you can checkout the source and comment out any line with pry-byebug, awesome_print, or logger.ap. Then run rspec to test and rake install to install.

@j0an
Copy link

j0an commented Jun 30, 2017

any news about this?
I installed today this gem and ...lib/active_support/dependencies.rb:251:in 'require': cannot load such file -- awesome_print (LoadError)

@kyrofa
Copy link

kyrofa commented Mar 25, 2022

Still hitting this, Ruby 2.7.5.

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

No branches or pull requests

4 participants