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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ODJjNTZhZDg0MTViMjVmZGQ0ZDFkNjRlNDZkMWU5NGFkNGI1NGNkZA==
4
+ YzVmZjgzYWJiNzVlZjcxNDRjM2FlYzA5YWJiZmI3OGI4Y2UxNWExZA==
5
5
  data.tar.gz: !binary |-
6
- MmVjNjk1ZmZkOTkyNzcyZTkwMTg0YTIwOTIxMzFmMTg2ZDQ0NDY4OQ==
6
+ MDhkYWE4YWVhNDk0YzM0NmQzYzIzNzYxMzk0YmQ1NGU2YTIyZTJkNA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NjMzN2I4MDlkMGRiZmZlMzU3OTFlNGMzM2RjZTliM2ViYWI1YjQ0MmE1OWM0
10
- NzkyYzgzOTBiNGNiNzNhMTE1MjZmMWFkMWY1YjNjZDBmODcyMWI1MzM5MTM2
11
- ODUxMjNhMTI5YWIyZTVjY2M2MzA2NmM1ZmNjZjljYjcxODM4NDQ=
9
+ YWFmZjllYmRlMjM5NTMzZWFjYjMzODJlODFhNDlkMWI5ZjI4MWJkYWQ5ZDBl
10
+ ZDFjNWY3M2NlMmUzNGRhZDQzYzE4MjlkNTYwNTkzMDExODM5OWZiNGQ2M2Nm
11
+ ZDliYTlhZjRmYWE4NTM2MzhkNDJhZTk1ZWU2OWNkMjA4Y2VjMzM=
12
12
  data.tar.gz: !binary |-
13
- ZWFmZGEwZjdkOTEzN2RlMTk0YjY2MDU0MjFhZjU0ODA1M2NiNjkwNzQwNDM5
14
- YzI3ODc1YTg3OTFhODVlZjEyNzYwZGQyMmY3MWRjYzlmM2Y4ZjMwODJmMTUw
15
- YWQ1NWUzYjM1MjA2MTNmN2FmNjA0ZDFkNTBlNjYyYWI3N2NiMzM=
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
@@ -2,7 +2,7 @@
2
2
  Gem::Specification.new do |spec|
3
3
 
4
4
  spec.name = "tlog"
5
- spec.version = "0.1.4"
5
+ spec.version = "0.1.5"
6
6
  spec.date = "2013-06-04"
7
7
 
8
8
  spec.required_ruby_version = ">=1.9.3"
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
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