DevHeads.net

Talk

Earn $100-$500 per month

Great Offer!!!
Now you can earn $100-$500 per month with virtualofficejob.com.Here has many choice for you.You can get job absolutely free. Visit this page website:<a href="http://www.virtualofficejob.com/affiliate.php?id=FR30366"target="_blank"></a>Free job for you!

Free job

Free job for you!
Are you want any Internet home job?It is perfect job for you. Absolutely free and easy job here. To know more about this Please visit this page website:<a href="http://www.virtualofficejob.com/affiliate.php?id=FR30366"target="_blank"=></a>

Free job

Great offer for you. Are you want to do a Internet job?It's for you.

So try Virtualofficejob.com and enjoy it...

JRuby 9.1.15.0 Released

Major features of JRuby 9000:

Ruby 2.x compatibility
A new optimizing runtime based on a traditional compiler design
New POSIX-friendly IO and Process
Fully ported encoding/transcoding logic from MRI

If you do find issues then report them on using our issue tracker at
<a href="http://bugs.jruby.org" title="http://bugs.jruby.org">http://bugs.jruby.org</a>. We also encourage users to join our IRC channel
(#jruby on Freenode) and mailing lists.

Day 7 - Ruby Advent Calendar 2017 - webservice - Script HTTP JSON APIs (web services) in classy Sinatra 2.0-style get / post methods with Mustermann 1.0 route / url pattern matching; load (micro) web services at-runtime and more

Hello,

welcome back to the Ruby Advent Calendar 2017 [1] - 25 Days
of Ruby Gems / Libraries from December 1 to December 25.

Let’s continue the series on Day 7 with webservice [2] - Script
HTTP JSON APIs (web services) in classy Sinatra 2.0-style get / post
methods with Mustermann 1.0 route / url pattern matching. Load (micro)
web services at-runtime using Webservice.load_file. Get a free wiener
lager, welsh red ale or kriek lambic beer delivered to your home
(computer) in JSON and much much more.

Cheers.

Day 6 - Ruby Advent Calendar 2017 - almost-sinatra - Build your own webframework from scratch with Rack and Tilt in less than ten lines

Hello,

welcome back to the Ruby Advent Calendar 2017 [1] - 25 Days
of Ruby Gems / Libraries from December 1 to December 25.

Let's continue the series on Day 6 with almost-sinatra [2] - Build
your own webframework from scratch
with Rack and Tilt in less than ten lines (of Ruby).

The legendary mega hack by Konstantin Haase - six lines of Almost
Sinatra now "unobfuscated" and
bundled up for easy (re)use and studying.

Got inspired? Build your own webframework.

Day 5 - Ruby Advent Calendar 2017 - json - Read Next Generation JSON Versions (HanSON, SON, JSONX/JSON11, etc.) with Comments, Unquoted Keys, Multi-Line Strings, Trailing Commas, Optional Commas, and More

Hello,

welcome back to the Ruby Advent Calendar 2017 [1] - 25 Days
of Ruby Gems / Libraries from December 1 to December 25.

Let’s continue the series on Day 5 with json-next [2] - Read next
generation JSON versions (HanSON, SON, JSONX/JSON11, etc.) with
comments, unquoted keys, multi-line strings, trailing commas, optional
commas, and more.

The json-next gem lets you convert and read (parse) next gen JSON
versions including: HanSON e.g. HANSON.parse, SON e.g. SON.parse,
JSONX e.g. JSONX.parse.

Bonus: More JSON Formats.

Day 4 - Ruby Advent Calendar 2017 - journaltxt - Blogging reinvented: Read Journal.TXT - single-text file journals - and write out (auto-build) a blog (w/ Jekyll posts etc.)

Hello,

welcome back to the Ruby Advent Calendar 2017 [1] - 25 Days
of Ruby Gems / Libraries from December 1 to December 25.

Let’s continue the series on Day 4 with journaltxt [2] - Blogging
reinvented: Read Journal.TXT - single-text file journals - and write
out (auto-build) a blog (w/ Jekyll posts etc.

Bonus: Add Your Perfect Day!

Berlin.TXT, Munich.TXT, Salzburg.TXT, Paris.TXT, London.TXT,
Rome.TXT, New York.TXT, Austin.TXT, Tornoto.TXT, Calgary.TXT,
Melbourne.TXT, Sydney.TXT, …

Anyone? Write your perfect day(s) in a single-text file with Journal.TXT.

Cheers.

rasn1 0.4.0 released

rasn1 0.4.0 has been released.

* home: <https://github.com/sdaubert/rasn1>
* bugs: <https://github.com/sdaubert/rasn1/issues>
* doc: <https://github.com/sdaubert/rasn1/wiki>

RASN1 is a pure ruby ASN.1 library. RASN1 helps to create ASN.1 parsers
and encoders.

The RASN1::Model class is the entry point to create a parser/encoder.

Simple example:
From ASN1.

Doubt on define_method in module

Hi

The following code prints "wow" both the times instead of "cool" and "wow" as I was expecting. Why does this happen and how should I correct this ?

I know that it is possible to just define an instance method in the module that returns self.class.name.downcase, but I wish to do it this way using define_method.

I don't wish to evaluate the class' name every time the method is called.

Day 3 - Ruby Advent Calendar 2017 - quik - Quick starter template script wizard - the missing code generator and project scaffolder for gems, sinatra, jekyll & more

Hello,

welcome back to the Ruby Advent Calendar 2017 [1] - 25 Days
of Ruby Gems / Libraries from December 1 to December 25.

Let’s continue the series on Day 3 with quik [2] -Quick starter
template script wizard - the missing code generator and project
scaffolder for gems, sinatra, jekyll & more.
o on.

Ever asked yourself

- Q: How do you get started with creating a new gem?
- Q: How do you get started with creating a new sinatra app or service?
- Q: How do you get started with creating a new jekyll theme? and so on.

Ask no more :-) try quik.

Day 2 - Ruby Advent Calendar 2017 - factbook - Turn the World Factbook (260+ country profiles) into open structured data e.g JSON

Hello,

welcome to the Ruby Advent Calendar 2017 [1] - 25 Days
of Ruby Gems / Libraries from December 1 to December 25.

Let’s continue the series on Day 2 with factbook [2] - Turn the
World Factbook (260+ country profiles) into open structured data e.g
JSON.

Explore the world with ruby e.g. Where do you find gold in the
world? Look for the economy / resources section.What countries have
the most internet hosts? What countries have the most proven crude
oil reserves?

Day 1 - Ruby Advent Calendar 2017 - blockchain-lite - Build your own blockchains with crypto hashes

Hello,

welcome to the Ruby Advent Calendar 2017 [1] The idea is: 25 Days
of Ruby Gems / Libraries from December 1 to December 25.

Let's kick off the series on Day 1 with blockchain-lite [2] - Build
your own blockchains with crypto hashes; revolutionize the world with
blockchains, blockchains, blockchains one block at a time!

Cheers.

PS: You're more than welcome to send in your articles (about your
library / gem of choice) too!

