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

Need your feedbacks on Jasis, a new framework built on top of Sinatra

Hi everyone,

I really loved working with Padrino for being a fast and lightweight Rails
alternative, but over time I am seeing that it's development have stopped
to the point I can no longer use it or recommend it.

It is at this point, I needed a framework that I can actively maintain and
started a fresh one with Sinatra.

I tried to keep it as simple and elegant as possible as one of it's goals.
It is more like a starter kit, as it is all self-contained and runs fully
out of the box with Docker.

Please come check it out and would love to hear any feedbacks or anyone
willing to help, that w

Rails 5.0.7 and 5.1.6 have been released

Hi everyone,

I am happy to announce that Rails 5.0.7 and 5.1.6 have been released.

## CHANGES since 5.0.6

To view the changes for each gem, please read the changelogs on GitHub:

* [Action Cable CHANGELOG](
<a href="https://github.com/rails/rails/blob/v5.0.7/actioncable/CHANGELOG.md" title="https://github.com/rails/rails/blob/v5.0.7/actioncable/CHANGELOG.md">https://github.com/rails/rails/blob/v5.0.7/actioncable/CHANGELOG.md</a>)
* [Action Mailer CHANGELOG](
<a href="https://github.com/rails/rails/blob/v5.0.7/actionmailer/CHANGELOG.md" title="https://github.com/rails/rails/blob/v5.0.7/actionmailer/CHANGELOG.md">https://github.com/rails/rails/blob/v5.0.7/actionmailer/CHANGELOG.md</a>)
* [Action Pack CHANGELOG](
<a href="https://github.com/rails/rails/blob/v5.0.7/actionpack/CHANGELOG.md" title="https://github.com/rails/rails/blob/v5.0.7/actionpack/CHANGELOG.md">https://github.com/rails/rails/blob/v5.0.7/actionpack/CHANGELOG.md</a>)
* [Action View CHANGELOG](
<a href="https://github.com/rails/rails/blob/v5.0.7/actionview/CHANGELOG.md" title="https://github.com/rails/rails/blob/v5.0.7/actionview/CHANGELOG.md">https://github.com/rails/rails/blob/v5.0.7/actionview/CHANGELOG.md</a>)
* [Active Job CHANGELOG](
https

Ruby 2.5.1, 2.4.4, 2.3.7 and 2.2.10 Released!

Hi, all

We've just released Ruby 2.5.1, 2.4.4, 2.3.7 and 2.2.10.
How to download and details:

* [Ruby 2.5.1 Released](<a href="https://www.ruby-lang.org/en/news/2018/03/28/ruby-2-5-1-released/" title="https://www.ruby-lang.org/en/news/2018/03/28/ruby-2-5-1-released/">https://www.ruby-lang.org/en/news/2018/03/28/ruby-2-5-1-released/</a>)
* [Ruby 2.4.4 Released](<a href="https://www.ruby-lang.org/en/news/2018/03/28/ruby-2-4-4-released/" title="https://www.ruby-lang.org/en/news/2018/03/28/ruby-2-4-4-released/">https://www.ruby-lang.org/en/news/2018/03/28/ruby-2-4-4-released/</a>)
* [Ruby 2.3.7 Released](<a href="https://www.ruby-lang.org/en/news/2018/03/28/ruby-2-3-7-released/" title="https://www.ruby-lang.org/en/news/2018/03/28/ruby-2-3-7-released/">https://www.ruby-lang.org/en/news/2018/03/28/ruby-2-3-7-released/</a>)
* [Ruby 2.2.10 Released](<a href="https://www.ruby-lang.org/en/news/2018/03/28/ruby-2-2-10-released/" title="https://www.ruby-lang.org/en/news/2018/03/28/ruby-2-2-10-released/">https://www.ruby-lang.org/en/news/2018/03/28/ruby-2-2-10-released/</a>)

These releases include several security fixes.
You can check details:

* [CVE-2017-17742: HTTP response splitting in WEBrick](<a href="https://ww" title="https://ww">https://ww</a>

Slack channel dedicated to ruby

Hello rubyists,

I joined slack newly and was dumbfounded to know all the communities of
different languages.
Even ruby on rails has one.I think we need a ruby-specific slack channel.

What do y'all say ?

yours faithfully,

poo.

Lambda regression between 2.4.0 and 2.4.1

Hi there!

I think I might have found a regression (unless someone can point me to
the commit that states this is expected).
Look at the following if you will:

print_three = ->(a, b, c) { puts [a, b, c] }
arr = [[1, 2, 3]]

arr.map(&print_three)

This works on ruby-2.4.0 but breaks from ruby-2.4.1 onwards (ArgumentError).

On 2.4.1 you have to use explicit destructuring: print_three = ->((a, b,
c)) { puts [a, b, c] }

Is this intended behaviour and can anyone of you replicate this?

Happy Coding,
Paul Martensen

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

Anonymous survey - your help is greatly appreciated

Hello everyone, I'd like to have a better idea (that's up to date and real,
not possibly fake data) of how much Web Developers / Programmers in
different parts of the world are paid.

If anyone has 20 - 60 seconds to spare and fill the anonymous survey, it
will be very helpful.

You will find the survey here:
<a href="https://goo.gl/forms/gzNw7PWc3h9hWnTL2" title="https://goo.gl/forms/gzNw7PWc3h9hWnTL2">https://goo.gl/forms/gzNw7PWc3h9hWnTL2</a>

After I get enough answers I'll also share the results in here, so others
could benefit form it as well.

Thank you very much.

Bitcat - Bit catalog kitty browser - browse your digital bit(s) collections unchained (offline) w/ SQLite - a sinatra web app in ruby

Hello,

I've put together - bitcat - a little sinatra web app
(e.g.bitcat/app.rb [1]) in ruby packaged up as a command line tool
that lets you browse your digital bits(s) eg. crypto kitties and
friends unchained (offline) using a single-file SQLite database eg.
kitties.db.

Note: Bitcat includes the gene / genome reader in base32/kai
notation from copycats [2] - another ruby library for (crypto) cats /
kitties - and more.

Happy collecting. Happy gene mixing. Happy hacking with ruby. The
future is meow.

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

Ich kehre zurück am 27.03.2018.

Sehr geerhte Damen und Herren!

Ich bin von 23.03 bis 26.03. 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 "[ANN]
minitest-excludes 2.0.1 Released" gesendet am 23.03.2018 21:55:08.

Diese ist die einzige Benachrichtigung, die Sie empfangen werden, während
diese Person abwesend ist.

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

minitest-excludes 2.0.1 Released

minitest-excludes version 2.0.1 has been released!

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

minitest/excludes.rb extends MiniTest::Unit::TestCase to provide a
clean API for excluding certain tests you don't want to run under
certain conditions.

Changes:

### 2.0.1 / 2018-03-23

* 2 bug fixes:

* Fixed OLD require paths
* Updated deps for MT5.

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

What's Your Hash Rate? Find out your Mining Speed w/ compute_hash_with_proof_of_work

Hello,

I've added a couple of new chapters to the "Programming Blockchains
Step-by-Step from Scratch (Zero)" [1] and starting with (crypto)
hashes...

What's News? Mining, mining, mining! What's your hash rate? Let's
find out and use the "stand-alone" version of the by now "classic"
compute_hash_with_proof_of_work function:

def compute_hash_with_proof_of_work( data, difficulty='00' )
nonce = 0
loop do
hash = Digest::SHA256.hexdigest( "#{nonce}#{data}" )
if hash.start_with?( difficulty )
return [nonce,hash] ## bingo!

Re: Re: Re: Programming Blockchains Step-by-Step guide (in ruby). Let's build blockchains from scratch (zero). Let's start with crypto hashes...

meybe numering a section and numering program coresponding to number sections.

whrite this in doc.

how mining? What using mining data in blockchain

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

Lot of typo corrections made in I Love Ruby

Hello Folks,

I am very grateful to Mr. RajKumar Sharma of Ahmedabad, India to have
pointed out lot of typo corrections in "I Love Ruby". I have fixed them and
released the book here <a href="https://mindaslab.github.io/I-Love-Ruby/" title="https://mindaslab.github.io/I-Love-Ruby/">https://mindaslab.github.io/I-Love-Ruby/</a>

He in a mail claims that he could read this book in 28 hours! I still can't
stop wondering how he did it. You can read his comments here
<a href="https://mindaslab.github.io/I-Love-Ruby/what_people_say.html" title="https://mindaslab.github.io/I-Love-Ruby/what_people_say.html">https://mindaslab.github.io/I-Love-Ruby/what_people_say.html</a>

I once again thank the Ruby community to have given encouragement which has
kept this book alive.

Programming Blockchains Step-by-Step guide (in ruby). Let's build blockchains from scratch (zero). Let's start with crypto hashes...

Hello,

I've started a step-by-step guide that shows you how ot build
blockchains in ruby from scratch.

Starting with (crypto) hashes...

require 'digest'
Digest::SHA256.hexdigest( 'Hello, Cryptos!' )

resulting in

#=> "33eedea60b0662c66c289ceba71863a864cf84b00e10002ca1069bf58f9362d5"

And building up to blocks with proof-of-work, timestamps, and more:

require 'digest'

require 'pp' ## pp = pretty print

class Block
attr_reader :data
attr_reader :prev
attr_reader :difficulty
attr_reader :time
attr_reader :nonce # number used once - lucky (mining) lo

minor doubt

Hello Rubyist,

class_eval and instance_eval is kind of opposite of its behaviour why we
have so?

class_eval is creating instance method while,
instance_eval is creating class method.

Thanks
Raj Kumar

hoe 3.17.0 Released

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

zenweb-template 1.0.3 Released

zenweb-template version 1.0.3 has been released!

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

Simply provides an example zenweb template website.

Changes:

### 1.0.3 / 2018-03-17

* 1 bug fix:

* nil -> null in yaml front matter. (srbaker)

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

rake-remote_task 2.4.3 Released

rake-remote_task version 2.4.3 has been released!

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

Vlad the Deployer's sexy brainchild is rake-remote_task, extending
Rake with remote task goodness.

Changes:

### 2.4.3 / 2018-03-17

* 1 minor enhancement:

* Extend to allow rake v 12. (piclane)

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

osx_keychain 1.0.2 Released

osx_keychain version 1.0.2 has been released!

* <http://rubyforge.org/projects/seattlerb>

Provides API and a command line tool to Access the OS X Keychain. The
command line tool isn't actually useful (use `security` instead), but
demonstrates the usage quite well.

Changes:

### 1.0.2 / 2018-03-16

* 1 bug fix:

* Remove warnings when building on 64-bit architectures. (guykogus)

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

zenweb 3.10.2 Released

zenweb version 3.10.2 has been released!

* home: <https://github.com/seattlerb/zenweb>
* bugs: <https://github.com/seattlerb/zenweb/issues>
* rdoc: <http://docs.seattlerb.org/zenweb>

Zenweb is a set of classes/tools for organizing and formating a
website. It is website oriented rather than webpage oriented, unlike
most rendering tools. It is content oriented, rather than style
oriented, unlike most rendering tools. It uses a rubygems plugin
system to provide a very flexible, and powerful system.

Zenweb 3 was inspired by jekyll.

path_expander 1.0.3 Released

path_expander version 1.0.3 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).

Loofah vulnerability reporting process

Hi all,

The Loofah project has published a vulnerability reporting process, to
allow private disclosure of security vulnerabilities.

More details are at
<a href="https://github.com/flavorjones/loofah/blob/master/SECURITY.md" title="https://github.com/flavorjones/loofah/blob/master/SECURITY.md">https://github.com/flavorjones/loofah/blob/master/SECURITY.md</a>

Or you can report vulnerabilities directly at <a href="https://hackerone.com/loofah" title="https://hackerone.com/loofah">https://hackerone.com/loofah</a>

Special thanks to HackerOne for their support of OSS projects.

Thanks for reading,
-m

Nokogiri vulnerability reporting process

Hi all,

The Nokogiri core contributors have published a vulnerability reporting
process, to allow private disclosure of security vulnerabilities.

More details are at <a href="http://www.nokogiri.org/tutorials/security.html" title="http://www.nokogiri.org/tutorials/security.html">http://www.nokogiri.org/tutorials/security.html</a>

Or you can report vulnerabilities directly at <a href="https://hackerone.com/nokogiri" title="https://hackerone.com/nokogiri">https://hackerone.com/nokogiri</a>

Special thanks to HackerOne for their support of OSS projects.

Thanks for reading,
-m

Re: Re: [BUG] Bug in ruby parser

(2.to_f) / (1 * (1 / 1))
Working
 
 

Bug in ruby parser

Hello,

I think I found a bug in how ruby parses code, or at least an unexpected
result. If I enter:
2 /(1 * (1 / 1))

The result is 2. But if I enter:
2.to_f /(1 * (1 / 1))

It returns:
SyntaxError: (irb):1: end pattern with unmatched parenthesis

This is because it is parsing part of it as a regular expression. The
weird thing is that it only does so when using 2.to_f but not when using 2.

Regards,

trenni-sanitize - a fast markup sanitizer

Hi - I've been processing a lot of HTML content with the intent to extract
either text summaries or sanitise it for further use. Frustrated primarily
by the existing sanitize gem due to it's performance and nokogiri's
handling of namespaces, I have released trenni-sanitize - a gem which uses
a native parser to sanitize general markup style input and runs about 50x
faster :)

<a href="https://github.com/ioquatix/trenni-sanitize" title="https://github.com/ioquatix/trenni-sanitize">https://github.com/ioquatix/trenni-sanitize</a>

Kind regards,
Samuel

Blockchain vs (Hyper) Ledger - Inside the ledger-lite library / gem - Add Transactions One Block at a Time and Balance the Accounts (Books) w/ Ruby

Hello,

yesterday's Hyperledger talk notes titled Blockchain vs (Hyper) Ledger
-- Inside (Hyper) Ledger Lite - Add Transactions One Block at a Time
and Balance the Accounts (Books) with Ruby [1][2].

Copycats Gem - SQL Database Schema / Tables and ActiveRecord Models for CryptoKitties for Easy Stats / Queries / Analytics and More - Models incl. Kitty, Gene, Trait, ...

Hello,

I've put together a (free, open source) SQL database schema /
tables and ActiveRecord models for CryptoKitties packed up for easy
(re)use in a ruby library / gem. Still early and suggestions more than
welcome on how to make it better, easier, faster, etc.

The models incl. Kitty (of course), Gene, Trait and more.

I Love Ruby updated - the free Ruby programming book

Hello Folks,

I added a section for test driven development. You can download I Love Ruby
here <a href="https://mindaslab.github.io/I-Love-Ruby/" title="https://mindaslab.github.io/I-Love-Ruby/">https://mindaslab.github.io/I-Love-Ruby/</a>

Enjoy coding.

new gem published

My dear open source members,

I make a gem and published as, seniority
<https://rubygems.org/gems/seniority> on rubygems site. Actually the
purpose of this gem is to find age till today date based on input DOB.
Input: 1989-08-30 (YYYY-MM-DD)
Output: ["*6-6-28", "6 day(s) 6 month(s) 28 year(s)*"] ( ["m-d-y", "XXX day(s)
xxx month(s) xxx year(s)"])

This is my first gem that I could be able to give my open source community.
Please check it out and suggest any change/feature required.

Thanks
Raj Kumar

Ruby Conferences & Camps in March 2018 - What's Upcoming?

Hello,

at the calendar page @ Planet Ruby I collect all ruby conferences
and camps from around the world. What's upcoming in March 2018?

- RubyConf Australia - Mar/8+9 (2d) Thu+Fri @ Sydney, Australia
- RubyConf Philippines - Mar/15-17 (3d) Thu-Sat @ Manila, Philippines
- wroc_love.rb - Mar/16-18 (3d) Fri-Sun @ Wrocław, Poland
- Bath Ruby - Mar/22+23 (2d) Thu+Fri @ Bath, England, United Kingdom

See all conferences & camps in 2018 [1]. Anything missing? Updates welcome.

Cheers.

Best practice to sending a URL in JSON response to API call?

We have a REST API endpoint that returns a bunch of external URLs for a
resource

The data is of the format:

{
"resource_data":{
"name":"Dummny Name",
"project_name":"Sinstein",
"logs":"
http://example.com/cdd921b88114158fd34ae54c2b828bb094dd128c/logs",
"public_url":"
<a href="http://example.com/cdd921b88114158fd34ae54c2b828bb094dd128c?auth_token=dummy_token" title="http://example.com/cdd921b88114158fd34ae54c2b828bb094dd128c?auth_token=dummy_token">http://example.com/cdd921b88114158fd34ae54c2b828bb094dd128c?auth_token=d...</a>
",
"video_url":"
http://example.com/cdd921b88114158fd34ae54c2b828bb094dd128c/video-1b6575be8867bfda659b25789c216c268194b2f0.mp4?AWSAccessKeyId=dummyid\u0026Signature=dummysignature\u0026response-content-type=vi

unsubscribe

Hall

I appreciate the feedback! Some of the comments make me think I've not
communicated the overall design or intent well. I pulled ideas out of a
larger program to focus on the Factory pattern.

The overall goal is to have fun and gain a deeper understanding of Object
Oriented Design and Programming.

Is this a decent start on a Factory?

Trying to learn the Factory pattern. What can be improved on the
"Crew" class as a Factory?

###

class Crew
def initialize(crew_number)
@crew = []
crew_number.times do
ncp = Character.new
career = ["Merchant", "Navy"].sample
terms = rand(1..3)
new_crewperson(career, terms, ncp)
@crew << ncp
end
end
def show_crew
counter = 1
@crew.each do |c|
print("Crewperson #%d is %d years old.

object print issue using p

class User
def initialize(name)
@name = name
end
def get_name
@name
end
end
:get_name
obj = User.new('Raj')
#<User:0x000056458c0283e8 @name="Raj">
obj
#<User:0x000056458c0283e8 @name="Raj">
obj.inspect
"#<User:0x000056458c0283e8 @name=\"Raj\">"
p obj
#<User:0x000056458c0283e8 @name="Raj">
#<User:0x000056458c0283e8 @name="Raj">
puts obj
#<User:0x000056458c0283e8>

p obj print same thing two times, Why?

My Ruby version is:
ruby -v
ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-linux]

JRuby 9.1.16.0 Released

The JRuby community is pleased to announce the release of JRuby 9.1.16.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.

how to test if an array include only two items ?

Hi,

I would like to see if

array_status = ['hired','hired','provisionally hire','hired','hired',
'provisionally
hire', 'provisionally hire','hired']

has only these two strings ('hired' and 'provisionally hire') , both of
them or one of them, even repeated.

but not any other things.

Thanks.

Ruby 3x3 - Ruby 3 Will Be 3 Times Faster - What’s News? Update

Hello,

I collect Ruby3x3 News & Articles @ Planet Ruby [1].

What's News? Added:

- Ruby's New JIT (Just-In-Time) Compiler by Shannon Skipper, Square, Feb 2018
- Slides - VM-Generated JIT (Just-In-Time) Compiler for Ruby 2.6 by
Takashi Kokubun, Tech Talk @ OSS Day, Feb 2018
- Playing with Ruby's new JIT: MJIT by John Hawthorn, Feb 2018
- and some more.

Great to see Ruby getting faster and faster. Any article missing?
Updates welcome.

ruby2ruby 2.4.1 Released

ruby2ruby version 2.4.1 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.1 / 2018-02-15

* 2 minor enhancements:

* Added bitwise ops to BINARY.

sexp_processor 4.10.1 Released

sexp_processor version 4.10.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...

ruby_parser 3.11.0 Released

ruby_parser version 3.11.0 has been released!

* home: <https://github.com/seattlerb/ruby_parser>
* bugs: <https://github.com/seattlerb/ruby_parser/issues>
* rdoc: <http://docs.seattlerb.org/ruby_parser>

ruby_parser (RP) is a ruby parser written in pure ruby (utilizing
racc--which does by default use a C extension).

flog 4.6.2 Released

flog version 4.6.2 has been released!

* home: <http://ruby.sadi.st/>
* code: <https://github.com/seattlerb/flog>
* rdoc: <http://docs.seattlerb.org/flog>
* vim: <http://github.com/sentientmonkey/vim-flog>

Flog reports the most tortured code in an easy to read pain
report. The higher the score, the more pain the code is in.

Changes:

### 4.6.2 / 2018-02-14

* 1 bug fix:

* Don't process stdin if cmdline args expand to nothing.

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

packetgen 2.4.0 released

packetgen 2.4.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,
IGMP, ICMPv6, MLD, UDP, TCP, SNMP, ESP, DNS, IKE, EAP, BOOTP, DHCP, TFTP
and HTTP.

From 2.4.0, Packetgen supports ruby 2.5.

Changes:

### 2.4.0 / 2018-02-14

* Add better support for IP header options
* Add support for IPv6 HopByHop extension
* Add suppo

Module using object defined outside of method?

I have a class Dice with a method "roll_1". It gives a result between 1-6.

###
class Dice
def roll_1
rand(1..6)
end
end
###

The module CharacterTools uses Dice.roll_1.

###
module CharacterTools

require 'dice'
dice = Dice.new

def roll_1
dice = Dice.new
dice.roll_1
end
end
###

"dice" is declared twice, outside and inside the roll_1 method
definition. I am trying to figure out how to instantiate one "dice"
object outside of the method that calls it. For each program run there
are lots of calls to roll_1.

loofah v2.2.0 released

loofah version 2.2.0 has been released!

* <https://github.com/flavorjones/loofah>
* <http://rubydoc.info/github/flavorjones/loofah/master/frames>
* <http://librelist.com/browser/loofah>

Loofah is a general library for manipulating and transforming HTML/XML
documents and fragments. It's built on top of Nokogiri and libxml2, so
it's fast and has a nice API.

Loofah excels at HTML sanitization (XSS prevention). It includes some
nice HTML sanitizers, which are based on HTML5lib's whitelist, so it
most likely won't make your codes less secure.

minitest-server 1.0.5 Released

minitest-server version 1.0.5 has been released!

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

minitest-server provides a client/server setup with your minitest
process, allowing your test run to send its results directly to a
handler.

Changes:

### 1.0.5 / 2018-02-06

* 1 minor enhancement:

* Extended Minitest::ServerReporter#record to handle Minitest::Result.

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

blade will stop

Hi all,

For maintenance, I will stop blade(<a href="http://blade.nagaokaut.ac.jp/ruby/" title="http://blade.nagaokaut.ac.jp/ruby/">http://blade.nagaokaut.ac.jp/ruby/</a>)
tomorrow.

I will restart it in a few days.

Thank you.

Shin-ichiro HARA

ICOOOLPS 2018

Call for Papers: ICOOOLPS'18
============================

13th Workshop on Implementation, Compilation, Optimization of Object- Oriented
Languages, Programs and Systems

Co-located with ECOOP 2018
held Mon 16 - Sun 22 July in Amsterdam, Netherlands

Twitter: @ICOOOLPS
URL: <a href="https://conf.researchr.org/track/ecoop-issta-2018/ICOOOLPS-2018-papers" title="https://conf.researchr.org/track/ecoop-issta-2018/ICOOOLPS-2018-papers">https://conf.researchr.org/track/ecoop-issta-2018/ICOOOLPS-2018-papers</a>

The ICOOOLPS workshop series brings together researchers and practitioners
working in the field of language implementation and optimization.

flexparser 1.0.3 - XML parser DSL with focus on data-normalization

Hi!

Imagine this: You have a bunch of XML documents with similar
information, but wildly different structure.
For example you want to check inventories of differing stores and one
has its prices listed as a tag, the other as a property.
And also one calls its items "items" and the other calls them
"products". Awful!
Now you could write 2 parser for each one and use the correct one for
each type of document.

I was so wrong !

Hi my lovely rubyists,

Tried Ruby on rails today,I used to slam rails for over-shadowing ruby as a
language but I was so wrong. It was so naive of me to criticize rails
without trying it properly. After using it thoroughly, I can see why Rails
is synonymous with Ruby . Let's hope Rails gets better with every version.

Beautiful. Fast. Addictive.

Beautiful Ruby. Beautiful Rails

Yours sincerely,

Surya Poojary.

No more html

Yes, I know this is a Ruby mailing list and this post is about webdevelopment. But I promise there is a happy Ruby ending to this story.

As webdevelopers we have become accustomed to writing HTML and CSS. And for webapplications that are rich in front-end logic we add lots of Javascript libraries and code. What I have always found annoying about this style of building webapplications is the fact that a lot of steps are involved to add interactivity.

noble_names 1.0.0 - Capitalize names in different languages correctly

Hi!

noble_names is a tiny gem for a nieche problem: Capitalizing names
correctly in certain languages.

We had this problem back in 2016 when we were capitalizing user names in
german which could have nobility particles like "von", which should
never be capitalized.
noble_names simply detects these particles (or prefixes in some
languages) as well as business particles (think "Co.

What's Up in 2018/2? - Ruby Conferences 'n' Camps in February 2018 from Around the World

Hello,

I've updated the new calendar site @ Planet Ruby. The idea is to
publish monthly updates. What's Up in 2018/2? - Ruby Conferences &
Camps in February 2018 from Around the World [1].

Cheers.

[1] <a href="https://planetruby.github.io/calendar/2018/2" title="https://planetruby.github.io/calendar/2018/2">https://planetruby.github.io/calendar/2018/2</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 1.8.2 released

nokogiri version 1.8.2 has been released.

This release contains a few new features and bugfixes in addition to the
security update, wherein the vendored libxml2 and libxslt versions have
been updated:

* libxml2 is updated from 2.9.5 to 2.9.7

* libxslt is updated from 1.1.30 to 1.1.32

which addresses at least one published vulnerability, [CVE-2017-15412][],
which rates a "priority:medium" from Canonical.

FizzBuzz (1, 2, Fizz, 4, Buzz, ...) by Example - There's More Than One Way To Do It (Book Edition) @ Yuki & Moto Press Bookshelf

Hello,

Hello, I added FizzBuzz (1, 2, Fizz, 4, Buzz,...) by Example -
There's More Than One Way To Do It [1] by Tom Dalling, Paweł
Świątkowski, Gerald Bauer, et al to the Yuki & Moto Press Bookshelf
[2]

Free Online Books (and Booklets) about Ruby 'n' Friends in the
Manuscripts format and built with Jekyll and Octobook themes [3].

The FizzBuzz samples include Gold Standard, Classic, Monkey
Patching Fixnum, Object-Oriented w/ Fizznum, Enums, and many more.

I also included a RSpec Test Driven Development (TDD) sample - I'm
a RSpec newbie (and unbeliever ;-)) - if anyone can impr

minitest 5.11.3 Released

minitest version 5.11.3 has been released!

* home: <https://github.com/seattlerb/minitest>
* bugs: <https://github.com/seattlerb/minitest/issues>
* rdoc: <http://docs.seattlerb.org/minitest>
* vim: <https://github.com/sunaku/vim-ruby-minitest>
* emacs: <https://github.com/arthurnn/minitest-emacs>

minitest provides a complete suite of testing facilities supporting
TDD, BDD, mocking, and benchmarking.

"I had a class with Jim Weirich on testing last week and we were
allowed to choose our testing frameworks.

TracePoint line coverage

Hello

I'm playing around with TracePoint API and code coverage using :line event.

I'd like to be able to generate a percentage coverage report for a given
file. While I can easily see what lines are executed, I can't easily
determine what lines are not executed.

What I need, I think, is a tracepoint which triggers for eval/load/require,
which allows me to determine the initial coverage of the file.

Syndicate content