Command-line utilities with ruby.

Hi Rubyists,

Im planning to create simple cli utilities in ruby .. The end user should
have a ruby installed to run my utilities.. is there a way around this..?

I don't want to switch to a compiled language because i feel confident with
ruby and I love it.

Your views are well respected.

Yours Faithfully,
Poo.

I red around there are ways to package a Ruby software as a standalone application, but I never tried.

Since you are developing for the command line you don't need to bother much,
usually command line users are wise enough to install the scripting language they
need to run their code.

Bye
Nicola

···

On 04/03/18 18:01, Surya Poojary wrote:

Hi Rubyists,

Im planning to create simple cli utilities in ruby .. The end user should have a ruby installed to run my utilities.. is there a way around this..?

I don't want to switch to a compiled language because i feel confident with ruby and I love it.

Your views are well respected.

Yours Faithfully,
Poo.

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;

--
--------------------------
Dr. Nicola Mingotti
R&D - Borghi Srl
CTO - BondInsider
--------------------------

Did you take a look at Traveling Ruby ?

···

On Tue, Apr 3, 2018 at 18:16 Nicola Mingotti <nmingotti@gmail.com> wrote:

I red around there are ways to package a Ruby software as a standalone
application, but I never tried.

Since you are developing for the command line you don't need to bother
much,
usually command line users are wise enough to install the scripting
language they
need to run their code.

Bye
Nicola

On 04/03/18 18:01, Surya Poojary wrote:

Hi Rubyists,

Im planning to create simple cli utilities in ruby .. The end user should
have a ruby installed to run my utilities.. is there a way around this..?

I don't want to switch to a compiled language because i feel confident
with ruby and I love it.

Your views are well respected.

Yours Faithfully,
Poo.

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe> <ruby-talk-request@ruby-lang.org?subject=unsubscribe><http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt; <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;

--
--------------------------
Dr. Nicola Mingotti
R&D - Borghi Srl
CTO - BondInsider
--------------------------

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;

Thanks Alexander,

I'll surely look into it !

···

On Tue 3 Apr, 2018, 9:55 PM Alexander, <mycroft1891@gmail.com> wrote:

Did you take a look at Traveling Ruby ?
GitHub - phusion/traveling-ruby: Self-contained Ruby binaries that can run on any Linux distribution and any macOS machine.

On Tue, Apr 3, 2018 at 18:16 Nicola Mingotti <nmingotti@gmail.com> wrote:

I red around there are ways to package a Ruby software as a standalone
application, but I never tried.

Since you are developing for the command line you don't need to bother
much,
usually command line users are wise enough to install the scripting
language they
need to run their code.

Bye
Nicola

On 04/03/18 18:01, Surya Poojary wrote:

Hi Rubyists,

Im planning to create simple cli utilities in ruby .. The end user should
have a ruby installed to run my utilities.. is there a way around this..?

I don't want to switch to a compiled language because i feel confident
with ruby and I love it.

Your views are well respected.

Yours Faithfully,
Poo.

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe> <ruby-talk-request@ruby-lang.org?subject=unsubscribe><http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt; <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;

--
--------------------------
Dr. Nicola Mingotti
R&D - Borghi Srl
CTO - BondInsider
--------------------------

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;

Travelling Ruby is a great choice.

If you are already familiar with Ruby then also take a look at Crystal Lang
<https://crystal-lang.org/&gt;\. You will find it is mostly identical to Ruby
and simple CLI tools may already run out the box.

···

On Tue, Apr 3, 2018 at 12:25 PM Alexander <mycroft1891@gmail.com> wrote:

Did you take a look at Traveling Ruby ?
GitHub - phusion/traveling-ruby: Self-contained Ruby binaries that can run on any Linux distribution and any macOS machine.

On Tue, Apr 3, 2018 at 18:16 Nicola Mingotti <nmingotti@gmail.com> wrote:

I red around there are ways to package a Ruby software as a standalone
application, but I never tried.

