No commit activity in last 3 years
No release in over 3 years
This gem provides a rake extension to wrap blocks of ruby code so that the output of the block is persisted using marshal. Blocks with persisted data will not be rerun and their data is available to subsequent blocks which can themselves generate persistent data. This allow a very simple and robust pipeline to be constructed in within a regular rakefile.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Runtime

>= 0
 Project Readme

PersistentBlocks

Persist the output of ruby blocks

Installation

Add this line to your application's Gemfile:

gem 'persistent_blocks'

And then execute:

$ bundle

Or install it yourself as:

$ gem install persistent_blocks

Usage

require 'persistent_blocks'
extend PersistentBlocks
		
persist :first_persisted do
	'Here is the first persistent data'
end
    
persist do |first_persisted|	
	puts first_persisted # => 'Here is the first persistent data'
end

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request