tlog 0.1.4 → 0.1.5
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 +8 -8
- data/lib/tlog/command/pull.rb +27 -0
- data/lib/tlog/command/push.rb +27 -0
- data/tlog.gemspec +1 -1
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YzVmZjgzYWJiNzVlZjcxNDRjM2FlYzA5YWJiZmI3OGI4Y2UxNWExZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MDhkYWE4YWVhNDk0YzM0NmQzYzIzNzYxMzk0YmQ1NGU2YTIyZTJkNA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YWFmZjllYmRlMjM5NTMzZWFjYjMzODJlODFhNDlkMWI5ZjI4MWJkYWQ5ZDBl
|
10
|
+
ZDFjNWY3M2NlMmUzNGRhZDQzYzE4MjlkNTYwNTkzMDExODM5OWZiNGQ2M2Nm
|
11
|
+
ZDliYTlhZjRmYWE4NTM2MzhkNDJhZTk1ZWU2OWNkMjA4Y2VjMzM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NWY3MDMxNTViNTEzMjM4ODhjZTk0ODE0NWJjNWNhYmE4MDBmMmU1Nzc5YmMw
|
14
|
+
YzQ1MTA2M2RhN2FlZWJhYWE1Y2JlMmE4Y2IwYWZkOGI3MTY1OWRkOGRiN2Ux
|
15
|
+
NjBiNzM1YmEwYmZiZTQyOWM3ZjY4N2I1NTllMmZhODg5YTMwYzk=
|
@@ -0,0 +1,27 @@
|
|
1
|
+
|
2
|
+
class Tlog::Command::Pull < Tlog::Command
|
3
|
+
|
4
|
+
def name
|
5
|
+
"pull"
|
6
|
+
end
|
7
|
+
|
8
|
+
def description
|
9
|
+
"pulls time logs from upstream"
|
10
|
+
end
|
11
|
+
|
12
|
+
def execute(input, output)
|
13
|
+
pull_logs
|
14
|
+
end
|
15
|
+
|
16
|
+
def options(parser, options)
|
17
|
+
parser.banner = "usage: tlog pull"
|
18
|
+
end
|
19
|
+
|
20
|
+
private
|
21
|
+
|
22
|
+
def pull_logs
|
23
|
+
storage.in_branch do |wd|
|
24
|
+
storage.pull_logs
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
|
2
|
+
class Tlog::Command::Push < Tlog::Command
|
3
|
+
|
4
|
+
def name
|
5
|
+
"push"
|
6
|
+
end
|
7
|
+
|
8
|
+
def description
|
9
|
+
"pushes your time logs upstream"
|
10
|
+
end
|
11
|
+
|
12
|
+
def execute(input, output)
|
13
|
+
push_logs
|
14
|
+
end
|
15
|
+
|
16
|
+
def options(parser, options)
|
17
|
+
parser.banner = "usage: tlog push"
|
18
|
+
end
|
19
|
+
|
20
|
+
private
|
21
|
+
|
22
|
+
def push_logs
|
23
|
+
storage.in_branch do |wd|
|
24
|
+
storage.push_logs
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
data/tlog.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tlog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Wendel
|
@@ -104,6 +104,8 @@ files:
|
|
104
104
|
- lib/tlog/command/init.rb
|
105
105
|
- lib/tlog/command/owner.rb
|
106
106
|
- lib/tlog/command/points.rb
|
107
|
+
- lib/tlog/command/pull.rb
|
108
|
+
- lib/tlog/command/push.rb
|
107
109
|
- lib/tlog/command/start.rb
|
108
110
|
- lib/tlog/command/state.rb
|
109
111
|
- lib/tlog/command/stop.rb
|