[1] <a href="https://planetruby.github.io/advent2017" title="https://planetruby.github.io/advent2017">https://planetruby.github.io/advent2017</a>
[2] <a href="https://planetruby.github.io/advent2017/01-blockchain-lite" title="https://planetruby.github.io/advent2017/01-blockchain-lite">https://planetruby.github.io/advent2017/01-blockchain-lite</a>

Unsubscribe: <mailto:ruby-talk-request@ruby-la

OpenSSL wrap

Hello,

To encrypt a file i use the following command line, a password will be
prompted :
openssl enc -aes-256-cbc -in un_encrypted.data -out encrypted.enc

The same, to decrypt a file, i use the following command line, a
password will be prompted :
openssl enc -d -aes-256-cbc -in encrypted.enc -out un_encrypted.data

Is there a Ruby Gem for that ?

Thank you very much anyway.

Cheers,

Marc.

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

debride 1.8.1 Released

debride version 1.8.1 has been released!

* home: <https://github.com/seattlerb/debride>
* rdoc: <http://docs.seattlerb.org/debride>

Analyze code for potentially uncalled / dead methods, now with auto-removal.

Changes:

### 1.8.1 / 2017-11-29

* 2 minor enhancements:

* Add basic support for jbuilder files. (d-mato)
* Added rails & whitelist example to readme. (TheRusskiy)

