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

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

#initialize(name, options = {}) ⇒ Component

Returns a new instance of Component.



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

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

Instance Attribute Details

#nameObject (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

#dirty?Boolean

Has this component changes since the last release

Returns:

  • (Boolean)


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