protobuf_transpiler 1.2.0 → 1.2.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: 5ae36cca017f8dc92d448d3312284e2462934a87b522675684d3e987e53e1029
4
- data.tar.gz: 781b649dd1a6dcace6b68e9fea32efb5699c63008af53106f4a4b081b0b103ea
3
+ metadata.gz: f67728b36578a6f5e1d18f542ed1d9130ff516ec35eebb64626331282e9456f9
4
+ data.tar.gz: d872de640c32e53439414f023a47ded762604c451c96e925eb4aca68a179b117
5
5
  SHA512:
6
- metadata.gz: f9eedd08deb9598d3d6a978e57549ae8472e8129021e3d5d7a775c301b4198633c999c376ef6356755d358530e695b056e1c0a6d08b1601a650ae6d60c90dd15
7
- data.tar.gz: 4fcd0154d6e585a43331d65e6077689abeacd7abafeabf4f6689c65cb56aacbff99b96be5d73606ab939e2bd06e8dfa058bd60731c5696c0f2fdf55dc5137086
6
+ metadata.gz: 89bf9db63b564a990dd0481a72ad6966dfff0a51c82cb4c9f7c2768a7bed2c779f3a5043c323fb941b59c9f59d2e114a78be3fd0c521535703068cc9ad7ab1ef
7
+ data.tar.gz: 9be034984ad41dca4699011362d5d4ce424824cd9031219b460ac581e3ada1f92dd5c378d2711d1154c99b95dd60a06caa02f48e678cc0e98f096078b35fe85f
data/CHANGELOG.md CHANGED
@@ -7,13 +7,22 @@
7
7
  ### New features
8
8
  ### Bug fixes
9
9
  )-->
10
+ ## 1.2.2 2025-04-10
11
+ ### Bug fixes
12
+ - exception from 1.2.1 version was not caught correctly
13
+
14
+ ## 1.2.1 2025-04-10
15
+ ### Bug fixes
16
+ - fixed NoMethodError that would happen when the module in which the stubs contained constants beyond the ones defined by the stubs
10
17
 
11
18
  ## 1.2.0 2025-04-10
19
+ ### New features
12
20
  - generate task can create an initializer that allows the generated stubs to work with zeitwerk
13
21
  - added possibility to specify stubs path for generate task
14
22
  - added possibility to specify stubs path for annotate task
15
23
 
16
24
  ## 1.1.3 2025-02-28
25
+ ### Bug fixes
17
26
  - remove rails versions constraints, keep only dependency
18
27
 
19
28
  ## 1.1.2 2023-11-20
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ProtobufTranspiler
4
- VERSION = '1.2.0'
4
+ VERSION = '1.2.2'
5
5
  end
@@ -152,14 +152,13 @@ module ProtobufTranspiler
152
152
  def ignore_errors(*errors, &block)
153
153
  begin
154
154
  block.call
155
- rescue errors
155
+ rescue *errors
156
156
  nil
157
157
  end
158
158
  end
159
159
 
160
160
  def module_annotations mod
161
- ignore_errors(NameError, NoMethodError) { mod.const_get('Service') }
162
- &.sort
161
+ ignore_errors(NameError, NoMethodError) { mod.const_get('Service')&.sort }
163
162
  &.map { |_, d| "\t#{d.name}(#{d.input}): #{d.output}" }
164
163
  &.prepend(mod.name.to_s)
165
164
  &.join "\n"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: protobuf_transpiler
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Moku S.r.l.