Low commit activity in last 3 years
No release in over a year
A MyMedia gem for publishing code snippets
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 1.1, >= 1.1.3
~> 0.6, >= 0.6.1
 Project Readme

Introducing the MyMedia Snippets gem

require 'mymedia_snippets'

class JRSnippets < MyMediaSnippets

  def initialize(media_type: 'snippets', 
            config: '/home/james/jamesrobertson.eu/s1/mymedia.conf', 
                 css_href: '/snippets/coderay_ruby.css', lang: :ruby)
    
    super(media_type: media_type, config: config, css_href: css_href, lang: lang)

  end

end

conf = args.first
JRSnippets.new(config: conf).auto_copy_publish

In the above example the MyMedia Snippets gem retrieves the most recent file in the directory /home/james/media/snippets directory and publishes it to an HTML file on my webserver which is accessible from a local file directory using SSHFS.

This file was published using MyMedia Snippets gem.

Resources

mymedia snippets gem