Class: SocialStream::Release::Component

Inherits:
Global
  • Object
show all
Defined in:
lib/social_stream/release/component.rb,
lib/social_stream/release/component/version_file.rb

Defined Under Namespace

Classes: VersionFile

Constant Summary

Constant Summary

Constants inherited from Global

Global::DEPENDENCY_REGEXP

Instance Attribute Summary (collapse)

Attributes inherited from Global

#version

Instance Method Summary (collapse)

Methods inherited from Global

#bump, #commit_files, #dependencies, #last_tag, #publish

Constructor Details

- (Component) initialize(name, options = {})



8
9
10
# File 'lib/social_stream/release/component.rb', line 8

def initialize(name, options = {})
  @name, @options = name, options
end

Instance Attribute Details

- (Object) name (readonly)

Returns the value of attribute name



6
7
8
# File 'lib/social_stream/release/component.rb', line 6

def name
  @name
end

Instance Method Details

- (Boolean) dirty?

Has this component changes since the last release



13
14
15
# File 'lib/social_stream/release/component.rb', line 13

def dirty?
  `git log #{ last_tag }.. #{ name } | wc -l`.to_i > 0
end