DevHeads.net

Ruby

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...

Football Data Wrangling w/ Ruby - Match 1500+ Football Club Names from Around the World using the sportdb Library and Open football.db Datasets

Hello,

To prepare for the 2019/2020 football season kick-off I've put together
a football data wrangling w/ sample that lets you match 1500+
football club names
from 100+ leagues from around the world using the sportdb gem / library
and open football.db (public domain) datasets.
Example:

``` ruby
require 'sportdb/config'

## note: requires a local copy of the football.db clubs datasets
## see <a href="https://github.com/openfootball/clubs" title="https://github.com/openfootball/clubs">https://github.com/openfootball/clubs</a>
SportDb::Import.config.clubs_dir = './clubs'

m = SportDb::Import.config.clubs.match( 'Arsenal' )
m.size # 3 club matches found
#=> 3
m[0].na

rails constantly failing with http 406 error

I am a ruby and rails rookie just trying to give myself an intro to ruby
and rails on my windows 10 laptop.

Almost everything I try with rails ends up failing with a "http 406" error.
I did some research on http 406 error and what I found stated "data was
requested in a format not supported by the server".

I was just following the simple steps in a rails beginner tutorial to
create a basic "blog" application. I changed to the directory where I
wanted the application structure to be created and issued the command
"rails new blog".

Waxx 0.1.4

Waxx - Web application framework version 0.1.4 has just been released.

Waxx is a high-performance multi-threaded app server that is not an MVC
framework and does not use Rack. It is mostly functional with just
modules and methods. It is good for CRUD, restful, and RPC services
including micro-services and monolithic beasts. Normal requests
including session management and a DB query are returned in 1 -2 ms.

rails new command dies with a strange error

I created a simple "hello world" rails app according to a tutorial I found
online. everything went ok.

Today I want to create a simple rails blog app. So I installed sqlite3
database.

Ruby Conferences 'n' Camps in 2019 Update - What's Upcoming in July? Aug? Sept? What's News?

Hello,

I've updated the Ruby Conferences 'n' Camps in 2019 - What's
Upcoming? Calendar [1] page @ Planet Ruby.

"Learn to code"-type book for students?

Hey, all. I'll admit it: Ruby's my favorite language, at least in part
because concepts that had been difficult or overly abstract in other
languages were straightforward concepts in Ruby. And now, well, I'd
like to share the fun. But I had ~25-odd years of hacking and slashing
in various languages before I went down Ruby Road; what I'm looking for
is an introduction-to-programming type of thing (book, website,
whatever) that happens to use Ruby, *not* simply a book aimed at a
programmer who's looking to learn Ruby.

Ruby Quiz - Challenge #15 - Generate the Bitcoin (Base58) Address from the (Elliptic Curve) Public Key

Hello,

I've posted a new ruby quiz:

Challenge #15 - Generate the Bitcoin (Base58) Address from the
(Elliptic Curve) Public Key [1].

Start from scratch or, yes, use any library / gem you can find.

To qualify for solving the code challenge / puzzle you must pass
the test [2]:

``` ruby
require 'minitest/autorun'

class RubyQuizTest < MiniTest::Test

def test_addr
pubkey =
'0250863ad64a87ae8a2fe83c1af1a8403cb53f53e486d8511dad8a04887e5b2352'

pkh = pk_to_pkh( pubkey )
assert_equal 'f54a5851e9372b87810a8e60cdd2e7cfd80b6e31', pkh

prefix = '00'

configure couldn't enable native coroutine correctly if with parameter --target

I am trying to build ruby 2.6.3 downloaded from github.

Once I executed "configure --target x86_64-clr-linux-gnu", configure couldn't enable the native coroutine for amd64, because the target_os is recognized as "linux-gnu", not "linux".

In configure.ac, for enable native coroutine for amd64, target_os have to be "linux",