Since you are developing for the command line you don't need to bother
much,
usually command line users are wise enough to install the scripting
language they
need to run their code.

Bye
Nicola

On 04/03/18 18:01, Surya Poojary wrote:

Hi Rubyists,

Im planning to create simple cli utilities in ruby .. The end user should
have a ruby installed to run my utilities.. is there a way around this..?

I don't want to switch to a compiled language because i feel confident
with ruby and I love it.

Your views are well respected.

Yours Faithfully,
Poo.

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe> <ruby-talk-request@ruby-lang.org?subject=unsubscribe><http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt; <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;

--
--------------------------
Dr. Nicola Mingotti
R&D - Borghi Srl
CTO - BondInsider
--------------------------

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;

Thanks George !

Crystal looks good but it's very new.

···

On Tue 3 Apr, 2018, 10:14 PM George D, <george.drummond@buildingblok.com> wrote:

Travelling Ruby is a great choice.

If you are already familiar with Ruby then also take a look at Crystal
Lang <https://crystal-lang.org/&gt;\. You will find it is mostly identical to
Ruby and simple CLI tools may already run out the box.

On Tue, Apr 3, 2018 at 12:25 PM Alexander <mycroft1891@gmail.com> wrote:

Did you take a look at Traveling Ruby ?
GitHub - phusion/traveling-ruby: Self-contained Ruby binaries that can run on any Linux distribution and any macOS machine.

On Tue, Apr 3, 2018 at 18:16 Nicola Mingotti <nmingotti@gmail.com> wrote:

I red around there are ways to package a Ruby software as a standalone
application, but I never tried.

Since you are developing for the command line you don't need to bother
much,
usually command line users are wise enough to install the scripting
language they
need to run their code.

Bye
Nicola

On 04/03/18 18:01, Surya Poojary wrote:

Hi Rubyists,

Im planning to create simple cli utilities in ruby .. The end user
should have a ruby installed to run my utilities.. is there a way around
this..?

I don't want to switch to a compiled language because i feel confident
with ruby and I love it.

Your views are well respected.

Yours Faithfully,
Poo.

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe> <ruby-talk-request@ruby-lang.org?subject=unsubscribe><http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt; <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;

--
--------------------------
Dr. Nicola Mingotti
R&D - Borghi Srl
CTO - BondInsider
--------------------------

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org
?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;

Hi,

···

On , Surya Poojary wrote:

Im planning to create simple cli utilities in ruby .. The end user should
have a ruby installed to run my utilities.. is there a way around this..?

On linux I would just assume anyone using console is able to install
ruby from system repository or something.

If you are targeting windows, you can give
GitHub - larsch/ocra: One-Click Ruby Application Builder a try, I have fairly positive experience
with it.

W.
--
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.

This usually sounds good until you realize the system repositories are
unsupported versions of Ruby. For example, Red Hat 6 uses Ruby 1.8.7,
and I think Red Hat 7 uses Ruby 2.0.0. If you use gems outside of the
Standard Library you're going to have even more fun.
http://leamhall.blogspot.com/2016/08/using-ruby-187-for-fun-and-uh-fun.html

When I've raised this question before there's usually a song and dance
about rvm or other things to patch together to make it work. I see two
paths; code for myself or accept that there is a reason software uses
compiled languages.

Leam

···

On Wed, Apr 4, 2018 at 10:45 AM, Wolf <wolf@wolfsden.cz> wrote:

Hi,

On , Surya Poojary wrote:

Im planning to create simple cli utilities in ruby .. The end user should
have a ruby installed to run my utilities.. is there a way around this..?

On linux I would just assume anyone using console is able to install
ruby from system repository or something.

If you are targeting windows, you can give
GitHub - larsch/ocra: One-Click Ruby Application Builder a try, I have fairly positive experience
with it.

W.