* 2 bug fixes:

* Capture RegexpError and skip file. (mrdShinse)
* Fixed reporting of cdecl+const2 (eg X::Y = 42).

packetgen 2.2.0 released

packetgen 2.2.0 has been released.

* home: <https://github.com/sdaubert/packetgen>
* bugs: <https://github.com/sdaubert/packetgen/issues>
* doc: <https://github.com/sdaubert/packetgen/wiki>

PacketGen provides simple ways to generate, send and capture network
packets.

Known protocols are: Ethernet, Dot11, Dot1x, ARP, IP, IPv6, GRE, ICMP,
ICMPv6, UDP, TCP, SNMP, ESP, DNS, IKE, EAP, BOOTP, DHCP and HTTP.

Changes:

### 2.2.0 / 2017-11-29

* Add support for BOOTP, DHCP and HTTP protocols.
* Add Utils.mitm to mount Man-In-The-Middle attacks on local network
(based on ARP spoofing).
* Header::I

ANN elastic_notifier 0.1.0

Hi all!

First version of ElasticNotifier gem has been released.

check the documentation here: <a href="https://github.com/hspazio/elastic_notifier" title="https://github.com/hspazio/elastic_notifier">https://github.com/hspazio/elastic_notifier</a>

ElasticNotifier gem provides a simple API to send error notifications to an
Elastic Search server. It can also be used as plug-in for
exception_notification
<https://github.com/smartinez87/exception_notification> gem to send error
notifications caught by the Rack middleware.

Any feedback is very much appreciated!

*Fabio Pitino*

Yuki & Moto Press Bookshelf Update - Free (Online) Books about Ruby 'n' Friends

Hello,

I'm a big fan of the latest and greatest plugin addition to GitHub
Pages (and Jekyll), that is, Jekyll Remote Themes.

Using a simple config entry you can "automagically" pull in remote
themes (layouts, includes, javascripts, etc).

Shell in old versions of NetSSH

In older versions of net-ssh there used to be a shell function that allowed
you to open up a shell on the remote host and issue commands. At some point
this was removed

Presently it is possible to issue commands with something like

ssh = Net::SSH.start(...)
ssh.exec!(some command or other)

The problem is each exec! call opens a new shell on each call so it is not
possible to retain your state on the remote machine.

RSpec recipe: remove constants created during a test execution

Learn how to automatically remove classes and modules declared in a RSpec
test body.

The recipe link:
<a href="https://medium.com/@shvetsovdm/rspec-recipe-remove-constants-created-during-a-test-execution-377827adda87" title="https://medium.com/@shvetsovdm/rspec-recipe-remove-constants-created-during-a-test-execution-377827adda87">https://medium.com/@shvetsovdm/rspec-recipe-remove-constants-created-dur...</a>

Request: Ruby internship recommendation

Hello Rubyists,

I am a girl who really loves computer science, addicted to Ruby and care
about software architecture. I am writing to all of you because I need your
help to get an internship of 4 to 6 months starting from march and
obviously I want something related to Ruby development. I live in a country
where Ruby is not known and all internships offers that I get are Java
related. I want to build a Ruby career I need your help !! I am ready to
move to any country if only I can get my Ruby mission.

With regard to my technical skills, I am very flexible and can learn really
fast.

hoe 3.16.2 Released

hoe version 3.16.2 has been released!