AS_CASE(["$target_cpu-$target_os"],
[x*64-darwin*], [
rb_cv_coroutine=amd64
],
[x*64-linux], [
AS_CASE(["$ac_cv_sizeof_voidp"],

Simple Sinatra app speed based failure?

I have a simple Sinatra based app:
<a href="https://github.com/makhidkarun/ftl_tools" title="https://github.com/makhidkarun/ftl_tools">https://github.com/makhidkarun/ftl_tools</a>

That calls some defaults if data is not provided:
<a href="https://github.com/makhidkarun/ftl_tools/blob/master/lib/ftl_tools/crewgen.rb#L60-L64" title="https://github.com/makhidkarun/ftl_tools/blob/master/lib/ftl_tools/crewgen.rb#L60-L64">https://github.com/makhidkarun/ftl_tools/blob/master/lib/ftl_tools/crewg...</a>

This morning I noticed that one set of basic tests would randomly (one,
both, neither) fail:
<a href="https://github.com/makhidkarun/ftl_tools/blob/master/spec/unit/crewgen_spec.rb" title="https://github.com/makhidkarun/ftl_tools/blob/master/spec/unit/crewgen_spec.rb">https://github.com/makhidkarun/ftl_tools/blob/master/spec/unit/crewgen_s...</a>

At first I thought my RSpec-fu was weak, but using curl to test gave
interesting results:
<a href="https://github.com/makhidkarun/ftl_tools/blob/master/logs/speed_errors.txt" title="https://github.com/makhidkarun/ftl_tools/blob/master/logs/speed_errors.txt">https://github.com/makhidkarun/ftl_tools/blob/master/logs/speed_errors.txt</a>

In the speed_errors.txt log, the end colu

Your views on Ruby microframeworks

Hi rubyist,

I was just search for some micro web frameworks for ruby . I found some
interesting ones like ramaze , nyny, scorched , Cuba , roda , camping .

Have you'll used any of these ? How has your experience been ?

Yours sincerely,

Surya.

A gem to which detects where a website is hosted

Would people be interested in this?

While developing a web service of mine, I thought it would be cool to detect where the user’s website is hosted and to use the matching icon instead of a generic "external url" one.

So I started developing it using both regexes and DNS queries.

Thinking Aloud: Refactoring from nested loops to enumerators and lambda's

So I'm just thinking out aloud here.

Being an Old School Programmer I tend to naturally to write ever more
deeply nested loops.

I hate myself when I do this because it’s hard to test especially if
some of the loops have nasty external side effects, it’s hard to
reuse, it’s hard to refactor.

So I’m trying two new patterns....

* Passing enumerators as parameters so I can pull out inner loops as
standalone functions without calling the entire function every time..

* Creating functions that return lambdas, so I can pass an inner loop
in as a parameter.

Walk with me this is going to be long….

Default branch of ruby.git will be "master"

Hi ruby-core,

As I've announced it several times, I'm going to switch HEAD (default
branch) of github.com/ruby.git and git.ruby-lang.org/ruby.git from
"trunk" to "master" in a few minutes.

You'll be able to continue to push to both master and trunk. The
default branch of "git clone" will be changed.

k0kubun

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

Default branch of ruby.git will be "master" on July 1st

Hi ruby-core,

As I announced at ruby-core on May 23rd at
<a href="https://bugs.ruby-lang.org/issues/15843" title="https://bugs.ruby-lang.org/issues/15843">https://bugs.ruby-lang.org/issues/15843</a>,
HEAD (default branch) of git.ruby-lang.org/ruby.git and
github.com/ruby/ruby.git will be changed from "trunk" to "master" on
July 1st.
Now I'm planning to perform the operation at about 0:00 JST on July 1st.

This means that "git clone" will checkout master branch by default.
As we already tested or switched to use master branch on major CIs, I
think we're ready for it.
Even after that, you can continue to use "git push" to trunk branch
which is a symbolic reference to master branch.

Thank you,

Ruby for Infosec

Hi rubyist,

I know python is the preferred language for Infosec . But since python and
ruby are similar ,why is ruby not used often in Infosec?
Metasploit and Ronin are written in ruby .

What are your views on this ?

Your Regards,

Surya.

Call for entries for Ruby biz Grand prix 2019

Hello,

This is an announcement from the Ruby biz Grand prix executive committee.

[Exemplification of expected technical areas]
・Web application
・IoT (edge computing, sensor devices etc.), machine control
・Infrastructure
・Data analy

Senior Ruby Position - Berlin or Stockholm based

Hey,

I know this is a little unorthodox but I’m just wondering if anyone is looking for a new job as a senior Ruby developer in Berlin or Stockholm.

ruby rookie needs help with "ri" command

I am a ruby rookie with a question

I am running ruby 2.6.0p0 (2018-12-25 revision 66547) [x64-mingw32]
my laptop is windows 10

I was going through the PDF versionb of a ruby intro book and I have a
question about the "ri" command. The PDF file shows the following examples

ri Array
ri Array.sort
ri Hash#each
ri Math::sqrt

But in each case I receive an error message of the form "Nothing known
about xxx".

AUTO: Joerg Meidl is out of the office (Rückkehr am 23.06.2019)

Ich kehre zurück am 23.06.2019.

Sehr geerhte Damen und Herren!

Ich bin von 19.06.2019 bis 23.06. 2019 auf Urlaub und habe nicht immer die
Möglichkeit meine Mails zu lesen!

Mit freundlichen Grüßen

Jörg Meidl

Hinweis: Dies ist eine automatische Antwort auf Ihre Nachricht
"sportdb-import gem - New football.db Match Importer for CSV Packages
(incl.

sportdb-import gem - New football.db Match Importer for CSV Packages (incl. England, Deutschland, and More)

Hello,

I've added a new (quick) importer for datafiles and packages
in the comma-separated values (csv) format to the sportdb library /
tool family [1].

For example let's import all datafiles for all seasons (from 1888-89 to today)
for England [2]:

require 'sportdb/import'

SportDb.connect( adapter: 'sqlite3',
database: './eng.db' )

## build database schema / tables
SportDb.create_all

## turn on logging to console
ActiveRecord::Base.logger = Logger.new(STDOUT)

pack = CsvMatchImporter.new( './england' )
pack.import_leagues

Happy da

Metaprogrammatically defining methods with required, optional, required keyword and optional keyword parameters?

I'm want to do meta programming in the sense of writing ruby to create
a new ruby method.

Module#define_method exists....

<a href="https://ruby-doc.com/core/Module.html#method-i-define_method" title="https://ruby-doc.com/core/Module.html#method-i-define_method">https://ruby-doc.com/core/Module.html#method-i-define_method</a>

However modern ruby now has required parameters, default parameters,
required keyword parameters and optional keyword parameters and an
optional a block parameter.

So Method.parameters seems to understand all these things....

How does the class name magic with Class.new?

This seems like deep magic... Any idea how it works?

a = Class.new
=> #<Class:0x0000558d34f68b48>
It seems as if whenever you create a Constant it checks to see to see
if it is an unnamed class and then names it....

That seems..... too magic.

RDL 2.2.0 release

I'm pleased to announce version 2.2.0 of RDL, a lightweight system for
adding types and contracts to Ruby.

NEW: This version of RDL includes support for "type-level
computations" (comp types), which help more precisely type arrays,
hashes, and Rails database queries. Comp types are described more
fully in our recent paper:

<a href="https://www.cs.tufts.edu/~jfoster/papers/pldi19.pdf" title="https://www.cs.tufts.edu/~jfoster/papers/pldi19.pdf">https://www.cs.tufts.edu/~jfoster/papers/pldi19.pdf</a>

Note: RDL is a research project from Tufts University and the University
of Maryland, College Park.

minitest-trump 3.0.0 Released

minitest-trump version 3.0.0 has been released!

* home: <https://github.com/seattlerb/minitest-trump>
* rdoc: <http://docs.seattlerb.org/minitest-trump>

For when the reality of your tests is just too much to bear, turn your
failures into fake news and errors into alt-facts, or golf.

Changes:

### 3.0.0 / 2019-06-06

* 1 minor enhancement:

* Skip -> Golfing (patientdev)

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

minitest-bisect 1.5.0 Released

minitest-bisect version 1.5.0 has been released!

* home: <https://github.com/seattlerb/minitest-bisect>
* rdoc: <http://docs.seattlerb.org/minitest-bisect>

Hunting down random test failures can be very very difficult,
sometimes impossible, but minitest-bisect makes it easy.

minitest-bisect helps you isolate and debug random test failures.

If your tests only fail randomly, you can reproduce the error
consistently by using `--seed <num>`, but what then? How do you figure
out which combination of tests out of hundreds are responsible for the
failure?

ruby2ruby 2.4.3 Released

ruby2ruby version 2.4.3 has been released!

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

ruby2ruby provides a means of generating pure ruby code easily from
RubyParser compatible Sexps. This makes making dynamic language
processors in ruby easier than ever!

Changes:

### 2.4.3 / 2019-06-03

* 4 bug fixes:

* Added shadow block args. (jaynetics)
* Fixed generation for block args w/ trailing commas.
* Fixed nested masgn block args and arrays.

sexp_processor 4.12.1 Released

sexp_processor version 4.12.1 has been released!

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

sexp_processor branches from ParseTree bringing all the generic sexp
processing tools with it. Sexp, SexpProcessor, Environment, etc...

oedipus_lex 2.5.1 Released

oedipus_lex version 2.5.1 has been released!

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

Oedipus Lex is a lexer generator in the same family as Rexical and
Rex. Oedipus Lex is my independent lexer fork of Rexical. Rexical was
in turn a fork of Rex. We've been unable to contact the author of rex
in order to take it over, fix it up, extend it, and relicense it to
MIT.

Question: ruby 2.7.0-preview1 also upgrades bundler to 2.1.0.pre.1?

Tried the new 2.7.0-preview1 upgrade to Ruby and see that bundler is also upgraded (to 2.1.0.pre.1).

I see nothing about the bundler upgrade in the release notes.

Are you expecting us to upgrade both ruby and bundler for 2.7x?

Thanks,
Al

Ruby 2.7.0-preview1 Released

We are pleased to announce the release of Ruby 2.7.0-preview1.

A preview version is released to gather feedback for the final release
planed to release on December. It introduces a number of new features
and performance improvements, most notably:

* Compaction GC
* Pattern Matching
* REPL improvement

## Compaction GC

This release introduces Compaction GC which can defragment a
fragmented memory space.

Some multithread Ruby programs may cause memory fragmentation, leading
to high memory usage and degraded speed.

The `GC.compact` method is introduced for compacting the heap.

minitest-autotest 1.1.1 Released

minitest-autotest version 1.1.1 has been released!

* home: <https://github.com/seattlerb/minitest-autotest>
* rdoc: <http://docs.seattlerb.org/minitest-autotest>

autotest is a continous testing facility meant to be used during
development. As soon as you save a file, autotest will run the
corresponding dependent tests.

minitest-autotest is the latest incarnation of the venerable and wise
autotest. This time, it talks to minitest via minitest-server. As a
result, there is no output parsing.

minitest-autotest 1.1.0 Released

minitest-autotest version 1.1.0 has been released!

* home: <https://github.com/seattlerb/minitest-autotest>
* rdoc: <http://docs.seattlerb.org/minitest-autotest>

autotest is a continous testing facility meant to be used during
development. As soon as you save a file, autotest will run the
corresponding dependent tests.

minitest-autotest is the latest incarnation of the venerable and wise
autotest. This time, it talks to minitest via minitest-server. As a
result, there is no output parsing.

minitest-bisect 1.4.1 Released

minitest-bisect version 1.4.1 has been released!

* home: <https://github.com/seattlerb/minitest-bisect>
* rdoc: <http://docs.seattlerb.org/minitest-bisect>

Hunting down random test failures can be very very difficult,
sometimes impossible, but minitest-bisect makes it easy.

minitest-bisect helps you isolate and debug random test failures.

If your tests only fail randomly, you can reproduce the error
consistently by using `--seed <num>`, but what then? How do you figure
out which combination of tests out of hundreds are responsible for the
failure?

path_expander 1.0.4 Released

path_expander version 1.0.4 has been released!

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

PathExpander helps pre-process command-line arguments expanding
directories into their constituent files. It further helps by
providing additional mechanisms to make specifying subsets easier
with path subtraction and allowing for command-line arguments to be
saved in a file.

NOTE: this is NOT an options processor. It is a path processor
(basically everything else besides options).

autotest 5.0.0 Released

autotest version 5.0.0 has been released!

* home: <http://www.zenspider.com/projects/minitest-autotest.html>
* code: <https://github.com/seattlerb/autotest>
* bugs: <https://github.com/seattlerb/autotest/issues>

This is a stub gem to fix the confusion caused by autotest being part
of the ZenTest suite.

hoe 3.18.0 Released

hoe version 3.18.0 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.

Help with Ruby and Microsoft Visual C++ Redistributable

Hi Ruby Core Team –

I am a Ruby product owner here at Wells Fargo.

Our Enterprise Technology teams have identified that – with Ruby 2.4.5-1 and earlier – there appears to be a Microsoft Visual C++ Redistributable 2008 installed.

They have asked me to reach out and find out if the newer version of Ruby updates or removes that element.

Would you be able to tell me if the Ruby upgrade addresses this?

Thanks for your help –
Darin

Darin Rock

In-House Agency, Interactive Creative Team | 550 California Street, 5th floor | San Francisco, CA 94104
MAC A0105-050
Tel 628-260-8007 | C

How's your experience been with padrino?

Hi my beloved rubyist,

I'm currently learning padrino and enjoying it ...how has your experience
been with padrino?

Yours sincerely,

Surya.

"master" branch created for ruby.git; Use "master" branch instead of "trunk" on CI

Hi ruby-core,

At 0:28 am JST on 5/23, we created a symbolic-ref "master" pointing to
"trunk" on git.ruby-lang.org.
Ruby committers can fetch and push to both "master" and "trunk"
branches with git.ruby-lang.org.
Also everyone can fetch "master" branch with GitHub repository now.

[NOTE] On July 1st, we are going to change the default branch of
ruby.git from "trunk" to "master" on both git.ruby-lang.org and
GitHub.
Before that, please explicitly clone "master" branch instead of
"trunk" if your CI system may break by the change.

See <a href="https://bugs.ruby-lang.org/issues/15843" title="https://bugs.ruby-lang.org/issues/15843">https://bugs.ruby-lang.org/issues/15843</a> for the future schedu

git.ruby-lang.org/ruby.git will have a "master" branch mirrored from "trunk" on 5/23

Hi ruby-core,

At some moment during 0:00-2:00 am JST on 5/23, I'm going to make a
symbolic-ref "master" pointing to "trunk" on git.ruby-lang.org.
This means that you can fetch and push "master" branch (GitHub will
have the mirrored "master" branch too), but the default branch of "git
clone" will NOT be changed from "trunk".

Once I make the above operation, I'll notify you again.
See <a href="https://bugs.ruby-lang.org/issues/15843" title="https://bugs.ruby-lang.org/issues/15843">https://bugs.ruby-lang.org/issues/15843</a> for the detailed schedule.

Thank you,
k0kubun

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

HTTPX 0.4.0 released!

https 0.4.0 has been released.

* <a href="https://gitlab.com/honeyryderchuck/httpx" title="https://gitlab.com/honeyryderchuck/httpx">https://gitlab.com/honeyryderchuck/httpx</a>

httpx is a client library for making HTTP requests from Ruby. It has a
simple but highly configurable API to perform single and multiple requests
(supports HTTP/2 as well has 1.1 and 1.0).

I'm trying to build a Debian package for Ruby, but checkinstall is freezing during "make install"

Hello,

I have a question about compiling and packaging Ruby.

I'm compiling Ruby 2.5.5 with jemalloc in a Docker container, and I'm
trying to build a Debian package with checkinstall
<https://mailtrack.io/trace/link/2bd58d769ee1cfcbd8c05e558542f45495357d27?url=https%3A%2F%2Fwiki.debian.org%2FCheckInstall&userId=2274821&signature=3aafc1d2bc6c7b16>.
This tool runs "make install", records a list of changed files, and then
saves all of these files into a deb package. However, checkinstall is
getting stuck after this line: "generating x86_64-linux-fake.rb".

kittyverse library / gem - helper classes for cattributes, trait types, traits, genes, genomes and more for cryptokitties and copycats cryptocollectibles (on the blockchain)

Hello,

I've updated the free (open source) kittyverse library / gem that
includes helper classes
for cattributes, trait types, traits, genes, genomes and more for
cryptokitties and copycats cryptocollectibles (on the blockchain).
Example:

Use the Traits helper class to lookup trait types (e.g.

Rroonga 9.0.2 - fulltext search engine bindings

Hi,

Rroonga 9.0.2 has been released!

Web site: <a href="http://ranguba.org/#about-rroonga" title="http://ranguba.org/#about-rroonga">http://ranguba.org/#about-rroonga</a>

Rroonga is the Ruby bindings for Groonga that is a fast
flexible fulltext search engine and column store.

About Groonga: <a href="http://groonga.org/" title="http://groonga.org/">http://groonga.org/</a>

== About Rroonga

Rroonga is a library to use Groonga with Ruby-ish API. It is
easy to add fast fulltext search feature to your Ruby
application easily.

How to parse ruby files programmatically

Hi!

I need to parse ruby files (files, containing ruby code) and edit them. Specifically, I need:

1. Extract the list of classes defined in file
2. Without them being applied in current env (if some file for instance contains `String` class method patching, I don’t want it to be patched in current ruby session)

Is there a way to accomplish this?

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

unicorn 5.5.1 - Rack HTTP server for fast clients and

unicorn is an HTTP server for Rack applications designed to only serve
fast clients on low-latency, high-bandwidth connections and take
advantage of features in Unix/Unix-like kernels.

Ruby Conferences 'n' Camps in 2019 Update - What's Upcoming in May? What's News?

Hello,

I've updated the Ruby Conferences 'n' Camps in 2019 - What's
Upcoming? [1] Calendar page @ Planet Ruby.

- Tue+Wed May/14+15(2d) - Ruby Conference Cracow @ Cracow, Poland
- Fri+Sat May/17+18(2d) - Balkan Ruby @ Sofia, Bulgaria
- Fri May/24 (1d) - Pivorak Conf @ Lviv, Ukraine
- Sat+Sun May/25+26(2d) - Ruby Unconf Hamburg @ Hamburg, Germany

Happy meeting up with rubyists in 2019. Cheers. Prost.

PS: Do you have a favorite conference?

Contract Scripting for Everyone: (Hyperledger) FabCar Registration Sample - From Go Lang Chaincode to (Secure) Ruby Contract Scripts

Hello,

for the Vienna Hyperledger Meetup I've put together a talk titled:

Contract Scripting for Everyone: (Hyperledger) FabCar Registration Sample
From Go Lang Chaincode to (Secure) Ruby Contract Scripts

that shows that - surprise, surprise - (secure) ruby works great for
(contract) scripting. Code is code and Hyperledger Fabric is really
just a key-value store, that is, a simple hash table.

Problems with Time

Another one for you folks.

Awesome Types & Type Signatures / Annotations for Ruby

Hello,

I've started to put together a new awesome page collection about
all things types, type signatures / annotations and more for ruby -
incl. bool, bytes, buffer, enum, flag, record, data and more [1].

Is static the new dynamic? Any type gems / libraries missing?
Please, add or tell.

Happy coding with ruby with types. Cheers. Prost.

[1] <a href="https://github.com/typesigs/awesome-types" title="https://github.com/typesigs/awesome-types">https://github.com/typesigs/awesome-types</a>

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

Nokogiri security update v1.10.3

Nokogiri v1.10.3 has been released.

This is a security release. It addresses a CVE in upstream libxslt rated as
"Priority: medium" by Canonical, and "NVD Severity: high" by Debian. More
details are available below.

If you're using your distro's system libraries, rather than Nokogiri's
vendored libraries, there's no security need to upgrade at this time,
though you may want to check with your distro whether they've patched this
(Canonical has patched Ubuntu packages).

Keyword arguments with symbol as default value

I need to use a Ruby symbol as the default value for an argument, but I
also want to use keyword arguments,  because they are so neat.

I found that wrapping the symbol in in parenthesis or using a constant
to refer to the symbol works.

Is there a better way to do this with Ruby 2.6+ (and still have a symbol
as the default value)?

def mymethod myarg:(:mydefaultsymbol)

    p myarg

end

# or

DEFAULT_MYVALUE = :mydefaultsymbol

def mymethod myarg:DEFAULT_MYVALUE

    p myarg

end

# where, in either case, mymethod # outputs :mydefaultsymbol

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

yahns 1.17.0 -_- sleepy app server for Ruby

Earth day release of a server designed for low energy use!

A Free Software, multi-threaded, non-blocking network
application server designed for low _idle_ power consumption.
It is primarily optimized for applications with occasional users
which see little or no traffic. yahns currently hosts Rack/HTTP
applications, but may eventually support other application
types.

olddoc 1.7.0 - old-fashioned RDoc generator

olddoc contains old-fashioned document generators for those who do not
wish to impose bloated, new-fangled web cruft on their readers.

olddoc contains dark216, a HTML generator without any images, frames,
or JavaScript. It is designed for users of text-based browsers
and/or low-bandwidth connections; yet respects user preference for
light color schemes in new CSS browsers while favoring darkness for
power savings on OLED and CRT displays.

Types & Type Signatures (for Ruby) Incl. Bool, Enums, Flags, Records, and More

Hello,

I've started a new org that collects types and type signatures
(typesigs) for ruby [1].

SMB plugin for packetgen v0.6.0

* home: <https://github.com/sdaubert/packetgen-plugin-smb>
* bugs: <https://github.com/sdaubert/packetgen-plugin-smb/issues>

packetgen-plugin-smb 0.6.0 is out.

packetgen-plugin-smb adds support for SMB protocol suite to PacketGen.

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

Changes:

### 0.6.0 / 2018-10-18

* Add support for NTLM authentication protocol.
* Add SMB::String#to_human
* Add SMB::Filetime.now
* Fix:
** SMB2 header: buffer offset is set to 0 if buffer is empty

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://li

Ruby3 Will Have Types

Hello,

Today's biggest (most upvoted) story on Hacker News:

Ruby3 Will Have Types [1]

Any comments or thoughts here on ruby-talk about the breaking news?

Here are my two cents:

As a head start you can add the missing Bool type today :-), use the
safebool library / gem [2]

Sorbet is a great inspiring project.

Syndicate content