This usually sounds good until you realize the system repositories are unsupported versions of Ruby. For example, Red Hat 6 uses Ruby 1.8.7, and I think Red Hat 7 uses Ruby 2.0.0. If you use gems outside of the Standard Library you're going to have even more fun.
http://leamhall.blogspot.com/2016/08/using-ruby-187-for-fun-and-uh-fun.html

When I've raised this question before there's usually a song and dance about rvm or other things to patch together to make it work. I see two paths; code for myself or accept that there is a reason software uses compiled languages.

This.

Really, deployment is Ruby's Achilles' Heel. There is literally no good, universal, easy way to solve this problem at the moment. To be fair, Perl, Python, Node et al, all suffer from the same problem to a greater or lesser extent: you are expected to install the language yourself, and then use some special tool to install third-party libraries.

If you genuinely want a good deployment story that works across platforms, then you need to use something like Go or Rust -- or, yes, Crystal, once they get Windows cross-compile working; they are busy doing that right now.

All these languages embed the source of their third-party libraries in with the source code before compiling. I've sometimes thought that, in hindsight, this would be a better approach for Ruby. But it's not easy to get there from where we are now.

Click here to view Company Information and Confidentiality Notice.<http://www.jameshall.co.uk/index.php/small-print/email-disclaimer&gt;

Debian stable has 2.3.3 and archlinux is on 2.5.1; but wow, I had no
idea rhel&centos are so far behind.

W.

···

On , leam hall wrote:

This usually sounds good until you realize the system repositories are
unsupported versions of Ruby. For example, Red Hat 6 uses Ruby 1.8.7,
and I think Red Hat 7 uses Ruby 2.0.0.

--
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.

Leam

···

On Wed, Apr 4, 2018 at 11:07 AM, Wolf <wolf@wolfsden.cz> wrote:

On , leam hall wrote:

This usually sounds good until you realize the system repositories are
unsupported versions of Ruby. For example, Red Hat 6 uses Ruby 1.8.7,
and I think Red Hat 7 uses Ruby 2.0.0.

Debian stable has 2.3.3 and archlinux is on 2.5.1; but wow, I had no
idea rhel&centos are so far behind.

True as water.

Interpreted languages don't beat native code .

We could just stick to rust or golang but then we wouldn't have the ruby
flow ..

Crystal looks promising..even Nim language is good ..

But, nothing is perfect they say.

ruby.native?

Yours truly,

Poo.

This usually sounds good until you realize the system repositories are
unsupported versions of Ruby. For example, Red Hat 6 uses Ruby 1.8.7, and I
think Red Hat 7 uses Ruby 2.0.0. If you use gems outside of the Standard
Library you're going to have even more fun.
http://leamhall.blogspot.com/2016/08/using-ruby-187-for-fun-and-uh-fun.html

When I've raised this question before there's usually a song and dance
about rvm or other things to patch together to make it work. I see two
paths; code for myself or accept that there is a reason software uses
compiled languages.

This.

Really, deployment is Ruby's Achilles' Heel. There is literally no good,
universal, easy way to solve this problem at the moment. To be fair, Perl,
Python, Node et al, all suffer from the same problem to a greater or lesser
extent: you are expected to install the language yourself, and then use
some special tool to install third-party libraries.

If you genuinely want a good deployment story that works across platforms,
then you need to use something like Go or Rust -- or, yes, Crystal, once
they get Windows cross-compile working; they are busy doing that right now.

All these languages embed the source of their third-party libraries in with
the source code before compiling. I've sometimes thought that, in
hindsight, this would be a better approach for Ruby. But it's not easy to
get there from where we are now.

Click here to view Company Information and Confidentiality Notice.<
http://www.jameshall.co.uk/index.php/small-print/email-disclaimer&gt;

···

On 04-Apr-2018 8:34 PM, "Andy Jones" <Andy.Jones@jameshall.co.uk> wrote:

