Dependencies

43 views
Skip to first unread message

Joe Guerra

unread,
Sep 5, 2017, 8:07:44 AM9/5/17
to Ruby on Rails: Talk
I'm trying to resolve some dependancies issues in my rails app.

How do you resolve these issues typically?

Thanks,
Joe

Rolandas Barysas

unread,
Sep 5, 2017, 8:37:11 AM9/5/17
to rubyonra...@googlegroups.com
What do you have in mind specifically? I can't recall the last time where I had any issues with bundler.


--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/e8499579-f2d4-466c-806b-d9eed1aedcb1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Rolandas

Joe Guerra

unread,
Sep 6, 2017, 9:11:11 PM9/6/17
to Ruby on Rails: Talk
Resolving dependencies.....
The latest bundler is 1.16.0.pre.1, but you are currently running 1.15.1.
To update, run `gem install bundler --pre`
Bundler could not find compatible versions for gem "railties":
  In Gemfile:
devise (>= 3.5.6, ~> 3.5) x64-mingw32 was resolved to 3.5.6, which depends
on
      railties (< 5, >= 3.2.6)

devise (>= 3.5.6, ~> 3.5) x64-mingw32 was resolved to 3.5.6, which depends
on
      railties (< 5, >= 3.2.6) x64-mingw32

devise (>= 3.5.6, ~> 3.5) x64-mingw32 was resolved to 3.5.6, which depends
on
      railties (< 5, >= 3.2.6) x86-mingw32

    rails (= 5.0) x86-mingw32 was resolved to 5.0.0, which depends on
      railties (= 5.0.0)

    rails (= 5.0) x86-mingw32 was resolved to 5.0.0, which depends on
      railties (= 5.0.0) x64-mingw32

    rails (= 5.0) x86-mingw32 was resolved to 5.0.0, which depends on
      railties (= 5.0.0) x86-mingw32


Here are  my problems on my problems on my mac.  I was using rails gem 4.2.5, but ran into a fix num error, and someone said that switching to rails 5.0 (in my gem file and running bundle update would fix it).

Unfortunately, I ran into more problems. :(



On Tuesday, September 5, 2017 at 8:37:11 AM UTC-4, Rolandas Barysas wrote:
What do you have in mind specifically? I can't recall the last time where I had any issues with bundler.
On Tue, Sep 5, 2017 at 3:07 PM, Joe Guerra <JGu...@jginfosys.com> wrote:
I'm trying to resolve some dependancies issues in my rails app.

How do you resolve these issues typically?

Thanks,
Joe

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.



--
Rolandas

Joe Guerra

unread,
Sep 6, 2017, 9:13:46 PM9/6/17
to Ruby on Rails: Talk
ok, a smaller jump to rails 4.2.8 compiled without any warnings.

:)

Frederick Cheung

unread,
Sep 8, 2017, 5:20:04 AM9/8/17
to Ruby on Rails: Talk


On Thursday, September 7, 2017 at 2:13:46 AM UTC+1, Joe Guerra wrote:
ok, a smaller jump to rails 4.2.8 compiled without any warnings.

:)


You do pretty much just have to read the messages. It's saying that it wants to use devise 3.5.6, which needs rails < 5 but that elsewhere in your gem file you're saying you want rails 5, so it doesn't know what to do. Typically you would resolve this by changing the constraint on devise (I think you might need devise 4.x for rails 5).

Fred

Joe Guerra

unread,
Sep 8, 2017, 8:18:54 AM9/8/17
to rubyonra...@googlegroups.com
Ok, I missed that constraint.   I will look at swapping it out, but it compiled ok now.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/6e8ca820-1bc4-4aa3-a2a8-2e36c750d918%40googlegroups.com.

Joe Guerra

unread,
Sep 9, 2017, 2:33:17 PM9/9/17
to Ruby on Rails: Talk
wow, I learned a new command yesterday.  

A very useful command from Railscast - 'bundle outdated'.   Anyways, this will identify if there are any gems that need to be updated.

I'm not so sure why bundle update doesn't do this automatically, I'm thinking it has to do with the gem file (and if's it locked to a certain version).

Anyways, updating a few too many broke my code, so instead of trying to figure out what I messed up, I reverted back.

So, I guess if it ain't broke don't fix it.

Hassan Schroeder

unread,
Sep 9, 2017, 2:58:15 PM9/9/17
to rubyonrails-talk
On Sat, Sep 9, 2017 at 11:33 AM, Joe Guerra <JGu...@jginfosys.com> wrote:

> I'm not so sure why bundle update doesn't do this automatically, I'm
> thinking it has to do with the gem file (and if's it locked to a certain
> version).

Of course, the whole point of having versions in the Gemfile is to
lock specific gems to a specific version or range.

> Anyways, updating a few too many broke my code, so instead of trying to
> figure out what I messed up, I reverted back.
>
> So, I guess if it ain't broke don't fix it.

No. Keeping current is essential.

If you fall too far behind, there will be a day when you *must* update
some gem due to a critical security issue -- and you won't be able to
because of some other gem(s) being out of date.

Learning to update and resolve dependencies is just part of the job.

--
Hassan Schroeder ------------------------ hassan.s...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

Joe Guerra

unread,
Sep 9, 2017, 5:38:53 PM9/9/17
to rubyonra...@googlegroups.com
Lol, I don't have a job as rails developer yet.  I'm still trying to figure this out. 

Maybe, eventually. 


--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages