syntropy 0.9.1 → 0.9.2

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: ac20c68dfab62e2aab24c48477bf6fb456430385e9035c21365f025b3f766881
4
- data.tar.gz: 65991a442dc9b19e6f5bc3a6806de65f9fcc57cc82c4b1e20b2f4988ed76daa1
3
+ metadata.gz: 87551109e0882665af35d16b21a6cd12d1fc3bff3d8fbae1a24c8856a54ada08
4
+ data.tar.gz: 3c9cf454a3489ca3b578f1574cf7c216b5b873ee6568ef7bcedfda1c369ba8e4
5
5
  SHA512:
6
- metadata.gz: a1a30fbaa0a19a74b3828f8d840eef418da25f3ac74be36e38a9f3f7d4e3f9de4cb8e14ef806a27cff08986923c07f0dc7969ac70e6cb19c7f27bb1471fa69ee
7
- data.tar.gz: 91c8b4a5fe6ccef0241744163bd04294a62e50cae79e564f99b37a40c68075507436ae07c62a3539a89977a4f9980b53e140d28e51b2f4ceb5340bee925f5e1d
6
+ metadata.gz: b96d96be5114528ab81ec1b385e7cf8d0562e916fedc8e984cbaddf72ab4e5c4ae490a951abe21dc0028d1222f2cdba2240e1128ce3fa0f93d1ba5f893f3b965
7
+ data.tar.gz: 22cb63958b159665caa8132ae2f03c33afb2f4248c797852a0c2d66a460247fea98a769a5cf649a42a0c8b476cf0ae727ca9f35426c0342bf4dd7b1ac1959520
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.9.2 2025-07-24
2
+
3
+ - Fix logging
4
+
1
5
  ## 0.9.1 2025-07-08
2
6
 
3
7
  - Update TP2
data/TODO.md CHANGED
@@ -1,3 +1,5 @@
1
+ - a way to inject cookies into the response
2
+
1
3
  - add support for applets
2
4
 
3
5
  - can be implemented as separate gems
data/lib/syntropy/app.rb CHANGED
@@ -45,7 +45,9 @@ module Syntropy
45
45
  # we do startup stuff asynchronously, in order to first let TP2 do its
46
46
  # setup tasks
47
47
  @machine.sleep 0.15
48
- @opts[:logger]&.call("Serving from #{File.expand_path(@location)}")
48
+ @opts[:logger]&.info(
49
+ message: "Serving from #{File.expand_path(@location)}"
50
+ )
49
51
  @router.start_file_watcher if opts[:watch_files]
50
52
  end
51
53
  end
@@ -139,7 +141,10 @@ module Syntropy
139
141
  o = @module_loader.load(ref)
140
142
  o.is_a?(Papercraft::Template) ? wrap_template(o) : o
141
143
  rescue Exception => e
142
- @opts[:logger]&.call("Error while loading module #{ref}: #{e.message}")
144
+ @opts[:logger]&.error(
145
+ message: "Error while loading module #{ref}",
146
+ error: e
147
+ )
143
148
  :invalid
144
149
  end
145
150
 
@@ -26,7 +26,9 @@ module Syntropy
26
26
  end
27
27
 
28
28
  def start_file_watcher
29
- @opts[:logger]&.call('Watching for file changes...', nil)
29
+ @opts[:logger]&.info(
30
+ message: 'Watching for file changes...'
31
+ )
30
32
  @machine.spin { file_watcher_loop }
31
33
  end
32
34
 
@@ -170,7 +172,9 @@ module Syntropy
170
172
  end
171
173
 
172
174
  def handle_changed_file(event, fn)
173
- @opts[:logger]&.call("Detected changed file: #{event} #{fn}")
175
+ @opts[:logger]&.info(
176
+ message: "Detected changed file: #{event} #{fn}"
177
+ )
174
178
  @module_loader&.invalidate(fn)
175
179
  case event
176
180
  when :added
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Syntropy
4
- VERSION = '0.9.1'
4
+ VERSION = '0.9.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: syntropy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sharon Rosner