MRuby is meant to do things like that. (https://github.com/mruby/mruby\)
The Heroku CLI tools is made with mruby if I'm not wrong.

True as water.

Interpreted languages don't beat native code .

We could just stick to rust or golang but then we wouldn't have the ruby
flow ..

Crystal looks promising..even Nim language is good ..

But, nothing is perfect they say.

ruby.native?

Yours truly,

Poo.

This usually sounds good until you realize the system repositories are
unsupported versions of Ruby. For example, Red Hat 6 uses Ruby 1.8.7, and I
think Red Hat 7 uses Ruby 2.0.0. If you use gems outside of the Standard
Library you're going to have even more fun.
http://leamhall.blogspot.com/2016/08/using-ruby-187-for-fun-and-uh-fun.html

When I've raised this question before there's usually a song and dance
about rvm or other things to patch together to make it work. I see two
paths; code for myself or accept that there is a reason software uses
compiled languages.

This.

Really, deployment is Ruby's Achilles' Heel. There is literally no good,
universal, easy way to solve this problem at the moment. To be fair, Perl,
Python, Node et al, all suffer from the same problem to a greater or lesser
extent: you are expected to install the language yourself, and then use
some special tool to install third-party libraries.

If you genuinely want a good deployment story that works across platforms,
then you need to use something like Go or Rust -- or, yes, Crystal, once
they get Windows cross-compile working; they are busy doing that right now.

All these languages embed the source of their third-party libraries in with
the source code before compiling. I've sometimes thought that, in
hindsight, this would be a better approach for Ruby. But it's not easy to
get there from where we are now.

Click here to view Company Information and Confidentiality Notice.<
http://www.jameshall.co.uk/index.php/small-print/email-disclaimer&gt;

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;

···

On 4. April 2018 at 17:20:00, Surya Poojary (suryapjr@gmail.com) wrote:
On 04-Apr-2018 8:34 PM, "Andy Jones" <Andy.Jones@jameshall.co.uk> wrote:

This may be why the vast majority of Ruby's market share is in Rails;
the end user doesn't have to use Ruby at all.

I continue to search for a mentor. Ruby draws me in to learn more OO
Design and Testing. Not sure that my future job will use Ruby but I'll
probably understand the OO world by the time I get there.

Leam

···

On 04-Apr-2018 8:34 PM, "Andy Jones" <Andy.Jones@jameshall.co.uk> wrote:

This usually sounds good until you realize the system repositories are
unsupported versions of Ruby. For example, Red Hat 6 uses Ruby 1.8.7, and I
think Red Hat 7 uses Ruby 2.0.0. If you use gems outside of the Standard
Library you're going to have even more fun.
http://leamhall.blogspot.com/2016/08/using-ruby-187-for-fun-and-uh-fun.html

When I've raised this question before there's usually a song and dance about
rvm or other things to patch together to make it work. I see two paths; code
for myself or accept that there is a reason software uses compiled
languages.
<<<<<<<<

This.

Really, deployment is Ruby's Achilles' Heel. There is literally no good,
universal, easy way to solve this problem at the moment. To be fair, Perl,
Python, Node et al, all suffer from the same problem to a greater or lesser
extent: you are expected to install the language yourself, and then use some
special tool to install third-party libraries.

If you genuinely want a good deployment story that works across platforms,
then you need to use something like Go or Rust -- or, yes, Crystal, once
they get Windows cross-compile working; they are busy doing that right now.

All these languages embed the source of their third-party libraries in with
the source code before compiling. I've sometimes thought that, in
hindsight, this would be a better approach for Ruby. But it's not easy to
get there from where we are now.

For complete console application, try Thor or Commander gems.
For console interfaces, try ffi-ncurses gem.

···

On 4/4/18, leam hall <leamhall@gmail.com> wrote:

On 04-Apr-2018 8:34 PM, "Andy Jones" <Andy.Jones@jameshall.co.uk> wrote:

This usually sounds good until you realize the system repositories are
unsupported versions of Ruby. For example, Red Hat 6 uses Ruby 1.8.7, and
I
think Red Hat 7 uses Ruby 2.0.0. If you use gems outside of the Standard
Library you're going to have even more fun.
http://leamhall.blogspot.com/2016/08/using-ruby-187-for-fun-and-uh-fun.html

When I've raised this question before there's usually a song and dance
about
rvm or other things to patch together to make it work. I see two paths;
code
for myself or accept that there is a reason software uses compiled
languages.
<<<<<<<<

This.

Really, deployment is Ruby's Achilles' Heel. There is literally no
good,
universal, easy way to solve this problem at the moment. To be fair,
Perl,
Python, Node et al, all suffer from the same problem to a greater or
lesser
extent: you are expected to install the language yourself, and then use
some
special tool to install third-party libraries.

If you genuinely want a good deployment story that works across
platforms,
then you need to use something like Go or Rust -- or, yes, Crystal, once
they get Windows cross-compile working; they are busy doing that right
now.

All these languages embed the source of their third-party libraries in
with
the source code before compiling. I've sometimes thought that, in
hindsight, this would be a better approach for Ruby. But it's not easy
to
get there from where we are now.

This may be why the vast majority of Ruby's market share is in Rails;
the end user doesn't have to use Ruby at all.

I continue to search for a mentor. Ruby draws me in to learn more OO
Design and Testing. Not sure that my future job will use Ruby but I'll
probably understand the OO world by the time I get there.

Leam

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;

RubyHACK 2018 Updates

It's only one month away! May 3rd and 4th are coming fast and RubyHACK is shaping up. Speakers are scheduled from around the world and their info is on the website. We have several sponsors lined up and the conference details are just about finalized.
Register Now!
<https://rubyhack.us15.list-manage.com/track/click?u=e9eefae6b9dab48e6d6841cb5&id=3f4a267043&e=877229aec2>

Sign Up & Discounts
If you have a group that would like to attend, email directors@rubyhack.com <mailto:directors@rubyhack.com> and we'll invoice you for the total. Include the info below and who the invoice should be sent to (name, email, company name):

FirstName
LastName
Email
PhoneNumber
TShirt Type (M/F)
TShirt Size (XS, S, M, L, XL, XXL, XXXL)

If you don't have a group just press the "Register Now!" button above and come join us!

Prizes - News, Non-Profit, and Request
RubyHACK was officially recognizedby the IRS as a 501c3 non-profit charity a few weeks ago! Sponsorship support is tax deductible and will help us further the RubyHACK mission

Happy 25th Anniversary Ruby! As we look forward, RubyHACK is excited to grow with Ruby and other technologies here in Utah. You'll see some of the future @ RubyHACK 2018 with Micro Services, Machine Learning, Blockchain and Beyond!

Okay, Prizes!!! Last year we had incredible giveaways... The final push to get registrations will determine what options we have for our raffles this year. Tell your friends and co-workers that you're coming to the event and let's get these seats filled! We're in the home stretch, come join us and our great sponsors at OC Tanner in Salt Lake City on May 3rd & 4th!

The High Altitude Coding Konference Mission is to inform, assist, and educate interested individuals who view, or would like to view, software engineering as their craft. HACK desires to enhance the education of members in the programming community. We also desire to provide assistance to other organizations engaged in training and educating disadvantaged, marginalized, or disenfranchised individuals within communities that have traditionally been shut out from opportunities in computer programming, designing, and languages.
<https://rubyhack.us15.list-manage.com/track/click?u=e9eefae6b9dab48e6d6841cb5&id=a4f61d5de4&e=877229aec2>
<https://rubyhack.us15.list-manage.com/track/click?u=e9eefae6b9dab48e6d6841cb5&id=f11ccf3b47&e=877229aec2>
<https://rubyhack.us15.list-manage.com/track/click?u=e9eefae6b9dab48e6d6841cb5&id=8c6f7e0c0c&e=877229aec2>
Copyright © 2018 High Altitude Coding Konference, All rights reserved.

Our mailing address is:
13013 Shadowlands Lane
Draper, Utah 84020