* home: <http://www.zenspider.com/projects/hoe.html>
* code: <https://github.com/seattlerb/hoe>
* bugs: <https://github.com/seattlerb/hoe/issues>
* rdoc: <http://docs.seattlerb.org/hoe/>
* doco: <http://docs.seattlerb.org/hoe/Hoe.pdf>
* other: <http://github.com/jbarnette/hoe-plugin-examples>

Hoe is a rake/rubygems helper for project Rakefiles. It helps you
manage, maintain, and release your project and includes a dynamic
plug-in system allowing for easy extensibility.

a bug in BigDecimal ?

Hi,

I was doing some computations JFF when I found
this :

========================
require 'bigdecimal'
BigDecimal.limit(1000)

# ok => 2.718...
n = 1_000_000_000;
((BigDecimal.new(n) + BigDecimal.new(1)) /
BigDecimal.new(n))**BigDecimal.new(n)

# gives infinity, not good, it should converge to value E or rise
# an exception if it can't compute it.
n = 1_000_000_000_0;
((BigDecimal.new(n) + BigDecimal.new(1)) /
BigDecimal.new(n))**BigDecimal.new(n)
========================

I am running Ruby 2.4.2, do you observe the same behaviour
in your release?

Bye
Nicola

Unsubscribe: <mailto:r

Mailing list mirror powered by Discourse

Hi,

I work at Discourse and would like to announce our mirror of the Ruby-Talk
mailing list.

<a href="https://ruby-talk.trydiscourse.com" title="https://ruby-talk.trydiscourse.com">https://ruby-talk.trydiscourse.com</a>

Discourse is one of the top 3 Rails, Ember.js, and Ruby open source
projects in the world and we love giving back to the community.

We imported all messages from the past and new emails will appear shortly
after they were sent to the mailing list. Sign-ups are currently disabled,
but you can already browse through topics and search for specific posts.

Rakefile issue with Travis-CI

Probably Operator error.

class_exec !!

Hi Rubyists,

Can

What is the use of class_exec? and When to use class_exec?

I really don't like the example on the Ruby homepage and suggest it changed

With OOP, we have properties of an object, which are references to
something, and they are not the "action", "message" or "method", which are
what make up the important part of OOP: interface.

That is, each object has the data part (properties) and the action part
(methods).

But the very first example on the Ruby homepage use "say" as a string, and
then use

say['love'] = "*love*"

to manipulate the string.

Concerns about Ruby and Tk

Dear Rubists,

I am new to Ruby and I like it a lot. In short, i like it because
it has Python simplicity, Lisp consistency and Perl efficacy.

I have a concern I would like to share with you.
I had installed on my system a release of Ruby that in my opinion was
too old: 2.1.
So I decided to install a recent release from source since
in my Debian 8.9 (old stable) it is not possible to install it from apt.

The problem is I want to use 'tk' and installing 'tk' has
been really painful.

Irb Tab completion problem in Emacs

Hi everyone,

I just installed Ruby 2.4.2 from source.
and I am using Emacs 24.4.1 in Debian 8.9.

If I run irb in xterm, then Tab-completion *works*.

If i run irb in an Emacs shell with "M-x shell", then Tab-completion
*does not work*.

If I run irb in an Emacs shell with "M-x ansi-term", then Tab-completion
*works*.

I would like to be able to use irb in Emacs "M-x shell" because
there it is easy to move and copy/paste code.

Do you know how to achieve this ?

I prefer to use an Emacs shell over installing a specialized ".el" just
for Ruby.
Because Emacs + "M-x shell" + "isend-mode" is w

RE: What about Ruby in AI field?

Python isn't as much powerful as popular.  Because of its popularity things like tensorflow work on it.  Ruby is more for clear and highly auditable programming than for any kind of speed.  To make speed you write a Ruby gem.  

Sent from my Verizon, Samsung Galaxy smartphone
-------- Original message --------From: ? ? < ... at outlook dot com> Date: 11/16/17 7:30 PM (GMT-08:00) To: <a href="mailto:ruby-talk@ruby-lang.org">ruby-talk@ruby-lang.org</a> Subject: What about Ruby in AI field?

