localtower 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -1
- data/lib/localtower/plugins/capture.rb +11 -3
- data/lib/localtower/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 21a07aea14c1ae1a55f3c06a1237d05ba8438604
|
4
|
+
data.tar.gz: 4742dda4b10f3032f7ccfae5f3594ba36101ca5f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aae0b58063eacfb75621277051a8bb1eb1dae4d68a3cb84bfeea53a7652bbfa20fa91eb6505cd90e2c5b9be65539434acb0134294881e95cfc6d8f5da10b822a
|
7
|
+
data.tar.gz: 8c09e7a5ffe750931e97b70520222bfb93eade5b493d51de523bb38e2fcb5a5710ae41c5e96c09f5a3ffbb90e66fa476dafec9efa71f5a4ef278ab6422a7c56b
|
data/README.md
CHANGED
@@ -47,8 +47,13 @@ module Localtower
|
|
47
47
|
end
|
48
48
|
|
49
49
|
def logs
|
50
|
-
|
51
|
-
|
50
|
+
if File.exist?(LOG_FILE)
|
51
|
+
content = File.open(LOG_FILE).read
|
52
|
+
else
|
53
|
+
content = nil
|
54
|
+
end
|
55
|
+
|
56
|
+
return {"variables" => []} if not content.present?
|
52
57
|
|
53
58
|
data = JSON.parse(content)
|
54
59
|
end
|
@@ -141,7 +146,10 @@ module Localtower
|
|
141
146
|
|
142
147
|
def init
|
143
148
|
# Clear the logs
|
144
|
-
File.
|
149
|
+
if File.exist?(LOG_FILE)
|
150
|
+
File.open(LOG_FILE, 'w') { |f| f.write("") }
|
151
|
+
end
|
152
|
+
|
145
153
|
self
|
146
154
|
end
|
147
155
|
|
data/lib/localtower/version.rb
CHANGED