Questions tagged [rubygems]
RubyGems is a package management tool for the Ruby programming language. It allows users to download and update Ruby libraries, and provides automatic dependency resolution.
11,428
questions
0
votes
0
answers
4
views
Is that any ways to run pg_jobs gem in rails 7?
We are using pg_jobs gem for our rails 5 application but now we are trying to upgrade our application with rails 7 ...In that place, we are facing some issues like can't able to bundle the pg_jobs in ...
0
votes
0
answers
8
views
Shopify CLI error: cannot use gems with Shopify CLI, cannot load such file
I'm starting to learn Shopify CLI via this tutorial, and am having some issues. I initially installed the CLI using Home-brew with brew tap shopify/shopify and brew install shopify-cli. Upon checking ...
0
votes
0
answers
19
views
Can't Modify Frozen Class & Can't Determine Why Class is Frozen
I'm working on a Ruby on Trailblazer API and I keep getting this error when I run my Rspec test suite:
FrozenError: can't modify frozen #<Class:NotificationCenter>: NotificationCenter
I can't ...
0
votes
1
answer
20
views
How to access browser localstorage and get a specific item from localstorage using ruby on rails?
How to access specific item from localstorage, cookies using ruby on rails?
I tried using localstorage.setItem and localstorage.getItem . but they are not providing proper o/p
0
votes
1
answer
13
views
Problem when trying to stub API requests on Rails
I'm trying to stub an API request using Webmock. Instead of getting the "real" data from my Rails controller, I want to return dummy data, for test purposes only.
I have a React frontend ...
-2
votes
0
answers
22
views
what is the best way to alter this database in the images? [closed]
I have this sample project where we have an old database and we want to add something to it, the old tables are in the first image, the second one will be in the second image, how can I create new ...
0
votes
1
answer
27
views
rbenv: dynamically extend $PATH for gem binaries
I got rbenv installed, and it works fine:
$ rbenv local
3.2.0
$ ruby --version
ruby 3.2.0 (2022-12-25 revision a528908271) [x86_64-linux]
I installed the gem rufo to format my code, which worked fine:...
0
votes
1
answer
30
views
Why does `gem install` succeed but `bundle install` fails?
I'm trying to install gtk3, but bundle install chokes while installing atk. Most of the responses seem to resolve around mismatched versions in the lock file. Removing the lock file doesn't help, ...
0
votes
1
answer
23
views
Error while pushing the gem to rubygems.org (NameError)
I've build a gem and try to push it to rubygems.org.
When executing gem push gem_name-1.0.0.gem I get this error after I've entered my credentials:
ERROR: While executing gem ... (NameError)
...
1
vote
1
answer
44
views
installing rbenv on mac failure
I am trying to install rbenv. I tried rbenv install 3.2.0 but I received:
BUILD FAILED (Mac OS X 10.15.7 using ruby-build 20230202)
Inspect or clean up the working tree at /var/folders/yk/...
0
votes
0
answers
35
views
Trying to Install MySQL with/for Ruby on Ubuntu, keep getting an error
I am using Ubuntu 22.04.1 LTS, and I installed Ruby and Rails via rbenv as reccomended by others and the Ruby docs. I am trying to setup a MySQL server to use with an application and I first need to ...
-5
votes
0
answers
32
views
how to get expected output for bellow question [closed]
Create a rankings table with matches played, won, lost , draws and the points for each team.
input- [["A", "B", "WIN"], ["B", "A", "WIN"], [&...
1
vote
1
answer
41
views
`gem install <package>` 404 Not Found, Error: Gem::RemoteFetcher::FetchError
I'm having a difficulty with RubyGem.
Environment
Windows 64-bit
Using Git-Bash in VSCode
Ruby 3.2.0 + devkit installed from rubyinstaller.org
Problem
run gem install bundler provides this error ...
1
vote
1
answer
34
views
After applying a ransack date-field filter same output tickets are repeating instead of one
Current result: In deadline filter, it is considering the first box as "from date " and the second as "to date" and on applying the filter same tickets are repeating
Expected ...
0
votes
1
answer
19
views
error when create a new folder by rails command : "can't find gem railties (>= 0.a) with executable rails (Gem::GemNotFoundException)"?
I am newbie with Rails and here is my problem.
I created a new Rails's folder by this command
rails new freelancer --database=postgresql --javascript=webpack
And it gave me this error :
can't find gem ...
0
votes
0
answers
11
views
Unable to install Jazzy gem in my Mac due to write permission
I am trying to install Jazzy gem in my Mac (macOS Monterey 12.5) but I am getting error of write permission of directory /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/gems/2.6.0 ,...
0
votes
0
answers
17
views
How to define #fedeartedid as static variable or global in headers and use it in views rubyonrails
Here is my header
uidHeader = request.headers['uid']
puts("************ uid HEADER >>>> #{uidHeader}")
federatedidHeader = request.headers['federatedid']
puts("************ ...
-1
votes
1
answer
56
views
React Native doesn't recognize the ruby version of rvm
I'm trying to correct the issue in my react native setup, the issue seems to be ruby.
To clarify I'm on a Mac M1
So i installed rvm, installed rvm 2.7.6 (which is the current version of ruby react ...
0
votes
1
answer
35
views
Can't install gem jekyll-content-security-policy-generator in Jekyll
I have an issue while installing a gem on Jekyll, on a Raspberry Pi 4 (which runs a Jenkins pipeline that I use to publish a website).
I'm trying to install the jekyll-content-security-policy-...
-1
votes
0
answers
19
views
How to resolve "cannot load such file -- sqlite3/sqlite3_native (LoadError)" error when sharing .ipa with Ad-Hoc?
I tried to install Fastlane on my Macbook before but I had problems with ruby while installing. I think I broke the packages of ruby on the kernel. When trying to share ipa with ad-hoc or development ...
0
votes
1
answer
50
views
Factory bot and problems with loging in in RSpec
I've got a problem with Factory bot and logging in as a designated user. I'm trying to run a simple Edit test in rspec. Here it is:
require "rails_helper"
RSpec.describe "Treat ...
0
votes
0
answers
19
views
Error: Net::ReadTimeout with #<TCPSocket:(closed)> Ruby on rails
I am interacting with openAI using ruby-openAI gem, but I get timeout error, is there a way I can exceed the timeout limit?
response = @client.completions(
parameters: {
model: "text-...
1
vote
0
answers
23
views
Allow member routes to have authorization equivalent to read action cancancan
module Abilities
class ProjectsAbility < Ability
def abilities
can :manage, Project, user_id: user.id
if user.is?(:super_admin)
can :read, Project
end
...
3
votes
3
answers
108
views
+50
can't find gem jekyll (>= 0.a) with executable jekyll (Gem::GemNotFoundException)
I am trying to make my personal website using github and jekyll following the instructions on the official website
When I reach the part:
jekyll new --skip-bundle
I received:
can't find gem jekyll (&...
0
votes
1
answer
24
views
Upgrade ruby sub dependency
I have a rails application that has the following dependency structure:
actionview (6.1.6.1)
rails-html-sanitizer (1.4.3)
loofah (2.18.0)
I'd like to get loofah to 2.19.1 without updating ...
1
vote
1
answer
61
views
Ruby LoadError with gmp
$ gem install gmp
Building native extensions. This could take a while...
Successfully installed gmp-0.7.43
Parsing documentation for gmp-0.7.43
Done installing documentation for gmp after 0 seconds
1 ...
-1
votes
0
answers
44
views
ERROR: While executing gem ... (Gem::Exception) OpenSSL is not available. Install OpenSSL and rebuild Ruby (preferred) or use non-HTTPS sources
I get this openssl error when trying to install/update any gem,
(gem install bundler) although I have openSSL installed.
I have installed rvm for ubuntu following through this link: https://github.com/...
0
votes
1
answer
31
views
How can i write a code to send an email on submit using Ruby Rails?
I am new to rails and i have a TEST.
I just installed and seted up everything needed to lunch the application,
I do have an existing app and i need to modify and write a simple send email code on ...
0
votes
3
answers
49
views
rails console in not accepting the commands
Rails console is loading but not accepting any commands .I am unable to even close the console by typing the exit command.
Loading development environment (Rails 7.0.2.4)
irb(main):001:0> ^C
irb(...
0
votes
0
answers
29
views
undefined method `create!' for ActiveAdmin Comments
ActiveAdmin suddenly started to display this error when I try to create a comment on any model.
NoMethodError in Admin::CommentsController#create
undefined method `create!' for #<Admin::...
0
votes
0
answers
18
views
Rails ActiveAdmin Batch Action on View/Show Page Grid
Rails ActiveAdmin offers native selectable_column element for batch action, and I found a plugin gem 'active_admin_scoped_collection_actions'
Both are excellent options for the INDEX page, but can I ...
-1
votes
1
answer
110
views
An error occurred while installing racc (1.6.2), and Bundler cannot continue. (Macbook Air M1)
I'm getting this error when running the command bundle install.
An error occurred while installing racc (1.6.2), and Bundler cannot continue.
Make sure that `gem install racc -v '1.6.2' --source '...
0
votes
1
answer
53
views
apt-get uninstall not removing package contents from linux debian 11 system
I am on a new debian 11 box need to reinstall ruby 2.7 because the configuration is borked. Ruby and bash aren't playing nice to recognize my executable folder. The bash terminal isn't recognizing ...
2
votes
1
answer
39
views
Parsing a non-XML document with Nokogiri when the node names are/contain integers
When I run:
#!/usr/bin/env ruby
require 'nokogiri'
xml = <<-EOXML
<pajamas>
<bananas>
<foo>bar</foo>
<bar>bar</bar>
<1>bar</1>
&...
0
votes
0
answers
24
views
Bundler update dependencies clash
Each time I update gems with bundler I got something I really do not fully understand. Although it resolves in some way in the end :)
So in this example I really can't get why the 1.11.1 is not fit in ...
0
votes
1
answer
32
views
There was an error parsing 'Gemfile': An empty gem name is not valid
I have a student receiving an error when running 'bundle install'. Things look right as far as file structure and the gemspec file. However I can't quite understand what this error is wanting to tell ...
3
votes
0
answers
125
views
Why does my gem work when installed from RubyGems.org, but not Github?
I'm trying to extract a couple of tasks into a gem, but cannot get the code to load in my Capfile. The code is at: https://github.com/floydj/capistrano-mysql_tables.
In my Gemfile:
gem "...
0
votes
1
answer
54
views
Ruby 3.2 + Rails 6.0.2 activesupport error
I`m trying to create a new Rails app, using Ruby v 3.2.0 and Rails 6.0.2, but I get following error. Anyone know how to solve this problem?
Error image
0
votes
0
answers
47
views
Unable to install gem pg in my Windows 11 using Ruby 3.2.0 Rails 7.0.4.1
I found error when try installing gem pg (postgresql), i have installing postgresql version 15.1 in my windows 11, here the code error:
C:\Windows\System32>gem install pg
Fetching pg-1.4.5.gem
...
-2
votes
1
answer
41
views
React native installation error in dependencies
enter image description hereFor mac os
Your RubyGems version (3.0.3.1) has a bug that prevents required_ruby_version from working for Bundle
Your RubyGems version (3.0.3.1) has a bug that prevents ...
-2
votes
1
answer
37
views
I can't install gem locomotivecms because of dependencies
As it says in the photo, locomotivecms_steam's latest version needs Ruby < 3 but all the stable versions of Ruby are > 3. How can I installed locomotivecms? I'm using https://doc.locomotivecms....
1
vote
2
answers
60
views
Writing a seed file and getting syntax error and Null:Violation Error
I'm trying to write a seed file that will generate a random Kudo. A Kudo has a Title, a Content (both generated with Faker gem), but these are not the issue. Kudo has also a giver_id, and a ...
0
votes
0
answers
11
views
Custom Jekyll plug keeps updating a file
I want to use a Jekyll site to be the back end for an interconnected device. I am currently attempting to have a HTML Form trigger a JavaScript that outputs to a data file via a custom pluggin
the ...
0
votes
0
answers
31
views
Gem Permission Error When installing fluentd plugin
When running docker on Jenkins i am getting the following error:
While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /usr/lib/ruby/gems/3.1.0 directory.
[0m[...
0
votes
1
answer
30
views
Getting a gem from a repository with a specific version
I'm trying to get an old version from a repository using bundler.
For instance, in my Gemfile I have:
...
gem "custom-metrics", "~> 0.14.0", git: "https://gitlab.custom.co/...
1
vote
1
answer
25
views
Macbook/M1 CPU: instal hiptest-publisher/executable-hooks failed
When I run hiptest-publisher on Mac's termainl, I'm getting the following error.
Ignoring executable-hooks-1.6.1 because its extensions are not built. Try: gem pristine executable-hooks --version 1.6....
0
votes
0
answers
28
views
Sorbet warning: method redefined when using Structs in tests
Recently, while working on a gem that interacts with Sorbet T::Struct, I started to see this warning in my test suite:
(eval):1: warning: method redefined; discarding old __t_props_generated_serialize
...
0
votes
0
answers
9
views
I upgraded my rails version from 6.1 to 7 but facing the following issue related to activeadmin
I have Implemented many solutions including Rails.application.config.after_initialize do
But, still it is throwing this error.
`uninitialzed constant InheritedResources::Base (NameError)
class ...
1
vote
0
answers
40
views
Ruby: Bundler's Mustermann `initialize` wrong number of arguments (given 2, expected 1) (ArgumentError)
I am following the steps of a GitHub tutorial on setting up a dev environment to create a GitHub app. Unfortunately, I'm stuck on Step 6 of the tutorial, as when I enter bundle exec ruby ...
1
vote
1
answer
36
views
Bundle Install hanging when installing anything that needs to compile C code (MacOS Ventura)
I updated my machine (MacBook Pro, Intel Core) to Ventura and have not been able to run bundle install on a fresh repo since. The install seems to get hung up on gems that need to compile C code (e.g. ...