Hello Everyone,

As we know, Python is very popular in the AI field. Why not Ruby?

What about Ruby in AI field?

Hello Everyone,

As we know, Python is very popular in the AI field. Why not Ruby? Both of them are OOP script languages, have the almost same data structures like Array, Hash Map, and so forth.

I am not a Python user, so I don't know what makes Python so powerful. However, I think the Ruby should has the same power tools for AI.

What's your opinion?

Thanks,
Jeffrey.

Sent from Outlook.com.

ruby markdown text to hash conversion help

Hi,

I am trying to create a hash from a markdown text. I am using redcarpet gem to convert the markdown to html. And then passing the html string to Nokogiri to create the desired hash.

My sample input string:

**Rudder / Propeller / Rope Guard:**

No damages were noted on the rudder. Medium slime fouling was present. The propeller was found to have medium calcium and slime growth present. No significant discrepancies were observed on the propeller blades, only typical dings along blade edges, and some spots of minor cavitation. No entanglement was found inside the rope guard.

Ruby for hacking(penetration testing)

Hi Rubyists,
Is there an ruby equivalent of grey hat Python or violent python.After
extensive search on the internet,I'm not able to find any book on
aggressive ruby or pentesting in Ruby.All I could find was metasploit and
python books.

Thank you for such an awesome community!!

Yours sincerely,

Surya Poojary

When to use blocks?

When to use blocks and yield in ruby code.A practical example will be
appreciated.

Thank you!!

Yours sincerely,
Surya Poojary

Ruby without Rails?

Hi Rubyists!

I'm a beginner who is trying to learn Ruby. I have noticed how people
always link rails to ruby,I'm sure it's one hell of a framework and does
boosts Ruby's popularity.But I wanted to know if ruby can hold its own
against other languages if there is no rails.

Just a question from a newbie.

Yours Sincerely,

Surya Poojary.

Ruby to Wasm will be great

We have Opal <a href="http://opalrb.com/" title="http://opalrb.com/">http://opalrb.com/</a> now, but Ruby to wasm
<a href="http://webassembly.org/" title="http://webassembly.org/">http://webassembly.org/</a> compiler will be great.

publican_creators 1.2.0 released!

publican_creators 1.2.0 has been released.

* home <https://launchpad.net/publicancreators>
* bugs: <https://bugs.launchpad.net/publicancreators>
* questions: <https://answers.launchpad.net/publicancreators>
* doc: <http://www.rubydoc.info/gems/publican_creators>
* userdoc: <https://saigkill.github.io/publican_creators/about/>

This program works on top of Redhat's publican. It helps by creating a
new project and replaces the default values to your own values. Also it
provides a graphical creator for new projects, a graphical project
builder and a graphical revision editor.

Illustrated Guide to Ruby

Hey all, I'm working on a new book: An Illustrated Guide to Ruby. Havenwood
is helping me write as well.

<a href="https://baweaver.gitbooks.io/an-illustrated-guide-to-ruby/content/" title="https://baweaver.gitbooks.io/an-illustrated-guide-to-ruby/content/">https://baweaver.gitbooks.io/an-illustrated-guide-to-ruby/content/</a>

Short version: I'm using cute Lemurs to teach Ruby.

Currently it's my NaNoWriMo project, but a long term idea of mine I wanted
to fully realize. After reading books like Learn You a Haskell and Why's
Poignant Guide I wanted to write a true beginners book for Ruby.

The illustrations take a bit to catch up as they take ~20-30m each
including digitalization, though I'm getting faster.

packetgen 2.1.4 released

packetgen 2.1.4 has been released.

* home: <https://github.com/sdaubert/packetgen>
* bugs: <https://github.com/sdaubert/packetgen/issues>
* doc: <https://github.com/sdaubert/packetgen/wiki>

