glib-web 4.42.1 → 4.42.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: 10cf86096f7289ec5330a4945455aa966fffa5ec6d25e9eed14a9d1cc05324e5
4
- data.tar.gz: 3e5c534eb6a24b7643c2ba053a92dbc85854242af338489244d8f229ee8ea86f
3
+ metadata.gz: 3794a6fed57b589d09cfd6f2fe1f747673998520640e608c223be773a3161bc0
4
+ data.tar.gz: 472d83c2de3a296222f412ddeb1fc6874e5fedb732d472a028adb47130bac721
5
5
  SHA512:
6
- metadata.gz: 6f4b740caa11bfc6f41686c03c84fcc507ef0de4ae17d8b317b98fcd301c311bfc72eb9eaeb5ac04fe847828e00826234bc3087f72571143fb653b5e0cd92465
7
- data.tar.gz: c99131d247a25df28948a755718a63d0d1548eb1d5b149917156340798115a67ab587ceb9c282bbccaeb1e4ddd31e552a9f034c3fa54ca246654c3cbb3f660bc
6
+ metadata.gz: 34178d1b1dab6f1ab20db634f9628dbd67b21ecf675ef5fad566d96f9029c5644b14dd9002a264aefa2db52b82164ef594cc091f1a7f8f21c1e7989103ced652
7
+ data.tar.gz: 5a113061150dffe37f69fa02b798abad3e4b96c99a66e26280ca44722b446071015c6fc50e871cffa555fab737dfdebb1f4a7607018176ed7cc3062b597a1f9e
@@ -131,10 +131,9 @@ module Glib::Json::Libs
131
131
  redirect_to sign_in_url, **redirect_options
132
132
  end
133
133
  format.json do
134
- render(
134
+ render \
135
135
  json: json_ui_401_response(sign_in_url, **redirect_options),
136
136
  status: Rails.env.test? ? :unauthorized : :ok
137
- )
138
137
  end
139
138
  format.csv do
140
139
  if Rails.env.test?
@@ -231,9 +230,7 @@ module Glib::Json::Libs
231
230
  view: 'label',
232
231
  text: message
233
232
  },
234
- ].concat(
235
- bottom_views
236
- ),
233
+ ].concat(bottom_views),
237
234
  }
238
235
  ]
239
236
  # Set this in the project's custom CSS.
@@ -312,8 +309,6 @@ module Glib::Json::Libs
312
309
 
313
310
  @__json_libs_init_options = options
314
311
 
315
- puts "*********** __json_libs_init_options: #{@__json_libs_init_options}"
316
-
317
312
  before_action do
318
313
  __json_ui_start(options)
319
314
  end
@@ -117,14 +117,12 @@ module Glib::Json::Ui
117
117
 
118
118
  renderer_path = params[:_skip_custom_render] == 'true' ? 'layouts/json_ui/no_custom' : options[:renderer_path]
119
119
  @__json_ui_orig_page = response.body
120
- response.body(
121
- render_to_string(
122
- template: renderer_path,
123
- layout: 'json_ui/renderer',
124
- content_type: 'text/html',
125
- formats: [:html],
126
- locals: { page: hash, options: options }
127
- )
120
+ response.body = render_to_string(
121
+ template: renderer_path,
122
+ layout: 'json_ui/renderer',
123
+ content_type: 'text/html',
124
+ formats: [:html],
125
+ locals: { page: hash, options: options }
128
126
  )
129
127
  end
130
128
  end
@@ -38,6 +38,7 @@ module RuboCop
38
38
  return if proper_parentheses_style?(node)
39
39
  return if proper_backslash_style?(node) && allow_backslash?
40
40
  return if inside_correctable_parent?(node)
41
+ return if assignment_method?(node)
41
42
 
42
43
  add_offense(node) do |corrector|
43
44
  autocorrect(corrector, node)
@@ -52,6 +53,13 @@ module RuboCop
52
53
  node.multiline? && node.arguments.any?
53
54
  end
54
55
 
56
+ def assignment_method?(node)
57
+ # Skip setter methods (e.g., response.body=, foo.bar=)
58
+ # These are written as assignments (response.body = ...) and shouldn't
59
+ # be converted to method call style (response.body(...))
60
+ node.method_name.to_s.end_with?('=')
61
+ end
62
+
55
63
  def allow_backslash?
56
64
  # Allow backslash style without warnings when configured
57
65
  # Set to true to allow both styles (but auto-correct will still convert to parentheses)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glib-web
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.42.1
4
+ version: 4.42.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''