Rails 4: savonrb > wasabi - Dependency conflict for mime-types version - mime-types

I want to install the savon gem to parse some WSDLs. After including it in the Gemfile and running bundle install, it is giving the following message:
Bundler could not find compatible versions for gem "mime-types":
In Gemfile:
savon (~> 2.8.0) ruby depends on
wasabi (= 3.3.0) ruby depends on
mime-types (< 2.0.0) ruby
mail (>= 0) ruby depends on
mime-types (2.4.3)
I can't remove the mail gem to resolve this dependency as my actionmailer depends on it. And besides, it doesn't seem to be healthy solution to resolve such dependency conflicts.
So can anyone help me on this? Googling didn't help much.

If you only need to parse a WSDL you could use the current version (3.3.1) of wasabi by itself, which does not depend on the mime-types gem anymore.
If you need savon, there is a pending issue to update the dependency to the next minor version of wasabi, to resolve this issue. Since this has not happened yet, you may clone this repo, do it yourself (replace 3.3.0 with 3.3.1 in this file) and install your own version:
gem 'savon', github: 'xxx/myrepo'
until savon is updated.

Related

gem install cocoapods on react native error: cocoapods-core requires Ruby version >= 2.6. The current ruby version is 2.4.1.111

I have react native project currently using cocoapods v1.10.1
I want to upgrade the version to cocoapods v1.11.2.
When I run the below command
gem install cocoapods
I get this error:
Error installing cocoapods:
There are no versions of cocoapods-core (= 1.11.2) compatible with your Ruby & RubyGems. Maybe try installing an older version of the gem you're looking for?
cocoapods-core requires Ruby version >= 2.6. The current ruby version is 2.4.1.111.
update ruby version.
and check which ruby do you use it.
so I recommend to use rbenv. it is ruby version manager.
and set gem, pod using rbenv ruby version.

How to upgrade package.json or react libraries automatically?

How to upgrade packages in react application automatically using commands? I don't want to manually check every library in package.json and check its latest version. I want to upgrade my package.json at one shot.
npm i -g npm-check-updates
ncu -u
npm install
Looks like npm-check-updatesis the only way to make this happen now.
Upgrading libraries, frameworks in Javascript project is surely a tiresome and complex process. However, it has much more benefits in the long run and stability .
Here are the main reasons why upgrading libraries are important:
🚀 New features: Most dependencies have a clear roadmap for new features.
🏎️ Performance improvements: In addition to new features, performance improvements are also made frequently.
🐛 Fixed bugs: Although it is normal to find bugs in libraries that you depend on, patch releases help fix these issues.
👮 Security patches: Security patches are one of the most important reasons to have your libraries up-to-date.
The manual process is too tiresome as you need to check for the latest version of each package. So make it easier we will be using two separate methods.
Using npm-check-updates
npm-check-updates upgrades your package.json dependencies to the latest versions, ignoring specified versions.
Please follow the steps below -
Install npm-check-updates
Run npm-check-updates to list what packages are out of date
Run npm-check-updates -u to update all the versions in your package.json
Run npm update as usual to install the new versions of your packages based on the updated package.json
If you do not want to install npm-check-updates in machine, you can follow the steps below-
run npx npm-check-updates (This will list down all the outdated packages in package.json)
Run ncu -u to upgrade package.json
npm install to install the packages
📌 Check your project by running the application and verifying the up-gradation. There might be issues in your code that might as part of up-gradation. In such scenario please check the release notes of the package and make the due changes in code.

Upgrade hugo version

How can I upgrade my hugo from version 0.55.6 to version 0.69 or 0.70?
I tried yarn add hugo#0.70 and it returns me:
yarn add v1.22.4
warning package.json: No license field
warning ../../../package.json: No license field
warning No license field
[1/4] Resolving packages...
Couldn't find any versions for "hugo" that matches "0.70"
? Please choose a version of "hugo" from this list:
❯ 0.0.3
0.0.2
0.0.1
So I am a little bit confused.
By those version numbers, it seems you want Hugo, which is a static site generator built in Go.
Yarn is a package manager for the Node.JS ecosystem, similar to npm. It manages Node/JS packages, which are usually hosted on https://www.npmjs.com/.
Some packages aren't only JS, but just add JS wrappers over some other binary. This widens the circle of potential overlap, and as there's no naming convention enforced on the NPM packages, you're bound to be mislead by a name. The hugo npm package seems to be an interface for some lighbulbs.
To install Hugo, you will probably need to install it separately. Check the Hugo installation info. If you have to use yarn, you will have to find a different package that ships the hugo binary.

Package.js Multiple versions of fbjs found

I have the following error message when I try update 0.10.5 to 0.11.0. I do not even have gbjs in my package.js file.
[compileVendorDll] ERROR in fbjs
[compileVendorDll] Multiple versions of fbjs found:
[compileVendorDll] 0.8.17 ./~/fbjs from ./~/fbjs/lib/warning.js
[compileVendorDll] 1.0.0 ./~/draft-js/~/fbjs from ./~/draft-js/lib/DraftEditorDragHandler.js
Does anyone know how I could go about resolving this?
It seems that you have, in your project the version 0.8.17 of the package fbjs and you also happen to have draft-js which has the same package fbjs version 1.0.0 as a dependency, but, the problem caused because the version in draft-js package doesn't fit with the one you have.
Consider this: upgrading fbjs to the same version as draft-js which is 1.0.0 to possibly fix the problem..
In your command line terminal type one of the following:
npm install fbjs#1.0.0 --save-dev
// Or
yarn add fbjs#1.0.0 --dev
Note that fbjs package's latest version is 1.0.0

How to deploy Rails 5 with Ruby 2.5 in Google App Engine

I followed instruction from Goolgle Running Rails 5 on the Google App Engine flexible environment
and follow error report about google-protobuf which not work with Ruby 2.5.
But some report cleanly work!
I tried by installed the working version for Ruby 2.5
$ gem install google-protobuf -v '3.5.1.1'
still showed error below when bundle to install gem 'google-cloud'
Using google-api-client 0.14.5
Using google-cloud-env 1.0.2
Using google-cloud-core 1.2.2
Using google-cloud-bigquery 0.29.0
Fetching google-protobuf 3.2.0.2 (universal-darwin)
Installing google-protobuf 3.2.0.2 (universal-darwin)
Gem::RuntimeRequirementNotMetError: google-protobuf requires Ruby
version < 2.5, >= 2.0. The current ruby version is 2.5.0.
An error occurred while installing google-protobuf
(3.2.0.2), and Bundler cannot continue.
Make sure that gem install google-protobuf -v '3.2.0.2'
succeeds before bundling.
In Gemfile: google-cloud was resolved to 0.44.0, which depends on
google-cloud-datastore was resolved to 1.1.0, which depends on
google-gax was resolved to 0.8.12, which depends on googleapis-common-protos was resolved to 1.3.7, which depends on
grpc was resolved to 1.6.7, which depends on googleapis-common-protos-types was resolved to 1.0.1, which depends on
google-protobuf

Resources