No release in over 3 years
This gem allows you to generate a m1key.me-style gallery based on the JPG files in the working directory.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 4.0, >= 4.0.6
~> 1.1.8
~> 4.4.2
~> 6.0, >= 6.0.2
~> 13.3, >= 13.3.1
~> 4.0.0.beta1

Runtime

~> 1.5, >= 1.5.1
~> 1.7
 Project Readme

M1keyGalleryGenerator

This Ruby script generates https://www.m1key.me-style galleries.

A sample gallery: https://www.m1key.me/photography/mauritania_part_2/

Status

Maintained, used, going strong.

Set up

Fedora

Install Ruby:

dnf install ruby

Install Ruby Gem Bundler in Fedora 35 and higher:

gem install bundler

dnf install ruby-irb

Ubuntu

This was most recently tested on Ubuntu 24.04.

Install rbenv using this command (the one shipped with the system is out of date):

curl -fsSL https://github.com/rbenv/rbenv-installer/raw/HEAD/bin/rbenv-installer | bash

Rbenv hackery:

apt install libffi-dev apt install libyaml-dev

Then install Ruby:

rbenv install 4.0.2

rbenv global 4.0.2

gem install bundler

gem install rspec

Windows

This was most recently tested on Windows 11.

Install Ruby 4.0.2 using rubyinstaller.org. Then run:

gem install bundler

All

Install dependencies:

bundle install

Tests

Setup

ruby -Ilib bin/console test/data

Synthetic gallery tests

rake

Code-level tests

rspec spec

Usage

This assumes you are running Windows.

Clone the project.

Build the gem.

gem build m1key_gallery_generator.gemspec

Install the gem.

gem install m1key_gallery_generator-0.4.0.gem

In your gallery directory, have a file called generate.bat that looks like this:

ruby c:\Ruby40-x64\lib\ruby\gems\4.0.0\gems\m1key_gallery_generator-0.4.0\bin\console . wait_on_error

Development

Release

To release a new version, update the version number in version.rb, commit your changes, and then run bundle exec rake release to create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.