Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
How do you package a ruby app so all the dependencies are already packaged in the app and does not require the user to be messing about with bundler or rvm.
Use "require" for all the dependencies you need in an ordered manner.
However the require only works if the "required" package is installed on the machine. from what I know there is no automated tool .. and how do you know even "ruby" is installed (non-MacOS).
If you don't want user to "mess" with installing anything -- then you have to write a piece of code that checks the presence of dependencies and installs them if needed. .. best is to write the install script in install script/program with bash etc. or in ruby inline with something with try/end syntax.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I've started playing around with Chocolately and am suitably impressed. Is there an easy way of gathering all of the originally installed software and letting the Choco package manager know about them? I know I can script it in PS1, but if that's already there I'd be so happy.
In the current version of Chocolatey there is no built in way of doing this, no.
As you will see in the Kickstarter here:
https://www.kickstarter.com/projects/ferventcoder/chocolatey-the-alternative-windows-store-like-yum
One of the scheduled features of Chocolatey is the ability to "Synchronize with existing and remove programs", which is what I think you are after.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am struggling with the concept gem. What does it mean? On jumpstart tutorial I read this
Steve Klabnik, an instructor for Jumpstart, created the sunlight-congress gem.
http://tutorials.jumpstartlab.com/projects/eventmanager.html
What he really did? Did he created the website? Did he created a gem for a website that is already existed?
What do you do when you say
gem 'sunlight-congress'
Please Make sure I am new to programming and explain it in a simple term. I really thank you for your help
See http://guides.rubygems.org/what-is-a-gem/
a gem is kind of a library in the Ruby world, like a Maven artifact in the java world (namely a jar file with identifier and version information and more)
In Ruby, a gem is nothing but a distributed code packaged as a library created by Ruby developer(s). The idea is to keep a particular functionality of code into a library but Ruby does it more beautifully by letting Ruby developers host it on http://rubygems.org/ and library then can used by others. For more information read: http://guides.rubygems.org/what-is-a-gem/
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I am learning how to use the data structure in ruby.
I found this library on github : https://github.com/kanwei/algorithms/tree/master.
I have created a word_count.rb file locally.
I want to use the library I mentioned, locally in my ruby class file.
The link I mentioned has following project structure :
how can I use this project in class file ?
It is published as a gem (just the page you found does not document that fact): https://rubygems.org/gems/algorithms
So if you have a Gemfile in your project, add the line:
gem "algorithms", "~> 0.6.1"
Otherwise, run the following command:
gem install algorithms
and use it like you would any other gem, with
require 'algorithms'
in one of your source files.
require 'algorithms'
include Containers
http://kanwei.github.io/algorithms/
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
The Linux server I'm deploying a web application to has a rather outdated version of Ruby (1.8.7) in their repositories, and it doesn't look like that's going to change any time soon.
What are my options in terms of using other ruby versions than the distro sanctioned package in a production environment?
If I was to use something like rvm, how would that affect my deployment process, server management, and stability?
rvm or rbenv are your best bets for managing multiple ruby versions.
As long as you setup RVM/rbenv for the user you're going to be deploying to, this will work fine. In fact, I've done this myself on AWS with Capistrano.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I want to write a ruby gem which will act as a monitoring tool for kannel. download and install in server and start a small worker or something.How i can make this? Iam not asking the script for kannel monitoring but how to make a tool .
RailsCasts has a decent episode on making a gem with Bundler.
Bundler will handle the structure, you just need to write your application. Libraries in the /lib directory, binaries (or scripts you want to be executable) in /bin. Pretty simple!