Class: RackCommitStats::Commit
- Inherits:
-
Object
- Object
- RackCommitStats::Commit
- Defined in:
- lib/rack-commit-stats/commit.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#author ⇒ Object
17 18 19 |
# File 'lib/rack-commit-stats/commit.rb', line 17 def commit..reject { |k, _| k == :time } end |
#branch ⇒ Object
5 6 7 |
# File 'lib/rack-commit-stats/commit.rb', line 5 def branch head.name.split('/').last end |
#message ⇒ Object
13 14 15 |
# File 'lib/rack-commit-stats/commit.rb', line 13 def commit..gsub /[\r\n]/, '' end |
#revision ⇒ Object
9 10 11 |
# File 'lib/rack-commit-stats/commit.rb', line 9 def revision head.target_id end |