multiple gems installed on bundle

7 views
Skip to first unread message

Allen Maxwell

unread,
Jun 11, 2015, 4:29:28 PM6/11/15
to ur...@googlegroups.com
Hi all,

I’m playing around with a new app.  Using Rails 4.2.1, ruby 2.1.0, devise, rolify, pundit and bootstrap…

I deleted my rvm gemset and then re-bundled.  Immediately after the bundle finished I have the following gems:

$ gem list

*** LOCAL GEMS ***

actionmailer (4.2.1)
actionpack (4.2.1)
actionview (4.2.1)
activejob (4.2.1)
activemodel (4.2.1)
activerecord (4.2.1)
activesupport (4.2.1)
arel (6.0.0)
autoprefixer-rails (5.2.0)
bcrypt (3.1.10)
bigdecimal (1.2.3)
binding_of_caller (0.7.2)
bootstrap-sass (3.2.0.2)
builder (3.2.2)
bundler (1.6.5)
bundler-unload (1.0.2)
byebug (5.0.0)
coffee-rails (4.1.0)
coffee-script (2.4.1)
coffee-script-source (1.9.1.1)
columnize (0.9.0)
database_cleaner (1.4.1)
debug_inspector (0.0.2)
devise (3.5.1)
erubis (2.7.0)
execjs (2.5.2)
executable-hooks (1.3.2)
factory_girl (4.5.0)
factory_girl_rails (4.5.0)
gem-wrappers (1.2.7, 1.2.4)
globalid (0.3.5)
i18n (0.7.0)
io-console (0.4.2)
jbuilder (2.2.16)
jquery-rails (4.0.3)
jquery-turbolinks (2.1.0)
json (1.8.3, 1.8.1)
loofah (2.0.2)
mail (2.6.3)
mime-types (2.6.1)
mini_portile (0.6.2)
minitest (5.7.0, 4.7.5)
multi_json (1.11.0)
nokogiri (1.6.6.2)
orm_adapter (0.5.0)
pg (0.18.2)
psych (2.0.2)
pundit (1.0.1)
rack (1.6.1)
rack-test (0.6.3)
rails (4.2.1)
rails-deprecated_sanitizer (1.0.3)
rails-dom-testing (1.0.6)
rails-html-sanitizer (1.0.2)
railties (4.2.1)
rake (10.4.2, 10.1.0)
rdoc (4.2.0, 4.1.0)
responders (2.1.0)
rolify (3.4.0)
rubygems-bundler (1.4.4)
rvm (1.11.3.9)
sass (3.4.14)
sass-rails (5.0.3)
sdoc (0.4.1)
spring (1.3.6)
sprockets (3.2.0)
sprockets-rails (2.3.1)
test-unit (2.1.0.0)
thor (0.19.1)
thread_safe (0.3.5)
tilt (1.4.1)
turbolinks (2.5.3)
tzinfo (1.2.2)
uglifier (2.7.1)
warden (1.2.3)
web-console (2.1.2)

I noticed that gem-wrappers and minitest have multiple versions installed in the gemset.   I’m assuming that some dependency in my gem list is installing the extra version - anyone know what the culprit is?

I’m also trying to write tests to check my pundit policies - any hints on basics for that would be helpful :)

Thanks,

Max

Justin Lyman

unread,
Jun 11, 2015, 4:45:12 PM6/11/15
to ur...@googlegroups.com
I think you can check with this command:
gem dependency minitest --reverse-dependencies


--
http://utruby.org
http://groups.google.com/group/urug
 
please prefix the subject with [JOB] when regarding job opportunities
---
You received this message because you are subscribed to the Google Groups "Utah Ruby Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to urug+uns...@googlegroups.com.
To post to this group, send email to ur...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ethan Garofolo

unread,
Jun 11, 2015, 5:43:00 PM6/11/15
to ur...@googlegroups.com
Is it possible that the other versions are coming from the global gem list?  Like, if you delete your current gem set, what do you get if you run `gem list`?

Allen Maxwell

unread,
Jun 11, 2015, 5:49:30 PM6/11/15
to ur...@googlegroups.com
Thanks Justin!  I had never seen that one before…  good to know…. here’s what I got:

$ gem dependency minitest --reverse-dependencies
Gem minitest-4.7.5
  Used by
    gem-wrappers-1.2.7 (minitest (>= 0, development))
    gem-wrappers-1.2.4 (minitest (>= 0, development))
    rails-dom-testing-1.0.6 (minitest (>= 0, development))
    rails-html-sanitizer-1.0.2 (minitest (>= 0, development))
    sdoc-0.4.1 (minitest (~> 4.0, development))
    thread_safe-0.3.5 (minitest (>= 4, development))

Gem minitest-5.7.0
  hoe (~> 3.13, development)
  rdoc (~> 4.0, development)
  Used by
    activesupport-4.2.1 (minitest (~> 5.1))
    arel-6.0.0 (minitest (~> 5.4, development))
    gem-wrappers-1.2.7 (minitest (>= 0, development))
    gem-wrappers-1.2.4 (minitest (>= 0, development))
    mime-types-2.6.1 (minitest (~> 5.6, development))
    rails-dom-testing-1.0.6 (minitest (>= 0, development))
    rails-html-sanitizer-1.0.2 (minitest (>= 0, development))
    rake-10.4.2 (minitest (~> 5.4, development))
    rdoc-4.2.0 (minitest (~> 5.4, development))
    sass-3.4.14 (minitest (>= 5, development))
    sprockets-3.2.0 (minitest (~> 5.0, development))
    thread_safe-0.3.5 (minitest (>= 4, development))


seems that both versions are dependencies of some of the same libraries… it looks like
 sdoc-0.4.1 (minitest (~> 4.0, development))
is the only one that is only in the 4.7.5 dependency list…

it’s dependencies are:
$ gem dependency sdoc --reverse-dependencies
Gem sdoc-0.4.1
  bundler (~> 1.3, development)
  json (>= 1.7.7, ~> 1.7)
  minitest (~> 4.0, development)
  rake (>= 0, development)
  rdoc (~> 4.0)

I found another multiple versioned gem in my list too: son 1.8.3 and 1.8.1

I’d really like to have a clean gem list and maybe that isn’t a big deal - I don’t need to be shaving Yaks today, but my razor was rusty and I sharpened it up so what the heck…

Allen Maxwell

unread,
Jun 11, 2015, 5:50:41 PM6/11/15
to ur...@googlegroups.com
Ethan… I should have looked there before ever posting this.   YES, that is where the problem is…

thanks!
Reply all
Reply to author
Forward
0 new messages