Class: GitWakaTime::CommitedFile
- Inherits:
-
Sequel::Model
- Object
- Sequel::Model
- GitWakaTime::CommitedFile
- Defined in:
- lib/gitwakatime/commited_file.rb
Instance Method Summary collapse
-
#before_create ⇒ Object
No two committed files should have the same name + dependent_date this means a split tree, and we should split time between the two, or more, commits.
- #to_s ⇒ Object
Instance Method Details
#before_create ⇒ Object
No two committed files should have the same name + dependent_date this means a split tree, and we should split time between the two, or more, commits.
7 8 9 |
# File 'lib/gitwakatime/commited_file.rb', line 7 def before_create find_dependent_commit(name) end |
#to_s ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/gitwakatime/commited_file.rb', line 11 def to_s format(' %-20s %-40s %-100s '.blue, (dependent_sha[0..8] if dependent_sha), ChronicDuration.output(time_in_seconds.to_f), name ) end |