arvindvyas / Country-State-Select

It will fetch the countries and according to that fetch the state of that countries, currently it is for countries listing
MIT License
69 stars 78 forks source link

possibility to update to rails 5? #51

Closed dcalixto closed 5 years ago

dcalixto commented 7 years ago

Bundler could not find compatible versions for gem "rails": In snapshot (Gemfile.lock): rails (= 5.1.2)

In Gemfile: rails

country_state_select was resolved to 2.0.0, which depends on
  rails (>= 3.0)
dsounded commented 7 years ago

@dcalixto

Yeah, code is already in master. but no new version:

https://github.com/arvindvyas/Country-State-Select/commit/df934e2b345cc962c77aeb50184c4874f975cb61#diff-18aa0f96689019e8dd5124f9f5e89edc

it can be used like this temporary:

gem 'country_state_select', git: 'git://github.com/arvindvyas/Country-State-Select', branch: :master

aristizabal95 commented 6 years ago

@dsounded after changing the Gemfile for your solution, received this error:

git://github.com/arvindvyas/Country-State-Select (at master@df934e2) is not yet checked out. Runbundle installfirst.

had to solve it by running this:

bundle install --deployment

which is by no means a good solution. Yet I'm able to work with this gem for now. Would be nice if it got updated to fully work with rails 5 though.

In case anyone is going to use the code above, you can undo it later by running this

bundle install --no-deployment

src: https://stackoverflow.com/questions/6648870/is-not-checked-out-bundle-install-does-not-fix-help#comment45219008_6648894

RailsCod3rFuture commented 6 years ago

Having issues with Rails 5.2. Can you upgrade the gem to support it?

 In Gemfile:
    rails (~> 5.2.0) x64-mingw32

    country_state_select x64-mingw32 was resolved to 3.0.2, which depends on
      rails x64-mingw32
RailsCod3rFuture commented 5 years ago

Has anyone created a repo to update the gemspec???

arvindvyas commented 5 years ago

thanks guys looking into it will be updating it

arvindvyas commented 5 years ago

master is live now