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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dcfd04482b7b0798e66c863f019e56a6b5af16d2
4
- data.tar.gz: c8729e1ed2b16a5a09851e3e5ee828d59137cfc7
3
+ metadata.gz: 21a07aea14c1ae1a55f3c06a1237d05ba8438604
4
+ data.tar.gz: 4742dda4b10f3032f7ccfae5f3594ba36101ca5f
5
5
  SHA512:
6
- metadata.gz: 2b5f5ad3608a85599a661ae92cb2da043039f7b45a49e2943aafea4b2ae6426bd2edc9dfc037e9dcd8fdd8ef4edb16ca9d0c0a094610a3b2d78624c73a6d3545
7
- data.tar.gz: d71724de93ea68cd9e5f5a4ffd32f8995664dd7d34897ab8a9131eed797a9d0c976e2e402194ccbac0c8887ae6e6fcc6d278924cc6ba1818185cf7b179ac8a6d
6
+ metadata.gz: aae0b58063eacfb75621277051a8bb1eb1dae4d68a3cb84bfeea53a7652bbfa20fa91eb6505cd90e2c5b9be65539434acb0134294881e95cfc6d8f5da10b822a
7
+ data.tar.gz: 8c09e7a5ffe750931e97b70520222bfb93eade5b493d51de523bb38e2fcb5a5710ae41c5e96c09f5a3ffbb90e66fa476dafec9efa71f5a4ef278ab6422a7c56b
data/README.md CHANGED
@@ -105,4 +105,6 @@ Thanks for reporting issues, I'll do my best.
105
105
 
106
106
  ## Deploy
107
107
 
108
- gem build localtower.gemspec
108
+ rm *.gem | gem build localtower.gemspec | gem push localtower*.gem
109
+
110
+
@@ -47,8 +47,13 @@ module Localtower
47
47
  end
48
48
 
49
49
  def logs
50
- content = File.open(LOG_FILE).read
51
- return {"variables" => []} unless content.present?
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.open(LOG_FILE, 'w') { |f| f.write("") }
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
 
@@ -1,3 +1,3 @@
1
1
  module Localtower
2
- VERSION = '0.2.0'.freeze
2
+ VERSION = '0.2.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: localtower
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Damian Le Nouaille