fewald-worklog 0.2.7 → 0.2.8
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/.version +1 -1
- data/lib/cli.rb +2 -2
- data/lib/worklog.rb +6 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71322d2c7b0d6a8dd1af5edb40b49656d534431cdfaf300ffd45e5ef5d9744f4
|
4
|
+
data.tar.gz: c75ec053cd2ed2f2d3c26a9924026288a9903b2ea3a39850dc42bdb4d49fbeb3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f05e9e3a5f75b5e834b5e26f013f3683b7a45799586673e48ec9b4db23c281aeb891a860100058214a6273fea7fab69ae2fc2dfaec57099b2755710716a92d4f
|
7
|
+
data.tar.gz: 8569894fe334fee6d28e61e89e4192c981094871ee8a538104a240bbd968f4c2f48904903094fbe3a37941ae188c088be2d917fa69a084c52ae103bc784ccc04
|
data/.version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.8
|
data/lib/cli.rb
CHANGED
@@ -123,8 +123,8 @@ class WorklogCLI < Thor
|
|
123
123
|
|
124
124
|
desc 'server', 'Start the work log server'
|
125
125
|
def server
|
126
|
-
|
127
|
-
|
126
|
+
worklog = Worklog.new
|
127
|
+
worklog.server
|
128
128
|
end
|
129
129
|
|
130
130
|
desc 'stats', 'Show statistics for the work log'
|
data/lib/worklog.rb
CHANGED
@@ -233,6 +233,12 @@ class Worklog
|
|
233
233
|
WorkLogger.info Rainbow("Removed entry: #{removed_entry.message}").green
|
234
234
|
end
|
235
235
|
|
236
|
+
# Start webserver
|
237
|
+
def server
|
238
|
+
app = WorkLogApp.new(@storage)
|
239
|
+
WorkLogServer.new(app).start
|
240
|
+
end
|
241
|
+
|
236
242
|
# Parse the start and end date based on the options provided
|
237
243
|
#
|
238
244
|
# @param options [Hash] the options hash
|