Bower and jquery.slimscroll 1.3.2 - bower

The latest jquery.slimscroll, version 1.3.2 has a fix for issue 95 in it -- see the attachWheel function at line 378. But Bower thinks the latest jquery.slimscroll is version 1.3.1 and attempting to register 1.3.2 generates a "Duplicate Package" error. When I download the latest version with Bower and inspect attachWheel I see the line causing error 95 (and also see the error in FireFox).
Here's the command I used:
C:\<dir> bower register jquery.slimscroll https://github.com/rochal/jQuery-slimScroll
Is there a Bower bug?

There is no git tagged 1.3.2 version. Ask the author to tag it.

There is now v1.3.3 as well as a v1.3.2 https://github.com/rochal/jQuery-slimScroll/releases

Related

OpenSSL::HMACError: EVP_PKEY_new_mac_key: malloc failure in rails app

I'm working on a rails app and I have this weird error that I don't know how to fix it. Some of my tests are failing when running JWT.encode and the error message is:
/Users/chille/.rbenv/versions/3.1.1/lib/ruby/3.1.0/openssl/hmac.rb:36:in `initialize': EVP_PKEY_new_mac_key: malloc failure (OpenSSL::HMACError)
I reinstalled ruby 3.1.1 and also reinstalled OpenSSL to use the opensssl#3 version since that one is compatible with ruby 3 but no success.
I would appreciate it if anyone have any clue on how to solve this.
MAC OS Monterrey 12.6.1
Ruby 3.1.1
Rails 7
I believe this is a compatibility issue between OpenSSL 1.1 and now OpenSSL 3 (which Ruby 3 has moved to). Gems like ruby-jwt are sorting through those compatibility issues:
https://github.com/jwt/ruby-jwt/issues/495
Supposedly, version v2.5.0 of JWT added support for OpenSSL >= 3.0, a clean install (or upgrade if you're not on that version) of JWT should solve the issue if they supported OpenSSL 3.0 correctly.
-- edit --
Update: Actually looks like they acknowledge that this was a bug in https://github.com/jwt/ruby-jwt/issues/526 and it has since been fixed in Ruby's OpenSSL and JWT but only as of ~2 weeks ago, so no new version has been cut for it as of yet.
-- while we wait for the fix... --
In the meantime, if you don't directly need OpenSSL 3, you could rebuild your ruby using OpenSSL 1.1
Assuming you've install openssl#1.1 via homebrew and are using asdf to manage your Ruby versions (though this env option works for anything using ruby-build):
RUBY_CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix openssl#1.1)" asdf install ruby 3.1.1
I was having same issue. It's a compatibility issue between OpenSSL#1.1 and OpenSSL#3.0.7 on ruby version 3.1.0 and above. so I fixed by by following steps:
Uninstall ruby 3.1.1
Go to .rbenv/plugins/ruby-build/share/ruby-build/3.1.1
Inside, this file you have installation package openssl#3.0.7 and ruby#3.1.1
install_package "openssl-3.0.7" "https://www.openssl.org/source/openssl-3.0.7.tar.gz#83049d042a260e696f62406ac5c08bf706fd84383f945cf21bd61e9ed95c396e" openssl --if needs_openssl_102_300
install_package "ruby-3.1.1" "https://cache.ruby-lang.org/pub/ruby/3.1/ruby-3.1.1.tar.gz#fe6e4782de97443978ddba8ba4be38d222aa24dc3e3f02a6a8e7701c0eeb619d" ldflags_dirs enable_shared standard verify_openssl
Now, change 1st line with openssl#1.1 package:
install_package "openssl-1.1.1s" "https://www.openssl.org/source/openssl-1.1.1s.tar.gz#c5ac01e760ee6ff0dab61d6b2bbd30146724d063eb322180c6f18a6f74e4b6aa" openssl --if needs_openssl_101_111
After, changing line inside .rbenv/plugins/ruby-build/share/ruby-build/3.1.1 file. Install ruby version 3.1.1 using following installation instructions from https://github.com/rbenv/rbenv#installing-ruby-versions. Use:
rbenv install 3.1.1 --verbose
You will see openssl#1.1 being installed and will resolve this issue.
For more, follow my medium post: openssl-hmacerror-on-ruby

rails 6 and vue.js new project fails

Just following the tutorial below to integrate rails 6 with vue:
https://medium.com/#akshaych2786/vue-js-with-rails-6-and-performing-crud-operations-b043ef3691f2
But then rails fails to run. This is with no changes to the project, just following the tutorial. Some sort of dependency madness, but i'm new to vue and don't really understand what the issue is. And yes, i did run yarn install --check-files, same error. And yes, if i set check_yarn_integrity to false, then it works fine. But i'm not sure if i'm going to get into trouble by disabling this check.
$ rails g controller Welcome index
Warning: the running version of Bundler (2.1.2) is older than the version that created the lockfile (2.1.4). We suggest you to upgrade to the version that created the lockfile by running `gem install bundler:2.1.4`.
========================================
Your Yarn packages are out of date!
Please run `yarn install --check-files` to update.
========================================
To disable this check, please change `check_yarn_integrity`
to `false` in your webpacker config file (config/webpacker.yml).
yarn check v1.22.4
success Folder in sync.
Done in 0.18s.
yarn check v1.22.4
error "vue-loader##vue/component-compiler-utils#lru-cache#yallist" is wrong version: expected "^2.1.2", got "3.1.1"
error Found 1 errors.
info Visit https://yarnpkg.com/en/docs/cli/check for documentation about this command.

Using Half Pipe assets with Rails

I'm trying to use Half Pipe gem [half-pipe (0.3.0.beta.2)] with Rails 4.0.0 but keep on getting
Warning: RequireJS failed. Use --force to continue.
Aborted due to warnings.
First, I thought it's a problem with my node installation, but it seems to work fine.
For me, this error was a path issue while requirejs is looking for query. It has already been fixed in the halfpipe codebase. Updating my Gemfile to pull the latest half pipe code from github sorted it:
Gemfile
gem 'half-pipe', :github => "d-i/half-pipe"
Other than that, have you got the latest levels of npm, node, bower and grunt installed? I had to update each of these to get my install working.
I have: npm (1.4.7), grunt-cli v0.1.13, grunt v0.4.4, bower 1.3.2 and node v0.9.9 running on Ubuntu 13.10.

Redmine plugin install

I just installed redmine via apt-get on Linux Mint 14. Before I added the repository from https://launchpad.net/~ondrej/+archive/redmine. Everything works fine.
Environment:
Redmine version 2.3.1.stable
Ruby version 1.8.7 (x86_64-linux)
Rails version 3.2.13
Next step would be for me to install a few plugins. I followed the instructions on
http://www.redmine.org/projects/redmine/wiki/Plugins.
The plugin to install http://www.redmine.org/plugins/redmine-projects-accordion
I created a directory /plugins under /usr/share/redmine (this is
where also the app-folder is).
Next step to do a rake redmine:plugins:migrate RAILS_ENV=production.
Now im getting a little Warning: WARNING: 'require 'rake/rdoctask'' is deprecated.
Next step is to restart apache(using passenger-mod) to restart
redmine. But there is no plugin on my administration.
As Im not a ruby/rails dev I can only guess where to search. Any ideas where to look for further information etc? Would be thankful for any advice.
Thanks a lot in advance.
Redmine is a ticket system as well as it is a issue tracker. Some companies are recently using redmine and it is developed by rails frame work. Now Redmine is upgraded its version to 2.x (recently 2.3 is the stable version). So , How can we use plugins in redmine 2.3 versions which we already implemented in redmine 1.x version.
Generally we can easily search the plugins from redmine plugins directory and do install , migration and restart the server i am sure some of you may get some issue at configuration level of the plugin from admin panel. So it depends up on the plugin version too.
You can find the better approach to install the plugins in redmine 2.3 in step by step process is explained in detail from this blog
http://mywayonrails.wordpress.com/2013/07/08/plugins-for-redmine-2-3

Vim(ruby):NoMethodError: undefined method `specifications'

I'm using Vim 7.3 on Windows 7. When I try to open a .rb File i get this error.
Vim(ruby):NoMethodError: undefined method `specifications' for "C:/Ruby192/lib/ruby/gems/1.9.1":String
The file opens after I press Enter, but with no syntax highlighting. I have the following vim plugins: rails.vim surround.vim nerd_tree.vim nerdcommenter.vim snipmates.vim
I'm not sure if the problem is with one of the vim plugins. I just installed all the plugins you mentioned in win7 and I have no such problem. However I had a similar error reproduced when I had rubygems 1.8.5, and I tried to run a rake task. Here is a link to a forum that talks about that same rubygems error link
To find out your version, run
gem -v
The solution for us was to downgrade rubygems
gem update --system 1.7.2
EDIT:
#Tyler-long is telling me, that Ruby Gems fixed the problem, and an upgrade also fixes the bug. Then you can just do:
gem update --system
tpope has fixed this. It will be in the next release of vim. Meanwhile, you can upgrade your ruby-vim ftplugin.
Replace $VIMRUNTIME/ftplugin/ruby.vim with the latest version from https://github.com/vim-ruby/vim-ruby/blob/master/ftplugin/ruby.vim

Resources