lescopr 0.1.0 → 0.1.1

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,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 291f6d817d72c6598f388e7088f36c742d278d58508b74443327bc81a108771e
4
- data.tar.gz: 31c73668b1e5b2c57461d28fdd6eb085fdc55227de6973597ccd0656bfa45f91
3
+ metadata.gz: 17e96cbe7ffa8dd500efe4c22fff59e4098b55ba8c172e3571b6dfc93e754f4f
4
+ data.tar.gz: c1c3486176a778b133d4fc5bbaa54fbe236b54ee62e4a1bc43eb9a1043f4148c
5
5
  SHA512:
6
- metadata.gz: a5783011f3c58e03a82c22141ec444f07cfbc4e0e3a93afbe533cbd465c4d235a0c2d8d70679eae06dbf8c392b0761ec8a7385733505465d052b150f61d5f32d
7
- data.tar.gz: 8c9ee746851f418d710bc4e374d2c5bb03161e88ee58938afcf39b4ebe55f711f7c34135cc8345cd046c56fd22a48664b50886bbc3f76daec63e70957674252c
6
+ metadata.gz: 685527b7a1d399d79a8066feafeeb83868db264c2a625158210196df359fb9cd8a95161d305fa0219489d68758f74be2c27096aab135dac0b5cfa71df489d80d
7
+ data.tar.gz: 0e122b2d31270aa68b09347b0409423dbb4a0a3e2873d60b54d52eb15e4b3d04cd5a2d46d05d04fa6f9c83a9e187ea3d96e606ddd31073482789af21c59b648f
data/CHANGELOG.md CHANGED
@@ -11,7 +11,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
11
11
 
12
12
  ---
13
13
 
14
- ## [0.1.0] — 2026-03-08
14
+ ## [0.1.1] — 2026-03-08
15
+
16
+ ### Fixed
17
+ - Replace endless method syntax (`def foo = ...`) with Ruby 2.7-compatible `def/end` in `client.rb`, `daemon_runner.rb`, `config_manager.rb`, `monitoring/logger.rb`
18
+
19
+ ---
20
+
21
+ ## [0.1.0] — 2026-03-07
15
22
 
16
23
  ---
17
24
 
@@ -45,7 +52,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
45
52
 
46
53
  ---
47
54
 
48
- [Unreleased]: https://github.com/Lescopr/lescopr-ruby/compare/v0.1.0...HEAD
55
+ [Unreleased]: https://github.com/Lescopr/lescopr-ruby/compare/v0.1.1...HEAD
56
+ [0.1.1]: https://github.com/Lescopr/lescopr-ruby/compare/v0.1.0...v0.1.1
49
57
  [0.1.0]: https://github.com/Lescopr/lescopr-ruby/releases/tag/v0.1.0
50
58
  [0.1.0]: https://github.com/Lescopr/lescopr-ruby/releases/tag/v0.1.0
51
59
 
data/README.md CHANGED
@@ -285,5 +285,5 @@ To publish a new release:
285
285
 
286
286
  ## License
287
287
 
288
- [MIT](LICENSE) © 2024-present [SonnaLab](https://sonnalab.com). All rights reserved.
288
+ [MIT](LICENSE) © 2024 - 2026 [SonnaLab](https://sonnalab.com) | All rights reserved.
289
289
 
@@ -26,7 +26,9 @@ module Lescopr
26
26
  end
27
27
 
28
28
  # @return [Boolean] true if the SDK is fully initialised and ready
29
- def ready? = @ready
29
+ def ready?
30
+ @ready
31
+ end
30
32
 
31
33
  # Bootstrap: analyse project, register with API, start daemon.
32
34
  # @return [Boolean]
@@ -33,7 +33,9 @@ module Lescopr
33
33
  @thread&.join(3)
34
34
  end
35
35
 
36
- def running? = @running
36
+ def running?
37
+ @running
38
+ end
37
39
 
38
40
  private
39
41
 
@@ -31,7 +31,9 @@ module Lescopr
31
31
  end
32
32
  end
33
33
 
34
- def exists? = File.exist?(@path)
34
+ def exists?
35
+ File.exist?(@path)
36
+ end
35
37
 
36
38
  def delete!
37
39
  @mutex.synchronize { File.delete(@path) if File.exist?(@path) }
@@ -15,15 +15,31 @@ module Lescopr
15
15
  @logger = build_logger
16
16
  end
17
17
 
18
- def debug(msg) = @logger.debug(format_msg(msg)) if @debug
19
- def info(msg) = @logger.info(format_msg(msg))
20
- def warn(msg) = @logger.warn(format_msg(msg))
21
- def error(msg) = @logger.error(format_msg(msg))
22
- def fatal(msg) = @logger.fatal(format_msg(msg))
18
+ def debug(msg)
19
+ @logger.debug(format_msg(msg)) if @debug
20
+ end
21
+
22
+ def info(msg)
23
+ @logger.info(format_msg(msg))
24
+ end
25
+
26
+ def warn(msg)
27
+ @logger.warn(format_msg(msg))
28
+ end
29
+
30
+ def error(msg)
31
+ @logger.error(format_msg(msg))
32
+ end
33
+
34
+ def fatal(msg)
35
+ @logger.fatal(format_msg(msg))
36
+ end
23
37
 
24
38
  private
25
39
 
26
- def format_msg(msg) = "[LESCOPR] #{msg}"
40
+ def format_msg(msg)
41
+ "[LESCOPR] #{msg}"
42
+ end
27
43
 
28
44
  def build_logger
29
45
  log_path = File.join(Dir.pwd, LOG_FILE)
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Lescopr
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
6
6
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lescopr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - SonnaLab