Shopify Ruby Script Error - discount code requirements not met (empty cart)
I am working on a script that would block promo code usage for products that are tagged with 'sale' - I am seeing an error message on line 1 of my script and I'm not sure how to resolve it. The script...
View ArticleGem::Ext::BuildError: ERROR: Failed to build gem native extension when I run...
Some details about my environment:Ruby version: ruby 3.2.0RubyGems version: 3.5.6rbenv version: 1.2.0MacOS: Sonoma 14.1.2 / M2I'm trying to run bundle install to install the gems for my project but I'm...
View ArticleHow to create jira smart values framework?
I am trying to create a webhook framework and i want to replicate the JIRA smart values features for my client to configure custom payloads for the webhook.How can i get started? I am use ruby. Should...
View ArticleCannot authenticate with private rubygem repository in Docker container
Outside of Docker, I am able to run bundle config gem.fury.io $GEMFURY_API_KEY followed by bundle install to authenticate and download a gem from a private repository on gemfury. However, when I...
View ArticleRuby .each fails for single element
I can iterate through an array just fine doing:def source_names(packages) files = [] packages.each do |package| files << (package +".ads") files << (package +".adb") end return filesendBut...
View ArticleGrover.to_pdf: ReadableStream is not defined
I have a Rails app that is using the Grover Ruby gem, and it converts HTML to images perfectly well, but when I try to convert it to a PDF as shown below, I get an error saying the ReadableStream is...
View ArticleRegular expression - match period (.) at end of word [duplicate]
Okay here's a weird one.I want to replace an acronym within a string with another word but the trailing period seems to be causing problems with word boundary detection (because period is not a word...
View ArticleNo Ruby script found in input (LoadError) for bin/dev in Windows 10
I'm trying to run bin/dev on a brand new Rails app (7.1.3) using Powershell. I'd rather not use WSL for this one, but if it's needed I will. I do recall that for Rails 6 ones I had to call ruby +...
View ArticleSticking a button on the bottom right
Picture of appI'm making this project for my bootcamp, I'm struggling with moving this + button to the bottom right of this container, my project has this container to "simulate" a phone screen, I have...
View ArticleHow to auto reconnect Rails 6 PostgreSQL connection?
I have a rails 6 application with some worker processes. The app uses PostgreSQL as a DB. Sometimes the DB reboots (e.g. minor version upgrade) and workers lose their connection. I'd expect them to...
View ArticleFlutter post-install hook of the Podfile error
I created a new flutter project from scratch, added the necessary packages to the pubspec.yaml file and ran the flutter pub get and then pod install command, but I get this error. I get this error both...
View ArticleReplacing a color with rmagick
I'm currently stuck on a - more or less - simple task. I need to replace some colors with other colors in an image using rmagick. I found two approaches. Looping through every pixel to replace it's...
View Articlemysql2 gem is breaking my bundler. An error occurred while installing mysql2...
I have macbook pro m2 machine. I have a ruby project that was working normally and after doing a system upgrade, It's broken.I'm trying to run bundle install in my project and I'm getting the below...
View ArticleThe Ruby version you are trying to install does not exist: ruby-2.6.1
In heroku I got this error The Ruby version you are trying to install does not exist: ruby-2.6.1but locally when I put ruby -v I got thisruby 2.6.1p33 (2019-01-30 revision 66950) [x86_64-darwin20]when...
View ArticleInstalling into parent path not allowed when installing locally built Ruby gem
I've written a Ruby gem that I'd like to install locally. I'm using Rubygems 3.0.6 and RVM on OS X Mojave. This is a closed source gem and I'd rather not go to the trouble of publishing it to the...
View ArticleAngular.js Rails routing doesn't work as expected
I'm having some problems when try to load Angular views in my Rails app. But if I do in the page `{{1+3}} it gives me the correct result as 4. So I believe it's something to do with routes.The...
View ArticleI used this article 'Attach to a manually opened Chrome browser using...
I referred to the mentioned article by Justin Ko on attaching the Chrome browser. I had successfully used the same approach in the past, and it worked well for me. However, I am currently attempting it...
View ArticleHow to use environment variables with Docker [duplicate]
Outside of Docker, I am able to run bundle config gem.fury.io $GEMFURY_API_KEY followed by bundle install to authenticate and download a gem from a private repository on gemfury. However, when I...
View ArticleHow to make carrierwave delete the file when destroying a record?
I'm using the carrierwave gem to upload files.I have built a system for users to flag images as inappropriate and for admins to remove the images. From what I can tell, calling destroy on the image...
View ArticleGem::Ext::BuildError: ERROR: Failed to build gem native extension...
Some details about my environment:Ruby version: ruby 3.2.0RubyGems version: 3.5.6rbenv version: 1.2.0MacOS: Sonoma 14.1.2 / M2I'm trying to run bundle install to install the gems for my project but I'm...
View Article