Sha256: dd46df69ba87988f2013a5bba7556a09a2b4c2222fe7e4a4bf9ea1eeb030b802
Contents?: true
Size: 679 Bytes
Versions: 5
Compression:
Stored size: 679 Bytes
Contents
# For when I want to change the name of a component Luca.util.deprecateComponent = (previous, newName)-> msg = _.template "#{ previous } has been renamed to #{ newName }. Please update your definitions." Luca.registry.componentAliases[ newName ] ||= [] Luca.registry.componentAliases[ newName ].push( previous ) unless previous is newName Luca.registry.deprecatedComponents[ previous ] = message: msg({previous,newName}) newName: newName Luca.util.checkDeprecationStatusOf = (componentName)-> if replacement = Luca.registry.deprecatedComponents[ componentName ] Luca.log( replacement.message ) return replacement.newName componentName
Version data entries
5 entries across 5 versions & 1 rubygems