PacketGen provides simple ways to generate, send and capture network
packets.

Known protocols are: Ethernet, Dot11, Dot1x, ARP, IP, IPv6, GRE, ICMP,
ICMPv6, UDP, TCP, SNMP, ESP, DNS, IKE and EAP.

Changes:

### 2.1.4 / 2017-11-11

* add support for EAP protocol (Header::EAP)
* Header::Base and Header::ASN1Base now implements a void callback
#added_to_packet.

JRuby 9.1.14.0 Released

The JRuby community is pleased to announce the release of JRuby 9.1.14.0

Homepage: <a href="http://www.jruby.org/" title="http://www.jruby.org/">http://www.jruby.org/</a>
Download: <a href="http://www.jruby.org/download" title="http://www.jruby.org/download">http://www.jruby.org/download</a>

JRuby 9.1.x is our current major version of JRuby. It is expected to be
compatible with Ruby 2.3.x and stay in sync with C Ruby.

hoe-reek 1.2.1 released!

hoe-reek 1.2.1 has been released.

* home <https://launchpad.net/hoe-reek>
* bugs: <https://bugs.launchpad.net/hoe-reek>
* questions: <https://answers.launchpad.net/hoe-reek>
* doc: <http://www.rubydoc.info/gems/hoe-reek>
* userdoc: <https://saigkill.github.io/hoe-reek/about/>

Tasks to integrate the reek code smell engine into your hoe projects.
This project continues erics project (<a href="https://github.com/erikh/hoe-reek" title="https://github.com/erikh/hoe-reek">https://github.com/erikh/hoe-reek</a>
).

Try it out: `gem install hoe-reek`

Changes:

* 2 minor enhancements

* updated dependencies
* updated docs

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject

hoe-packaging 1.2.1 released!

hoe-packaging 1.2.1 has been released.

* home <https://launchpad.net/hoe-packaging>
* bugs: <https://bugs.launchpad.net/hoe-packaging>
* questions: <https://answers.launchpad.net/hoe-packaging>
* doc: <http://www.rubydoc.info/gems/hoe-packaging>
* userdoc: <https://saigkill.github.io/hoe-packaging/about/>

hoe-packaging is a plugin for the hoe ruby projecthelper (<a href="https://githu" title="https://githu">https://githu</a>
b.com/seattlerb/hoe).

hoe-manns 2.1.0

hoe-manns 2.1.0 has been released.

* home <https://launchpad.net/hoe-manns>
* bugs: <https://bugs.launchpad.net/hoe-manns>
* questions: <https://answers.launchpad.net/hoe-manns>
* doc: <http://www.rubydoc.info/gems/hoe-manns>
* userdoc: <https://saigkill.github.io/hoe-manns/about/>

