monofile gem - read in / parse monorepo / mono source tree definitions - a list of git (and github) projects, and more

Hello,

   I've put together the monofile gem / library [1] that lets you read
in / parse monorepo / mono source tree definitions,
that is, a list of git (and github) projects, and more. E pluribus
unum. Make out of many, one.

  From the readme:

Use `Monofile.read` to read in / parse monorepo / mono source tree
definitions - supporting a ruby or a yaml format.

Example - Monofile:

project "@openfootball/england"
project "@openfootball/world-cup"
project "@geraldb/austria"
project "@geraldb/geraldb.github.io"

project "geraldb", "catalog"
project "openfootball", "europe"
project "openfootball", "south-america"

or

Example - monofile.yml:

geraldb:
- austria
- catalog
- geraldb.github.io

openfootball:
- england
- europe
- south-america
- world-cup

To read use.

monofile = Monofile.read( "./Monofile" )
# -or-
monofile = Monofile.read( "./monofile.yml" )
pp monofile.to_a
#=> ["@openfootball/england",
#    "@openfootball/world-cup",
#    "@geraldb/austria",
#    "@geraldb/geraldb.github.io",
#    "@geraldb/catalog",
#    "@openfootball/europe"]
#    "@openfootball/south-america"]

pp monofile.to_h
#=> {"openfootball"=>["england", "world-cup", "europe", "south-america"],
#    "geraldb"     =>["austria", "geraldb.github.io", "catalog"]}

monofile.each do |proj|
  puts "  #{proj}"
end
#=> @openfootball/england
#   @openfootball/world-cup
#   @geraldb/austria
#   @geraldb/geraldb.github.io
#   @geraldb/catalog
#   @openfootball/europe
#   @openfootball/south-america

monofile.size
#=> 7

and so on. That's it for now. Cheers. Prost.

[1] https://github.com/rubycoco/monos/tree/master/monofile

Many thanks!

···

Sent from my iPhone

On Oct 31, 2020, at 4:28 AM, Gerald Bauer <gerald.bauer@gmail.com> wrote:

Hello,

  I've put together the monofile gem / library [1] that lets you read
in / parse monorepo / mono source tree definitions,
that is, a list of git (and github) projects, and more. E pluribus
unum. Make out of many, one.

From the readme:

Use `Monofile.read` to read in / parse monorepo / mono source tree
definitions - supporting a ruby or a yaml format.

Example - Monofile:

project "@openfootball/england"
project "@openfootball/world-cup"
project "@geraldb/austria"
project "@geraldb/geraldb.github.io"

project "geraldb", "catalog"
project "openfootball", "europe"
project "openfootball", "south-america"

or

Example - monofile.yml:

geraldb:
- austria
- catalog
- geraldb.github.io

openfootball:
- england
- europe
- south-america
- world-cup

To read use.

monofile = Monofile.read( "./Monofile" )
# -or-
monofile = Monofile.read( "./monofile.yml" )
pp monofile.to_a
#=> ["@openfootball/england",
#    "@openfootball/world-cup",
#    "@geraldb/austria",
#    "@geraldb/geraldb.github.io",
#    "@geraldb/catalog",
#    "@openfootball/europe"]
#    "@openfootball/south-america"]

pp monofile.to_h
#=> {"openfootball"=>["england", "world-cup", "europe", "south-america"],
#    "geraldb"     =>["austria", "geraldb.github.io", "catalog"]}

monofile.each do |proj|
 puts "  #{proj}"
end
#=> @openfootball/england
#   @openfootball/world-cup
#   @geraldb/austria
#   @geraldb/geraldb.github.io
#   @geraldb/catalog
#   @openfootball/europe
#   @openfootball/south-america

monofile.size
#=> 7

and so on. That's it for now. Cheers. Prost.

[1] https://github.com/rubycoco/monos/tree/master/monofile

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

I’m grateful for having you as a friend!

···

Sent from my iPhone

On Oct 31, 2020, at 4:28 AM, Gerald Bauer <gerald.bauer@gmail.com> wrote:

Hello,

  I've put together the monofile gem / library [1] that lets you read
in / parse monorepo / mono source tree definitions,
that is, a list of git (and github) projects, and more. E pluribus
unum. Make out of many, one.

From the readme:

Use `Monofile.read` to read in / parse monorepo / mono source tree
definitions - supporting a ruby or a yaml format.

Example - Monofile:

project "@openfootball/england"
project "@openfootball/world-cup"
project "@geraldb/austria"
project "@geraldb/geraldb.github.io"

project "geraldb", "catalog"
project "openfootball", "europe"
project "openfootball", "south-america"

or

Example - monofile.yml:

geraldb:
- austria
- catalog
- geraldb.github.io

openfootball:
- england
- europe
- south-america
- world-cup

To read use.

monofile = Monofile.read( "./Monofile" )
# -or-
monofile = Monofile.read( "./monofile.yml" )
pp monofile.to_a
#=> ["@openfootball/england",
#    "@openfootball/world-cup",
#    "@geraldb/austria",
#    "@geraldb/geraldb.github.io",
#    "@geraldb/catalog",
#    "@openfootball/europe"]
#    "@openfootball/south-america"]

pp monofile.to_h
#=> {"openfootball"=>["england", "world-cup", "europe", "south-america"],
#    "geraldb"     =>["austria", "geraldb.github.io", "catalog"]}

monofile.each do |proj|
 puts "  #{proj}"
end
#=> @openfootball/england
#   @openfootball/world-cup
#   @geraldb/austria
#   @geraldb/geraldb.github.io
#   @geraldb/catalog
#   @openfootball/europe
#   @openfootball/south-america

monofile.size
#=> 7

and so on. That's it for now. Cheers. Prost.

[1] https://github.com/rubycoco/monos/tree/master/monofile

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