devlog 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/LICENSE +1 -18
- data/README.md +10 -5
- data/VERSION +1 -1
- data/bin/devlog +6 -0
- data/devlog.gemspec +3 -3
- data/devlog.markdown +9 -0
- data/lib/devlog.rb +4 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7cc4eca661b86e9c2fc1ee9e9aecb4f4cb9672f9
|
4
|
+
data.tar.gz: e81533808dd173f8d0f205b6def0be29c1ff0de6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf35a9fa222273614cbe3e7e7602ddce55f28e412b756a31cbaa832f9a478bbdba0996d8b81fea23caa642dfd13d85b499d622e9e3c0fbe86a04ce11449889ac
|
7
|
+
data.tar.gz: 7ccd816f9dec22056b28468f7624dffc2f92d655a5d6f1ace4741f57dc66b766a0553df9538dc09e3221df954f5664ca6ace2a921eafa4637d823fb6ef926332
|
data/LICENSE
CHANGED
@@ -1,20 +1,3 @@
|
|
1
|
-
|
1
|
+
You have the Copyright!
|
2
2
|
|
3
|
-
Copyright (c) 2014 Miha Plohl
|
4
3
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
6
|
-
this software and associated documentation files (the "Software"), to deal in
|
7
|
-
the Software without restriction, including without limitation the rights to
|
8
|
-
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
9
|
-
the Software, and to permit persons to whom the Software is furnished to do so,
|
10
|
-
subject to the following conditions:
|
11
|
-
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
13
|
-
copies or substantial portions of the Software.
|
14
|
-
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
17
|
-
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
18
|
-
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
19
|
-
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
20
|
-
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
CHANGED
@@ -6,15 +6,15 @@ the headless standup programmer's development log writing tool
|
|
6
6
|
structure
|
7
7
|
=========
|
8
8
|
|
9
|
-
a devlog consists of many coding or communication sessions.
|
9
|
+
a devlog consists of many coding or communication sessions.
|
10
10
|
|
11
11
|
the current development session is written at the top of the file.
|
12
12
|
|
13
|
-
older sessions are towards the end of the file.
|
13
|
+
older sessions are towards the end of the file.
|
14
14
|
|
15
15
|
the first session is the one at the bottom, scroll down at the end of the file.
|
16
16
|
|
17
|
-
sessions are separated with beginning and end "devlog DSL" entries,
|
17
|
+
sessions are separated with beginning and end "devlog DSL" entries,
|
18
18
|
|
19
19
|
these must be entered at the start of the line.
|
20
20
|
|
@@ -60,11 +60,16 @@ run in current folder and commit to git repo (if any):
|
|
60
60
|
|
61
61
|
`devlog commit`
|
62
62
|
|
63
|
-
run in current folder and push to git repo
|
63
|
+
run in current folder and push to git repo:
|
64
64
|
|
65
65
|
`devlog push`
|
66
66
|
|
67
|
-
run in current folder and commit&push git repo
|
67
|
+
run in current folder and write out info.markdown then commit&push git repo:
|
68
68
|
|
69
69
|
`devlog save`
|
70
70
|
|
71
|
+
this one is nice for pushing to a github project, since the CEO can now read the devlog inside a special git branch. the branch should contain only the devlog. one can check out two copies of the git project and have the devlog branch always open in one, while working on code in the other.
|
72
|
+
|
73
|
+
run in current folder and write out info.markdown, copy devlog to README.markdown so it is rendered on github project/branch frontpage, then commit&push git repo:
|
74
|
+
|
75
|
+
`devlog saver`
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.4
|
data/bin/devlog
CHANGED
@@ -20,6 +20,7 @@ write commands for the current folder, the top three:
|
|
20
20
|
#{'devlog'.green} b ~ starts coding session
|
21
21
|
#{'devlog'.green} e ~ stops coding session
|
22
22
|
#{'devlog'.green} save ~ save info.markdown, commit & push git repo
|
23
|
+
#{'devlog'.green} saver ~ save info.markdown, copy to README.markdown, commit & push git repo
|
23
24
|
|
24
25
|
#{'devlog'.green} i ~ save info.markdown
|
25
26
|
#{'devlog'.green} s ~ status of coding session
|
@@ -65,6 +66,11 @@ def dodo
|
|
65
66
|
puts "Save info.markdown and Commit and push git"
|
66
67
|
save_info("devlog.markdown")
|
67
68
|
`git commit -am "devlog" && git push`
|
69
|
+
elsif @in_file_or_cmd == 'saver'
|
70
|
+
puts "Save info.markdown, copy devlog to README.markdown and Commit and push git"
|
71
|
+
save_info("devlog.markdown")
|
72
|
+
save_to_readme("devlog.markdown")
|
73
|
+
`git commit -am "devlog" && git push`
|
68
74
|
elsif @in_file_or_cmd == 's'
|
69
75
|
puts is_session_open("devlog.markdown") ? "Session is open..." : "No open session."
|
70
76
|
elsif @in_file_or_cmd =~ /markdown/
|
data/devlog.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: devlog 0.1.
|
5
|
+
# stub: devlog 0.1.4 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "devlog"
|
9
|
-
s.version = "0.1.
|
9
|
+
s.version = "0.1.4"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
13
13
|
s.authors = ["mihael"]
|
14
|
-
s.date = "2015-
|
14
|
+
s.date = "2015-11-26"
|
15
15
|
s.description = "devlog.markdown time&space extractor"
|
16
16
|
s.email = "kitschmaster@gmail.com"
|
17
17
|
s.executables = ["devlog"]
|
data/devlog.markdown
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
#21.02.2015 09:48:04 CodingSession::END
|
2
|
+
|
3
|
+
when using the `devlog saver` command, it will also copy the devlog.markdown to `README.markdown`
|
4
|
+
this is done so, because github by default renders the README on project front page.
|
5
|
+
|
6
|
+
when the devlog file gets extremely large, github will cut it off at the bottom, good that devlog sessions are written at the top of the file, haha.
|
7
|
+
|
8
|
+
#21.02.2015 09:26:13 CodingSession::BEGIN
|
9
|
+
|
1
10
|
#16.02.2015 23:09:06 CodingSession::END
|
2
11
|
|
3
12
|
who's got time...not to sweet dream. still did not get rid of active support... well, let's keep it until, after all, it's active, reactive uppsort... and maybe someday You would dare work without it.
|
data/lib/devlog.rb
CHANGED
@@ -247,12 +247,15 @@ module Devlog
|
|
247
247
|
info = parse_devlog_now(devlog_file)
|
248
248
|
if info.has_info?
|
249
249
|
File.open(File.join(File.dirname(devlog_file), info_file), 'w') {|f| f.write(info.to_info_string(short=true)) }
|
250
|
-
`cp #{devlog_file} #{File.join(File.dirname(devlog_file), 'README.markdown')}`
|
251
250
|
else
|
252
251
|
puts "No info present.".red
|
253
252
|
end
|
254
253
|
end
|
255
254
|
|
255
|
+
def save_to_readme(devlog_file='devlog.markdown')
|
256
|
+
`cp #{devlog_file} #{File.join(File.dirname(devlog_file), 'README.markdown')}`
|
257
|
+
end
|
258
|
+
|
256
259
|
#if the first non empty line is not and END entry then session is open (or malformed file)
|
257
260
|
def is_session_open(devlog_file='devlog.markdown')
|
258
261
|
is_open = true
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: devlog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mihael
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-11-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|