hoe-manns is a small collection of my personal used rake tasks for
using with hoe (a plugin for the hoe rake/rubygems helper for project
Rakefiles (<a href="https://github.com/seattlerb/hoe" title="https://github.com/seattlerb/hoe">https://github.com/seattlerb/hoe</a>).

Try it out: `gem install hoe-manns`

Changes:

=== 2.1.0 / 2017-10-25

* 5 minor enhancements

* HM-9: Split module into two

Functional programming in Ruby (Was: Reducing Enumerable (and writing again))

No, I've not tried it. I see the appeal from a functional perspective, but a part of me is not really buying it.

Ruby 2.3.3 Deadlocks from Open3

I've started to encounter an increase of "No live threads left. Deadlock?"
thrown from Open3 as load increase on our system. The system is a typical
competing consumer model with a single producer and multiple consumers
running across a number of VMs where multiple consumers can reside on the
same VM. The consumers are running Ruby 2.3.3 on Ubuntu 14.04 in EC2. I've
started to see an increase in errors due to potential deadlocks as load
increases, e.g. consumers are doing more work.

packetgen 2.1.3 released

packetgen 2.1.3 has been released.

* home: <https://github.com/sdaubert/packetgen>
* bugs: <https://github.com/sdaubert/packetgen/issues>
* doc: <https://github.com/sdaubert/packetgen/wiki>

PacketGen provides simple ways to generate, send and capture network
packets.

Known protocols are: Ethernet, Dot11, Dot1x, ARP, IP, IPv6, GRE, ICMP,
ICMPv6, UDP, TCP, SNMP, ESP, DNS and IKE.

Changes:

### 2.1.3 / 2017-11-01

* Add Types::Enum type. This new type is like Types::Integer but with a
limit set of values.

#to_s semantics

Hello,

I would love to hear your opinions concerning best (least surprising?)
practice when defining #to_s method in one particular case:

My gem "calendarium-romanum" <a href="https://github.com/igneus/calendarium-romanum" title="https://github.com/igneus/calendarium-romanum">https://github.com/igneus/calendarium-romanum</a>
models rules of the Roman Catholic liturgical calendar. It's task is to
determine "liturgical properties" of any day: among other things

- to which season the day belongs

- which colour of liturgical clothing will be used

- what is the rank of the celebration celebrated on that day.

The options of seasons, colours and ranks are predefined and never change,
so the obje

Slide Show (S9) v4 Update - v.4 Update - Write Your Talks / Slides in Plain Text (w/ Jekyll Themes)

Hello,

I've updated the Slide Show (S9) command line tool (and
library/gem) [1] that lets you write your talks / slides /
presentations in plain text w/ markdown conventions.
Example:

# Blockchain! Blockchain! Blockchain! Decentralize Payments.
Decentralize Transactions. Decentralize Blockchains.

What's Blockchain?

- Distributed Database?
- Hyper Ledger Book?
- Consensus with Proof-of-Work or Proof-of-Stake?
- Digital Fingerprints? Cryptographic Hashes?
- Lottery? Central Bank?
- Byzantine-Generals Solution?

Yes. Yes. Yes. Blockchain! Blockchain!

Find more about a method from rubydoc: Gem::Dependency#pretty_print

Hello,

I have posted this question on StackOverflow
<https://stackoverflow.com/questions/46976010/find-more-about-a-method-from-rubydoc-gemdependencypretty-print>
but have not received any response yet so I am asking it here again.
I am going through the source code of Gem::Dependency#pretty_print
<http://www.rubydoc.info/github/rubygems/rubygems/Gem/Dependency#pretty_print-instance_method>
method.
I don't understand what argument q is.

def pretty_print q # :nodoc:
q.group 1, 'Gem::Dependency.new(', ')' do
q.pp name
q

ruby-oci8 2.2.5

Ruby-oci8 2.2.5 was released. This is the Oracle module using OCI8 API.

<a href="http://www.rubydoc.info/github/kubo/ruby-oci8" title="http://www.rubydoc.info/github/kubo/ruby-oci8">http://www.rubydoc.info/github/kubo/ruby-oci8</a>

New Features
### Try to load $ORACLE_HOME/lib/libclntsh.so also when runtime api
check is enabled on Unix.

When ruby-oci8 is configured with `--with-runtime-check`, it loads Oracle client
library and checks available functions in the library at runtime. This
feature was
added to release Windows binary gems which cannot know Oracle version
at compile time.
This is available also on Unix.

Hash#dig_and_collect feedback

Hello Rubyist, I am new here and looking forward to talk Ruby!

I wrote this gem a while ago to make my job of collecting data from deeply nested hashes easier (i.e.

SimpleDelegator, nil, and truthiness

Hi there,

I've come across some code that has edge cases where nil is being passed
into a SimpleDelegator-based class.

So, something like `foo = SimpleDelegator.new(nil)`

This is weird, and I'm fixing it. But it uncovered something about how `if`
determines truthiness.

I would expect this code not to output anything, but it does:

foo = SimpleDelegator.new(nil)
puts "hi!" if foo

However, this code does not output anything:

foo = SimpleDelegator.new(nil)
puts "hi!" if !!foo

Are there any docs that describe this behaviour?

Thanks in advance!

Brent

youtube_dlhelper 3.0.0

youtube_dlhelper 3.0.0 has been released.

* home: <https://launchpad.net/youtube-dlhelper>
* bugs: <https://bugs.launchpad.net/youtube-dlhelper>
* questions: <https://answers.launchpad.net/youtube-dlhelper>
* doc: <http://www.rubydoc.info/gems/youtube_dlhelper>
* userdoc: <https://saigkill.github.io/youtube_dlhelper/about>

The youtube_dlhelper is a short tool for download and manage the
downloaded files. You are running the program inside the command line
with a Youtube URL. Then it asks for a group name or interpreters name.
Now it creates a Subfolder inside your Musicdirectory.

Ruby-GNOME2 version 3.1.9

The gems of the Ruby-GNOME2 project are updated to the version 3.1.9.

This release includes the new Ruby/Poppler gem, that is based on
GObjectIntrospection, and some improvements and bug fixes for:

- Ruby/GDK3
- Ruby/GLib
- Ruby/GObjectIntrospection
- Ruby/GTK3
- Ruby/GtkSourceView3
- Ruby/Rsvg2
- Ruby/WebKit2GTK
- Ruby/VTE3

See <a href="http://ruby-gnome2.osdn.jp/hiki.cgi?News_20171016_1" title="http://ruby-gnome2.osdn.jp/hiki.cgi?News_20171016_1">http://ruby-gnome2.osdn.jp/hiki.cgi?News_20171016_1</a> for an
exhaustive list of the improvements.

= About the ruby-gnome2 project

As a reminder, and for those who didn't know, the Ruby-GNOME2 project is
a set of bindings for the GN

Re: Reducing Enumerable (and writing again)

Brandon Weaver wrote:

Good library for command pipes in Ruby?

Hello,

I tried looking for a library that lets me write (lazy) command line pipes
in Ruby but came up short.

I would like to make a function that invokes a executable to transform an
object into text and either saves it to a file or dumps it out.

Ideally, I could write it like this:

def pipeline
return self.to_text >> Process.spawn("dot")
end

Ideally, this pipeline is not invoked until the user does the following:

pipeline.write(path) //writes to file

or

pipeline.read //returns String

Does something like this exist already?

Thanks
Samuel

Reducing Enumerable (and writing again)

Been a while, but I've started writing a lot of Ruby tutorials and articles
again.

Ruby on Rails french video training

Hello Guys,

Follow this link <a href="http://bit.ly/2wC0R2d" title="http://bit.ly/2wC0R2d">http://bit.ly/2wC0R2d</a>
You ll get a reduction price.

Have a nice day!

Cheers,

Wesley

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

Compliment

Hello
I am just a newly registered with Ruby Talk and i don't know anything about
ruby,
Please where can i start from to learn about ruby language

Thank you

Using a gem from git

Hello list,

because the upstream developer of youtube-dl.rb doesn't provide the
latest binaries, i'm using this one <a href="https://github.com/n1ckbren/youtube" title="https://github.com/n1ckbren/youtube">https://github.com/n1ckbren/youtube</a>
-dl.rb.

In my Gemfile i have added:
gem "youtube-dl.rb", "~>0.3.1.2017", :git => 'https://github.com/n1ckbr
en/youtube-dl.rb'.

After doing a bundle install i have in my Gemfile.lock:
GIT
  remote: <a href="https://github.com/n1ckbren/youtube-dl.rb" title="https://github.com/n1ckbren/youtube-dl.rb">https://github.com/n1ckbren/youtube-dl.rb</a>
  revision: b8423e3713f7f5f74a52fc987c324178315a8d78
  specs:
    youtube-dl.rb (0.3.1.2017.06.25)
      cocaine (>= 0.5.4)

GEM
[...]

DEPENDENCIES
[...]
youtube-dl.rb (~> 0.3.1.2017)!

Now i created a new

Syndicate content