Project

verning

0.0
No commit activity in last 3 years
No release in over 3 years
versioning for methods, modules or classes
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
~> 0.9
~> 0.9
~> 2.14
 Project Readme

Verning

Versioning for methods, modules or classes

Code Climate Coverage Status Build Status

Install

gem install verning

Reference

versioned_method

Select a method that matches the conditions given with block.

require "verning"

class Klass
  RELEASE_DATE = Date.parse("2014-3-26")
  
  def foo
    :foo
  end
  
  def foo_fearture
    :foo_feature
  end
  
  versioned_method :foo, :foo_feature do 
    Date.today >= RELEASE_DATE 
  end
end

versioned_module/versioned_class

Select a module/class that matches the conditions given with block.

require "verning"

RELEASE_DATE = Date.parse("2014-3-26")

class Foo; end
class FooFeature; end

versioned_module Foo, FooFeature do
  Date.today >= RELEASE_DATE
end

Releaser

Releaser release if the conditions are releaseable. The conditions defined with YAML.

super_pop_campaing:
  date:
    start: "2014-02-07"
    end: "2014-02-07"

Use this like :

require "verning"

# Load releaser from yaml
Verning.releaser = YAML.file_load "releaser.yml"

class Klass
  def :foo; end
  def :foo_feature; end

  # set release name
  versioned_method :foo, :foo_feature, :super_pop_campaing
end

License

Verning is released under the MIT license:

www.opensource.org/licenses/MIT